sku@15.4.0
Minor Changes
-
New
createUnsafeNonceallows inserting nonce values in Content Security Policy (CSP) Tag. (#1459)Nonce's can be used to permit inline scripts that are generated after the initial render.
Nonce's will allow dynamic scripts to run without validation.
Please consider if other options can be used and if using this feature is safe for your use-case.// render.tsx export default { renderApp: ({ createUnsafeNonce }) => { const appHtml = renderToString(<App />); const dynamicScriptNonce = createUnsafeNonce(); return { appHtml, dynamicScriptNonce }; }, // ... }
-
Add vitest v4 support (#1449)
-
Added
dangerouslySetVitestConfigoption (#1449)
Patch Changes
-
webpack: Scope css loader by requesting module not file path (#1461)
-
Remove
@sku-lib/vitestas a peer dependency. (#1455)@sku-lib/vitestis now included in the coreskupackage. If you usetestRunner: 'vitest'in your sku config, simply addvitestas a dev dependency if it is not already present:pnpm install -D vitest
You can safely remove
@sku-lib/vitestfrom your dependencies. -
vite: FixcompilePackagesbundling (#1449)