adopt new version of tas-client, no longer use "umd" variant (#263340)

upgrade to tas-client 0.3.1
This commit is contained in:
SteVen Batten
2025-11-12 07:50:41 -08:00
committed by GitHub
parent f62ffbb85b
commit 27a2bcb056
11 changed files with 38 additions and 26 deletions

View File

@@ -70,7 +70,7 @@
},
{
// Reason: The license cannot be found by the tool due to access controls on the repository
"name": "tas-client-umd",
"name": "tas-client",
"fullLicenseText": [
"MIT License",
"Copyright (c) 2020 - present Microsoft Corporation",

View File

@@ -1541,7 +1541,7 @@ export default tseslint.config(
'readline',
'stream',
'string_decoder',
'tas-client-umd',
'tas-client',
'tls',
'undici',
'undici-types',
@@ -1630,7 +1630,7 @@ export default tseslint.config(
'vs/base/~',
'vs/base/parts/*/~',
'vs/platform/*/~',
'tas-client-umd', // node module allowed even in /common/
'tas-client', // node module allowed even in /common/
'@microsoft/1ds-core-js', // node module allowed even in /common/
'@microsoft/1ds-post-js', // node module allowed even in /common/
'@xterm/headless' // node module allowed even in /common/
@@ -1748,7 +1748,7 @@ export default tseslint.config(
'when': 'test',
'pattern': 'vs/workbench/contrib/*/~'
}, // TODO@layers
'tas-client-umd', // node module allowed even in /common/
'tas-client', // node module allowed even in /common/
'vscode-textmate', // node module allowed even in /common/
'@vscode/vscode-languagedetection', // node module allowed even in /common/
'@vscode/tree-sitter-wasm', // type import

14
package-lock.json generated
View File

@@ -48,7 +48,7 @@
"native-watchdog": "^1.4.1",
"node-pty": "1.1.0-beta35",
"open": "^10.1.2",
"tas-client-umd": "0.2.0",
"tas-client": "0.3.1",
"undici": "^7.9.0",
"v8-inspect-profiler": "^0.1.1",
"vscode-oniguruma": "1.7.0",
@@ -16659,10 +16659,14 @@
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
},
"node_modules/tas-client-umd": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/tas-client-umd/-/tas-client-umd-0.2.0.tgz",
"integrity": "sha512-oezN7mJVm5qZDVEby7OzxCLKUpUN5of0rY4dvOWaDF2JZBlGpd3BXceFN8B53qlTaIkVSzP65aAMT0Vc+/N25Q=="
"node_modules/tas-client": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/tas-client/-/tas-client-0.3.1.tgz",
"integrity": "sha512-Mn4+4t/KXEf8aIENeI1TkzpKIImzmG+FjPZ2dlaoGNFgxJqBE/pp3MT7nc2032EG4aS73E4OEcr2WiNaWW8mdA==",
"license": "MIT",
"engines": {
"node": ">=22"
}
},
"node_modules/teex": {
"version": "1.0.1",

View File

@@ -110,7 +110,7 @@
"native-watchdog": "^1.4.1",
"node-pty": "1.1.0-beta35",
"open": "^10.1.2",
"tas-client-umd": "0.2.0",
"tas-client": "0.3.1",
"undici": "^7.9.0",
"v8-inspect-profiler": "^0.1.1",
"vscode-oniguruma": "1.7.0",

View File

@@ -39,7 +39,7 @@
"minimist": "^1.2.8",
"native-watchdog": "^1.4.1",
"node-pty": "1.1.0-beta35",
"tas-client-umd": "0.2.0",
"tas-client": "0.3.1",
"vscode-oniguruma": "1.7.0",
"vscode-regexpp": "^3.1.0",
"vscode-textmate": "^9.2.1",
@@ -1125,10 +1125,14 @@
"node": ">=6"
}
},
"node_modules/tas-client-umd": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/tas-client-umd/-/tas-client-umd-0.2.0.tgz",
"integrity": "sha512-oezN7mJVm5qZDVEby7OzxCLKUpUN5of0rY4dvOWaDF2JZBlGpd3BXceFN8B53qlTaIkVSzP65aAMT0Vc+/N25Q=="
"node_modules/tas-client": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/tas-client/-/tas-client-0.3.1.tgz",
"integrity": "sha512-Mn4+4t/KXEf8aIENeI1TkzpKIImzmG+FjPZ2dlaoGNFgxJqBE/pp3MT7nc2032EG4aS73E4OEcr2WiNaWW8mdA==",
"license": "MIT",
"engines": {
"node": ">=22"
}
},
"node_modules/tiny-inflate": {
"version": "1.0.3",

View File

@@ -34,7 +34,7 @@
"minimist": "^1.2.8",
"native-watchdog": "^1.4.1",
"node-pty": "1.1.0-beta35",
"tas-client-umd": "0.2.0",
"tas-client": "0.3.1",
"vscode-oniguruma": "1.7.0",
"vscode-regexpp": "^3.1.0",
"vscode-textmate": "^9.2.1",

View File

@@ -24,7 +24,7 @@
"@xterm/xterm": "^5.6.0-beta.136",
"jschardet": "3.1.4",
"katex": "^0.16.22",
"tas-client-umd": "0.2.0",
"tas-client": "0.3.1",
"vscode-oniguruma": "1.7.0",
"vscode-textmate": "^9.2.1"
}
@@ -287,10 +287,14 @@
"node": ">8.0.0"
}
},
"node_modules/tas-client-umd": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/tas-client-umd/-/tas-client-umd-0.2.0.tgz",
"integrity": "sha512-oezN7mJVm5qZDVEby7OzxCLKUpUN5of0rY4dvOWaDF2JZBlGpd3BXceFN8B53qlTaIkVSzP65aAMT0Vc+/N25Q=="
"node_modules/tas-client": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/tas-client/-/tas-client-0.3.1.tgz",
"integrity": "sha512-Mn4+4t/KXEf8aIENeI1TkzpKIImzmG+FjPZ2dlaoGNFgxJqBE/pp3MT7nc2032EG4aS73E4OEcr2WiNaWW8mdA==",
"license": "MIT",
"engines": {
"node": ">=22"
}
},
"node_modules/tiny-inflate": {
"version": "1.0.3",

View File

@@ -19,7 +19,7 @@
"@xterm/xterm": "^5.6.0-beta.136",
"jschardet": "3.1.4",
"katex": "^0.16.22",
"tas-client-umd": "0.2.0",
"tas-client": "0.3.1",
"vscode-oniguruma": "1.7.0",
"vscode-textmate": "^9.2.1"
}

