Change8

v0.27.7

Breaking Changes
📦 esbuildView on GitHub →
1 breaking🐛 1 fixes🔧 2 symbols

Summary

This release fixes a bug where TypeScript parameter properties were incorrectly lowered as class fields when targeting older JavaScript environments. The lowering mechanism now correctly uses runtime helpers in these scenarios.

⚠️ Breaking Changes

  • The lowering of TypeScript parameter properties has changed when targeting environments that do not support class fields (e.g., ES2021). Previously, class fields were incorrectly generated; now, they are correctly lowered using runtime helpers like `__publicField`.

Migration Steps

  1. Review generated output for TypeScript parameter properties if targeting older environments (pre-ES2022) to ensure compatibility with the new lowering strategy using runtime helpers.

🐛 Bug Fixes

  • Fixed incorrect generation of class fields for TypeScript parameter properties when the configured target environment does not support class fields (e.g., targeting ES2021).

Affected Symbols