-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
BREAKING: DENO_FUTURE=1
by default, or welcome to Deno 2.0
#25213
BREAKING: DENO_FUTURE=1
by default, or welcome to Deno 2.0
#25213
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.
I wonder whether we really require the ability to have DENO_FUTURE=0
. Either way, LGTM!
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.
Tests will need to be updated
We're running into this issue quite a bit:
How should we approach folders that have a |
DENO_FUTURE=1
the default
Needed for #25213. With Deno 2, we should suggest using `deno install` instead of `npm install`.
This is still flaky and won't be needed anyway once #25213 lands.
Needed for #25213. With Deno 2, we should suggest using `deno install` instead of `npm install`.
Co-Authored-By: Nayeem Rahman <[email protected]>
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.
LGTM, cleanup will be fun 😅
DENO_FUTURE=1
the defaultDENO_FUTURE=1
by default, or welcome Deno 2.0
DENO_FUTURE=1
by default, or welcome Deno 2.0DENO_FUTURE=1
by default, or welcome to Deno 2.0
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.
LGTM!
@@ -14240,7 +14247,7 @@ fn lsp_deno_json_workspace_node_modules_dir() { | |||
"project1/deno.json", | |||
json!({ | |||
"workspace": ["project2"], | |||
"nodeModulesDir": true, | |||
"nodeModules": "local-auto", |
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.
I think we should change this to "nodeModules": "auto"
. This is too much to type.
This commit effectively turns Deno into Deno 2.0.
This is done by forcing
DENO_FUTURE=1
env var, that was available inthe past few months to try Deno 2 changes.
This commit contains several breaking changes scheduled for Deno 2:
Deno.*
APIswindow
global is removed--unstable-*
flagsThis is the first commit in a series that are scheduled before the Deno 2 release.
Follow up work is tracked in #25241.