View File

@@ -5,7 +5,7 @@
import { Event } from '../../../base/common/event.js';
import * as platform from '../../../base/common/platform.js';
import type { IExperimentationFilterProvider } from 'tas-client-umd';
import type { IExperimentationFilterProvider } from 'tas-client';
export const ASSIGNMENT_STORAGE_KEY = 'VSCode.ABExp.FeatureData';
export const ASSIGNMENT_REFETCH_INTERVAL = 60 * 60 * 1000; // 1 hour

View File

@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import type { IExperimentationFilterProvider } from 'tas-client-umd';
import type { IExperimentationFilterProvider } from 'tas-client';
import { IExtensionService } from '../../extensions/common/extensions.js';
import { Disposable } from '../../../../base/common/lifecycle.js';
import { ExtensionIdentifier } from '../../../../platform/extensions/common/extensions.js';

View File

@@ -5,7 +5,7 @@
import { localize } from '../../../../nls.js';
import { createDecorator, IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
import type { IKeyValueStorage, IExperimentationTelemetry, ExperimentationService as TASClient } from 'tas-client-umd';
import type { IKeyValueStorage, IExperimentationTelemetry, ExperimentationService as TASClient } from 'tas-client';
import { Memento } from '../../../common/memento.js';
import { ITelemetryService, TelemetryLevel } from '../../../../platform/telemetry/common/telemetry.js';
import { IStorageService, StorageScope, StorageTarget } from '../../../../platform/storage/common/storage.js';
@@ -267,7 +267,7 @@ export class WorkbenchAssignmentService extends Disposable implements IAssignmen
this.tasSetupDisposables.add(extensionsFilterProvider.onDidChangeFilters(() => this.refetchAssignments()));
const tasConfig = this.productService.tasConfig!;
const tasClient = new (await importAMDNodeModule<typeof import('tas-client-umd')>('tas-client-umd', 'lib/tas-client-umd.js')).ExperimentationService({
const tasClient = new (await importAMDNodeModule<typeof import('tas-client')>('tas-client', 'dist/tas-client.min.js')).ExperimentationService({
filterProviders: [filterProvider, extensionsFilterProvider],
telemetry: this.telemetry,
storageKey: ASSIGNMENT_STORAGE_KEY,