v12.0.3
Core Changes
- Improve error message for importing native Node APIs in the edge runtime: #30696
- Keep attempting to load binary files after failure: #30755
- Fix Invalid character in header ["Content-Disposition"]: #30287
- Relax restriction of
images.path
in next.config.js: #30741 - Prevent storing page props cache when in SSG + preview mode: #30757
- Optimize other fonts provide by Google: #30554
- Update swc: #30790
- Add regenerator path: #30786
- Update loader-utils: #30743
- Re-enable minifying middleware chunks: #30823
- Don't require source files to be writeable in dev mode: #30758
- Fix incorrect
_document.js
error whendisableStaticImages: true
: #30768 - Improve error message for importing unsupported native modules: #30829
- update mini-css-plugin and remove experimentalUseImportModule: #30617
- Ensure dev react bundles are not ignored in traces: #30849
- Fix client component imports are not being correctly tracked: #30853
- Update swc: #30859
- Fix lost combinator before global: #30771
- Add Next.js version to trace: #30881
- Update swc: #30890
- Edge Functions: expose
globalThis
: #30877 - Move browserslist loading webpack-config.ts: #30889
- Add linux-x64-musl to napi array: #30909
- Re-enable linux-musl-x64 build target: #30910
- Fix musll typo: #30912
- Add config support for build activity indicator position: #30109
- Update to use repo specific napi instead of npx: #30914
- fixes #30604 - Cannot read properties of null (reading 'tagName'): #30919
- Update to use project dir for file tracing base: #30857
- Fix styles that should not be made dynamic: #30928
- Account for
assetPrefix
when initializing HMR connection : #30632 - upgrade webpack-sources: #30944
next-swc
: Add.bundle()
: #30935- fix preset name for improved performance: #30954
- Use absolute document and app paths for the middleware SSR loader: #30963
- Fix version in trace: #30982
- Update resolving for node_modules trace pass: #30985
- Fix code splitting and build target for the server-web build: #30972
- pass Buffer directly to Rust: #30975
Documentation Changes
- Add note about HMR WebSocket to upgrade guide: #30704
- Add security notes to the URL imports documentation.: #30708
- Add workaround for prefixing the default locale to the docs.: #30673
- Fix spelling error: #30737
- docs: update react 18 configuration: #30726
- Recommend using next CLI for Docker entrypoint and not yarn: #29024
- Add note about rewrites query updating: #30747
- Update response-helpers.md: #30816
- Add note about HMR WebSocket with express to upgrading: #30905
- Added closing tag to
<Suspense>
: #30983
Example Changes
- Fix link to Elasticsearch products page: #30752
- Updates dependencies for with-supertokens example: #30162
Misc Changes
- Ensure dev binary download skips for docs only change: #30746
- Fix a couple more missing doc only checks: #30748
- Remove
binary-cache
check inid: binary-cache
: #30658 - Add Node.js 17 to CI: #30760
- Upgraded the node-notifier version to 8.0.1: #30777
- Add postinstall script to install native packages: #30850
- Ensure correct tmpdir is used for install-native: #30855
- Update lock time and message.: #30902
- Skip next-swc canary postinstall in CI: #30916
- Update codeowners to be more specific: #30908
- Decrease lock time from 90 to 45.: #30922
- Keep using checkout instead of cache for building swc: #30923
- Fix flakey preload test: #30969
Credits
Huge thanks to @ijjk, @leerob, @shuding, @gish, @matamatanot, @vadymshymko, @huozhi, @padmaia, @stefee, @styfle, @ihmpavel, @rishabhpoddar, @kamsar, @skhaz, @Prashoon123, @kdy1, @IrisvanOllefen, @timneutkens, @evan-bradley, @sokra, @Kikobeats, @ntltd, @furcan, @genetschneider, and @EzequielDM for helping!