Skip to content

sku@15.4.0

Choose a tag to compare

@seek-oss-ci seek-oss-ci released this 27 Nov 03:58
· 124 commits to master since this release
3422388

Minor Changes

  • New createUnsafeNonce allows 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 dangerouslySetVitestConfig option (#1449)

Patch Changes

  • webpack: Scope css loader by requesting module not file path (#1461)

  • Remove @sku-lib/vitest as a peer dependency. (#1455)

    @sku-lib/vitest is now included in the core sku package. If you use testRunner: 'vitest' in your sku config, simply add vitest as a dev dependency if it is not already present:

    pnpm install -D vitest

    You can safely remove @sku-lib/vitest from your dependencies.

  • vite: Fix compilePackages bundling (#1449)