microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
98.27k stars 12.2k forks source link

5.5 deprecations are no-ops, not errors #58313

Closed RyanCavanaugh closed 2 weeks ago

RyanCavanaugh commented 2 weeks ago

In #51000 we said

Release / Phase Description
TypeScript 5.0 - Phase 1 ❔ Deprecation warnings introduced
TypeScript 5.5 - Phase 2 ⚠ Flags start doing nothing
TypeScript 6.0 - Phase 3 ❌ Flags removed entirely

So the correct behavior under e.g.

  "ignoreDeprecations": "5.0",
  "keyofStringsOnly": true

is to not error, but instead to pretend we didn't see keyofStringsOnly

jakebailey commented 2 weeks ago

Sorry about this; I think I made this stricter than you intended when I refactored things a bit back in 5.0.

DanielRosenwasser commented 2 weeks ago

Going to merge for the beta