v0.5.1 — @dualmark/nextjs
@dualmark/nextjs@0.5.1
Patch Changes
-
fix(nextjs):withDualmark()rejecting typedNextConfigfromnext.config.ts(#26).The internal
NextConfigShapeconstraint had an[key: string]: unknownindex
signature, which TypeScript treats as a structural demand on the input. Next.js's
NextConfigis a closed interface with no top-level index signature, so any
caller passing a typednext.config.tshit:Type 'NextConfig' is not assignable to type 'NextConfigShape'. Index signature for type 'string' is missing in type 'NextConfig'.The constraint was unnecessary — the function only reads
transpilePackages
and spreads the remaining config, neither of which need an index signature.
Removing it unblocks typed configs on Next 14, 15, and 16. Runtime behavior
is unchanged. -
docs(nextjs): Next.js 16 compatibility — package metadata, docs, and example (#27).- Drop the "Next.js 15" reference from the package description; the adapter
works with the Next.js App Router on 14, 15, and 16. - Bump the
nextdevDependency from^15.0.0to^16.2.6(test/build
toolchain only — thepeerDependenciesrange is unchanged). - Update README to document the Next.js 16
proxy.tsfile convention,
with a note that Next ≤15 should keep usingmiddleware.ts(body is
identical). No runtime behavior change.
The reference example at
examples/nextjs-app-routerwas migrated to
Next.js 16 in the same change and still scores 120/125 undernext dev. - Drop the "Next.js 15" reference from the package description; the adapter
Other packages
@dualmark/core, @dualmark/converters, @dualmark/astro, @dualmark/cloudflare, @dualmark/cli are unchanged at 0.5.0 (no changesets touched them this cycle).
Full Changelog: v0.5.0...v0.5.1