rsnext/packages
Zane Bauman 37a09891f3
fix: <Script> with beforeInteractive strategy ignores additional attributes in App Router (#59779)
### What?

Currently, `next/script` in the App Router does not behave as the docs
describe in the [Additional
Attributes](https://nextjs.org/docs/app/building-your-application/optimizing/scripts#additional-attributes)
section – it does not pass on all additional attributes when
`strategy="beforeInteractive"`
([#49830](https://github.com/vercel/next.js/issues/49830)).

### Why?

The props from the `<Script>` component were not passed on to the
underlying script loader (`self.__next_s`).

### How?

I've added the missing props to the object that is `push`ed to
`self.__next_s`.

NEXT-1304
Fixes #49830
2024-01-03 20:48:55 +01:00
..
create-next-app v14.0.5-canary.35 2024-01-02 23:21:51 +00:00
eslint-config-next v14.0.5-canary.35 2024-01-02 23:21:51 +00:00
eslint-plugin-next v14.0.5-canary.35 2024-01-02 23:21:51 +00:00
font v14.0.5-canary.35 2024-01-02 23:21:51 +00:00
next fix: <Script> with beforeInteractive strategy ignores additional attributes in App Router (#59779) 2024-01-03 20:48:55 +01:00
next-bundle-analyzer v14.0.5-canary.35 2024-01-02 23:21:51 +00:00
next-codemod v14.0.5-canary.35 2024-01-02 23:21:51 +00:00
next-env v14.0.5-canary.35 2024-01-02 23:21:51 +00:00
next-mdx v14.0.5-canary.35 2024-01-02 23:21:51 +00:00
next-plugin-storybook v14.0.5-canary.35 2024-01-02 23:21:51 +00:00
next-polyfill-module v14.0.5-canary.35 2024-01-02 23:21:51 +00:00
next-polyfill-nomodule v14.0.5-canary.35 2024-01-02 23:21:51 +00:00
next-swc v14.0.5-canary.35 2024-01-02 23:21:51 +00:00
react-dev-overlay v14.0.5-canary.35 2024-01-02 23:21:51 +00:00
react-refresh-utils v14.0.5-canary.35 2024-01-02 23:21:51 +00:00
third-parties v14.0.5-canary.35 2024-01-02 23:21:51 +00:00