From 3f2b4bc904f9704be7ada9891cf80cb1373f37fe Mon Sep 17 00:00:00 2001 From: Victor Boucher Date: Tue, 13 Sep 2022 03:06:58 +0200 Subject: [PATCH] docs(basic-features/script): update script version history (#40263) Made an addition to the version history within the Script component docs. In the docs there are examples where the Script component is being used within a _document.js/tsx file, but it does not get mentioned that this is only supported from version 12.2.2 onwards. ## Documentation / Examples - [x] Make sure the linting passes by running `pnpm lint` Co-authored-by: JJ Kasper --- docs/basic-features/script.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/basic-features/script.md b/docs/basic-features/script.md index 33df31800f43..0f92fad1c3d2 100644 --- a/docs/basic-features/script.md +++ b/docs/basic-features/script.md @@ -19,10 +19,11 @@ description: Next.js helps you optimize loading third-party scripts with the bui
Version History -| Version | Changes | -| --------- | ------------------------- | -| `v12.2.4` | `onReady` prop added. | -| `v11.0.0` | `next/script` introduced. | +| Version | Changes | +| --------- | ------------------------------------------------------------------------- | +| `v12.2.4` | `onReady` prop added. | +| `v12.2.2` | Allow `next/script` with `beforeInteractive` to be placed in `_document`. | +| `v11.0.0` | `next/script` introduced. |