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

fix: debugger failing on Node <=12 #1627

Merged
merged 4 commits into from
Mar 31, 2023
Merged

fix: debugger failing on Node <=12 #1627

merged 4 commits into from
Mar 31, 2023

Conversation

connor4312
Copy link
Member

Fixes #1624

Updates @vscode/l10n to allow it to be tree-shaken away.

Also moves checkContentHash that likewise had a dependency on more
modern language features. I think webpack was just extra aggressive
about tree shaking before and assumed new Hasher() was side effect
free. Which is was, it's just a big assumption to have made.

And when I had updated versions in our pipelines, I accidentally updated
the minspec to no longer target Node 8 🤦‍♂️. Targeting the latest 10 should
be good. Node 8 thankfully <0.25% of users nowadays.

TIL that assigning an invalid value to `url.hostname` silently fails
if invalid.

Fixes microsoft/vscode#167353
@connor4312 connor4312 enabled auto-merge (squash) March 31, 2023 17:56
Fixes #1624

Updates @vscode/l10n to allow it to be tree-shaken away.

Also moves `checkContentHash` that likewise had a dependency on more
modern language features. I think webpack was just extra aggressive
about tree shaking before and assumed `new Hasher()` was side effect
free. Which is was, it's just a big assumption to have made.

And when I had updated versions in our pipelines, I accidentally updated
the minspec to no longer target Node 8 🤦‍♂️. Targeting the latest 10 should
be good. Node 8 thankfully <0.25% of users nowadays.
lramos15
lramos15 previously approved these changes Mar 31, 2023
@connor4312
Copy link
Member Author

connor4312 commented Mar 31, 2023

I undid the "minspec" changes for this patch, since I realize our test and build infra no longer works on Node <14 so we can't just use that version for the whole pipeline. Will need to figure a way to use Node 10 only during tests.

@connor4312 connor4312 merged commit 1908507 into main Mar 31, 2023
@connor4312 connor4312 deleted the connor4312/issue1624 branch March 31, 2023 18:03
connor4312 added a commit that referenced this pull request Mar 31, 2023
* fix: sourcemap lookups on ipv6 localhost addresses

TIL that assigning an invalid value to `url.hostname` silently fails
if invalid.

Fixes microsoft/vscode#167353

* fix: debugger failing on Node <=12

Fixes #1624

Updates @vscode/l10n to allow it to be tree-shaken away.

Also moves `checkContentHash` that likewise had a dependency on more
modern language features. I think webpack was just extra aggressive
about tree shaking before and assumed `new Hasher()` was side effect
free. Which is was, it's just a big assumption to have made.

And when I had updated versions in our pipelines, I accidentally updated
the minspec to no longer target Node 8 🤦‍♂️. Targeting the latest 10 should
be good. Node 8 thankfully <0.25% of users nowadays.

* keep broken minspec for the moment
@connor4312 connor4312 mentioned this pull request Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VS code crashes when debugging after update with Node <=12
3 participants