Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add target: es2022 #44571

Closed
5 tasks done
saschanaz opened this issue Jun 13, 2021 · 4 comments Β· Fixed by #46291
Closed
5 tasks done

Add target: es2022 #44571

saschanaz opened this issue Jun 13, 2021 · 4 comments Β· Fixed by #46291
Labels
Committed The team has roadmapped this issue Revisit An issue worth coming back to Suggestion An idea for TypeScript
Milestone

Comments

@saschanaz
Copy link
Contributor

Suggestion

πŸ” Search Terms

es2022

βœ… Viability Checklist

My suggestion meets these guidelines:

  • This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
  • This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion

There are now some accepted proposals targeting ES2022.

πŸ“ƒ Motivating Example

Class fields, RegExp match indices, top level await

πŸ’» Use Cases

Whatever.

@RyanCavanaugh RyanCavanaugh added Committed The team has roadmapped this issue Suggestion An idea for TypeScript Help Wanted You can do this labels Jun 15, 2021
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Jun 15, 2021
@wgebczyk
Copy link

"Use Cases" ==> "Whatever" :D :D :D Maybe just remove section that is not needed/used...

@gabritto
Copy link
Member

gabritto commented Jul 7, 2021

We would prefer to add ES2022 as a target at a later time, once the ES standard implementation is completed or unlikely to change.
The reason is that if we add ES2022 as a target now, we would need to implement a transformer for the target, but the proposals' implementations may still change and this would affect the transformer's implementation.

@gabritto
Copy link
Member

gabritto commented Jul 7, 2021

@saschanaz
If there's a specific problem you have related to ES2022, e.g. adding something to lib.esnext.d.ts, you could create another issue just for that.

@gabritto gabritto removed their assignment Jul 7, 2021
@saschanaz
Copy link
Contributor Author

saschanaz commented Jul 7, 2021

once the ES standard implementation is completed or unlikely to change.

I intended to cover only finished proposals in stage 4, and thus it shouldn't be a significant issue here. (AFAIK changing behavior of stage 4 proposals in any major way will break web compatibility and thus shouldn't occur.)

@RyanCavanaugh RyanCavanaugh added Revisit An issue worth coming back to and removed Help Wanted You can do this labels Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Committed The team has roadmapped this issue Revisit An issue worth coming back to Suggestion An idea for TypeScript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants