Skip to content

@next-safe/[email protected]

Compare
Choose a tag to compare
@github-actions github-actions released this 06 Jul 02:22
· 65 commits to main since this release
f5e9ce8

Minor Changes

  • #36 2c8c5cd Thanks @nibtime! - new csp middleware with extensive Typing for IntelliSense CSP configuration

    • typing has been borrowed from the SvelteKit CSP Integration, which is excellent
    • handles annoying single quotes in the background, no need to think about them in code
  • #36 2c8c5cd Thanks @nibtime! - versatile getCspInitialProps for _document.js

    • flag to opt into styles trustification for CSP
    • flag to opt out from script trustification for CSP
    • option to pass external raw css text to hash for CSP. For instance needed for Mantine, to pass extractCritical(initialProps.html).css (emotion)
    • option to enhance <App> (_app.js) with nonce from SSR (needed for React Providers that can consume a nonce)
  • #36 2c8c5cd Thanks @nibtime! - helper to set up CSP violation reprting to Sentry with a one-liner

Patch Changes