Skip to content

Conversation

@mktktmr
Copy link
Owner

@mktktmr mktktmr commented Oct 29, 2025

No description provided.

@mktktmr
Copy link
Owner Author

mktktmr commented Oct 29, 2025

Quick take

  • The guard keeps working on Next 16, but we still lean on private next/dist/... modules, so we should watch canary builds for churn.

Details reviewed

  • App Router interception (src/components/InterceptAppRouterProvider.tsx, src/hooks/useInterceptedAppRouter.ts) still works: AppRouterContext and the AppRouterInstance API in [email protected] remain unchanged.
  • Pages Router interception (src/components/InterceptPagesRouterProvider.tsx, src/hooks/useInterceptedPagesRouter.ts) stays compatible; RouterContext and NextRouter expose the same methods.
  • Link interception (src/hooks/useInterceptLinkClicks.ts) continues to be required. The Next 16 next/link implementation still drives navigation through the shared router context, so both the wrapped router and the DOM fallback behave as before.
  • History augmentation (src/hooks/useInterceptPopState.ts, src/utils/historyAugmentation.tsx) survives the release: HistoryState is still an object we can spread. Adding a null-guard would future-proof us in case Next ever emits null.

Release-note items to keep in mind

  • Runtime baseline jumps to Node 20.9 and TypeScript ≥5.1; update CI/example environments accordingly.
  • Sync variants of params, searchParams, cookies(), etc., are gone. We don’t call them in the library, but documentation/examples should use the async forms.
  • Turbopack becomes the default bundler. No direct impact here, but build tooling/log output will differ.
  • next lint command was removed. We already rely on external tooling, so no action needed.

@mktktmr mktktmr force-pushed the 50_support_next_v16 branch from c37c0e9 to ff9c330 Compare October 29, 2025 11:05
@mktktmr
Copy link
Owner Author

mktktmr commented Oct 29, 2025

Continue on original repo.

LayerXcom#51

@mktktmr mktktmr closed this Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants