Skip to content

@next-safe/[email protected]

Compare
Choose a tag to compare
@github-actions github-actions released this 07 Jul 18:17
· 57 commits to main since this release

Minor Changes

  • #38 be1c950 Thanks @nibtime! - Internal redesign for Next.js 12.2 (req.page deprecated) (#37)

  • #38 be1c950 Thanks @nibtime! - provide new middleware abstractions for Next.js 12.2 stable middleware

    • matchChain function that allows to disable chain execution for certain requests with a matcher (predicate on NextRequest)
    • continued function that allows to continue a middleware response to a middleware chain
    • isPageRequest matcher that matches only requests to Next.js pages

Patch Changes

  • #38 be1c950 Thanks @nibtime! - fix: enhanceAppWithNonce as separate function.Must spread nonce into pageProps, else fails with Next 12.2

  • #38 be1c950 Thanks @nibtime! - fix: guard critical section with lockfile when writing out hashes for CSP to file at build time