A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/typescript-eslint/typescript-eslint/issues/6469 below:

Add test-only console warnings to deprecated AST properties · Issue #6469 · typescript-eslint/typescript-eslint · GitHub

Before You File a Proposal Please Confirm You Have Done The Following... Relevant Package

typescript-estree

My proposal is suitable for this project Description

From @bradzacher's suggestion in #5384 (comment), which renamed many properties from typeParameters to typeArguments:

Thinking about this in terms of the broader ecosystem and the impacts - I wonder if we want to give consumers one major version to migrate? A hard cut over might be a bit difficult for the ecosystem to come handle as it would involve every single plugin updating their code (which could leave users in an impossible to upgrade state for some time).

How about this: this version we add the new property and we mark the old property as @deprecated, then in v7 we remove the old property entirely.

If we wanted we could also do something like define a getter that throws when in a test environment to help flag plugins that they should migrate.

#5384 kept the old properties as @deprecated but didn't add a getter.

Additional Info

No response


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4