From b5dfc721c854c85ad08fa57da621e03203a5f6f7 Mon Sep 17 00:00:00 2001 From: Steven Date: Fri, 13 Dec 2024 16:40:25 -0500 Subject: [PATCH] chore(docs): update version history of `next/image` (#73923) These features were added in Next.js 15.x but then back-ported to 14.x since they can impact billing. So we should land this docs PR and then also back-port it. I also noticed that the heading was wrong for `localPatterns`. --- docs/02-app/02-api-reference/01-components/image.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/02-app/02-api-reference/01-components/image.mdx b/docs/02-app/02-api-reference/01-components/image.mdx index f3f1245aed000..fa9ad6495b704 100644 --- a/docs/02-app/02-api-reference/01-components/image.mdx +++ b/docs/02-app/02-api-reference/01-components/image.mdx @@ -484,7 +484,7 @@ Other properties on the `` component will be passed to the underlying In addition to props, you can configure the Image Component in `next.config.js`. The following options are available: -## `localPatterns` +### `localPatterns` You can optionally configure `localPatterns` in your `next.config.js` file in order to allow specific paths to be optimized and block all others paths. @@ -1050,7 +1050,8 @@ This `next/image` component uses browser native [lazy loading](https://caniuse.c | Version | Changes | | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `v14.2.15` | `decoding` prop added. | +| `v14.2.15` | `decoding` prop added and `localPatterns` configuration added. | +| `v14.2.14` | `remotePatterns.search` prop added. | | `v14.2.0` | `overrideSrc` prop added. | | `v14.1.0` | `getImageProps()` is stable. | | `v14.0.0` | `onLoadingComplete` prop and `domains` config deprecated. |