0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages/integrations/image/CHANGELOG.md
Fred K. Bot 100b8d0583
[ci] release (#4702)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-09 17:18:03 -04:00

13 KiB

@astrojs/image

0.7.0

Minor Changes

0.6.1

Patch Changes

  • #4678 4c05c65a3 Thanks @tony-sull! - Updates the integration to build all optimized images to dist/assets during SSG builds

0.6.0

Minor Changes

  • #4642 e4348a4eb Thanks @beeb! - Added a background option to specify a background color to replace transparent pixels (alpha layer).

Patch Changes

0.5.1

Patch Changes

0.5.0

Minor Changes

Patch Changes

0.4.0

Minor Changes

  • #4482 00c605ce3 Thanks @tony-sull! - <Image /> and <Picture /> now support using images in the /public directory 🎉

    • Moving handling of local image files into the Vite plugin
    • Optimized image files are now built to /dist with hashes provided by Vite, removing the need for a /dist/_image directory
    • Removes three npm dependencies: etag, slash, and tiny-glob
    • Replaces mrmime with the mime package already used by Astro's SSR server
    • Simplifies the injected _image route to work for both dev and build
    • Adds a new test suite for using images with @astrojs/mdx - including optimizing images straight from /public

0.3.7

Patch Changes

0.3.6

Patch Changes

  • #4338 579e2daf8 Thanks @tony-sull! - When using remote images in SSG builds, query parameters from the original image source should be stripped from final build output

0.3.5

Patch Changes

  • #4342 c4af8723b Thanks @tony-sull! - The integration now includes a logger to better track progress in SSG builds. Use the new logLevel: "debug" integration option to see detailed logs of every image transformation built in your project.

0.3.4

Patch Changes

0.3.3

Patch Changes

0.3.2

Patch Changes

0.3.1

Patch Changes

0.3.0

Minor Changes

  • #4045 a397b981f Thanks @tony-sull! - Big improvements to the TypeScript and Language Tools support for @astrojs/image 🎉

0.2.0

Minor Changes

  • #4015 6fd161d76 Thanks @matthewp! - New output configuration option

    This change introduces a new "output target" configuration option (output). Setting the output target lets you decide the format of your final build, either:

    • "static" (default): A static site. Your final build will be a collection of static assets (HTML, CSS, JS) that you can deploy to any static site host.
    • "server": A dynamic server application. Your final build will be an application that will run in a hosted server environment, generating HTML dynamically for different requests.

    If output is omitted from your config, the default value "static" will be used.

    When using the "server" output target, you must also include a runtime adapter via the adapter configuration. An adapter will adapt your final build to run on the deployed platform of your choice (Netlify, Vercel, Node.js, Deno, etc).

    To migrate: No action is required for most users. If you currently define an adapter, you will need to also add output: 'server' to your config file to make it explicit that you are building a server. Here is an example of what that change would look like for someone deploying to Netlify:

    import { defineConfig } from 'astro/config';
    import netlify from '@astrojs/netlify/functions';
    
    export default defineConfig({
      adapter: netlify(),
    + output: 'server',
    });
    
  • #4013 ef9345767 Thanks @tony-sull! - - Fixes two bugs that were blocking SSR support when deployed to a hosting service
    • The built-in sharp service now automatically rotates images based on EXIF data

Patch Changes

0.1.3

Patch Changes

  • #3965 299b4afca Thanks @tony-sull! - Adding a unique hash to remote images built for SSG to ensure unique URLs are always de-duplicated

0.1.2

Patch Changes

0.1.1

Patch Changes

0.1.0

Minor Changes

  • #3866 89d76753 Thanks @tony-sull! - The new <Picture /> component adds art direction support for building responsive images with multiple sizes and file types 🎉

Patch Changes

0.0.4

Patch Changes

  • #3812 5ccccace Thanks @tony-sull! - - Updates how the <Image /> component is exported to support older versions of Astro
    • Adds an example of using the <Image /> component in markdown pages

0.0.3

Patch Changes

  • #3795 d143d24c Thanks @tony-sull! - Automatically adds the required vite.optimizeDeps config for sharp. Also ensures that only whole numbers are passed to sharp's resize transform

0.0.2

Patch Changes