github vercel/next.js v12.2.4

2 years ago

Core Changes

  • Fix error message typos: #38894
  • Update to latest version of @vercel/nft: #38878
  • fix(#38090): add missing analyticsId to config schema: #38911
  • Ensure hash on initial request is preserved in new router: #38913
  • Remove unnecessary assertions: #38899
  • Clear unnecessary code: #38900
  • fix: Impl attachRequestMeta in base server to handle meta differently in edge and node servers: #38932
  • feat: enhance warning messages about unanalyzable config field: #38907
  • fix: fix generateEtags type inside schema: #38936
  • Refactor router reducer: #38983
  • Add state comparison to router: #38422
  • update webpack: #38988
  • Update config schema for empty basePath: #38998
  • Add handling for prefetching onTouchStart and initial mobile testing : #38805
  • Add additional comments to new router: #38986
  • Update config-schema for relay field to be less strict: #39010
  • Add config for opting out of optimistic client cache behavior: #38774
  • Fix tracing edge-runtime dependencies: #39009
  • Ensure dangerouslyAllowSVG is passed correctly: #39031
  • Handle getStaticPaths error inside worker to avoid serializing: #39032
  • chore: enable swc externalHelpers when pre-compile: #38182
  • Update to use HEAD request for On-Demand ISR: #39038
  • chore: Clean up imports and unused code: #39044
  • Replace node-sass test dependency with sass: #39053
  • Add comments in new router reducer: #39025
  • Add additional comments for reducer/cachenode: #39065
  • fix: print Request & Response properties: #38903
  • fix: show asPath on large page data warning: #39071
  • Remove RSC rendering from render: #39045
  • Ensure query is updated correctly with shallow and middleware: #39086
  • Update pre-compiled to fix check: #39089
  • Fix unhandled rejections with edge runtime: #39091
  • feat(next-swc): Update swc: #39055
  • Collect telemetry for next/future/image: #39046
  • [Script] Adds onReady prop to next/script: #38849
  • Ensure we hard navigate for failed _next/data with middleware: #39148
  • Refactor Flight plugins to use types.: #39136
  • Fix middleware + afterFiles SSG rewrite case: #39153
  • Update swc minifier: #39158
  • Fix incorrect component cache for middleware cases: #39159
  • Add shared dynamic api: #39163
  • Add exportPathMap config type/schema field: #39171
  • Fix default error style overrides: #39169
  • refactor: return single middleware from getMiddleware in dev server: #39177
  • fix(#11930): rewritten api routes can correctly handle cors in dev mode: #38937
  • refactor: simplify middleware execution: #39192
  • Add missing @napi-rs/cli devDependency to next-swc: #39164
  • Fix missing edge routes in dev middleware manifest: #39199
  • Fix: only contain middleware in dev middleware manifest: #39217
  • fix: react dev bundle is picked in prod mode: #39221
  • Add "fill" mode to next/future/image: #38855
  • Handle assetPrefix in app: #39236
  • Export URLPattern from next/server: #39219
  • Ensure middleware has single data fetch on query hydration with valid props: #39210
  • Fix URLPattern next/server export on deploy: #39290
  • Flush styles effects: #39268
  • chore: rename typo middlewares to interceptors in hot reloader: #39292
  • Remove default setting for object-fit on future fill images: #39297
  • feat(config): implement a human readable ajv errors: #39291
  • Enable concurrent mode by default in app-render: #39307
  • Fix next/server being required during build: #39310
  • feat(next-swc/wasm): export async interfaces: #39231
  • Ensure On-Demand revalidate does not consider preview cookie: #39313
  • fix: buffer is not usable on edge runtime: #39227

Documentation Changes

  • Remove next-page-tester from testing.md: #38920
  • Add section about building getStaticPaths on-demand.: #38943
  • Docs: Fix grammatical typo: #38962
  • docs: update typescript.md: #38717
  • Add note to next/future/image about default styles.: #38978
  • Add caveat note about shallow routing with middleware: #39154
  • fix: Update testing.md: #39195
  • Replaces getStaticProps with getStaticPaths: #39218
  • Clear up rewrites documentation: #39238
  • Add section about migrating from next/image to next/future/image: #39270
  • [docs] Clarify polyfill support: #39272
  • fix typo: docs/advanced-features/react-18/streaming.md: #39293
  • docs: add missing dot: #39314

Example Changes

  • Add example with cookies-next package: #31243
  • chore(example): convert with-stitches to TS: #38892
  • Update Convex example not to ignore generated files: #38931
  • Convert custom-routes-proxying example to TypeScript: #38974
  • Added workaround for --isolatedModules inside of configuration files: #39004
  • Update default gitignore templates: #39051
  • docs(examples): improve DX while copying command to create new project: #38410
  • docs(example): Update Makeswift example: #39070
  • fix: use if..elif..else in docker examples: #39072
  • feat(with-mux-video): Update mux-player scope and version to latest.: #39079
  • Convert cms-agilitycms example to TypeScript: #38976
  • Convert the Cypress config to ESM Module syntax: #39036
  • fix: missing semicolon on Dockerfile: #39142
  • Fix typo in with-docker-compose README: #39176
  • examples/with-msw-typescript: #39196
  • Update edgedb.toml: #39243
  • fix: use if...else in dockerfile: #39263
  • Add TypeScript to ant design example: #38470

Misc Changes

  • Update Safari 10 test to no longer wait for modern Safari: #39028
  • Update delayed test output handling: #39078
  • Update tests to use random directory: #39230
  • Update Android NDK path for swc builds: #39298
  • Add delay before exiting tests for log flushing: #39302
  • chore(trace): fix typo in trace-to-event-format.mjs: #39279

Credits

Huge thanks to @theMosaad, @SukkaW, @timneutkens, @Yuddomack, @msquitieri, @andreizanik, @nix6839, @shuding, @thomasballinger, @ziishaned, @leerob, @xyeres, @nyedidikeke, @maxproske, @sokra, @titusdmoore, @thebergamo, @fikrikarim, @Kikobeats, @balazsorban44, @clearlyTHUYDOAN, @ijjk, @nasso, @qutek, @kdy1, @kyliau, @housseindjirdeh, @huozhi, @barissayil, @seveibar, @Jessidhia, @santidalmasso, @JohnDaly, @Nikhilnama18, @atcastle, @styfle, @Schniz, @mduleone, @colinhacks, @ductnn, @josh, @hiro0218, @eltociear, @kwonoj, @valcosmos, and @feugy for helping!

Don't miss a new next.js release

NewReleases is sending notifications on new releases.