From b221de34f87807bfee2780715173be6a89f9a72d Mon Sep 17 00:00:00 2001 From: Logan Ramos Date: Fri, 22 Mar 2024 10:44:30 -0700 Subject: [PATCH] Update packages --- package-lock.json | 80 +++++++++++++++++----------------- package.json | 8 ++-- src/common/1dsClientFactory.ts | 17 +------- 3 files changed, 45 insertions(+), 60 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5d3e1b0..5279616 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,17 @@ { "name": "@vscode/extension-telemetry", - "version": "0.9.5", + "version": "0.9.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@vscode/extension-telemetry", - "version": "0.9.5", + "version": "0.9.6", "license": "MIT", "dependencies": { - "@microsoft/1ds-core-js": "^4.0.6", - "@microsoft/1ds-post-js": "^4.0.6", - "@microsoft/applicationinsights-web-basic": "^3.0.8" + "@microsoft/1ds-core-js": "^4.1.2", + "@microsoft/1ds-post-js": "^4.1.2", + "@microsoft/applicationinsights-web-basic": "^3.1.2" }, "devDependencies": { "@types/mocha": "^10.0.3", @@ -129,68 +129,68 @@ "dev": true }, "node_modules/@microsoft/1ds-core-js": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@microsoft/1ds-core-js/-/1ds-core-js-4.1.1.tgz", - "integrity": "sha512-xCIWuvyAmCCW7qZofnLKXjz6KInrtBfm21jjOXFTDq3UT9MrdWij1XwsWnK2Up3XOpDzJrNLkpn4A8H6Okls/g==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/@microsoft/1ds-core-js/-/1ds-core-js-4.1.2.tgz", + "integrity": "sha512-m1MeUdPtDqq4D7qmirMBgiHQNQs8wkUoTxA44RTtki6kup8cF1c4WYXsxvHJ8R4C/wbm+HRM9PxBqI5JH3d58Q==", "dependencies": { - "@microsoft/applicationinsights-core-js": "3.1.1", + "@microsoft/applicationinsights-core-js": "3.1.2", "@microsoft/applicationinsights-shims": "3.0.1", "@microsoft/dynamicproto-js": "^2.0.3", "@nevware21/ts-async": ">= 0.3.0 < 2.x", - "@nevware21/ts-utils": ">= 0.10.5 < 2.x" + "@nevware21/ts-utils": ">= 0.11.0 < 2.x" } }, "node_modules/@microsoft/1ds-post-js": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@microsoft/1ds-post-js/-/1ds-post-js-4.1.1.tgz", - "integrity": "sha512-yC7MOxJNibzMAyPr9TnBIS1+OLzqYj54Tr8p6Zje7tu9nb7cKh1a8KNyaIyxnuwPXKkWb+2YzTWLkC3clZCKiA==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/@microsoft/1ds-post-js/-/1ds-post-js-4.1.2.tgz", + "integrity": "sha512-rfuILnEZqXtZaPQf+WRF/zYZ6V0Dxh0W9lWiVM9aY2Enuh8fEvbjeeXGk0n/jGXeko/bLXevmOaMrZw9x1pIVw==", "dependencies": { - "@microsoft/1ds-core-js": "4.1.1", + "@microsoft/1ds-core-js": "4.1.2", "@microsoft/applicationinsights-shims": "3.0.1", "@microsoft/dynamicproto-js": "^2.0.3", "@nevware21/ts-async": ">= 0.3.0 < 2.x", - "@nevware21/ts-utils": ">= 0.10.5 < 2.x" + "@nevware21/ts-utils": ">= 0.11.0 < 2.x" } }, "node_modules/@microsoft/applicationinsights-channel-js": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-channel-js/-/applicationinsights-channel-js-3.1.1.tgz", - "integrity": "sha512-HhEkcGAkXLoCCcNcpAomZiHYSjl6Y33l3oVqVRvwNj3E9T8e6zNFFtO3/iuqfuAOgDO3/adBFm5Tb5nIGPgu2g==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-channel-js/-/applicationinsights-channel-js-3.1.2.tgz", + "integrity": "sha512-QyPxpOOhtohFzcl4tzfWp4seN6JaToF66DZ1qjsYkUmEyHAackWSsv9m7qvuaAcCB9WrUzW9y0mRXgGKsEJcAg==", "dependencies": { - "@microsoft/applicationinsights-common": "3.1.1", - "@microsoft/applicationinsights-core-js": "3.1.1", + "@microsoft/applicationinsights-common": "3.1.2", + "@microsoft/applicationinsights-core-js": "3.1.2", "@microsoft/applicationinsights-shims": "3.0.1", "@microsoft/dynamicproto-js": "^2.0.3", "@nevware21/ts-async": ">= 0.3.0 < 2.x", - "@nevware21/ts-utils": ">= 0.10.5 < 2.x" + "@nevware21/ts-utils": ">= 0.11.0 < 2.x" }, "peerDependencies": { "tslib": "*" } }, "node_modules/@microsoft/applicationinsights-common": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-common/-/applicationinsights-common-3.1.1.tgz", - "integrity": "sha512-rhLP+l+y1b7K3fjIf9wUHOPjouzMdyOpFdQHntDiHewU7YMUOEzco5c5UUAnTGixOUh9cE/Xnf7F3/PWTtGyuw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-common/-/applicationinsights-common-3.1.2.tgz", + "integrity": "sha512-ivu3s73xt6Owakepnx2mbrMCry1mVHrA/2TL4nKCRLad6O3IBK3MkruMoeb3hoWpECBhErFRVj+/b0Kh7dl/Lw==", "dependencies": { - "@microsoft/applicationinsights-core-js": "3.1.1", + "@microsoft/applicationinsights-core-js": "3.1.2", "@microsoft/applicationinsights-shims": "3.0.1", "@microsoft/dynamicproto-js": "^2.0.3", - "@nevware21/ts-utils": ">= 0.10.5 < 2.x" + "@nevware21/ts-utils": ">= 0.11.0 < 2.x" }, "peerDependencies": { "tslib": "*" } }, "node_modules/@microsoft/applicationinsights-core-js": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-core-js/-/applicationinsights-core-js-3.1.1.tgz", - "integrity": "sha512-vLuTrqUgXmmNBWqrLsbhp9rdc9WZrJ1jInswA0ozPomKt32WIPO1WJ8OrG3qY8FQ+rJDsrjTIy4naHP0qZpDEA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-core-js/-/applicationinsights-core-js-3.1.2.tgz", + "integrity": "sha512-xsJAm52tV355S/MogTunV/m1wg6P6tFg9Yhi4AC2OE9p2aa0k/FYHzWmrCrsEAVimCd8n/iTXmMRSrQk5QpxiA==", "dependencies": { "@microsoft/applicationinsights-shims": "3.0.1", "@microsoft/dynamicproto-js": "^2.0.3", "@nevware21/ts-async": ">= 0.3.0 < 2.x", - "@nevware21/ts-utils": ">= 0.10.5 < 2.x" + "@nevware21/ts-utils": ">= 0.11.0 < 2.x" }, "peerDependencies": { "tslib": "*" @@ -205,17 +205,17 @@ } }, "node_modules/@microsoft/applicationinsights-web-basic": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-web-basic/-/applicationinsights-web-basic-3.1.1.tgz", - "integrity": "sha512-/3D0ggfrFEMzI8dw+qEHlAhDH9vT5Mdv655ztNgvX3aSn/TsRpYJmN23zvP7azCioBfhD8T9zWcotkDN2lvtDQ==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-web-basic/-/applicationinsights-web-basic-3.1.2.tgz", + "integrity": "sha512-NUnAk/ML9ClnmiQQRo3Fq2obzJVZAfGTgkQOwobZMvNhBVK5IPuv/ROEEAVbl02Go9AjV5uCZ+QoRhTfWrIumQ==", "dependencies": { - "@microsoft/applicationinsights-channel-js": "3.1.1", - "@microsoft/applicationinsights-common": "3.1.1", - "@microsoft/applicationinsights-core-js": "3.1.1", + "@microsoft/applicationinsights-channel-js": "3.1.2", + "@microsoft/applicationinsights-common": "3.1.2", + "@microsoft/applicationinsights-core-js": "3.1.2", "@microsoft/applicationinsights-shims": "3.0.1", "@microsoft/dynamicproto-js": "^2.0.3", "@nevware21/ts-async": ">= 0.3.0 < 2.x", - "@nevware21/ts-utils": ">= 0.10.5 < 2.x" + "@nevware21/ts-utils": ">= 0.11.0 < 2.x" }, "peerDependencies": { "tslib": "*" @@ -238,9 +238,9 @@ } }, "node_modules/@nevware21/ts-utils": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/@nevware21/ts-utils/-/ts-utils-0.10.5.tgz", - "integrity": "sha512-+TEvP0+l/VBR5bJZoYFV+o6aQQ1O6y80uys5AVyyCKeWvrgWu/yNydqSBQNsk4BuEfkayg7R9+HCJRRRIvptTA==" + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@nevware21/ts-utils/-/ts-utils-0.11.0.tgz", + "integrity": "sha512-3yrohCSKYBLKrW41fYkZorN2rf9GYr/4Cb4Xu9fWCyXgVDyt1uLgMaCinhx0kEkEUfME3Smqs+2itJRhXgCo8Q==" }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", diff --git a/package.json b/package.json index 3e16c48..393d1d2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@vscode/extension-telemetry", "description": "A module for Visual Studio Code extensions to report consistent telemetry.", - "version": "0.9.5", + "version": "0.9.6", "author": { "name": "Microsoft Corporation" }, @@ -20,9 +20,9 @@ "compile": "tsc -p src/browser/tsconfig.json && tsc -p src/node/tsconfig.json" }, "dependencies": { - "@microsoft/1ds-core-js": "^4.0.6", - "@microsoft/1ds-post-js": "^4.0.6", - "@microsoft/applicationinsights-web-basic": "^3.0.8" + "@microsoft/1ds-core-js": "^4.1.2", + "@microsoft/1ds-post-js": "^4.1.2", + "@microsoft/applicationinsights-web-basic": "^3.1.2" }, "devDependencies": { "@types/mocha": "^10.0.3", diff --git a/src/common/1dsClientFactory.ts b/src/common/1dsClientFactory.ts index c30a087..d8f629a 100644 --- a/src/common/1dsClientFactory.ts +++ b/src/common/1dsClientFactory.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import type { AppInsightsCore, IExtendedConfiguration, IPerfManager } from "@microsoft/1ds-core-js"; +import type { AppInsightsCore, IExtendedConfiguration } from "@microsoft/1ds-core-js"; import type { IChannelConfiguration, IXHROverride, PostChannel } from "@microsoft/1ds-post-js"; import type * as vscode from "vscode"; import type { BaseTelemetryClient } from "./baseTelemetrySender"; @@ -21,18 +21,6 @@ const getAICore = async (key: string, vscodeAPI: typeof vscode, xhrOverride?: IX const appInsightsCore = new oneDs.AppInsightsCore(); const collectorChannelPlugin: PostChannel = new postPlugin.PostChannel(); - // Dummy perf manager to fix memory leaks - const perfManager: IPerfManager = { - create: function (_src, _payload, _isAsync) { - return null; - }, - fire: function (_perfEvent) { - }, - setCtx: function (_key, _value) { - }, - getCtx: function (_key) { - } - }; // Configure the app insights core to send to collector++ and disable logging of debug info const coreConfig: IExtendedConfiguration = { instrumentationKey: key, @@ -41,9 +29,6 @@ const getAICore = async (key: string, vscodeAPI: typeof vscode, xhrOverride?: IX loggingLevelConsole: 0, disableCookiesUsage: true, disableDbgExt: true, - createPerfMgr: () => { - return perfManager; - }, disableInstrumentationKeyValidation: true, channels: [[ collectorChannelPlugin