Change8

v16.2.0-canary.54

Breaking Changes
📦 next-jsView on GitHub →
2 breaking4 features🐛 2 fixes🔧 10 symbols

Summary

This release focuses on core improvements, including removing `workStore` from several APIs, renaming Turbopack internal paths, and introducing LRU disk caching for next/image.

⚠️ Breaking Changes

  • The `workStore` parameter has been removed from the function signatures of `params`, `searchParams`, and `pathname` functions. Consumers relying on `workStore` in these contexts must update their calls.
  • The `workStore` has been removed from the metadata resolution chain. Code relying on `workStore` being present during metadata resolution will need refactoring.

Migration Steps

  1. Remove usage of the `workStore` parameter from calls to `params`, `searchParams`, and `pathname` functions.
  2. Review metadata resolution logic to remove reliance on `workStore`.

✨ New Features

  • Exported the "Instant" config type.
  • Added Dev Tools toggle for Instant Navigation Mode.
  • Included declaration location of instant config in validation errors.
  • Added LRU disk cache and `images.maximumDiskCacheSize` configuration to `next/image`.

🐛 Bug Fixes

  • Fixed static asset skew protection for edge and prerenders in Turbopack.
  • Replaced the closure `getDynamicParamFromSegment` with `interpolatedParams` in metadata handling.

Affected Symbols