Patch Changes
-
#1403
dc3c0abThanks @aa-sikkkk! - fix: replace the wholeloadCustomCacheHandlersbody so Next.js 16.3 chunks don't throwReferenceErrorNext.js 16.3 rewrote
loadCustomCacheHandlers: the declaration that bindscacheHandlersnow also binds
cacheMaxMemorySize, and the native method body consumes both. The composable cache patch replaced only that
declaration, so on the minified runtime chunks (dist/compiled/next-server/*.runtime.prod.js) the surviving
native code referenced bindings that were no longer declared. Every request to the Worker then failed with
ReferenceError: <minified identifier> is not definedinsideloadCustomCacheHandlers(site-wide 500s on
Next.js 16.3.x), while builds stayed green because the unminifiednext-server.jsshort-circuits on
if (!cacheHandlers) returnbefore the orphaned binding is read.The patch now replaces the whole method body while preserving its signature and wires the composable cache
registry to the staticrequire()as before, so no native reference to a dropped binding can survive. The
rule still matches pre-16.3 chunks, so older Next.js versions are unaffected. -
#1399
2b3e3a1Thanks @JT1974! - fix: throwMODULE_NOT_FOUNDfrom the stub of a missing optional dependencyWith React 18, every Pages Router page rendered by the Worker failed with
TypeError: Cannot read properties of undefined (reading 'contexts'), caused byError: Missing optional dependency "react-dom/server.edge". React 18 has noreact-dom/server.edge, and Next.js falls back toreact-dom/server.browseronly when the error carries theMODULE_NOT_FOUNDcode. The stub now sets that code, so the fallback works again. -
#1406
8ea9eb9Thanks @mgarbacz! - fix: only rename esbuild's__requirehelper, not__requirepropertiesRestoring esbuild's
__requirehelper to a barerequirewas a text replacement over the
whole bundle, so it also rewrote unrelated__requiremembers.@rollup/plugin-commonjs
emitsexports.__requirelazy-init wrappers, whose declarations the replacement never
matched — leaving the two halves disagreeing and throwing
TypeError: __webpack_require__(...).require is not a functionwhen such a package was
imported during SSR. Packages built that way (for examplesmartystreets-javascript-sdk)
500'd every route. The rename now skips property accesses. -
#1404
ca4415bThanks @vicb! - chore: require Next.js 15.5.26 or 16.3.6Raise the supported Next.js version floor to 15.5.26 and 16.3.6. Next.js 16.2.0 through 16.3.5 are affected
by the criticalnext/ogremote code execution vulnerability CVE-2026-94545. -
#1404
ca4415bThanks @vicb! - chore: bump@opennextjs/awsto 4.1.6See details at https://github.com/opennextjs/opennextjs-aws/releases/tag/v4.1.6