Change8

v16.2.1-canary.20

Breaking Changes
📦 next-jsView on GitHub →
1 breaking1 features🐛 2 fixes🔧 5 symbols

Summary

This release improves the development server experience with better error messages and automatic restarts, and introduces experimental configuration options for SWC. It also includes several internal Turbopack and turbo-tasks refactorings.

⚠️ Breaking Changes

  • Turbopack removed FileSystemPath::value_to_string in favor of ValueToStringRef::to_string_ref. Code relying on the old method will need updating to use the new reference-based approach.

Migration Steps

  1. If you were using FileSystemPath::value_to_string in Turbopack related code, replace it with ValueToStringRef::to_string_ref.

✨ New Features

  • Added experimental.swcEnvOptions to allow configuration of SWC preset-env.

🐛 Bug Fixes

  • Improved the dev server error message to suggest using the dev server.
  • The `next dev` server will now restart if the `.next` directory is deleted.

Affected Symbols