vercel/next.js
### [`v12.0.0`](https://togithub.com/vercel/next.js/releases/v12.0.0)
[Compare Source](https://togithub.com/vercel/next.js/compare/v11.1.2...v12.0.0)
##### Core Changes
- Remove .next/traces directory as it's not used: [#28728](https://togithub.com/vercel/next.js/issues/28728)
- Update css-loader runtime to use compiled files: [#28735](https://togithub.com/vercel/next.js/issues/28735)
- Fix typings of dynamic suspense: [#28740](https://togithub.com/vercel/next.js/issues/28740)
- Ensure build trace handles mixed modules: [#28770](https://togithub.com/vercel/next.js/issues/28770)
- \[ESLint Plugin] Updates `no-document-import-in-page` rule to use `path` separators: [#28768](https://togithub.com/vercel/next.js/issues/28768)
- feat: Adding generic typing for previewData: [#28668](https://togithub.com/vercel/next.js/issues/28668)
- Add `RenderResult` class: [#28776](https://togithub.com/vercel/next.js/issues/28776)
- Reuse warning from postcss-loader: [#28727](https://togithub.com/vercel/next.js/issues/28727)
- mini-css-extract-plugin should not bundle webpack code: [#28822](https://togithub.com/vercel/next.js/issues/28822)
- update webpack to 5.52.0: [#28771](https://togithub.com/vercel/next.js/issues/28771)
- Add tracing for css-loader: [#28756](https://togithub.com/vercel/next.js/issues/28756)
- Simplify static + dynamic HTML generation: [#28793](https://togithub.com/vercel/next.js/issues/28793)
- \[ESLint] Support single-file linting in `next lint` (necessary for `lint-staged`): [#28042](https://togithub.com/vercel/next.js/issues/28042)
- Webpack rule to block importing images into \_document: [#28475](https://togithub.com/vercel/next.js/issues/28475)
- Remove outdated webpack conformance experiment: [#28846](https://togithub.com/vercel/next.js/issues/28846)
- Remove unused profiler: [#28844](https://togithub.com/vercel/next.js/issues/28844)
- Remove unused dependencies: [#28876](https://togithub.com/vercel/next.js/issues/28876)
- Update concurrent tests and enable experimental streaming: [#28892](https://togithub.com/vercel/next.js/issues/28892)
- Fix/swc minify: [#28898](https://togithub.com/vercel/next.js/issues/28898)
- Ensure timed out prefetches are cleaned up correctly: [#28899](https://togithub.com/vercel/next.js/issues/28899)
- Simplify `RenderResult`: [#28900](https://togithub.com/vercel/next.js/issues/28900)
- fix: should allow optional properties for `images` option: [#28709](https://togithub.com/vercel/next.js/issues/28709)
- Adopt context based experimental styled-jsx version: [#28646](https://togithub.com/vercel/next.js/issues/28646)
- Fix ensurePage race condition: [#28939](https://togithub.com/vercel/next.js/issues/28939)
- Support node-sass@6: [#28710](https://togithub.com/vercel/next.js/issues/28710)
- Update swc: [#28946](https://togithub.com/vercel/next.js/issues/28946)
- Update swc in next-swc: [#28970](https://togithub.com/vercel/next.js/issues/28970)
- Ensure cache-control is correct for notFound: true with revalidate: [#28973](https://togithub.com/vercel/next.js/issues/28973)
- Update gSSP type to support props as a promise: [#28999](https://togithub.com/vercel/next.js/issues/28999)
- Use `Writable` instead of `Observable`: [#29007](https://togithub.com/vercel/next.js/issues/29007)
- Pass code as buffer to swc minify: [#29009](https://togithub.com/vercel/next.js/issues/29009)
- Deprecate webpack 4 support: [#28840](https://togithub.com/vercel/next.js/issues/28840)
- Make next-ssg optional: [#28862](https://togithub.com/vercel/next.js/issues/28862)
- `next/dynamic`: Accept `pagesDir`: [#29055](https://togithub.com/vercel/next.js/issues/29055)
- Update test set-up to leverage playwright when able to: [#28634](https://togithub.com/vercel/next.js/issues/28634)
- Make traces in development reliable: [#28990](https://togithub.com/vercel/next.js/issues/28990)
- Fix webpack version and safari test and update compiled: [#29059](https://togithub.com/vercel/next.js/issues/29059)
- Throw error if res is accessed after gSSP returns: [#29010](https://togithub.com/vercel/next.js/issues/29010)
- Fix/upload binary artifact: [#29069](https://togithub.com/vercel/next.js/issues/29069)
- Add crossOrigin type to the NextConfig: [#29033](https://togithub.com/vercel/next.js/issues/29033)
- reload the page to show 404 when receiving `invalid` event from on-demand-entries: [#29074](https://togithub.com/vercel/next.js/issues/29074)
- Add stats config for SWC: [#28883](https://togithub.com/vercel/next.js/issues/28883)
- Fix host segment replacing for custom routes: [#29090](https://togithub.com/vercel/next.js/issues/29090)
- Add/styled jsx swc: [#29005](https://togithub.com/vercel/next.js/issues/29005)
- Update styled-jsx: [#29103](https://togithub.com/vercel/next.js/issues/29103)
- Remove inert font tag in font optimization: [#28869](https://togithub.com/vercel/next.js/issues/28869)
- Remove log from failing to parse source map: [#29118](https://togithub.com/vercel/next.js/issues/29118)
- Development tracing improvements: [#29076](https://togithub.com/vercel/next.js/issues/29076)
- Update trace ignores for next import: [#29119](https://togithub.com/vercel/next.js/issues/29119)
- Fix partial one off global selectors: [#29128](https://togithub.com/vercel/next.js/issues/29128)
- Update next-swc binaries: [#29132](https://togithub.com/vercel/next.js/issues/29132)
- Fix transform of \` in styled-jsx: [#29136](https://togithub.com/vercel/next.js/issues/29136)
- Update next-swc binaries: [#29140](https://togithub.com/vercel/next.js/issues/29140)
- Ensure Next.js dist files are commonjs compatible with swcLoader enabled: [#29138](https://togithub.com/vercel/next.js/issues/29138)
- next-ssg: Don't inject `__N_SSP` for files without server props.: [#29141](https://togithub.com/vercel/next.js/issues/29141)
- Build next-swc binaries: [#29144](https://togithub.com/vercel/next.js/issues/29144)
- Add crawler blocking for fallback: true: [#29121](https://togithub.com/vercel/next.js/issues/29121)
- upgrade to typescript 4.4.3: [#29112](https://togithub.com/vercel/next.js/issues/29112)
- Fix native unit tests: [#29146](https://togithub.com/vercel/next.js/issues/29146)
- Ensure traces are flushed in development when there is an error: [#29149](https://togithub.com/vercel/next.js/issues/29149)
- Add name to invalidated span: [#29170](https://togithub.com/vercel/next.js/issues/29170)
- suggest incremental typescript for typescript >= 4.4.2: [#29169](https://togithub.com/vercel/next.js/issues/29169)
- make code consistent with babel externals: [#28867](https://togithub.com/vercel/next.js/issues/28867)
- add support for new URL(): [#28940](https://togithub.com/vercel/next.js/issues/28940)
- Fix bug where returning `{ notFound: true }` from GSP broke `next export`: [#24481](https://togithub.com/vercel/next.js/issues/24481)
- Fix [#11107](https://togithub.com/vercel/next.js/issues/11107) - don't prefetch preloaded modules: [#22818](https://togithub.com/vercel/next.js/issues/22818)
- Fix array query value has matching: [#29216](https://togithub.com/vercel/next.js/issues/29216)
- Remove useless getComputedStyle call.: [#27969](https://togithub.com/vercel/next.js/issues/27969)
- Preserve `next-env.d.ts` line ending: [#28100](https://togithub.com/vercel/next.js/issues/28100)
- fix compilation span relationship: [#29174](https://togithub.com/vercel/next.js/issues/29174)
- Add spans for hot-reloader start: [#29251](https://togithub.com/vercel/next.js/issues/29251)
- Fix dynamic style issue: [#29163](https://togithub.com/vercel/next.js/issues/29163)
- Ensure trailingSlash is correct for index with query: [#29217](https://togithub.com/vercel/next.js/issues/29217)
- Migrate prerender tests to new set-up: [#29245](https://togithub.com/vercel/next.js/issues/29245)
- Fix resolving href with query and matching as: [#29246](https://togithub.com/vercel/next.js/issues/29246)
- upgrade webpack to 5.53.0: [#29168](https://togithub.com/vercel/next.js/issues/29168)
- Fix basePath: false not being honored for client-side redirect: [#29235](https://togithub.com/vercel/next.js/issues/29235)
- Fix default static /500 with i18n: [#29250](https://togithub.com/vercel/next.js/issues/29250)
- Remove docker usage for running development tests: [#29264](https://togithub.com/vercel/next.js/issues/29264)
- Remove collect-dependencies span as it balloons trace size: [#29266](https://togithub.com/vercel/next.js/issues/29266)
- Initial work for using webpack 5 typings: [#29105](https://togithub.com/vercel/next.js/issues/29105)
- Rename experimental tracing to `outputFileTracing`: [#29267](https://togithub.com/vercel/next.js/issues/29267)
- Add internal mode for debugging Next.js core webpack: [#29254](https://togithub.com/vercel/next.js/issues/29254)
- Fix invalid project dir casing breaking Next.js on Windows: [#29205](https://togithub.com/vercel/next.js/issues/29205)
- Fix add-entry span duration: [#29288](https://togithub.com/vercel/next.js/issues/29288)
- Update to latest [@vercel/nft](https://togithub.com/vercel/nft) and use async fs methods: [#29341](https://togithub.com/vercel/next.js/issues/29341)
- feat: allow setting custom tsconfig file: [#28104](https://togithub.com/vercel/next.js/issues/28104)
- Ensure static image works correctly with basePath: [#29307](https://togithub.com/vercel/next.js/issues/29307)
- Use webpack resolve with nft: [#29342](https://togithub.com/vercel/next.js/issues/29342)
- Experimental: hook version of reportWebVitals: [#28769](https://togithub.com/vercel/next.js/issues/28769)
- enable unsafeCache for better incremental build performance: [#29175](https://togithub.com/vercel/next.js/issues/29175)
- upgrade webpack and enable experiments.cacheUnaffected: [#29369](https://togithub.com/vercel/next.js/issues/29369)
- Fix `onLoadingComplete()` callback when image src is Data URL: [#29367](https://togithub.com/vercel/next.js/issues/29367)
- Additional bench tracing improvements: [#29325](https://togithub.com/vercel/next.js/issues/29325)
- Remove inline-source-map for Windows: [#28893](https://togithub.com/vercel/next.js/issues/28893)
- Ensure blurDataURL is correct in dev with basePath: [#29436](https://togithub.com/vercel/next.js/issues/29436)
- Update swc : [#29460](https://togithub.com/vercel/next.js/issues/29460)
- Build next-swc binaries: [#29465](https://togithub.com/vercel/next.js/issues/29465)
- Fix SWC unit test: [#29466](https://togithub.com/vercel/next.js/issues/29466)
- Ensure initial imports are included in traces correctly: [#29437](https://togithub.com/vercel/next.js/issues/29437)
- Rename `onReadyToStream` to `onCompleteShell`: [#29442](https://togithub.com/vercel/next.js/issues/29442)
- Update css parser: [#29484](https://togithub.com/vercel/next.js/issues/29484)
- update webpack: [#29469](https://togithub.com/vercel/next.js/issues/29469)
- Parallelize `requirePage` when loading components: [#29494](https://togithub.com/vercel/next.js/issues/29494)
- Invalidate webpack cache when swc options are enabled/disabled: [#29497](https://togithub.com/vercel/next.js/issues/29497)
- Update output tracing resolving: [#29473](https://togithub.com/vercel/next.js/issues/29473)
- Remove error that is too strict in next/dynamic swc transform: [#29511](https://togithub.com/vercel/next.js/issues/29511)
- make client and server independent for on-demand-entries: [#29518](https://togithub.com/vercel/next.js/issues/29518)
- Update resolve options for nft: [#29524](https://togithub.com/vercel/next.js/issues/29524)
- Fix root global jsx style: [#29505](https://togithub.com/vercel/next.js/issues/29505)
- Fix custom app file regex: [#29525](https://togithub.com/vercel/next.js/issues/29525)
- Upgrade swc deps: [#29531](https://togithub.com/vercel/next.js/issues/29531)
- Ensure all package.json files are traced correctly: [#29539](https://togithub.com/vercel/next.js/issues/29539)
- Add page mapping for Server Components: [#29508](https://togithub.com/vercel/next.js/issues/29508)
- Fix ie11 from untranspiled vitals: [#29532](https://togithub.com/vercel/next.js/issues/29532)
- Update version [@babel/runtime](https://togithub.com/babel/runtime): [#29458](https://togithub.com/vercel/next.js/issues/29458)
- upgrade webpack: [#29549](https://togithub.com/vercel/next.js/issues/29549)
- Include param vars in nearest scope bindings: [#29536](https://togithub.com/vercel/next.js/issues/29536)
- Update `swc_css_parser`: [#29572](https://togithub.com/vercel/next.js/issues/29572)
- Upgrade swc deps: [#29620](https://togithub.com/vercel/next.js/issues/29620)
- fixes [#29553](https://togithub.com/vercel/next.js/issues/29553): [#29611](https://togithub.com/vercel/next.js/issues/29611)
- Add trace file for "next dev": [#29633](https://togithub.com/vercel/next.js/issues/29633)
- Update to latest version of node-file-trace: [#29617](https://togithub.com/vercel/next.js/issues/29617)
- Update swc crates: [#29643](https://togithub.com/vercel/next.js/issues/29643)
- Fix missing trace items and migrate required files test: [#29649](https://togithub.com/vercel/next.js/issues/29649)
- Create TelemetryPlugin for collecting feature usage metrics: [#29145](https://togithub.com/vercel/next.js/issues/29145)
- Fix grammar in conflicting paths error: [#29658](https://togithub.com/vercel/next.js/issues/29658)
- update webpack: [#29644](https://togithub.com/vercel/next.js/issues/29644)
- Bump squoosh to the latest version: [#29506](https://togithub.com/vercel/next.js/issues/29506)
- Remove webpack 4 support: [#29660](https://togithub.com/vercel/next.js/issues/29660)
- Ensure conditional resolve alias does not affect server: [#29673](https://togithub.com/vercel/next.js/issues/29673)
- Chore/update swc: [#29675](https://togithub.com/vercel/next.js/issues/29675)
- Remove isWebpack5 checks: [#29677](https://togithub.com/vercel/next.js/issues/29677)
- chore: Update swc: [#29689](https://togithub.com/vercel/next.js/issues/29689)
- fix: Prevent image redirection when trailingSlash is set: [#29640](https://togithub.com/vercel/next.js/issues/29640)
- fix(styled-jsx): Use correct SyntaxContext for identifiers: [#29705](https://togithub.com/vercel/next.js/issues/29705)
- Use correct arg for require.resolveWeak: [#29719](https://togithub.com/vercel/next.js/issues/29719)
- update webpack: [#29708](https://togithub.com/vercel/next.js/issues/29708)
- update webpack: [#29738](https://togithub.com/vercel/next.js/issues/29738)
- serverOnlyChanges should be determined when both compilers are done: [#29757](https://togithub.com/vercel/next.js/issues/29757)
- Hmr DX improvements: [#29753](https://togithub.com/vercel/next.js/issues/29753)
- Add trace span for module readFile: [#29759](https://togithub.com/vercel/next.js/issues/29759)
- Fix bug with getServerSideProps when swcLoader is enabled: [#29760](https://togithub.com/vercel/next.js/issues/29760)
- feat(build/swc): Add debug utilities: [#29730](https://togithub.com/vercel/next.js/issues/29730)
- Fix bugs of `styled-jsx` and `swc`: [#29774](https://togithub.com/vercel/next.js/issues/29774)
- Fix swc tests: [#29776](https://togithub.com/vercel/next.js/issues/29776)
- Fix `styled-jsx`: Don't drop extra selectors: [#29791](https://togithub.com/vercel/next.js/issues/29791)
- show partial compiled message and correct module count: [#29795](https://togithub.com/vercel/next.js/issues/29795)
- avoid using absolute paths in import/require: [#29797](https://togithub.com/vercel/next.js/issues/29797)
- Update swc: [#29798](https://togithub.com/vercel/next.js/issues/29798)
- Pass sourcemap when swcMinify is enabled: [#29794](https://togithub.com/vercel/next.js/issues/29794)
- hide build error when returning to old build: [#29813](https://togithub.com/vercel/next.js/issues/29813)
- only schedule pages for disposing and dispose on next compile: [#29816](https://togithub.com/vercel/next.js/issues/29816)
- reduce default maxInactiveAge to 15s: [#29817](https://togithub.com/vercel/next.js/issues/29817)
- add summary logging option: [#29814](https://togithub.com/vercel/next.js/issues/29814)
- handle new hmr connection as heartbeat signal: [#29818](https://togithub.com/vercel/next.js/issues/29818)
- allow to reload disposed client pages: [#29815](https://togithub.com/vercel/next.js/issues/29815)
- Collect feature usage for optimizeCss: [#29828](https://togithub.com/vercel/next.js/issues/29828)
- Add support for AVIF to `next/image`: [#29683](https://togithub.com/vercel/next.js/issues/29683)
- Update swc: [#29843](https://togithub.com/vercel/next.js/issues/29843)
- Avoid TypeError when comparing path param: [#29821](https://togithub.com/vercel/next.js/issues/29821)
- feat(jsconfig-paths-plugin): Resolve paths synchronously: [#29467](https://togithub.com/vercel/next.js/issues/29467)
- Update swc: [#29866](https://togithub.com/vercel/next.js/issues/29866)
- Update swc: [#29881](https://togithub.com/vercel/next.js/issues/29881)
- Added more examples to Response Helpers page: [#29462](https://togithub.com/vercel/next.js/issues/29462)
- update webpack: [#29870](https://togithub.com/vercel/next.js/issues/29870)
- Add experimental option to enable fullySpecified: [#29880](https://togithub.com/vercel/next.js/issues/29880)
- only listen to drain even once: [#29885](https://togithub.com/vercel/next.js/issues/29885)
- Update swc & Improve CI time: [#29884](https://togithub.com/vercel/next.js/issues/29884)
- Enable esmExternals by default: [#29878](https://togithub.com/vercel/next.js/issues/29878)
- Refactor Document to prep for classic streaming: [#29834](https://togithub.com/vercel/next.js/issues/29834)
- Update to latest [@vercel/nft](https://togithub.com/vercel/nft): [#29902](https://togithub.com/vercel/next.js/issues/29902)
- Remove unused options from swc-loader: [#29907](https://togithub.com/vercel/next.js/issues/29907)
- Update swc: [#29913](https://togithub.com/vercel/next.js/issues/29913)
- upgrade strip-ansi in react-dev-overlay: [#29906](https://togithub.com/vercel/next.js/issues/29906)
- Add revalidate to the GetStaticPropsResult: [#29919](https://togithub.com/vercel/next.js/issues/29919)
- Migrate server-sent events HMR connection to WebSocket: [#29903](https://togithub.com/vercel/next.js/issues/29903)
- Upate swc to allow line comments in css: [#29943](https://togithub.com/vercel/next.js/issues/29943)
- fix Log Typo: [#29937](https://togithub.com/vercel/next.js/issues/29937)
- Bump "engines" to node >= 12.22.0: [#29949](https://togithub.com/vercel/next.js/issues/29949)
- Update webpack target to node12.22: [#29953](https://togithub.com/vercel/next.js/issues/29953)
- Add ESLint docs URLs: [#29645](https://togithub.com/vercel/next.js/issues/29645)
- Use import() to load next.config.js: [#29935](https://togithub.com/vercel/next.js/issues/29935)
- Fix config import on Windows and disable test in failing envs: [#29971](https://togithub.com/vercel/next.js/issues/29971)
- Update swc: [#29969](https://togithub.com/vercel/next.js/issues/29969)
- Fix identifier handling of`styled-jsx`: [#29986](https://togithub.com/vercel/next.js/issues/29986)
- Update swc to fix minifier: [#29989](https://togithub.com/vercel/next.js/issues/29989)
- Remove obsolete prerender indicator code: [#30004](https://togithub.com/vercel/next.js/issues/30004)
- Update swc: [#30019](https://togithub.com/vercel/next.js/issues/30019)
- Update swc: [#30029](https://togithub.com/vercel/next.js/issues/30029)
- Compile native-url and node-libs-browser: [#30032](https://togithub.com/vercel/next.js/issues/30032)
- Update swc to fix regenerator issue: [#30035](https://togithub.com/vercel/next.js/issues/30035)
- Update tracing to collect from reasons: [#29975](https://togithub.com/vercel/next.js/issues/29975)
- Fix eslint loading on Windows: [#30040](https://togithub.com/vercel/next.js/issues/30040)
- Fix `next/image` when parent is `
`: [#30041](https://togithub.com/vercel/next.js/issues/30041)
- Fix trace when initial file is also child: [#30048](https://togithub.com/vercel/next.js/issues/30048)
- Update react 18 streaming api: [#30038](https://togithub.com/vercel/next.js/issues/30038)
- Update manifest to include notFound revalidate info: [#30046](https://togithub.com/vercel/next.js/issues/30046)
- Sanitize the path to the user config before importing: [#30003](https://togithub.com/vercel/next.js/issues/30003)
- Update swc: [#30055](https://togithub.com/vercel/next.js/issues/30055)
- Update swc: [#30057](https://togithub.com/vercel/next.js/issues/30057)
- Update swc: [#30066](https://togithub.com/vercel/next.js/issues/30066)
- Prevent inherited styles on `next/image` wrapper or sizer: [#30064](https://togithub.com/vercel/next.js/issues/30064)
- update webpack: [#30073](https://togithub.com/vercel/next.js/issues/30073)
- Print error when `images.loader` is assigned but `images.path` is not: [#30080](https://togithub.com/vercel/next.js/issues/30080)
- Update swc: [#30086](https://togithub.com/vercel/next.js/issues/30086)
- Enable fast refresh transform when using SWC: [#30106](https://togithub.com/vercel/next.js/issues/30106)
- Implement Middleware RFC: [#30081](https://togithub.com/vercel/next.js/issues/30081)
- Enable shared worker pool by default: [#30110](https://togithub.com/vercel/next.js/issues/30110)
- use xxhash64 by default: [#30095](https://togithub.com/vercel/next.js/issues/30095)
- \[ESLint] Adds temporary error message for ESLint v8: [#30113](https://togithub.com/vercel/next.js/issues/30113)
- improve production error message printing: [#30065](https://togithub.com/vercel/next.js/issues/30065)
- Simplify export statement: [#30015](https://togithub.com/vercel/next.js/issues/30015)
- automatically enable managed paths for all node_modules: [#30089](https://togithub.com/vercel/next.js/issues/30089)
- Skip minifying middleware: [#30122](https://togithub.com/vercel/next.js/issues/30122)
- Fix creation of styled jsx ids: [#30124](https://togithub.com/vercel/next.js/issues/30124)
- Update swc: [#30127](https://togithub.com/vercel/next.js/issues/30127)
- avoid showing empty `Import trace for requested module`: [#30130](https://togithub.com/vercel/next.js/issues/30130)
- fix pageKey and compiling output for on-demand-entries: [#30116](https://togithub.com/vercel/next.js/issues/30116)
- add experimental.urlImports option: [#30079](https://togithub.com/vercel/next.js/issues/30079)
- Update swc: [#30141](https://togithub.com/vercel/next.js/issues/30141)
- Ensure we dont attempt minifying middleware-chunks: [#30147](https://togithub.com/vercel/next.js/issues/30147)
- Update middleware chunk handling: [#30151](https://togithub.com/vercel/next.js/issues/30151)
- Ensure error message prints `next.config.mjs`: [#30152](https://togithub.com/vercel/next.js/issues/30152)
- Use default `next.config.js` if not found: [#30155](https://togithub.com/vercel/next.js/issues/30155)
- Add warning when using middleware: [#30160](https://togithub.com/vercel/next.js/issues/30160)
- test and fix error reporting for stack overflows and other fatal errors: [#30169](https://togithub.com/vercel/next.js/issues/30169)
- \[ESLint] Add add `next/script` support for `no-unwanted-polyfillio` rule: [#28944](https://togithub.com/vercel/next.js/issues/28944)
- make static image import output path consistent with other media: [#30168](https://togithub.com/vercel/next.js/issues/30168)
- De-dupe inflight getStaticProps requests: [#30125](https://togithub.com/vercel/next.js/issues/30125)
- Update include/exclude handling for output tracing: [#30184](https://togithub.com/vercel/next.js/issues/30184)
- make import trace consistent between runtime and build: [#30175](https://togithub.com/vercel/next.js/issues/30175)
- Add middlewareCount info to build optimized: [#30185](https://togithub.com/vercel/next.js/issues/30185)
- Change AVIF to opt-in via configuration: [#30180](https://togithub.com/vercel/next.js/issues/30180)
- Add page config swc transform: [#30183](https://togithub.com/vercel/next.js/issues/30183)
- Move tracing next-server to next build: [#30190](https://togithub.com/vercel/next.js/issues/30190)
- Update to latest caniuse-lite version: [#30194](https://togithub.com/vercel/next.js/issues/30194)
- Remove `all: initial` in favor of specific styles on `next/image`: [#30191](https://togithub.com/vercel/next.js/issues/30191)
- Upgrade styled-jsx for react 18 improvement: [#30179](https://togithub.com/vercel/next.js/issues/30179)
- Enable SWC by default when there is no custom Babel config: [#29811](https://togithub.com/vercel/next.js/issues/29811)
- Enable outputFileTracing by default: [#30202](https://togithub.com/vercel/next.js/issues/30202)
- Add isDevfallback to cache name to create a separate cache for the fallback compiler: [#30227](https://togithub.com/vercel/next.js/issues/30227)
- Use SWC for middleware: [#30209](https://togithub.com/vercel/next.js/issues/30209)
- Update swc: [#30230](https://togithub.com/vercel/next.js/issues/30230)
- Add deprecation note for target: [#30200](https://togithub.com/vercel/next.js/issues/30200)
- Add initial documentation for output file tracing: [#30199](https://togithub.com/vercel/next.js/issues/30199)
- partially migrate to webpack 5 types: [#30189](https://togithub.com/vercel/next.js/issues/30189)
- hide next-middleware-loader in import trace: [#30243](https://togithub.com/vercel/next.js/issues/30243)
- fix some labels for middleware stuff: [#30241](https://togithub.com/vercel/next.js/issues/30241)
- Use `Log.warn()` instead of `console.warn()` in next-server: [#30240](https://togithub.com/vercel/next.js/issues/30240)
- test, fix and document all possible import types for URL imports: [#30165](https://togithub.com/vercel/next.js/issues/30165)
- Ensure isServer is true when compiling middleware: [#30242](https://togithub.com/vercel/next.js/issues/30242)
- Add initial test trace outputs: [#30246](https://togithub.com/vercel/next.js/issues/30246)
- Move swcMinify out of experimental: [#29810](https://togithub.com/vercel/next.js/issues/29810)
- Add events polyfill: [#30256](https://togithub.com/vercel/next.js/issues/30256)
- next-swc: Support more platforms: [#30254](https://togithub.com/vercel/next.js/issues/30254)
- Update error for failing to load SWC bindings: [#30269](https://togithub.com/vercel/next.js/issues/30269)
- update webpack: [#30268](https://togithub.com/vercel/next.js/issues/30268)
- fix middleware on windows: [#30253](https://togithub.com/vercel/next.js/issues/30253)
- Add warning for large amount of page data: [#29956](https://togithub.com/vercel/next.js/issues/29956)
- Add warning when LCP image is missing `priority` prop: [#30221](https://togithub.com/vercel/next.js/issues/30221)
- New Middleware API signature: [#30282](https://togithub.com/vercel/next.js/issues/30282)
- Fix trace case with tsconfig/jsconfig baseUrl: [#30286](https://togithub.com/vercel/next.js/issues/30286)
- Warn when mutating res if not streaming: [#30284](https://togithub.com/vercel/next.js/issues/30284)
- Chore/publish all swc: [#30289](https://togithub.com/vercel/next.js/issues/30289)
- Update swc-minify-enabled link: [#30290](https://togithub.com/vercel/next.js/issues/30290)
- Fix middleware header propagation: [#30288](https://togithub.com/vercel/next.js/issues/30288)
- Move outputFileTracing config up: [#30295](https://togithub.com/vercel/next.js/issues/30295)
- Track usage of swc features: [#30297](https://togithub.com/vercel/next.js/issues/30297)
- Ensure null bytes in resolved path are handled: [#30313](https://togithub.com/vercel/next.js/issues/30313)
- Improve deprecation errors for new middleware API: [#30316](https://togithub.com/vercel/next.js/issues/30316)
##### Documentation Changes
- Update docs to clarify that image imports are static: [#28744](https://togithub.com/vercel/next.js/issues/28744)
- Add note to Gatsby migration guide about using `next/image` with custom loaders.: [#28805](https://togithub.com/vercel/next.js/issues/28805)
- doc: fix typo: [#28817](https://togithub.com/vercel/next.js/issues/28817)
- (docs) Remove duplicate comma: [#28850](https://togithub.com/vercel/next.js/issues/28850)
- (docs) Add `permanent` property in redirect object: [#28852](https://togithub.com/vercel/next.js/issues/28852)
- Update `next/link` API docs to mention a11y and ESLint rule.: [#28841](https://togithub.com/vercel/next.js/issues/28841)
- name should be key: [#28917](https://togithub.com/vercel/next.js/issues/28917)
- chore(examples): switch to Script component on the google analytics example: [#27674](https://togithub.com/vercel/next.js/issues/27674)
- Fixed issue with grammar: [#28964](https://togithub.com/vercel/next.js/issues/28964)
- Fixed typo: [#28989](https://togithub.com/vercel/next.js/issues/28989)
- Fix minor typo in no-img-element.md: [#29027](https://togithub.com/vercel/next.js/issues/29027)
- Add more examples of static generation to docs page.: [#29052](https://togithub.com/vercel/next.js/issues/29052)
- Add note about using Sharp for next/image to deployment docs.: [#29067](https://togithub.com/vercel/next.js/issues/29067)
- Add client-side debugging instructions: [#28815](https://togithub.com/vercel/next.js/issues/28815)
- Use new [@clerk/nextjs](https://togithub.com/clerk/nextjs) package in with-clerk example, update Next.js authentication docs: [#28906](https://togithub.com/vercel/next.js/issues/28906)
- Update router.prefetch section to clarify it supports dynamic routes: [#29070](https://togithub.com/vercel/next.js/issues/29070)
- Ensure manifests check has correct exit code on fail: [#29183](https://togithub.com/vercel/next.js/issues/29183)
- Fix minor typos: [#29188](https://togithub.com/vercel/next.js/issues/29188)
- Update Gatsby migration guide to use image imports.: [#29178](https://togithub.com/vercel/next.js/issues/29178)
- Ensure href/as behavior points to correct docs: [#29270](https://togithub.com/vercel/next.js/issues/29270)
- Update invalid-getstaticpaths-value.md: [#29397](https://togithub.com/vercel/next.js/issues/29397)
- Update imperative routing docs to have better a11y: [#29382](https://togithub.com/vercel/next.js/issues/29382)
- Add Stitches example to CSS-in-JS docs: [#29498](https://togithub.com/vercel/next.js/issues/29498)
- Update getServerSideProps docs with req.cookie note: [#29457](https://togithub.com/vercel/next.js/issues/29457)
- docs: Link to getInitialProps on Custom `App` page: [#29567](https://togithub.com/vercel/next.js/issues/29567)
- Update permanent redirect field documentation: [#29557](https://togithub.com/vercel/next.js/issues/29557)
- Use npx create-next-app@latest instead of the version that is installed: [#29595](https://togithub.com/vercel/next.js/issues/29595)
- docs: Clarify locale properties on `context` object in data-fetching: [#29566](https://togithub.com/vercel/next.js/issues/29566)
- docs: remove `this` usage from function component: [#29596](https://togithub.com/vercel/next.js/issues/29596)
- Overhaul image component documentation: [#29186](https://togithub.com/vercel/next.js/issues/29186)
- Document i18n routing with dynamic routes: [#29632](https://togithub.com/vercel/next.js/issues/29632)
- Fix debugging docs markdown lang: [#29674](https://togithub.com/vercel/next.js/issues/29674)
- Grammatical fixes: [#29676](https://togithub.com/vercel/next.js/issues/29676)
- Fix typo in image optimization documentation: [#29685](https://togithub.com/vercel/next.js/issues/29685)
- Fixed method for removing class: [#29735](https://togithub.com/vercel/next.js/issues/29735)
- Fix test running command in testing.md: [#29778](https://togithub.com/vercel/next.js/issues/29778)
- docs(testing): added Playwright guide: [#29832](https://togithub.com/vercel/next.js/issues/29832)
- Add Scss variables section to Built-in CSS Support document: [#29822](https://togithub.com/vercel/next.js/issues/29822)
- Update testing based on Failed to parse src "test-file-stub" on \`next…: [#29039](https://togithub.com/vercel/next.js/issues/29039)
- Update docs for image caching behavior: [#29895](https://togithub.com/vercel/next.js/issues/29895)
- Update typo in response helpers doc: [#29899](https://togithub.com/vercel/next.js/issues/29899)
- Update minimum Node version in Getting Started: [#29952](https://togithub.com/vercel/next.js/issues/29952)
- docs: Remove invalid link "Glamor": [#29982](https://togithub.com/vercel/next.js/issues/29982)
- Update docs for Prerender Error message: [#30044](https://togithub.com/vercel/next.js/issues/30044)
- Update documentation to fix github cache key: [#29983](https://togithub.com/vercel/next.js/issues/29983)
- Update eslint.md with instructions for installing Prettier plugin dependency: [#29764](https://togithub.com/vercel/next.js/issues/29764)
- Add image example with background color using blurDataURL: [#30111](https://togithub.com/vercel/next.js/issues/30111)
- docs: remove mention of experimental pageDataCollectionTimeout: [#30107](https://togithub.com/vercel/next.js/issues/30107)
- Update upgrade docs: [#30265](https://togithub.com/vercel/next.js/issues/30265)
- Add minimum Node.js version to upgrading guide: [#30274](https://togithub.com/vercel/next.js/issues/30274)
- Fix typo of upgrading: [#30276](https://togithub.com/vercel/next.js/issues/30276)
- Add note about improved CSS parser for styled-jsx to upgrading guide: [#30280](https://togithub.com/vercel/next.js/issues/30280)
- Add "priority" section to Image Optimization doc: [#30218](https://togithub.com/vercel/next.js/issues/30218)
- Add more docs.: [#30320](https://togithub.com/vercel/next.js/issues/30320)
##### Example Changes
- with-stitches example fixes [#28650](https://togithub.com/vercel/next.js/issues/28650): [#28652](https://togithub.com/vercel/next.js/issues/28652)
- Updates [@react-three/drei](https://togithub.com/react-three/drei) version and other dependencies.: [#28755](https://togithub.com/vercel/next.js/issues/28755)
- fixes with-typescript-graphql: unable to resolve dependency tree: [#28637](https://togithub.com/vercel/next.js/issues/28637)
- Examples Prepr CMS update: [#28871](https://togithub.com/vercel/next.js/issues/28871)
- Fix Typo in "with-eslint" Example docs: [#28601](https://togithub.com/vercel/next.js/issues/28601)
- Updates supertokens-node dependency version: [#28916](https://togithub.com/vercel/next.js/issues/28916)
- Fix falsy values not being returned in post fields: [#29011](https://togithub.com/vercel/next.js/issues/29011)
- \[Examples] Updates `with-google-tag-manager` example to use ` Githubissues.
Githubissues is a development platform for aggregating issues.
This PR contains the following updates:
^9 \|\| ^10 \|\| ^11
->^9 \|\| ^10 \|\| ^11 \|\| ^12.0.0
11.1.2
->12.0.0
Release Notes
vercel/next.js
### [`v12.0.0`](https://togithub.com/vercel/next.js/releases/v12.0.0) [Compare Source](https://togithub.com/vercel/next.js/compare/v11.1.2...v12.0.0) ##### Core Changes - Remove .next/traces directory as it's not used: [#28728](https://togithub.com/vercel/next.js/issues/28728) - Update css-loader runtime to use compiled files: [#28735](https://togithub.com/vercel/next.js/issues/28735) - Fix typings of dynamic suspense: [#28740](https://togithub.com/vercel/next.js/issues/28740) - Ensure build trace handles mixed modules: [#28770](https://togithub.com/vercel/next.js/issues/28770) - \[ESLint Plugin] Updates `no-document-import-in-page` rule to use `path` separators: [#28768](https://togithub.com/vercel/next.js/issues/28768) - feat: Adding generic typing for previewData: [#28668](https://togithub.com/vercel/next.js/issues/28668) - Add `RenderResult` class: [#28776](https://togithub.com/vercel/next.js/issues/28776) - Reuse warning from postcss-loader: [#28727](https://togithub.com/vercel/next.js/issues/28727) - mini-css-extract-plugin should not bundle webpack code: [#28822](https://togithub.com/vercel/next.js/issues/28822) - update webpack to 5.52.0: [#28771](https://togithub.com/vercel/next.js/issues/28771) - Add tracing for css-loader: [#28756](https://togithub.com/vercel/next.js/issues/28756) - Simplify static + dynamic HTML generation: [#28793](https://togithub.com/vercel/next.js/issues/28793) - \[ESLint] Support single-file linting in `next lint` (necessary for `lint-staged`): [#28042](https://togithub.com/vercel/next.js/issues/28042) - Webpack rule to block importing images into \_document: [#28475](https://togithub.com/vercel/next.js/issues/28475) - Remove outdated webpack conformance experiment: [#28846](https://togithub.com/vercel/next.js/issues/28846) - Remove unused profiler: [#28844](https://togithub.com/vercel/next.js/issues/28844) - Remove unused dependencies: [#28876](https://togithub.com/vercel/next.js/issues/28876) - Update concurrent tests and enable experimental streaming: [#28892](https://togithub.com/vercel/next.js/issues/28892) - Fix/swc minify: [#28898](https://togithub.com/vercel/next.js/issues/28898) - Ensure timed out prefetches are cleaned up correctly: [#28899](https://togithub.com/vercel/next.js/issues/28899) - Simplify `RenderResult`: [#28900](https://togithub.com/vercel/next.js/issues/28900) - fix: should allow optional properties for `images` option: [#28709](https://togithub.com/vercel/next.js/issues/28709) - Adopt context based experimental styled-jsx version: [#28646](https://togithub.com/vercel/next.js/issues/28646) - Fix ensurePage race condition: [#28939](https://togithub.com/vercel/next.js/issues/28939) - Support node-sass@6: [#28710](https://togithub.com/vercel/next.js/issues/28710) - Update swc: [#28946](https://togithub.com/vercel/next.js/issues/28946) - Update swc in next-swc: [#28970](https://togithub.com/vercel/next.js/issues/28970) - Ensure cache-control is correct for notFound: true with revalidate: [#28973](https://togithub.com/vercel/next.js/issues/28973) - Update gSSP type to support props as a promise: [#28999](https://togithub.com/vercel/next.js/issues/28999) - Use `Writable` instead of `Observable`: [#29007](https://togithub.com/vercel/next.js/issues/29007) - Pass code as buffer to swc minify: [#29009](https://togithub.com/vercel/next.js/issues/29009) - Deprecate webpack 4 support: [#28840](https://togithub.com/vercel/next.js/issues/28840) - Make next-ssg optional: [#28862](https://togithub.com/vercel/next.js/issues/28862) - `next/dynamic`: Accept `pagesDir`: [#29055](https://togithub.com/vercel/next.js/issues/29055) - Update test set-up to leverage playwright when able to: [#28634](https://togithub.com/vercel/next.js/issues/28634) - Make traces in development reliable: [#28990](https://togithub.com/vercel/next.js/issues/28990) - Fix webpack version and safari test and update compiled: [#29059](https://togithub.com/vercel/next.js/issues/29059) - Throw error if res is accessed after gSSP returns: [#29010](https://togithub.com/vercel/next.js/issues/29010) - Fix/upload binary artifact: [#29069](https://togithub.com/vercel/next.js/issues/29069) - Add crossOrigin type to the NextConfig: [#29033](https://togithub.com/vercel/next.js/issues/29033) - reload the page to show 404 when receiving `invalid` event from on-demand-entries: [#29074](https://togithub.com/vercel/next.js/issues/29074) - Add stats config for SWC: [#28883](https://togithub.com/vercel/next.js/issues/28883) - Fix host segment replacing for custom routes: [#29090](https://togithub.com/vercel/next.js/issues/29090) - Add/styled jsx swc: [#29005](https://togithub.com/vercel/next.js/issues/29005) - Update styled-jsx: [#29103](https://togithub.com/vercel/next.js/issues/29103) - Remove inert font tag in font optimization: [#28869](https://togithub.com/vercel/next.js/issues/28869) - Remove log from failing to parse source map: [#29118](https://togithub.com/vercel/next.js/issues/29118) - Development tracing improvements: [#29076](https://togithub.com/vercel/next.js/issues/29076) - Update trace ignores for next import: [#29119](https://togithub.com/vercel/next.js/issues/29119) - Fix partial one off global selectors: [#29128](https://togithub.com/vercel/next.js/issues/29128) - Update next-swc binaries: [#29132](https://togithub.com/vercel/next.js/issues/29132) - Fix transform of \` in styled-jsx: [#29136](https://togithub.com/vercel/next.js/issues/29136) - Update next-swc binaries: [#29140](https://togithub.com/vercel/next.js/issues/29140) - Ensure Next.js dist files are commonjs compatible with swcLoader enabled: [#29138](https://togithub.com/vercel/next.js/issues/29138) - next-ssg: Don't inject `__N_SSP` for files without server props.: [#29141](https://togithub.com/vercel/next.js/issues/29141) - Build next-swc binaries: [#29144](https://togithub.com/vercel/next.js/issues/29144) - Add crawler blocking for fallback: true: [#29121](https://togithub.com/vercel/next.js/issues/29121) - upgrade to typescript 4.4.3: [#29112](https://togithub.com/vercel/next.js/issues/29112) - Fix native unit tests: [#29146](https://togithub.com/vercel/next.js/issues/29146) - Ensure traces are flushed in development when there is an error: [#29149](https://togithub.com/vercel/next.js/issues/29149) - Add name to invalidated span: [#29170](https://togithub.com/vercel/next.js/issues/29170) - suggest incremental typescript for typescript >= 4.4.2: [#29169](https://togithub.com/vercel/next.js/issues/29169) - make code consistent with babel externals: [#28867](https://togithub.com/vercel/next.js/issues/28867) - add support for new URL(): [#28940](https://togithub.com/vercel/next.js/issues/28940) - Fix bug where returning `{ notFound: true }` from GSP broke `next export`: [#24481](https://togithub.com/vercel/next.js/issues/24481) - Fix [#11107](https://togithub.com/vercel/next.js/issues/11107) - don't prefetch preloaded modules: [#22818](https://togithub.com/vercel/next.js/issues/22818) - Fix array query value has matching: [#29216](https://togithub.com/vercel/next.js/issues/29216) - Remove useless getComputedStyle call.: [#27969](https://togithub.com/vercel/next.js/issues/27969) - Preserve `next-env.d.ts` line ending: [#28100](https://togithub.com/vercel/next.js/issues/28100) - fix compilation span relationship: [#29174](https://togithub.com/vercel/next.js/issues/29174) - Add spans for hot-reloader start: [#29251](https://togithub.com/vercel/next.js/issues/29251) - Fix dynamic style issue: [#29163](https://togithub.com/vercel/next.js/issues/29163) - Ensure trailingSlash is correct for index with query: [#29217](https://togithub.com/vercel/next.js/issues/29217) - Migrate prerender tests to new set-up: [#29245](https://togithub.com/vercel/next.js/issues/29245) - Fix resolving href with query and matching as: [#29246](https://togithub.com/vercel/next.js/issues/29246) - upgrade webpack to 5.53.0: [#29168](https://togithub.com/vercel/next.js/issues/29168) - Fix basePath: false not being honored for client-side redirect: [#29235](https://togithub.com/vercel/next.js/issues/29235) - Fix default static /500 with i18n: [#29250](https://togithub.com/vercel/next.js/issues/29250) - Remove docker usage for running development tests: [#29264](https://togithub.com/vercel/next.js/issues/29264) - Remove collect-dependencies span as it balloons trace size: [#29266](https://togithub.com/vercel/next.js/issues/29266) - Initial work for using webpack 5 typings: [#29105](https://togithub.com/vercel/next.js/issues/29105) - Rename experimental tracing to `outputFileTracing`: [#29267](https://togithub.com/vercel/next.js/issues/29267) - Add internal mode for debugging Next.js core webpack: [#29254](https://togithub.com/vercel/next.js/issues/29254) - Fix invalid project dir casing breaking Next.js on Windows: [#29205](https://togithub.com/vercel/next.js/issues/29205) - Fix add-entry span duration: [#29288](https://togithub.com/vercel/next.js/issues/29288) - Update to latest [@vercel/nft](https://togithub.com/vercel/nft) and use async fs methods: [#29341](https://togithub.com/vercel/next.js/issues/29341) - feat: allow setting custom tsconfig file: [#28104](https://togithub.com/vercel/next.js/issues/28104) - Ensure static image works correctly with basePath: [#29307](https://togithub.com/vercel/next.js/issues/29307) - Use webpack resolve with nft: [#29342](https://togithub.com/vercel/next.js/issues/29342) - Experimental: hook version of reportWebVitals: [#28769](https://togithub.com/vercel/next.js/issues/28769) - enable unsafeCache for better incremental build performance: [#29175](https://togithub.com/vercel/next.js/issues/29175) - upgrade webpack and enable experiments.cacheUnaffected: [#29369](https://togithub.com/vercel/next.js/issues/29369) - Fix `onLoadingComplete()` callback when image src is Data URL: [#29367](https://togithub.com/vercel/next.js/issues/29367) - Additional bench tracing improvements: [#29325](https://togithub.com/vercel/next.js/issues/29325) - Remove inline-source-map for Windows: [#28893](https://togithub.com/vercel/next.js/issues/28893) - Ensure blurDataURL is correct in dev with basePath: [#29436](https://togithub.com/vercel/next.js/issues/29436) - Update swc : [#29460](https://togithub.com/vercel/next.js/issues/29460) - Build next-swc binaries: [#29465](https://togithub.com/vercel/next.js/issues/29465) - Fix SWC unit test: [#29466](https://togithub.com/vercel/next.js/issues/29466) - Ensure initial imports are included in traces correctly: [#29437](https://togithub.com/vercel/next.js/issues/29437) - Rename `onReadyToStream` to `onCompleteShell`: [#29442](https://togithub.com/vercel/next.js/issues/29442) - Update css parser: [#29484](https://togithub.com/vercel/next.js/issues/29484) - update webpack: [#29469](https://togithub.com/vercel/next.js/issues/29469) - Parallelize `requirePage` when loading components: [#29494](https://togithub.com/vercel/next.js/issues/29494) - Invalidate webpack cache when swc options are enabled/disabled: [#29497](https://togithub.com/vercel/next.js/issues/29497) - Update output tracing resolving: [#29473](https://togithub.com/vercel/next.js/issues/29473) - Remove error that is too strict in next/dynamic swc transform: [#29511](https://togithub.com/vercel/next.js/issues/29511) - make client and server independent for on-demand-entries: [#29518](https://togithub.com/vercel/next.js/issues/29518) - Update resolve options for nft: [#29524](https://togithub.com/vercel/next.js/issues/29524) - Fix root global jsx style: [#29505](https://togithub.com/vercel/next.js/issues/29505) - Fix custom app file regex: [#29525](https://togithub.com/vercel/next.js/issues/29525) - Upgrade swc deps: [#29531](https://togithub.com/vercel/next.js/issues/29531) - Ensure all package.json files are traced correctly: [#29539](https://togithub.com/vercel/next.js/issues/29539) - Add page mapping for Server Components: [#29508](https://togithub.com/vercel/next.js/issues/29508) - Fix ie11 from untranspiled vitals: [#29532](https://togithub.com/vercel/next.js/issues/29532) - Update version [@babel/runtime](https://togithub.com/babel/runtime): [#29458](https://togithub.com/vercel/next.js/issues/29458) - upgrade webpack: [#29549](https://togithub.com/vercel/next.js/issues/29549) - Include param vars in nearest scope bindings: [#29536](https://togithub.com/vercel/next.js/issues/29536) - Update `swc_css_parser`: [#29572](https://togithub.com/vercel/next.js/issues/29572) - Upgrade swc deps: [#29620](https://togithub.com/vercel/next.js/issues/29620) - fixes [#29553](https://togithub.com/vercel/next.js/issues/29553): [#29611](https://togithub.com/vercel/next.js/issues/29611) - Add trace file for "next dev": [#29633](https://togithub.com/vercel/next.js/issues/29633) - Update to latest version of node-file-trace: [#29617](https://togithub.com/vercel/next.js/issues/29617) - Update swc crates: [#29643](https://togithub.com/vercel/next.js/issues/29643) - Fix missing trace items and migrate required files test: [#29649](https://togithub.com/vercel/next.js/issues/29649) - Create TelemetryPlugin for collecting feature usage metrics: [#29145](https://togithub.com/vercel/next.js/issues/29145) - Fix grammar in conflicting paths error: [#29658](https://togithub.com/vercel/next.js/issues/29658) - update webpack: [#29644](https://togithub.com/vercel/next.js/issues/29644) - Bump squoosh to the latest version: [#29506](https://togithub.com/vercel/next.js/issues/29506) - Remove webpack 4 support: [#29660](https://togithub.com/vercel/next.js/issues/29660) - Ensure conditional resolve alias does not affect server: [#29673](https://togithub.com/vercel/next.js/issues/29673) - Chore/update swc: [#29675](https://togithub.com/vercel/next.js/issues/29675) - Remove isWebpack5 checks: [#29677](https://togithub.com/vercel/next.js/issues/29677) - chore: Update swc: [#29689](https://togithub.com/vercel/next.js/issues/29689) - fix: Prevent image redirection when trailingSlash is set: [#29640](https://togithub.com/vercel/next.js/issues/29640) - fix(styled-jsx): Use correct SyntaxContext for identifiers: [#29705](https://togithub.com/vercel/next.js/issues/29705) - Use correct arg for require.resolveWeak: [#29719](https://togithub.com/vercel/next.js/issues/29719) - update webpack: [#29708](https://togithub.com/vercel/next.js/issues/29708) - update webpack: [#29738](https://togithub.com/vercel/next.js/issues/29738) - serverOnlyChanges should be determined when both compilers are done: [#29757](https://togithub.com/vercel/next.js/issues/29757) - Hmr DX improvements: [#29753](https://togithub.com/vercel/next.js/issues/29753) - Add trace span for module readFile: [#29759](https://togithub.com/vercel/next.js/issues/29759) - Fix bug with getServerSideProps when swcLoader is enabled: [#29760](https://togithub.com/vercel/next.js/issues/29760) - feat(build/swc): Add debug utilities: [#29730](https://togithub.com/vercel/next.js/issues/29730) - Fix bugs of `styled-jsx` and `swc`: [#29774](https://togithub.com/vercel/next.js/issues/29774) - Fix swc tests: [#29776](https://togithub.com/vercel/next.js/issues/29776) - Fix `styled-jsx`: Don't drop extra selectors: [#29791](https://togithub.com/vercel/next.js/issues/29791) - show partial compiled message and correct module count: [#29795](https://togithub.com/vercel/next.js/issues/29795) - avoid using absolute paths in import/require: [#29797](https://togithub.com/vercel/next.js/issues/29797) - Update swc: [#29798](https://togithub.com/vercel/next.js/issues/29798) - Pass sourcemap when swcMinify is enabled: [#29794](https://togithub.com/vercel/next.js/issues/29794) - hide build error when returning to old build: [#29813](https://togithub.com/vercel/next.js/issues/29813) - only schedule pages for disposing and dispose on next compile: [#29816](https://togithub.com/vercel/next.js/issues/29816) - reduce default maxInactiveAge to 15s: [#29817](https://togithub.com/vercel/next.js/issues/29817) - add summary logging option: [#29814](https://togithub.com/vercel/next.js/issues/29814) - handle new hmr connection as heartbeat signal: [#29818](https://togithub.com/vercel/next.js/issues/29818) - allow to reload disposed client pages: [#29815](https://togithub.com/vercel/next.js/issues/29815) - Collect feature usage for optimizeCss: [#29828](https://togithub.com/vercel/next.js/issues/29828) - Add support for AVIF to `next/image`: [#29683](https://togithub.com/vercel/next.js/issues/29683) - Update swc: [#29843](https://togithub.com/vercel/next.js/issues/29843) - Avoid TypeError when comparing path param: [#29821](https://togithub.com/vercel/next.js/issues/29821) - feat(jsconfig-paths-plugin): Resolve paths synchronously: [#29467](https://togithub.com/vercel/next.js/issues/29467) - Update swc: [#29866](https://togithub.com/vercel/next.js/issues/29866) - Update swc: [#29881](https://togithub.com/vercel/next.js/issues/29881) - Added more examples to Response Helpers page: [#29462](https://togithub.com/vercel/next.js/issues/29462) - update webpack: [#29870](https://togithub.com/vercel/next.js/issues/29870) - Add experimental option to enable fullySpecified: [#29880](https://togithub.com/vercel/next.js/issues/29880) - only listen to drain even once: [#29885](https://togithub.com/vercel/next.js/issues/29885) - Update swc & Improve CI time: [#29884](https://togithub.com/vercel/next.js/issues/29884) - Enable esmExternals by default: [#29878](https://togithub.com/vercel/next.js/issues/29878) - Refactor Document to prep for classic streaming: [#29834](https://togithub.com/vercel/next.js/issues/29834) - Update to latest [@vercel/nft](https://togithub.com/vercel/nft): [#29902](https://togithub.com/vercel/next.js/issues/29902) - Remove unused options from swc-loader: [#29907](https://togithub.com/vercel/next.js/issues/29907) - Update swc: [#29913](https://togithub.com/vercel/next.js/issues/29913) - upgrade strip-ansi in react-dev-overlay: [#29906](https://togithub.com/vercel/next.js/issues/29906) - Add revalidate to the GetStaticPropsResult: [#29919](https://togithub.com/vercel/next.js/issues/29919) - Migrate server-sent events HMR connection to WebSocket: [#29903](https://togithub.com/vercel/next.js/issues/29903) - Upate swc to allow line comments in css: [#29943](https://togithub.com/vercel/next.js/issues/29943) - fix Log Typo: [#29937](https://togithub.com/vercel/next.js/issues/29937) - Bump "engines" to node >= 12.22.0: [#29949](https://togithub.com/vercel/next.js/issues/29949) - Update webpack target to node12.22: [#29953](https://togithub.com/vercel/next.js/issues/29953) - Add ESLint docs URLs: [#29645](https://togithub.com/vercel/next.js/issues/29645) - Use import() to load next.config.js: [#29935](https://togithub.com/vercel/next.js/issues/29935) - Fix config import on Windows and disable test in failing envs: [#29971](https://togithub.com/vercel/next.js/issues/29971) - Update swc: [#29969](https://togithub.com/vercel/next.js/issues/29969) - Fix identifier handling of`styled-jsx`: [#29986](https://togithub.com/vercel/next.js/issues/29986) - Update swc to fix minifier: [#29989](https://togithub.com/vercel/next.js/issues/29989) - Remove obsolete prerender indicator code: [#30004](https://togithub.com/vercel/next.js/issues/30004) - Update swc: [#30019](https://togithub.com/vercel/next.js/issues/30019) - Update swc: [#30029](https://togithub.com/vercel/next.js/issues/30029) - Compile native-url and node-libs-browser: [#30032](https://togithub.com/vercel/next.js/issues/30032) - Update swc to fix regenerator issue: [#30035](https://togithub.com/vercel/next.js/issues/30035) - Update tracing to collect from reasons: [#29975](https://togithub.com/vercel/next.js/issues/29975) - Fix eslint loading on Windows: [#30040](https://togithub.com/vercel/next.js/issues/30040) - Fix `next/image` when parent is ``: [#30041](https://togithub.com/vercel/next.js/issues/30041) - Fix trace when initial file is also child: [#30048](https://togithub.com/vercel/next.js/issues/30048) - Update react 18 streaming api: [#30038](https://togithub.com/vercel/next.js/issues/30038) - Update manifest to include notFound revalidate info: [#30046](https://togithub.com/vercel/next.js/issues/30046) - Sanitize the path to the user config before importing: [#30003](https://togithub.com/vercel/next.js/issues/30003) - Update swc: [#30055](https://togithub.com/vercel/next.js/issues/30055) - Update swc: [#30057](https://togithub.com/vercel/next.js/issues/30057) - Update swc: [#30066](https://togithub.com/vercel/next.js/issues/30066) - Prevent inherited styles on `next/image` wrapper or sizer: [#30064](https://togithub.com/vercel/next.js/issues/30064) - update webpack: [#30073](https://togithub.com/vercel/next.js/issues/30073) - Print error when `images.loader` is assigned but `images.path` is not: [#30080](https://togithub.com/vercel/next.js/issues/30080) - Update swc: [#30086](https://togithub.com/vercel/next.js/issues/30086) - Enable fast refresh transform when using SWC: [#30106](https://togithub.com/vercel/next.js/issues/30106) - Implement Middleware RFC: [#30081](https://togithub.com/vercel/next.js/issues/30081) - Enable shared worker pool by default: [#30110](https://togithub.com/vercel/next.js/issues/30110) - use xxhash64 by default: [#30095](https://togithub.com/vercel/next.js/issues/30095) - \[ESLint] Adds temporary error message for ESLint v8: [#30113](https://togithub.com/vercel/next.js/issues/30113) - improve production error message printing: [#30065](https://togithub.com/vercel/next.js/issues/30065) - Simplify export statement: [#30015](https://togithub.com/vercel/next.js/issues/30015) - automatically enable managed paths for all node_modules: [#30089](https://togithub.com/vercel/next.js/issues/30089) - Skip minifying middleware: [#30122](https://togithub.com/vercel/next.js/issues/30122) - Fix creation of styled jsx ids: [#30124](https://togithub.com/vercel/next.js/issues/30124) - Update swc: [#30127](https://togithub.com/vercel/next.js/issues/30127) - avoid showing empty `Import trace for requested module`: [#30130](https://togithub.com/vercel/next.js/issues/30130) - fix pageKey and compiling output for on-demand-entries: [#30116](https://togithub.com/vercel/next.js/issues/30116) - add experimental.urlImports option: [#30079](https://togithub.com/vercel/next.js/issues/30079) - Update swc: [#30141](https://togithub.com/vercel/next.js/issues/30141) - Ensure we dont attempt minifying middleware-chunks: [#30147](https://togithub.com/vercel/next.js/issues/30147) - Update middleware chunk handling: [#30151](https://togithub.com/vercel/next.js/issues/30151) - Ensure error message prints `next.config.mjs`: [#30152](https://togithub.com/vercel/next.js/issues/30152) - Use default `next.config.js` if not found: [#30155](https://togithub.com/vercel/next.js/issues/30155) - Add warning when using middleware: [#30160](https://togithub.com/vercel/next.js/issues/30160) - test and fix error reporting for stack overflows and other fatal errors: [#30169](https://togithub.com/vercel/next.js/issues/30169) - \[ESLint] Add add `next/script` support for `no-unwanted-polyfillio` rule: [#28944](https://togithub.com/vercel/next.js/issues/28944) - make static image import output path consistent with other media: [#30168](https://togithub.com/vercel/next.js/issues/30168) - De-dupe inflight getStaticProps requests: [#30125](https://togithub.com/vercel/next.js/issues/30125) - Update include/exclude handling for output tracing: [#30184](https://togithub.com/vercel/next.js/issues/30184) - make import trace consistent between runtime and build: [#30175](https://togithub.com/vercel/next.js/issues/30175) - Add middlewareCount info to build optimized: [#30185](https://togithub.com/vercel/next.js/issues/30185) - Change AVIF to opt-in via configuration: [#30180](https://togithub.com/vercel/next.js/issues/30180) - Add page config swc transform: [#30183](https://togithub.com/vercel/next.js/issues/30183) - Move tracing next-server to next build: [#30190](https://togithub.com/vercel/next.js/issues/30190) - Update to latest caniuse-lite version: [#30194](https://togithub.com/vercel/next.js/issues/30194) - Remove `all: initial` in favor of specific styles on `next/image`: [#30191](https://togithub.com/vercel/next.js/issues/30191) - Upgrade styled-jsx for react 18 improvement: [#30179](https://togithub.com/vercel/next.js/issues/30179) - Enable SWC by default when there is no custom Babel config: [#29811](https://togithub.com/vercel/next.js/issues/29811) - Enable outputFileTracing by default: [#30202](https://togithub.com/vercel/next.js/issues/30202) - Add isDevfallback to cache name to create a separate cache for the fallback compiler: [#30227](https://togithub.com/vercel/next.js/issues/30227) - Use SWC for middleware: [#30209](https://togithub.com/vercel/next.js/issues/30209) - Update swc: [#30230](https://togithub.com/vercel/next.js/issues/30230) - Add deprecation note for target: [#30200](https://togithub.com/vercel/next.js/issues/30200) - Add initial documentation for output file tracing: [#30199](https://togithub.com/vercel/next.js/issues/30199) - partially migrate to webpack 5 types: [#30189](https://togithub.com/vercel/next.js/issues/30189) - hide next-middleware-loader in import trace: [#30243](https://togithub.com/vercel/next.js/issues/30243) - fix some labels for middleware stuff: [#30241](https://togithub.com/vercel/next.js/issues/30241) - Use `Log.warn()` instead of `console.warn()` in next-server: [#30240](https://togithub.com/vercel/next.js/issues/30240) - test, fix and document all possible import types for URL imports: [#30165](https://togithub.com/vercel/next.js/issues/30165) - Ensure isServer is true when compiling middleware: [#30242](https://togithub.com/vercel/next.js/issues/30242) - Add initial test trace outputs: [#30246](https://togithub.com/vercel/next.js/issues/30246) - Move swcMinify out of experimental: [#29810](https://togithub.com/vercel/next.js/issues/29810) - Add events polyfill: [#30256](https://togithub.com/vercel/next.js/issues/30256) - next-swc: Support more platforms: [#30254](https://togithub.com/vercel/next.js/issues/30254) - Update error for failing to load SWC bindings: [#30269](https://togithub.com/vercel/next.js/issues/30269) - update webpack: [#30268](https://togithub.com/vercel/next.js/issues/30268) - fix middleware on windows: [#30253](https://togithub.com/vercel/next.js/issues/30253) - Add warning for large amount of page data: [#29956](https://togithub.com/vercel/next.js/issues/29956) - Add warning when LCP image is missing `priority` prop: [#30221](https://togithub.com/vercel/next.js/issues/30221) - New Middleware API signature: [#30282](https://togithub.com/vercel/next.js/issues/30282) - Fix trace case with tsconfig/jsconfig baseUrl: [#30286](https://togithub.com/vercel/next.js/issues/30286) - Warn when mutating res if not streaming: [#30284](https://togithub.com/vercel/next.js/issues/30284) - Chore/publish all swc: [#30289](https://togithub.com/vercel/next.js/issues/30289) - Update swc-minify-enabled link: [#30290](https://togithub.com/vercel/next.js/issues/30290) - Fix middleware header propagation: [#30288](https://togithub.com/vercel/next.js/issues/30288) - Move outputFileTracing config up: [#30295](https://togithub.com/vercel/next.js/issues/30295) - Track usage of swc features: [#30297](https://togithub.com/vercel/next.js/issues/30297) - Ensure null bytes in resolved path are handled: [#30313](https://togithub.com/vercel/next.js/issues/30313) - Improve deprecation errors for new middleware API: [#30316](https://togithub.com/vercel/next.js/issues/30316) ##### Documentation Changes - Update docs to clarify that image imports are static: [#28744](https://togithub.com/vercel/next.js/issues/28744) - Add note to Gatsby migration guide about using `next/image` with custom loaders.: [#28805](https://togithub.com/vercel/next.js/issues/28805) - doc: fix typo: [#28817](https://togithub.com/vercel/next.js/issues/28817) - (docs) Remove duplicate comma: [#28850](https://togithub.com/vercel/next.js/issues/28850) - (docs) Add `permanent` property in redirect object: [#28852](https://togithub.com/vercel/next.js/issues/28852) - Update `next/link` API docs to mention a11y and ESLint rule.: [#28841](https://togithub.com/vercel/next.js/issues/28841) - name should be key: [#28917](https://togithub.com/vercel/next.js/issues/28917) - chore(examples): switch to Script component on the google analytics example: [#27674](https://togithub.com/vercel/next.js/issues/27674) - Fixed issue with grammar: [#28964](https://togithub.com/vercel/next.js/issues/28964) - Fixed typo: [#28989](https://togithub.com/vercel/next.js/issues/28989) - Fix minor typo in no-img-element.md: [#29027](https://togithub.com/vercel/next.js/issues/29027) - Add more examples of static generation to docs page.: [#29052](https://togithub.com/vercel/next.js/issues/29052) - Add note about using Sharp for next/image to deployment docs.: [#29067](https://togithub.com/vercel/next.js/issues/29067) - Add client-side debugging instructions: [#28815](https://togithub.com/vercel/next.js/issues/28815) - Use new [@clerk/nextjs](https://togithub.com/clerk/nextjs) package in with-clerk example, update Next.js authentication docs: [#28906](https://togithub.com/vercel/next.js/issues/28906) - Update router.prefetch section to clarify it supports dynamic routes: [#29070](https://togithub.com/vercel/next.js/issues/29070) - Ensure manifests check has correct exit code on fail: [#29183](https://togithub.com/vercel/next.js/issues/29183) - Fix minor typos: [#29188](https://togithub.com/vercel/next.js/issues/29188) - Update Gatsby migration guide to use image imports.: [#29178](https://togithub.com/vercel/next.js/issues/29178) - Ensure href/as behavior points to correct docs: [#29270](https://togithub.com/vercel/next.js/issues/29270) - Update invalid-getstaticpaths-value.md: [#29397](https://togithub.com/vercel/next.js/issues/29397) - Update imperative routing docs to have better a11y: [#29382](https://togithub.com/vercel/next.js/issues/29382) - Add Stitches example to CSS-in-JS docs: [#29498](https://togithub.com/vercel/next.js/issues/29498) - Update getServerSideProps docs with req.cookie note: [#29457](https://togithub.com/vercel/next.js/issues/29457) - docs: Link to getInitialProps on Custom `App` page: [#29567](https://togithub.com/vercel/next.js/issues/29567) - Update permanent redirect field documentation: [#29557](https://togithub.com/vercel/next.js/issues/29557) - Use npx create-next-app@latest instead of the version that is installed: [#29595](https://togithub.com/vercel/next.js/issues/29595) - docs: Clarify locale properties on `context` object in data-fetching: [#29566](https://togithub.com/vercel/next.js/issues/29566) - docs: remove `this` usage from function component: [#29596](https://togithub.com/vercel/next.js/issues/29596) - Overhaul image component documentation: [#29186](https://togithub.com/vercel/next.js/issues/29186) - Document i18n routing with dynamic routes: [#29632](https://togithub.com/vercel/next.js/issues/29632) - Fix debugging docs markdown lang: [#29674](https://togithub.com/vercel/next.js/issues/29674) - Grammatical fixes: [#29676](https://togithub.com/vercel/next.js/issues/29676) - Fix typo in image optimization documentation: [#29685](https://togithub.com/vercel/next.js/issues/29685) - Fixed method for removing class: [#29735](https://togithub.com/vercel/next.js/issues/29735) - Fix test running command in testing.md: [#29778](https://togithub.com/vercel/next.js/issues/29778) - docs(testing): added Playwright guide: [#29832](https://togithub.com/vercel/next.js/issues/29832) - Add Scss variables section to Built-in CSS Support document: [#29822](https://togithub.com/vercel/next.js/issues/29822) - Update testing based on Failed to parse src "test-file-stub" on \`next…: [#29039](https://togithub.com/vercel/next.js/issues/29039) - Update docs for image caching behavior: [#29895](https://togithub.com/vercel/next.js/issues/29895) - Update typo in response helpers doc: [#29899](https://togithub.com/vercel/next.js/issues/29899) - Update minimum Node version in Getting Started: [#29952](https://togithub.com/vercel/next.js/issues/29952) - docs: Remove invalid link "Glamor": [#29982](https://togithub.com/vercel/next.js/issues/29982) - Update docs for Prerender Error message: [#30044](https://togithub.com/vercel/next.js/issues/30044) - Update documentation to fix github cache key: [#29983](https://togithub.com/vercel/next.js/issues/29983) - Update eslint.md with instructions for installing Prettier plugin dependency: [#29764](https://togithub.com/vercel/next.js/issues/29764) - Add image example with background color using blurDataURL: [#30111](https://togithub.com/vercel/next.js/issues/30111) - docs: remove mention of experimental pageDataCollectionTimeout: [#30107](https://togithub.com/vercel/next.js/issues/30107) - Update upgrade docs: [#30265](https://togithub.com/vercel/next.js/issues/30265) - Add minimum Node.js version to upgrading guide: [#30274](https://togithub.com/vercel/next.js/issues/30274) - Fix typo of upgrading: [#30276](https://togithub.com/vercel/next.js/issues/30276) - Add note about improved CSS parser for styled-jsx to upgrading guide: [#30280](https://togithub.com/vercel/next.js/issues/30280) - Add "priority" section to Image Optimization doc: [#30218](https://togithub.com/vercel/next.js/issues/30218) - Add more docs.: [#30320](https://togithub.com/vercel/next.js/issues/30320) ##### Example Changes - with-stitches example fixes [#28650](https://togithub.com/vercel/next.js/issues/28650): [#28652](https://togithub.com/vercel/next.js/issues/28652) - Updates [@react-three/drei](https://togithub.com/react-three/drei) version and other dependencies.: [#28755](https://togithub.com/vercel/next.js/issues/28755) - fixes with-typescript-graphql: unable to resolve dependency tree: [#28637](https://togithub.com/vercel/next.js/issues/28637) - Examples Prepr CMS update: [#28871](https://togithub.com/vercel/next.js/issues/28871) - Fix Typo in "with-eslint" Example docs: [#28601](https://togithub.com/vercel/next.js/issues/28601) - Updates supertokens-node dependency version: [#28916](https://togithub.com/vercel/next.js/issues/28916) - Fix falsy values not being returned in post fields: [#29011](https://togithub.com/vercel/next.js/issues/29011) - \[Examples] Updates `with-google-tag-manager` example to use ` Githubissues.