summaryrefslogtreecommitdiff
path: root/packages/integrations
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations')
-rw-r--r--packages/integrations/image/CHANGELOG.md29
-rw-r--r--packages/integrations/image/package.json2
2 files changed, 30 insertions, 1 deletions
diff --git a/packages/integrations/image/CHANGELOG.md b/packages/integrations/image/CHANGELOG.md
index 7a8bcc07b..d6608e42c 100644
--- a/packages/integrations/image/CHANGELOG.md
+++ b/packages/integrations/image/CHANGELOG.md
@@ -1,5 +1,34 @@
# @astrojs/image
+## 0.9.0
+
+### Minor Changes
+
+- [#4909](https://github.com/withastro/astro/pull/4909) [`989298961`](https://github.com/withastro/astro/commit/9892989619770f310eed3398dd2cbc98be469afd) Thanks [@tony-sull](https://github.com/tony-sull)! - Adds caching support for transformed images :tada:
+
+ Local images will be cached for 1 year and invalidated when the original image file is changed.
+
+ Remote images will be cached based on the `fetch()` response's cache headers, similar to how a CDN would manage the cache.
+
+ **cacheDir**
+
+ By default, transformed images will be cached to `./node_modules/.astro/image`. This can be configured in the integration's config options.
+
+ ```
+ export default defineConfig({
+ integrations: [image({
+ // may be useful if your hosting provider allows caching between CI builds
+ cacheDir: "./.cache/image"
+ })]
+ });
+ ```
+
+ Caching can also be disabled by using `cacheDir: false`.
+
+### Patch Changes
+
+- [#4933](https://github.com/withastro/astro/pull/4933) [`64a1d712e`](https://github.com/withastro/astro/commit/64a1d712efd3cc80c0b9aed9f2ead1487f8db07b) Thanks [@tony-sull](https://github.com/tony-sull)! - Fixes a bug in dev when `<Image />` is used for a local image with no transformations
+
## 0.8.1
### Patch Changes
diff --git a/packages/integrations/image/package.json b/packages/integrations/image/package.json
index dd6ce68a3..be28b6baa 100644
--- a/packages/integrations/image/package.json
+++ b/packages/integrations/image/package.json
@@ -1,7 +1,7 @@
{
"name": "@astrojs/image",
"description": "Load and transform images in your Astro site.",
- "version": "0.8.1",
+ "version": "0.9.0",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",