diff --git a/docs/development.md b/docs/development.md index c8e7cae79a..548e37fa57 100644 --- a/docs/development.md +++ b/docs/development.md @@ -34,11 +34,12 @@ of VS Code's own `package.json` file for their [`electron`][] dependency. The major version of [Electron][] will tell us which [Node.js][] is included, which dictates which version of Node.js the extension is eventually run with. This lets us finally update our `@types/node` development dependency to match, our -developer machines if necessary, and the CI and OneBranch pipeline tasks. +developer machines if necessary, the CI and OneBranch pipeline tasks, and the +`.tsconfig` file. Note that the version of `@types/node` will not necessarily +exactly match the version of Node.js, but the major version should. -[`vscodeVersion`]: https://github.com/microsoft/azuredatastudio/blob/4970733324ef8254b7c22a5dc55af7f8a1dea93f/product.json#L50 -[`electron`]: https://github.com/microsoft/vscode/blob/384ff7382de624fb94dbaf6da11977bba1ecd427/package.json#L159 -[Electron]: https://www.electronjs.org/blog/electron-30-0 +[`electron`]: https://github.com/microsoft/vscode/blob/138f619c86f1199955d53b4166bef66ef252935c/package.json#L156 +[Electron]: https://releases.electronjs.org/release/v32.2.6 [Node.js]: https://nodejs.org/en/download/package-manager ### Building the Code @@ -65,7 +66,7 @@ To debug the extension use one of the provided `Launch Extension` debug configur All three templates use pre-launch tasks to build the code, and support automatic restart of the extension host on changes to the Extension source code. [Hot Reload](https://devblogs.microsoft.com/dotnet/introducing-net-hot-reload/) is also enabled for PowerShell Editor Services. -> [!WARNING] +> [!WARNING] > There is a current limitation that, if you restart the extension/extension host or it is restarted due to a extension code change, the editor services attachment will be disconnected due to the PSES terminal being terminated, and you will either need to restart the debug session completely, or do a manual build of PSES and run the `Attach to Editor Services` debug launch manually. Try the `powershell.developer.editorServicesWaitForDebugger` setting to ensure that you are fully attached before the extension startup process continues. diff --git a/package-lock.json b/package-lock.json index 82c2bd2da9..89e85d48e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "powershell", - "version": "2024.5.1", + "version": "2024.5.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "powershell", - "version": "2024.5.1", + "version": "2024.5.2", "license": "SEE LICENSE IN LICENSE.txt", "dependencies": { "@vscode/extension-telemetry": "^0.9.8", @@ -22,27 +22,28 @@ "esbuild": "^0.21.5" }, "engines": { - "vscode": "^1.94.0" + "vscode": "^1.96.0" }, "optionalDependencies": { + "@tsconfig/node20": "^20.1.4", "@types/mocha": "^10.0.10", "@types/mock-fs": "^4.13.4", - "@types/node": "^20.17.9", + "@types/node": "^20.17.14", "@types/node-fetch": "^2.6.12", "@types/rewire": "^2.5.30", "@types/semver": "^7.5.8", "@types/sinon": "^17.0.3", "@types/ungap__structured-clone": "^1.2.0", "@types/uuid": "^9.0.8", - "@types/vscode": "~1.94.0", - "@typescript-eslint/eslint-plugin": "^8.17.0", - "@typescript-eslint/parser": "^8.17.0", - "@ungap/structured-clone": "^1.2.0", + "@types/vscode": "~1.96.0", + "@typescript-eslint/eslint-plugin": "^8.20.0", + "@typescript-eslint/parser": "^8.20.0", + "@ungap/structured-clone": "^1.2.1", "@vscode/debugprotocol": "^1.68.0", "@vscode/test-electron": "^2.4.1", "eslint": "^8.57.0", "eslint-plugin-header": "^3.1.1", - "glob": "^11.0.0", + "glob": "^11.0.1", "mocha": "^10.8.2", "mocha-explorer-launcher-scripts": "^0.4.0", "mocha-multi-reporters": "^1.5.1", @@ -50,7 +51,7 @@ "rewire": "^7.0.0", "sinon": "^18.0.1", "source-map-support": "^0.5.21", - "typescript": "^5.7.2" + "typescript": "^5.7.3" } }, "node_modules/@azure/abort-controller": { @@ -95,8 +96,8 @@ } }, "node_modules/@azure/core-rest-pipeline": { - "version": "1.18.1", - "integrity": "sha1-OA59PxW+gN6D7kFBdq2zKCRALzg=", + "version": "1.18.2", + "integrity": "sha1-+jqDtBLUs+M+3KMKcbHVg4MGwHU=", "dev": true, "dependencies": { "@azure/abort-controller": "^2.0.0", @@ -136,8 +137,8 @@ } }, "node_modules/@azure/identity": { - "version": "4.5.0", - "integrity": "sha1-k843V792GgjP0F9W7xgUNeBbnhw=", + "version": "4.6.0", + "integrity": "sha1-J2lXtZ/tls9I1eUPxyjDwibk8QU=", "dev": true, "dependencies": { "@azure/abort-controller": "^2.0.0", @@ -147,7 +148,7 @@ "@azure/core-tracing": "^1.0.0", "@azure/core-util": "^1.11.0", "@azure/logger": "^1.0.0", - "@azure/msal-browser": "^3.26.1", + "@azure/msal-browser": "^4.0.1", "@azure/msal-node": "^2.15.0", "events": "^3.0.0", "jws": "^4.0.0", @@ -171,19 +172,19 @@ } }, "node_modules/@azure/msal-browser": { - "version": "3.27.0", - "integrity": "sha1-tvAvc8jhAtPxFQCbRndTn7Fz/is=", + "version": "4.0.1", + "integrity": "sha1-YNyEqAPBPGKT33tkL+oLCe/oMnY=", "dev": true, "dependencies": { - "@azure/msal-common": "14.16.0" + "@azure/msal-common": "15.0.1" }, "engines": { "node": ">=0.8.0" } }, "node_modules/@azure/msal-common": { - "version": "14.16.0", - "integrity": "sha1-80cPyux4jb5QhZlSzUmTQL2iPXo=", + "version": "15.0.1", + "integrity": "sha1-6cAZ909HXs0h3meRksujMeVLEVY=", "dev": true, "engines": { "node": ">=0.8.0" @@ -202,6 +203,14 @@ "node": ">=16" } }, + "node_modules/@azure/msal-node/node_modules/@azure/msal-common": { + "version": "14.16.0", + "integrity": "sha1-80cPyux4jb5QhZlSzUmTQL2iPXo=", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, "node_modules/@azure/msal-node/node_modules/uuid": { "version": "8.3.2", "integrity": "sha1-gNW1ztJxu5r2xEXyGhoExgbO++I=", @@ -815,15 +824,15 @@ } }, "node_modules/@nevware21/ts-async": { - "version": "0.5.3", - "integrity": "sha1-R8BDUUWLBARXl3+0t1xDwn+6MoM=", + "version": "0.5.4", + "integrity": "sha1-UvhEndCzsWqjF6GLRmL2+xOhNfE=", "dependencies": { - "@nevware21/ts-utils": ">= 0.11.5 < 2.x" + "@nevware21/ts-utils": ">= 0.11.6 < 2.x" } }, "node_modules/@nevware21/ts-utils": { - "version": "0.11.5", - "integrity": "sha1-uQD10E5lepbglqWNrW4Leu0nPvs=" + "version": "0.11.6", + "integrity": "sha1-SfQ9DEiPzxJ+9L3RNWY3CS7Qx+I=" }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", @@ -896,6 +905,11 @@ "integrity": "sha1-KCBG8D6IbjUrLV9dpet1XgFFfz8=", "optional": true }, + "node_modules/@tsconfig/node20": { + "version": "20.1.4", + "integrity": "sha1-NFfULt3xLTveOXYYarDNIrhd+Sg=", + "optional": true + }, "node_modules/@types/mocha": { "version": "10.0.10", "integrity": "sha1-kfYpBejSPL1mIlMS8jlFSiO+v6A=", @@ -910,8 +924,8 @@ } }, "node_modules/@types/node": { - "version": "20.17.9", - "integrity": "sha1-XxQdS37hJc3uX67+KN4JU5iGW6s=", + "version": "20.17.14", + "integrity": "sha1-V559de611Gt1xzyYghY55ktolgg=", "optional": true, "dependencies": { "undici-types": "~6.19.2" @@ -960,24 +974,24 @@ "optional": true }, "node_modules/@types/vscode": { - "version": "1.94.0", - "integrity": "sha1-zNIRG27KumrU2hnC1SSCj6c64lA=", + "version": "1.96.0", + "integrity": "sha1-MYEAS/JdcWd65KrN12BaP9ft8I4=", "optional": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.17.0", - "integrity": "sha1-LuBzxCH06B4C0Q5zEkFmS2JTsjw=", + "version": "8.20.0", + "integrity": "sha1-tHo5jg5VHLAIxgGQuAQ5TmhSyGM=", "optional": true, "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.17.0", - "@typescript-eslint/type-utils": "8.17.0", - "@typescript-eslint/utils": "8.17.0", - "@typescript-eslint/visitor-keys": "8.17.0", + "@typescript-eslint/scope-manager": "8.20.0", + "@typescript-eslint/type-utils": "8.20.0", + "@typescript-eslint/utils": "8.20.0", + "@typescript-eslint/visitor-keys": "8.20.0", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", - "ts-api-utils": "^1.3.0" + "ts-api-utils": "^2.0.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -988,23 +1002,19 @@ }, "peerDependencies": { "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", - "eslint": "^8.57.0 || ^9.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" } }, "node_modules/@typescript-eslint/parser": { - "version": "8.17.0", - "integrity": "sha1-LulyuxL6aaxiW4WBPcjZpaBT/1I=", + "version": "8.20.0", + "integrity": "sha1-XK8iMKNwlNwOZxz4Nrlt05tYfO0=", "optional": true, "dependencies": { - "@typescript-eslint/scope-manager": "8.17.0", - "@typescript-eslint/types": "8.17.0", - "@typescript-eslint/typescript-estree": "8.17.0", - "@typescript-eslint/visitor-keys": "8.17.0", + "@typescript-eslint/scope-manager": "8.20.0", + "@typescript-eslint/types": "8.20.0", + "@typescript-eslint/typescript-estree": "8.20.0", + "@typescript-eslint/visitor-keys": "8.20.0", "debug": "^4.3.4" }, "engines": { @@ -1015,21 +1025,17 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.17.0", - "integrity": "sha1-o/Sb89TSf/jWsuoJm6Rl7028qjo=", + "version": "8.20.0", + "integrity": "sha1-qvQZi1CfuHplJ8As+/r4kBF551w=", "optional": true, "dependencies": { - "@typescript-eslint/types": "8.17.0", - "@typescript-eslint/visitor-keys": "8.17.0" + "@typescript-eslint/types": "8.20.0", + "@typescript-eslint/visitor-keys": "8.20.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1040,14 +1046,14 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.17.0", - "integrity": "sha1-0yZWn0mM3Q7fWNW7YDC0rZFOY9M=", + "version": "8.20.0", + "integrity": "sha1-lYFx2GshOj8ytbFrkdsmeWik7xk=", "optional": true, "dependencies": { - "@typescript-eslint/typescript-estree": "8.17.0", - "@typescript-eslint/utils": "8.17.0", + "@typescript-eslint/typescript-estree": "8.20.0", + "@typescript-eslint/utils": "8.20.0", "debug": "^4.3.4", - "ts-api-utils": "^1.3.0" + "ts-api-utils": "^2.0.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1057,17 +1063,13 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" } }, "node_modules/@typescript-eslint/types": { - "version": "8.17.0", - "integrity": "sha1-74THCe+DJOdmh4g0lwvqmn47cs8=", + "version": "8.20.0", + "integrity": "sha1-SH3lMUtUFd7gdelVaLh6daPnMM8=", "optional": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1078,18 +1080,18 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.17.0", - "integrity": "sha1-QLWQO8kpsejdnHfbPLUs+xmaKjQ=", + "version": "8.20.0", + "integrity": "sha1-ZYzqB7flmB8ZvOXPFmLLcK1Z8ms=", "optional": true, "dependencies": { - "@typescript-eslint/types": "8.17.0", - "@typescript-eslint/visitor-keys": "8.17.0", + "@typescript-eslint/types": "8.20.0", + "@typescript-eslint/visitor-keys": "8.20.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" + "ts-api-utils": "^2.0.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1098,21 +1100,19 @@ "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "peerDependencies": { + "typescript": ">=4.8.4 <5.8.0" } }, "node_modules/@typescript-eslint/utils": { - "version": "8.17.0", - "integrity": "sha1-QcBRBaK2q3WS9RPS7rLCwCNtiQg=", + "version": "8.20.0", + "integrity": "sha1-UxJ+zTFLOwiDa0SYtxzbhvTvOqI=", "optional": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.17.0", - "@typescript-eslint/types": "8.17.0", - "@typescript-eslint/typescript-estree": "8.17.0" + "@typescript-eslint/scope-manager": "8.20.0", + "@typescript-eslint/types": "8.20.0", + "@typescript-eslint/typescript-estree": "8.20.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1122,20 +1122,16 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.17.0", - "integrity": "sha1-TbzQ4oub+VH0KTgFvzT5jfReGqg=", + "version": "8.20.0", + "integrity": "sha1-LfbiS8aQhLgfBqqqSNGYsQ04K+0=", "optional": true, "dependencies": { - "@typescript-eslint/types": "8.17.0", + "@typescript-eslint/types": "8.20.0", "eslint-visitor-keys": "^4.2.0" }, "engines": { @@ -1158,8 +1154,8 @@ } }, "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "integrity": "sha1-dWZBrbWHhRtcyz4JXa8nrlgchAY=", + "version": "1.2.1", + "integrity": "sha1-KPoYX2far3t6GowdRFEyxdl5+L0=", "optional": true }, "node_modules/@vscode/debugprotocol": { @@ -1399,12 +1395,9 @@ } }, "node_modules/agent-base": { - "version": "7.1.1", - "integrity": "sha1-vb3tffsJa3UaKgh+7rlmRyWy4xc=", + "version": "7.1.3", + "integrity": "sha1-KUNeuCG8QZRjOluJ5bxHA7r8JaE=", "devOptional": true, - "dependencies": { - "debug": "^4.3.4" - }, "engines": { "node": ">= 14" } @@ -1608,16 +1601,25 @@ "integrity": "sha1-KxRqb9cugLT1XSVfNe1Zo6mkG9U=", "optional": true }, - "node_modules/call-bind": { - "version": "1.0.7", - "integrity": "sha1-BgFlmcQMVkmMGHadJzC+JCtvo7k=", + "node_modules/call-bind-apply-helpers": { + "version": "1.0.1", + "integrity": "sha1-MuWJLmNhspsLVFum93YzeNrKKEA=", "dev": true, "dependencies": { - "es-define-property": "^1.0.0", "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.3", + "integrity": "sha1-Qc/QMrWT45F2pxUzq084SqBP1oE=", + "dev": true, + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "get-intrinsic": "^1.2.6" }, "engines": { "node": ">= 0.4" @@ -1927,8 +1929,8 @@ } }, "node_modules/debug": { - "version": "4.3.7", - "integrity": "sha1-h5RbQVGgEddtlaGY1xEchlw2ClI=", + "version": "4.4.0", + "integrity": "sha1-Kz8q6i/+t3ZHdGAmc3fchxD6uoo=", "devOptional": true, "dependencies": { "ms": "^2.1.3" @@ -1982,22 +1984,6 @@ "integrity": "sha1-pvLc5hL63S7x9Rm3NVHxfoUZmDE=", "optional": true }, - "node_modules/define-data-property": { - "version": "1.1.4", - "integrity": "sha1-iU3BQbt9MGCuQ2b2oBB+aPvkjF4=", - "dev": true, - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/define-lazy-prop": { "version": "2.0.0", "integrity": "sha1-P3rkIRKbyqrJvHSQXJigAJ7J7n8=", @@ -2081,8 +2067,8 @@ } }, "node_modules/domutils": { - "version": "3.1.0", - "integrity": "sha1-xH9VEnjT3EsLGrjLtC11Gm8Ngk4=", + "version": "3.2.2", + "integrity": "sha1-7b/itmiwwdl8JLrw8QYrEyIhvHg=", "dev": true, "dependencies": { "dom-serializer": "^2.0.0", @@ -2093,6 +2079,19 @@ "url": "https://github.com/fb55/domutils?sponsor=1" } }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "integrity": "sha1-165mfh3INIL4tw/Q9u78UNow9Yo=", + "dev": true, + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/eastasianwidth": { "version": "0.2.0", "integrity": "sha1-aWzi7Aqg5uqTo5f/zySqeEDIJ8s=", @@ -2144,12 +2143,9 @@ } }, "node_modules/es-define-property": { - "version": "1.0.0", - "integrity": "sha1-x/rvvf+LJpbPX0aSHt+3fMS6OEU=", + "version": "1.0.1", + "integrity": "sha1-mD6y+aZyTpMD9hrd8BHHLgngsPo=", "dev": true, - "dependencies": { - "get-intrinsic": "^1.2.4" - }, "engines": { "node": ">= 0.4" } @@ -2162,6 +2158,17 @@ "node": ">= 0.4" } }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "integrity": "sha1-HE8sSDcydZfOadLKGQp/3RcjOME=", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/esbuild": { "version": "0.21.5", "integrity": "sha1-nKMBsSCSKVm3ZjYNisgw2g0CmX0=", @@ -2475,15 +2482,15 @@ "optional": true }, "node_modules/fast-glob": { - "version": "3.3.2", - "integrity": "sha1-qQRQHlfP3S/83tRemaVP71XkYSk=", + "version": "3.3.3", + "integrity": "sha1-0G1YXOjbqQoWsFBcVDw8z7OuuBg=", "optional": true, "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", - "micromatch": "^4.0.4" + "micromatch": "^4.0.8" }, "engines": { "node": ">=8.6.0" @@ -2511,8 +2518,8 @@ "optional": true }, "node_modules/fastq": { - "version": "1.17.1", - "integrity": "sha1-KlI/B6TnsegaQrkbi/IlQQd1O0c=", + "version": "1.18.0", + "integrity": "sha1-1jHX4l+v/qgYh/5eqMkBDhs2/uA=", "optional": true, "dependencies": { "reusify": "^1.0.4" @@ -2657,15 +2664,20 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.4", - "integrity": "sha1-44X1pLUifUScPqu60FSU7wq76t0=", + "version": "1.2.7", + "integrity": "sha1-3PyzPTJy4V9EXRUSS8CiFhibkEQ=", "dev": true, "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-define-property": "^1.0.1", "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" + "get-proto": "^1.0.0", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -2674,6 +2686,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/get-proto": { + "version": "1.0.1", + "integrity": "sha1-FQs/J0OGnvPoUewMSdFbHRTQDuE=", + "dev": true, + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/github-from-package": { "version": "0.0.0", "integrity": "sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=", @@ -2681,8 +2705,8 @@ "optional": true }, "node_modules/glob": { - "version": "11.0.0", - "integrity": "sha1-YDHfDXtl6qHMubKbXO0WzqZY534=", + "version": "11.0.1", + "integrity": "sha1-HDrvmlnWgOYRtT3NJLuGOc7wZNk=", "devOptional": true, "dependencies": { "foreground-child": "^3.1.0", @@ -2742,12 +2766,9 @@ } }, "node_modules/gopd": { - "version": "1.1.0", - "integrity": "sha1-348IOcLUjK78MqAlpJKU05YGyRI=", + "version": "1.2.0", + "integrity": "sha1-ifVrghe9vIgCvSmd9tfxCB1+UaE=", "dev": true, - "dependencies": { - "get-intrinsic": "^1.2.4" - }, "engines": { "node": ">= 0.4" }, @@ -2768,31 +2789,6 @@ "node": ">=4" } }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "integrity": "sha1-lj7X0HHce/XwhMW/vg0bYiJYaFQ=", - "dev": true, - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.1.0", - "integrity": "sha1-3rEElMu+iAm84WijuWH0KWn17UM=", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/has-symbols": { "version": "1.1.0", "integrity": "sha1-/JxqeDoISVHQuXH+EBjegTcHozg=", @@ -2865,11 +2861,11 @@ } }, "node_modules/https-proxy-agent": { - "version": "7.0.5", - "integrity": "sha1-notQE4cymeEfq2/VSEBdotbGArI=", + "version": "7.0.6", + "integrity": "sha1-2o3+rH2hMLBcK6S1nJts1mYRprk=", "devOptional": true, "dependencies": { - "agent-base": "^7.0.2", + "agent-base": "^7.1.2", "debug": "4" }, "engines": { @@ -3426,6 +3422,14 @@ "markdown-it": "bin/markdown-it.mjs" } }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "integrity": "sha1-oN10voHiqlwvJ+Zc4oNgXuTit/k=", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/mdurl": { "version": "2.0.0", "integrity": "sha1-gGduwEMwJd0+F+6YPQ/o3loiN+A=", @@ -3707,8 +3711,8 @@ } }, "node_modules/node-abi": { - "version": "3.71.0", - "integrity": "sha1-UthLvNhXXvtxRo+6ofmkmywkIDg=", + "version": "3.73.0", + "integrity": "sha1-RFnqd+cZae26hYg4fuywXiws/zs=", "dev": true, "optional": true, "dependencies": { @@ -3860,8 +3864,8 @@ } }, "node_modules/ora/node_modules/chalk": { - "version": "5.3.0", - "integrity": "sha1-Z8IKfr73Dn85cKAfkPohDLaGA4U=", + "version": "5.4.1", + "integrity": "sha1-G0i/CWPsFY3OKqz2nAk64t0gktg=", "optional": true, "engines": { "node": "^12.17.0 || ^14.13 || >=16.0.0" @@ -4167,11 +4171,11 @@ } }, "node_modules/qs": { - "version": "6.13.1", - "integrity": "sha1-POX8cr06gXG4XJm5PGXdILfRsW4=", + "version": "6.14.0", + "integrity": "sha1-xj+kBoDSxclBQSoOiZyJr2DAqTA=", "dev": true, "dependencies": { - "side-channel": "^1.0.6" + "side-channel": "^1.1.0" }, "engines": { "node": ">=0.6" @@ -4256,11 +4260,6 @@ "util-deprecate": "~1.0.1" } }, - "node_modules/readable-stream/node_modules/safe-buffer": { - "version": "5.1.2", - "integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0=", - "optional": true - }, "node_modules/readdirp": { "version": "3.6.0", "integrity": "sha1-dKNwvYVxFuJFspzJc0DNQxoCpsc=", @@ -4401,23 +4400,9 @@ } }, "node_modules/safe-buffer": { - "version": "5.2.1", - "integrity": "sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY=", - "devOptional": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "version": "5.1.2", + "integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0=", + "devOptional": true }, "node_modules/safer-buffer": { "version": "2.1.2", @@ -4447,22 +4432,6 @@ "randombytes": "^2.1.0" } }, - "node_modules/set-function-length": { - "version": "1.2.2", - "integrity": "sha1-qscjFBmOrtl1z3eyw7a4gGleVEk=", - "dev": true, - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/setimmediate": { "version": "1.0.5", "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", @@ -4488,14 +4457,65 @@ } }, "node_modules/side-channel": { - "version": "1.0.6", - "integrity": "sha1-q9Jft80kuvRUZkBrEJa3gxySFfI=", + "version": "1.1.0", + "integrity": "sha1-w/z/nE2pMnhIczNeyXZfqU/2a8k=", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "integrity": "sha1-EMtZhCYxFdO3oOM2WR4pCoMK+K0=", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "integrity": "sha1-1rtrN5Asb+9RdOX1M/q0xzKib0I=", + "dev": true, + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "integrity": "sha1-Ed2hnVNo5Azp7CvcH7DsvAeQ7Oo=", "dev": true, "dependencies": { - "call-bind": "^1.0.7", + "call-bound": "^1.0.2", "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4", - "object-inspect": "^1.13.1" + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" }, "engines": { "node": ">= 0.4" @@ -4655,11 +4675,6 @@ "safe-buffer": "~5.1.0" } }, - "node_modules/string_decoder/node_modules/safe-buffer": { - "version": "5.1.2", - "integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0=", - "optional": true - }, "node_modules/string-width": { "version": "5.1.2", "integrity": "sha1-FPja7G2B5yIdKjV+Zoyrc728p5Q=", @@ -4766,8 +4781,8 @@ } }, "node_modules/tar-fs": { - "version": "2.1.1", - "integrity": "sha1-SJoVq4Xx8L76uzcLfeT561y+h4Q=", + "version": "2.1.2", + "integrity": "sha1-Ql8VTzQEyxbLj/bmcdRasu2VlsU=", "dev": true, "optional": true, "dependencies": { @@ -4876,14 +4891,14 @@ "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" }, "node_modules/ts-api-utils": { - "version": "1.4.3", - "integrity": "sha1-v8IhX+ZSj+yrKw+6VwouikJjsGQ=", + "version": "2.0.0", + "integrity": "sha1-udfV9+yfc29NDwl1i4YHl5BEqQA=", "optional": true, "engines": { - "node": ">=16" + "node": ">=18.12" }, "peerDependencies": { - "typescript": ">=4.2.0" + "typescript": ">=4.8.4" } }, "node_modules/tslib": { @@ -4951,8 +4966,8 @@ } }, "node_modules/typescript": { - "version": "5.7.2", - "integrity": "sha1-MWnPjEyKgozeU7qeyz0rHV3We+Y=", + "version": "5.7.3", + "integrity": "sha1-kZtEp9u4WDqbhW0WK+JKVL+ABz4=", "optional": true, "bin": { "tsc": "bin/tsc", @@ -4973,8 +4988,8 @@ "dev": true }, "node_modules/undici": { - "version": "6.21.0", - "integrity": "sha1-Sz06+u+YTge0jnYgw07YooXtTNQ=", + "version": "6.21.1", + "integrity": "sha1-M2AloUFi5oN+RK17gZs1tsavDgU=", "dev": true, "engines": { "node": ">=18.17" diff --git a/package.json b/package.json index 208a191649..30c7a9a94a 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.94.0" + "vscode": "^1.96.0" }, "author": "Microsoft Corporation", "license": "SEE LICENSE IN LICENSE.txt", @@ -73,24 +73,25 @@ "esbuild": "^0.21.5" }, "optionalDependencies": { + "@tsconfig/node20": "^20.1.4", "@types/mocha": "^10.0.10", "@types/mock-fs": "^4.13.4", - "@types/node": "^20.17.9", + "@types/node": "^20.17.14", "@types/node-fetch": "^2.6.12", "@types/rewire": "^2.5.30", "@types/semver": "^7.5.8", "@types/sinon": "^17.0.3", "@types/ungap__structured-clone": "^1.2.0", "@types/uuid": "^9.0.8", - "@types/vscode": "~1.94.0", - "@typescript-eslint/eslint-plugin": "^8.17.0", - "@typescript-eslint/parser": "^8.17.0", - "@ungap/structured-clone": "^1.2.0", + "@types/vscode": "~1.96.0", + "@typescript-eslint/eslint-plugin": "^8.20.0", + "@typescript-eslint/parser": "^8.20.0", + "@ungap/structured-clone": "^1.2.1", "@vscode/debugprotocol": "^1.68.0", "@vscode/test-electron": "^2.4.1", "eslint": "^8.57.0", "eslint-plugin-header": "^3.1.1", - "glob": "^11.0.0", + "glob": "^11.0.1", "mocha": "^10.8.2", "mocha-explorer-launcher-scripts": "^0.4.0", "mocha-multi-reporters": "^1.5.1", @@ -98,7 +99,7 @@ "rewire": "^7.0.0", "sinon": "^18.0.1", "source-map-support": "^0.5.21", - "typescript": "^5.7.2" + "typescript": "^5.7.3" }, "extensionDependencies": [ "vscode.powershell" diff --git a/tsconfig.json b/tsconfig.json index 3d2b64d81a..638345adf1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,22 +1,15 @@ +// NOTE: The TypeScript compiler is only used for building the tests (and +// the sources which the tests need). The extension is built with `esbuild`. { + "extends": "@tsconfig/node20/tsconfig.json", "compilerOptions": { - // NOTE: The TypeScript compiler is only used for building the tests (and - // the sources which the tests need). The extension is built with `esbuild`. - "module": "commonjs", - "target": "ES2022", - "lib": [ - "ES2022", - "DOM" - ], "sourceMap": true, "rootDir": ".", - "strict": true, "noFallthroughCasesInSwitch": true, "noImplicitOverride": true, "noImplicitReturns": true, "noUnusedLocals": true, "noUnusedParameters": true, - "esModuleInterop": true, "allowSyntheticDefaultImports": true, "useUnknownInCatchVariables": true },