Skip to content

v12.1.6

Compare
Choose a tag to compare
@ijjk ijjk released this 02 May 20:30
· 9623 commits to canary since this release

Core Changes

  • rsc: remove router injection: #36101
  • Fix export from and native modules in server component: #36072
  • feat(next-swc): Update css parser: #36114
  • fix: do not add locale prefix to api route on NextURL: #36118
  • Add experimental onlyGenereated flag for unstable_revalidate: #36108
  • Support necessary headers in the web server response: #36122
  • Fix only generated case in minimal mode: #36130
  • Fix req.url of rsc dynamic routes pages gSSP in edge runtime: #36134
  • Reogranize the client component detection utils: #36135
  • Add support for catch-all route params in NextRequest page type declaration: #36137
  • rsc: mark next head as client component: #36138
  • rsc: keep static page props: #36157
  • Update to target es5 for use-subscription: #36159
  • Fix text decoding for chunk: #36165
  • Fix symlink and copy logic to standalone directory when using outputStandalone: #35535
  • Adds linting rule to avoid assignment to 'module' variable: #35279
  • Fix res.json support for string / null: #36186
  • Update swc: #36187
  • Fix next/image usage in most cases of onLoad(): #36176
  • [eslint-config-next] Update @typescript-eslint/parser to v5.19.0: #36156
  • Add support for tsconfig moduleResolution node | node12 | nodenext: #36189
  • Fix missing _app component of AppTree in gIP context: #36206
  • refactor(build): no force transpile optional chaining: #35976
  • NextResponse.json: pass options to Response: #35367
  • Improve NextApiHandler type for early returns: #35166
  • Fix build activity indicator position: #36208
  • 404 page - Responsive color scheme: #32113
  • perf(escapeStringRegexp): test before replace: #34472
  • rsc: skip next builtin module when apply loaders: #36202
  • Use finally to clean up seen requests: #36222
  • fix(next-swc/ssg): less aggressive exports drop: #36199
  • fix type definition for defaultGetInitialProps: #36252
  • Use renderToStaticMarkup to render documentHTML: #36213
  • Fix flight loader: #36282
  • Add telemetry for image config formats (avif/webp): #36289
  • Ensure error is cleared for missing global css: #36292
  • next/jest: Allow moduleNameMapper to match before Next.js internal mappings: #36312
  • Add client HMR tracing for debugging: #36328
  • feat:Add support for useDefineForClassFields typescript option: #36335
  • Use fallbackable path module for node and edge runtime: #36306
  • Update swc: #36269
  • fix(next): use moduleGraph.getIssuer to avoid deprecation warning (#36329): #36330
  • Ensure beforeFiles client-side resolving handles dynamic routes: #36317
  • Ensure there is only 1 render pass in concurrent rendering with getInitialProps in _document: #36352
  • Changes to the beforeInteractive strategy to make it work for streaming: #31936
  • Update swc: #36351
  • Fix failing E2E deployment test cases: #36368
  • chore: upgrade PostCSS dependencies: #34354
  • Fix next/image usage of onError(): #36305
  • Simplify the App and Component handling in render: #36395
  • Do not polyfill node built-in modules on edge functions: #36190
  • Fix to remove webpack message per error: #36452
  • Rework behavior (backwards compatible): #36436
  • Fix missing interpolation on next/head exports: #36435
  • Add stitches and material-ui tests for new link behavior + fix TypeScript types when imported: #36474
  • chore: remove git.io: #36479
  • fix(#36435): apply correct fix: #36464
  • Add process env NEXT_RUNTIME: #36383
  • Fix incorrect asPath with fallback rewrite in minimal mode: #36463
  • Update manual revalidate response cache handling: #36462
  • Pass nextRuntime in webpack context: #36488
  • Support swc parse api in WASM: #36482
  • Use edge compiler for middleware: #36486
  • Update swc: #36477
  • Remove passhref Eslint rule as it's no longer needed with new link behavior: #36511
  • Add string children case for newNextLinkBehavior codemod: #36516
  • Add with-edgedb example: #35929
  • polish isomorphic path module: #36521
  • Ensure optional params are normalized correctly in minimal mode: #36513
  • Always add height and width prop to image with layout="raw": #36523
  • Align behavior of SWC transform & transformSync: #36500
  • Add event for swc load failure and attempt patching lockfile: #36527
  • next-swc/wasm: Make span start at 0: #36532
  • Add support for passing ref to next/link with new behavior enabled: #36537
  • Update swc: #36535
  • Refactor base server to get rid of the __server_context hack: #36550
  • Tweak lockfile patching to be eager: #36549
  • unlock eslint-config-next dependencies: #35781
  • Hoist the desired ReactDOM import expression: #36552
  • bump styled-jsx to latest: #36554
  • chore: clarify CLI network errors: #36567
  • Ensure older lockfile/invalid formats are handled: #36577
  • Adds inline script functionality to next/script for worker and beforeInteractive strategies: #36364
  • Fix missing Content-Length header from Image Optimization API: #36581
  • Refactor Page Paths utils and Middleware Plugin: #36576
  • Reexports styled-jsx JSXStyle in nextjs: #36585
  • Update status code for normalize error: #36580
  • Add pagesDir to Jest transformer: #36599
  • Add tests for routing experiment: #36618
  • Update findPagesDir: #36619
  • Fix swc jest pagesDir config: #36623
  • Fix next node buildin module error message for edge runtime: #36434
  • Handle styled-jsx in newLinkBehavior codemod: #36628

Documentation Changes

  • Add instructions to create pages directory and add an index.js file to it: #35971
  • docs: specify minimum required react version: #36091
  • Loosen the "public" condition on getSSP: #36018
  • fixed typo, that should say 'in' not 'from': #36046
  • Docs: workarounds for router not resetting state (fixes #35138): #35651
  • Add onLoad gotcha note to basic-features doc: #36261
  • Fix introduction.md for next.config.js: #36286
  • Clarifies that path params exist on query object: #36321
  • Fix broken data fetching links in docs: #33766
  • Change getStaticProps to getStaticPaths in getStaticPaths docs: #36403
  • Revert "Change getStaticProps to getStaticPaths in getStaticPaths docs": #36425
  • Update usage paragraph of next/script onLoad: #36453
  • Add note about lockfile causing swc to fail to load: #36484
  • Add docs on self-hosted ISR persisting across pods.: #36520
  • Adds <link rel="preconnect" ... /> to example optimized font output: #36529
  • Add note about running next without a sub-command: #36560
  • Add docs about SSR caching (yes, you can do this with Next.js): #36588

Example Changes

  • Fixes scripts in Electron examples.: #36133
  • docs(examples/with-emotion-swc): update readme: #36197
  • docs: add yoga to examples: #36253
  • Adds removeListener handler to with-electron-typescript example.: #36323
  • Removed unnecessary React Fragment: #36331
  • updated with-rebass dependencies: #36416
  • Add pnpm-debug: #36394
  • added with-react-foundation example: #36375
  • Grammar Changed features and API to features and it's API: #36396
  • Adding Typescript and Mantine example: #36294
  • [examples] Update styled-components with Babel - add types: #36125
  • Fix failing yarn PnP test from missing dependency: #36515
  • docs(examples): Updated Chakra UI examples: #36333
  • Fix typo: #36592
  • add Script key for cache: #36627

Misc Changes

  • Update CODEOWNERS: #36164
  • Stabilize flakey prerender test: #36193
  • Stabilize flakey build-output test: #36195
  • Validate streaming writer chunk type in testing: #36200
  • Update CI cache key to allow re-running only failed: #36249
  • feat(trace): next/trace to event format converter: #36281
  • Add handling for testing against deployments: #36285
  • Make setup-wasm script work for local dev: #36355
  • chore(create-next-app): fix pnpm create step: #36398
  • Update font-optimization test snapshot: #36492
  • docs: clarify triaging: #36507
  • Remove extra yarn PnP example test: #36518
  • Update rewrite destination for flakey rewrite tests: #36519
  • Normalize font optimization snapshot to reduce flakes: #36531
  • Bump react dev dep to 18.1: #36491

Credits

Huge thanks to @huozhi, @shuding, @kdy1, @nkzawa, @prichey, @manovotny, @balazsorban44, @remorses, @amandeepmittal, @mward-sudo, @eric-burel, @timneutkens, @styfle, @ytkg, @CuriosBasant, @bart-krakowski, @SukkaW, @jameshfisher, @Kikobeats, @bjorm, @alex-page, @fmmoret, @ijjk, @davidbarker, @kwonoj, @seanparmelee, @ddgrishkin, @mmartinsoliv, @byjoshuadavis, @sakib412, @Chastrlove, @padmaia, @janicklas-ralph, @MaedahBatool, @shinkj11, @youngvform, @zaida04, @therealmarzouq, @codedbyjordan, @deadlynjdj, @lfades, @Brooooooklyn, @renbaoshuo, @javivelasco, @triyanox, @rafae2k, @colinhacks, @atcastle, @leerob, @sa3dany, @nikolovlazar, @refactorized, @housseindjirdeh, @ro11ingbutler, and @gusrb3164 for helping!