Skip to content

Commit

Permalink
docs(basic-features/script): update script version history (#40263)
Browse files Browse the repository at this point in the history
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 <jj@jjsweb.site>
  • Loading branch information
victorboucher and ijjk committed Sep 13, 2022
1 parent 0a093c0 commit 3f2b4bc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/basic-features/script.md
Expand Up @@ -19,10 +19,11 @@ description: Next.js helps you optimize loading third-party scripts with the bui
<details>
<summary><b>Version History</b></summary>

| 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. |

</details>

Expand Down

0 comments on commit 3f2b4bc

Please sign in to comment.