-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Enable typescript support by default #4200
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The request changes is just so it doesn't get merged by accident.
This introduces 2 breaking changes:
- with removign experimental_enhanced as compatiblity mode it will break anyone who is using it, including any archives made with it.
- as Discussion about
global
andexperimental_enhanced
#3860 explained *enhanced doesn't aliasglobal
toglobalThis
and this is likely going to break even more scripts given the usage statistics we have.
Additionally as discussed in #3864 we kind of want to remove compatibility-mode now, arguably this should have never been part of it but separate option, but alas.
I would prefer if I take over this and remove the dependancy on compatibility-mode for this and just enable it by default. The question is do we add an option a kin to node to disable/enable this or is that not relevant as it only is enabled on files with .ts
file extension?
Please go ahead. I would be happy if you would take it. |
Closing in favor of #4292 |
What?
Enable typescript support by default.
Why?
k6 v0.52.0 introduced experimental support for TypeScript as an opt-in feature. To enable this, users must specify
experimental_enhanced
as a compatibility mode when running thek6 run
command.After six months, this feature can now be regarded as stable and is set as the default for executing scripts. In contrast, the current default
extended
mode is available as an opt-out option.Checklist
make lint
) and all checks pass.make tests
) and all tests pass.Related PR(s)/Issue(s)
Closes #4194