Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 0582fe2

Browse files
committed
chore: update yarn, yarn sdks and yarn plugins
1 parent 28d9363 commit 0582fe2

File tree

13 files changed

+1406
-1110
lines changed

13 files changed

+1406
-1110
lines changed

.pnp.cjs

Lines changed: 458 additions & 127 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.pnp.loader.mjs

Lines changed: 37 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
106 KB
Binary file not shown.

.yarn/cache/typescript-patch-044c37f428-1cb434fbc6.zip renamed to .yarn/cache/typescript-patch-363d50fa2f-1cb434fbc6.zip

File renamed without changes.

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Lines changed: 103 additions & 108 deletions
Large diffs are not rendered by default.

.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

.yarn/releases/yarn-3.2.0.cjs

Lines changed: 0 additions & 785 deletions
This file was deleted.

.yarn/releases/yarn-3.2.3.cjs

Lines changed: 783 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/sdks/typescript/lib/tsserver.js

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -61,30 +61,14 @@ const moduleWrapper = tsserver => {
6161
//
6262
// Ref: https://github.com/microsoft/vscode/issues/105014#issuecomment-686760910
6363
//
64-
// 2021-10-08: VSCode changed the format in 1.61.
64+
// Update Oct 8 2021: VSCode changed their format in 1.61.
6565
// Before | ^zip:/c:/foo/bar.zip/package.json
6666
// After | ^/zip//c:/foo/bar.zip/package.json
6767
//
68-
// 2022-04-06: VSCode changed the format in 1.66.
69-
// Before | ^/zip//c:/foo/bar.zip/package.json
70-
// After | ^/zip/c:/foo/bar.zip/package.json
71-
//
72-
// 2022-05-06: VSCode changed the format in 1.68
73-
// Before | ^/zip/c:/foo/bar.zip/package.json
74-
// After | ^/zip//c:/foo/bar.zip/package.json
75-
//
7668
case `vscode <1.61`: {
7769
str = `^zip:${str}`;
7870
} break;
7971

80-
case `vscode <1.66`: {
81-
str = `^/zip/${str}`;
82-
} break;
83-
84-
case `vscode <1.68`: {
85-
str = `^/zip${str}`;
86-
} break;
87-
8872
case `vscode`: {
8973
str = `^/zip/${str}`;
9074
} break;
@@ -135,7 +119,9 @@ const moduleWrapper = tsserver => {
135119

136120
case `vscode`:
137121
default: {
138-
return str.replace(/^\^?(zip:|\/zip(\/ts-nul-authority)?)\/+/, process.platform === `win32` ? `` : `/`)
122+
return process.platform === `win32`
123+
? str.replace(/^\^?(zip:|\/zip)\/+/, ``)
124+
: str.replace(/^\^?(zip:|\/zip)\/+/, `/`);
139125
} break;
140126
}
141127
}
@@ -174,21 +160,8 @@ const moduleWrapper = tsserver => {
174160
typeof parsedMessage.arguments.hostInfo === `string`
175161
) {
176162
hostInfo = parsedMessage.arguments.hostInfo;
177-
if (hostInfo === `vscode` && process.env.VSCODE_IPC_HOOK) {
178-
const [, major, minor] = (process.env.VSCODE_IPC_HOOK.match(
179-
// The RegExp from https://semver.org/ but without the caret at the start
180-
/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
181-
) ?? []).map(Number)
182-
183-
if (major === 1) {
184-
if (minor < 61) {
185-
hostInfo += ` <1.61`;
186-
} else if (minor < 66) {
187-
hostInfo += ` <1.66`;
188-
} else if (minor < 68) {
189-
hostInfo += ` <1.68`;
190-
}
191-
}
163+
if (hostInfo === `vscode` && process.env.VSCODE_IPC_HOOK && process.env.VSCODE_IPC_HOOK.match(/Code\/1\.([1-5][0-9]|60)\./)) {
164+
hostInfo += ` <1.61`;
192165
}
193166
}
194167

.yarn/sdks/typescript/lib/tsserverlibrary.js

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -61,30 +61,14 @@ const moduleWrapper = tsserver => {
6161
//
6262
// Ref: https://github.com/microsoft/vscode/issues/105014#issuecomment-686760910
6363
//
64-
// 2021-10-08: VSCode changed the format in 1.61.
64+
// Update Oct 8 2021: VSCode changed their format in 1.61.
6565
// Before | ^zip:/c:/foo/bar.zip/package.json
6666
// After | ^/zip//c:/foo/bar.zip/package.json
6767
//
68-
// 2022-04-06: VSCode changed the format in 1.66.
69-
// Before | ^/zip//c:/foo/bar.zip/package.json
70-
// After | ^/zip/c:/foo/bar.zip/package.json
71-
//
72-
// 2022-05-06: VSCode changed the format in 1.68
73-
// Before | ^/zip/c:/foo/bar.zip/package.json
74-
// After | ^/zip//c:/foo/bar.zip/package.json
75-
//
7668
case `vscode <1.61`: {
7769
str = `^zip:${str}`;
7870
} break;
7971

80-
case `vscode <1.66`: {
81-
str = `^/zip/${str}`;
82-
} break;
83-
84-
case `vscode <1.68`: {
85-
str = `^/zip${str}`;
86-
} break;
87-
8872
case `vscode`: {
8973
str = `^/zip/${str}`;
9074
} break;
@@ -135,7 +119,9 @@ const moduleWrapper = tsserver => {
135119

136120
case `vscode`:
137121
default: {
138-
return str.replace(/^\^?(zip:|\/zip(\/ts-nul-authority)?)\/+/, process.platform === `win32` ? `` : `/`)
122+
return process.platform === `win32`
123+
? str.replace(/^\^?(zip:|\/zip)\/+/, ``)
124+
: str.replace(/^\^?(zip:|\/zip)\/+/, `/`);
139125
} break;
140126
}
141127
}
@@ -174,21 +160,8 @@ const moduleWrapper = tsserver => {
174160
typeof parsedMessage.arguments.hostInfo === `string`
175161
) {
176162
hostInfo = parsedMessage.arguments.hostInfo;
177-
if (hostInfo === `vscode` && process.env.VSCODE_IPC_HOOK) {
178-
const [, major, minor] = (process.env.VSCODE_IPC_HOOK.match(
179-
// The RegExp from https://semver.org/ but without the caret at the start
180-
/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
181-
) ?? []).map(Number)
182-
183-
if (major === 1) {
184-
if (minor < 61) {
185-
hostInfo += ` <1.61`;
186-
} else if (minor < 66) {
187-
hostInfo += ` <1.66`;
188-
} else if (minor < 68) {
189-
hostInfo += ` <1.68`;
190-
}
191-
}
163+
if (hostInfo === `vscode` && process.env.VSCODE_IPC_HOOK && process.env.VSCODE_IPC_HOOK.match(/Code\/1\.([1-5][0-9]|60)\./)) {
164+
hostInfo += ` <1.61`;
192165
}
193166
}
194167

0 commit comments

Comments
 (0)