Change8

v16.0.2-canary.16

📦 next-js
2 features🐛 2 fixes🔧 6 symbols

Summary

This release focuses on bug fixes for cache-related build errors and Turbopack refactoring, alongside improvements to pnpm installation behavior in create-next-app.

Migration Steps

  1. Review the release notes for any changes that might affect your specific configuration, particularly around Turbopack if you are using it.
  2. Update your dependency to the latest version.
  3. Run your test suite to ensure no unexpected regressions were introduced, especially if you rely on caching mechanisms (`cacheLife`, `cacheTag`) or Turbopack features.
  4. If you are using pnpm and encountering issues with postinstall scripts from `sharp` or `unrs-resolver`, ensure your configuration aligns with the changes made to ignore these scripts.

✨ New Features

  • Added test fixtures for cacheLife and cacheTag in client components.
  • Turbopack: Refactored evaluate function to accept module_graph.

🐛 Bug Fixes

  • Fixed false-positive build errors associated with cacheLife and cacheTag.
  • Updated create-next-app (cna) to ignore postinstall scripts from sharp and unrs-resolver when using pnpm.

🔧 Affected Symbols

cacheLifecacheTagevaluatemodule_graphsharpunrs-resolver