Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@next-safe/middleware@0.9.0
Minor Changes
#47
071f993
Thanks @nibtime! - providegsspWithNonceAppliedToCsp
andgipWithNonceAppliedToCsp
wrappers to inject nonce into pages withgetServerSideProps
/getInitialProps
.BREAKING CHANGE: nonce doesn't get applied to CSP automatically anymore. This extra step is neccessary
as there is no longer a way of reliably do that with Next 12.2.
BREAKING CHANGE: drop
enhanceAppWithNonce
, it's no longer needed as nonce is injected thoughgetServerSideProps
of routes/pages now. That's actually a good thing, because customizingrenderPage
is discouranged#47
f9ecbe3
Thanks @nibtime! - 💥 changes toChainableMiddleware
decrease resource utilization (fixes #45)MiddlewareChainContext
interfaceperf: decrease CPU utilization
ctx.cache.get
andctx.cache.set
for caching CSP in middleware chain (no serialize/deserialize)perf: decrease deployed size
userAgent
fromnext/server
BREAKING CHANGE: supports only Stable middleware from now on (needs
next >= 12.2
, as is specified in peerDeps)BREAKING CHANGE: replace
ua-parser-js
withuserAgent
fromnext/server
available since12.2
BREAKING CHANGE:
ChainableMiddleware
with(ctx: MiddlewareChainContext)
as 3rd parameter.BREAKING CHANGE: turn positional params into named params for
Configinitializer
Patch Changes
#47
f9ecbe3
Thanks @nibtime! - fix(document): useany
type (children and return value) for components ofprovideComponents
(fixes #46)#47
071f993
Thanks @nibtime! - fix(document): support new script insertion behaviorgetPreloadDynamicChunks
andgetPreloadMainLinks
in<Head>
beforeInteractiveInlineScripts
in<Head>
<NextScript>
initialProps.head
#47
071f993
Thanks @nibtime! - fix(document): prevent application of nonce in production builds (fixes #49)#47
f9ecbe3
Thanks @nibtime! - provide base logical operators for chain matchers (request predicates):matchNot
,matchAnd
,matchOr
#47
071f993
Thanks @nibtime! - fix(strictDynamic): exclude Safari from Hash-based Strict CSPstrict-dynamic
seems to mess up SRI validation there.#47
071f993
Thanks @nibtime! - fix: considerbasePath
fromnext.config.js
for writing and fetching hashes (fixes #48)#47
f9ecbe3
Thanks @nibtime! - fix: betterisPageRequest
matcher/_next
and/api
isPreviewModeRequest
andisNextJsDataRequest
(new matchers)#47
071f993
Thanks @nibtime! - perf(middleware):telemetry
wrapper to log basic measurements and infos from middleware execution#47
f9ecbe3
Thanks @nibtime! - fix(csp): handle boolean directives correctlydocs@0.1.0
Minor Changes
f9ecbe3
Thanks @nibtime! - ✨ set up docs website with Nextra on Next.js 12.2 (fixes #30)Patch Changes
f9ecbe3
,071f993
,071f993
,f9ecbe3
,071f993
,071f993
,071f993
,f9ecbe3
,f9ecbe3
,071f993
,f9ecbe3
]:e2e@0.6.1
Patch Changes
f9ecbe3
,071f993
,071f993
,f9ecbe3
,071f993
,071f993
,071f993
,f9ecbe3
,f9ecbe3
,071f993
,f9ecbe3
]: