diff --git a/package-lock.json b/package-lock.json index 993b41a621..665b6846ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,6 @@ "license": "SEE LICENSE IN LICENSE.txt", "dependencies": { "@vscode/extension-telemetry": "^0.9.9", - "node-fetch": "^2.7.0", "semver": "^7.7.2", "untildify": "^4.0.0", "uuid": "^9.0.1", @@ -22,18 +21,17 @@ "esbuild": "^0.25.4" }, "engines": { - "vscode": "^1.96.0" + "vscode": "^1.101.0" }, "optionalDependencies": { "@eslint/js": "^9.26.0", "@types/mock-fs": "^4.13.4", - "@types/node": "^20.17.47", - "@types/node-fetch": "^2.6.12", + "@types/node": "^22.15.1", "@types/semver": "^7.7.0", "@types/sinon": "^17.0.4", "@types/ungap__structured-clone": "^1.2.0", "@types/uuid": "^9.0.8", - "@types/vscode": "~1.96.0", + "@types/vscode": "~1.101.0", "@ungap/structured-clone": "^1.3.0", "@vscode/debugprotocol": "^1.68.0", "@vscode/test-cli": "^0.0.10", @@ -1162,22 +1160,12 @@ } }, "node_modules/@types/node": { - "version": "20.17.47", - "integrity": "sha1-+cs3WZP//a5gnI4X0rPdjTxL+hQ=", + "version": "22.15.31", + "integrity": "sha1-RU8R4gYRUBNcg1PX87Oxgj/Knz8=", "license": "MIT", "optional": true, "dependencies": { - "undici-types": "~6.19.2" - } - }, - "node_modules/@types/node-fetch": { - "version": "2.6.12", - "integrity": "sha1-irXD74Mw8TEAp0eeLNVtM4aDCgM=", - "license": "MIT", - "optional": true, - "dependencies": { - "@types/node": "*", - "form-data": "^4.0.0" + "undici-types": "~6.21.0" } }, "node_modules/@types/semver": { @@ -1213,12 +1201,6 @@ "license": "MIT", "optional": true }, - "node_modules/@types/vscode": { - "version": "1.96.0", - "integrity": "sha1-MYEAS/JdcWd65KrN12BaP9ft8I4=", - "license": "MIT", - "optional": true - }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "8.32.1", "integrity": "sha1-kYWz6qOwg9gxiRDhLVbGizxPRbQ=", @@ -2139,7 +2121,7 @@ "node_modules/asynckit": { "version": "0.4.0", "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/azure-devops-node-api": { @@ -2609,7 +2591,7 @@ "node_modules/combined-stream": { "version": "1.0.8", "integrity": "sha1-w9RaizT9cwYxoRCoolIGgrMdWn8=", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "delayed-stream": "~1.0.0" @@ -2843,7 +2825,7 @@ "node_modules/delayed-stream": { "version": "1.0.0", "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "devOptional": true, + "dev": true, "license": "MIT", "engines": { "node": ">=0.4.0" @@ -3063,7 +3045,7 @@ "node_modules/es-set-tostringtag": { "version": "2.1.0", "integrity": "sha1-8x274MGDsAptJutjJcgQwP0YvU0=", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -3738,7 +3720,7 @@ "node_modules/form-data": { "version": "4.0.2", "integrity": "sha1-Ncq73TDDznPessQtPI0+2cpReUw=", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "asynckit": "^0.4.0", @@ -3978,7 +3960,7 @@ "node_modules/has-tostringtag": { "version": "1.0.2", "integrity": "sha1-LNxC1AvvLltO6rfAGnPFTOerWrw=", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "has-symbols": "^1.0.3" @@ -4848,7 +4830,7 @@ "node_modules/mime-db": { "version": "1.52.0", "integrity": "sha1-u6vNwChZ9JhzAchW4zh85exDv3A=", - "devOptional": true, + "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -4857,7 +4839,7 @@ "node_modules/mime-types": { "version": "2.1.35", "integrity": "sha1-OBqHG2KnNEUGYK497uRIE/cNlZo=", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "mime-db": "1.52.0" @@ -5008,25 +4990,6 @@ "license": "MIT", "optional": true }, - "node_modules/node-fetch": { - "version": "2.7.0", - "integrity": "sha1-0PD6bj4twdJ+/NitmdVQvalNGH0=", - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, "node_modules/normalize-path": { "version": "3.0.0", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", @@ -6433,11 +6396,6 @@ "node": ">=0.6" } }, - "node_modules/tr46": { - "version": "0.0.3", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", - "license": "MIT" - }, "node_modules/ts-api-utils": { "version": "2.1.0", "integrity": "sha1-WV9wlORu7TZME/0j51+VE9Kbr5E=", @@ -6601,8 +6559,8 @@ } }, "node_modules/undici-types": { - "version": "6.19.8", - "integrity": "sha1-NREcnRQ3q4OnzcCrri8m2I7aCgI=", + "version": "6.21.0", + "integrity": "sha1-aR0ArzkJvpOn+qE75hs6W1DvEss=", "license": "MIT", "optional": true }, @@ -6725,11 +6683,6 @@ "integrity": "sha1-MnNnbwzy6rQLP0TQhay7fwijnYo=", "license": "MIT" }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=", - "license": "BSD-2-Clause" - }, "node_modules/whatwg-encoding": { "version": "3.1.1", "integrity": "sha1-0PTvdpkF1CbhaI8+NDgambYLduU=", @@ -6751,15 +6704,6 @@ "node": ">=18" } }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, "node_modules/which": { "version": "2.0.2", "integrity": "sha1-fGqN0KY2oDJ+ELWckobu6T8/UbE=", diff --git a/package.json b/package.json index 9d3dba87a6..b66f4f8934 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "publisher": "ms-vscode", "description": "Develop PowerShell modules, commands and scripts in Visual Studio Code!", "engines": { - "vscode": "^1.96.0" + "vscode": "^1.101.0" }, "author": "Microsoft Corporation", "license": "SEE LICENSE IN LICENSE.txt", @@ -61,7 +61,6 @@ ], "dependencies": { "@vscode/extension-telemetry": "^0.9.9", - "node-fetch": "^2.7.0", "semver": "^7.7.2", "untildify": "^4.0.0", "uuid": "^9.0.1", @@ -75,13 +74,12 @@ "optionalDependencies": { "@eslint/js": "^9.26.0", "@types/mock-fs": "^4.13.4", - "@types/node": "^20.17.47", - "@types/node-fetch": "^2.6.12", + "@types/node": "^22.15.1", "@types/semver": "^7.7.0", "@types/sinon": "^17.0.4", "@types/ungap__structured-clone": "^1.2.0", "@types/uuid": "^9.0.8", - "@types/vscode": "~1.96.0", + "@types/vscode": "~1.101.0", "@ungap/structured-clone": "^1.3.0", "@vscode/debugprotocol": "^1.68.0", "@vscode/test-cli": "^0.0.10", diff --git a/src/features/UpdatePowerShell.ts b/src/features/UpdatePowerShell.ts index acd3434fb5..0ed6219976 100644 --- a/src/features/UpdatePowerShell.ts +++ b/src/features/UpdatePowerShell.ts @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import fetch from "node-fetch"; import { SemVer } from "semver"; import vscode = require("vscode"); @@ -112,7 +111,7 @@ export class UpdatePowerShell { } // Looks like: // { - // "ReleaseDate": "2022-10-20T22:01:38Z", + // "ReleaseDate": "2022-10-fetc20T22:01:38Z", // "BlobName": "v7-2-7", // "ReleaseTag": "v7.2.7" // }