github vercel/next.js v12.2.1

21 months ago

Core Changes

  • Remove unused layoutRaw config: #38120
  • Fix invalid config warning for runtime config: #38122
  • fix(next/config): update default config for the experimental: #38123
  • feat(next/swc): setup native next-swc crash reporter: #38076
  • Fix unnecessary flight render passes: #38133
  • Readds missing @next/next/no-assign-module-variable ESLint rule.: #38134
  • Fix failing to set initial ISR cache item in new folder: #38136
  • Add default experimental values: #38135
  • Fix error when next/future/image is missing width or height: #38132
  • docs(readme.md): remove broken 404 links: #38104
  • fix(#38106): use swc client config to pre-compile shared lib: #38137
  • Fix chunk path resolution: #38162
  • Revert "feat(next/swc): setup native next-swc crash reporter": #38170
  • fix(next/swc): set cache dir explicitly: #38175
  • Ensure @swc/helpers do not rely on hoisting: #38174
  • Migrate rsc tests to app dir tests: #38158
  • Check for performance.getEntriesByName before calling: #38186
  • Adds tests to ensure eslint-plugin-next's available rules are properly exported and recommended rules are correctly defined.: #38183
  • Fix pageProps is missing when route changes: #38178
  • feat(next/build): send next-swc plugins telemetry: #38116
  • Ensure page.server.js matches correctly: #38236
  • Alias react and react-dom by default: #38245
  • Fix: convert head instances to array: #38252
  • [edge] Make runtime addressable in compile time: #38288
  • Ensure trailing slash is handled correctly with middleware: #38282
  • Fix CSS modules imported from client components in app dir: #38310
  • [edge] favor browser exports for edge compiler: #38319
  • Fix CSS modules imported from client components in app dir with next build: #38329
  • Honor NEXT_MANUAL_SIG_HANDLE flag in standalone mode: #38346
  • Display stack trace when error occurs in API route: #38289
  • Handle Client Rewrites Correctly: #38340
  • Fix global CSS file imports: #38339
  • [build] validate the exported config values: #38370
  • Correctly check if width is lte 0 in Image Optimization API: #38226
  • chore: shorten image blur svg placholder: #38157
  • Enable swc minifier in create next apps: #38215
  • Filter proper chunks from chunk group for client components: #38379
  • [edge] enable edge compiler source maps by default: #38365
  • Call Error.getInitialProps for the top level error: #21240
  • feat: build edge functions with node.js modules and fail at runtime: #38234
  • Implement new client-side router: #37551
  • Add param names into the tree: #38415
  • feat(next/swc): setup native next-swc crash reporter with platform supports: #38221
  • Ensure server components entries are not part of the pages buildmanifest: #38416
  • Add app-path-routes manifest: #38420

Documentation Changes

  • Middleware docs update: #38111
  • Update middleware upgrade guide w/ more rationale: #38074
  • Update next/future/image docs to mention the difference with next/image: #38108
  • Clarify router.query initial value during prerendering: #38093
  • Remove lazyRoot example from next/future/image doc: #38140
  • Add a Makeswift example: #38018
  • docs: remove eslint config link: #38206
  • fix: middleware-upgrade-guide.md: #38246
  • Typo in NextResponse docs: #38259
  • Update next/future/image docs to specify supported browser versions.: #38307
  • Update get-static-props.md: #38287
  • Clarification for Testing Environment Variables: #38359
  • Fix typo in SWC plugin destructuring example: #38367
  • Fix/update docs for swc styled components: #38280
  • Update edge-runtime.md: #38271
  • Add note about casing to getStaticPaths docs: #38426

Example Changes

  • Adding with-ably example for realtime messaging in next apps: #37319
  • Convert auth0 example to TypeScript: #38087
  • Convert basic-export example to TypeScript: #38092
  • Convert basic-css example to TypeScript: #38091
  • Add Convex example: #38129
  • Convert catch-all-routes example to TypeScript: #38188
  • feat(examples): link to turbo next.js examples: #38173
  • feat(examples): adds middleware example: #38240
  • fix(examples): fix link on middleware example: #38323
  • Update analysis scripts: #38201
  • chore(examples): fix experiments loading npm wasm: #38348
  • chore(examples): Convert api-routes-cors example to TypeScript: #38356
  • chore(examples): Convert api-routes-middleware example to TypeScript: #38358
  • Remove CharkraProvicer RestCSS prop: #38199
  • Add example: with-apivideo-upload: #36050
  • Updates with-supertokens example: #38369
  • fix: update with-msw example to function properly for all use cases: #38050
  • chore(examples): Convert blog example to TypeScript: #38095

Misc Changes

  • Add more code ownership paths for padmaia: #38121
  • Fix create-next-app tests from changed example: #38154
  • Fix missing trace script devDependencies: #38172
  • chore: don't use type: "module" when building the Issue validator action: #38197
  • fix: declare NextBundleAnalyzer as a type: #38168
  • Replace placeholder.com images with *.vercel.app in image-component tests: #38090
  • chore: point to /dist for local action
  • chore: fix issue validator paths
  • Update some flaking tests for edge compiler and rsc: #38344
  • chore: remove workspace from package.json since we have `pnpm-works…: #38166
  • Revert "chore: remove workspace from package.json since we have `pnpm-works…": #38376
  • Replace pre-commit with husky: #38350
  • Add more CSS imports test cases: #38343

Credits

Huge thanks to @ethomson, @styfle, @padmaia, @kwonoj, @shuding, @ijjk, @manovotny, @thisisjofrank, @maxproske, @dominiksipowicz, @awareness481, @pakaponk, @SukkaW, @apledger, @wyattjoh, @huozhi, @thomasballinger, @balazsorban44, @longzheng, @tknickman, @rbrcsk, @emersonlaurentino, @carstenlebek, @edusig, @Schniz, @riccardogiorato, @leerob, @valcosmos, @hanneslund, @ryanhaticus, @j-mendez, @armandabric, @WinmezzZ, @andershagbard, @dammy001, @MarDi66, @stefanprobst, @okmttdhr, @rishabhpoddar, @marjorg, @dustinsgoodman, @zanechua, @feugy, and @timneutkens for helping!

Don't miss a new next.js release

NewReleases is sending notifications on new releases.