diff --git a/vscode/package.json b/vscode/package.json index 1b2ba4120..6932d9344 100644 --- a/vscode/package.json +++ b/vscode/package.json @@ -732,7 +732,7 @@ "@shopify/eslint-plugin": "^46.0.0", "@shopify/prettier-config": "^1.1.2", "@types/glob": "^8.1.0", - "@types/mocha": "^10.0.9", + "@types/mocha": "^10.0.10", "@types/node": "22.x", "@types/sinon": "^17.0.3", "@types/vscode": "^1.91.0", @@ -746,9 +746,9 @@ "eslint-plugin-prettier": "^5.2.1", "glob": "^11.0.0", "mocha": "^10.8.2", - "ovsx": "^0.10.0", + "ovsx": "^0.10.1", "prettier": "^3.3.3", - "typescript": "^5.6.3", + "typescript": "^5.7.2", "sinon": "^19.0.2", "vscode-oniguruma": "^2.0.1", "vscode-textmate": "^9.1.0" diff --git a/vscode/src/test/suite/grammars.test.ts b/vscode/src/test/suite/grammars.test.ts index 6cc2065f4..de4d44430 100644 --- a/vscode/src/test/suite/grammars.test.ts +++ b/vscode/src/test/suite/grammars.test.ts @@ -96,16 +96,18 @@ suite("Grammars", () => { "./node_modules/vscode-oniguruma/release/onig.wasm", ), ); - const vscodeOnigurumaLib = oniguruma.loadWASM(wasmBin.buffer).then(() => { - return { - createOnigScanner(patterns: string[]) { - return new oniguruma.OnigScanner(patterns); - }, - createOnigString(str: string) { - return new oniguruma.OnigString(str); - }, - }; - }); + const vscodeOnigurumaLib = oniguruma + .loadWASM(Buffer.from(wasmBin).buffer) + .then(() => { + return { + createOnigScanner(patterns: string[]) { + return new oniguruma.OnigScanner(patterns); + }, + createOnigString(str: string) { + return new oniguruma.OnigString(str); + }, + }; + }); const registry = new vsctm.Registry({ onigLib: vscodeOnigurumaLib, loadGrammar: async (scopeName) => { diff --git a/vscode/yarn.lock b/vscode/yarn.lock index 56ae61817..682998438 100644 --- a/vscode/yarn.lock +++ b/vscode/yarn.lock @@ -671,15 +671,15 @@ resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-5.1.2.tgz#07508b45797cb81ec3f273011b054cd0755eddca" integrity sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA== -"@types/mocha@^10.0.9": - version "10.0.9" - resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.9.tgz#101e9da88d2c02e5ac8952982c23b224524d662a" - integrity sha512-sicdRoWtYevwxjOHNMPTl3vSfJM6oyW8o1wXeI7uww6b6xHg8eBznQDNSGBCDJmsE8UMxP05JgZRtsKbTqt//Q== +"@types/mocha@^10.0.10": + version "10.0.10" + resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.10.tgz#91f62905e8d23cbd66225312f239454a23bebfa0" + integrity sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q== "@types/node@*", "@types/node@22.x": - version "22.9.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.9.0.tgz#b7f16e5c3384788542c72dc3d561a7ceae2c0365" - integrity sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ== + version "22.9.3" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.9.3.tgz#08f3d64b3bc6d74b162d36f60213e8a6704ef2b4" + integrity sha512-F3u1fs/fce3FFk+DAxbxc78DF8x0cY09RRL8GnXLmkJ1jvx3TtPdWoTT5/NiYfI5ASqXBmfqJi9dZ3gxMx4lzw== dependencies: undici-types "~6.19.8" @@ -857,7 +857,7 @@ "@vscode/vsce-sign-win32-arm64" "2.0.2" "@vscode/vsce-sign-win32-x64" "2.0.2" -"@vscode/vsce@^3.1.0", "@vscode/vsce@^3.2.1": +"@vscode/vsce@^3.2.1": version "3.2.1" resolved "https://registry.yarnpkg.com/@vscode/vsce/-/vsce-3.2.1.tgz#7bfa869ea43fe7d787f09e164f0f0e239df8fb1d" integrity sha512-AY9vBjwExakK1c0cI/3NN2Ey0EgiKLBye/fxl/ue+o4q6RZ7N+xzd1jAD6eI6eBeMVANi617+V2rxIAkDPco2Q== @@ -3616,12 +3616,12 @@ ora@^7.0.1: string-width "^6.1.0" strip-ansi "^7.1.0" -ovsx@^0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/ovsx/-/ovsx-0.10.0.tgz#85c75c5c1896d4d531722bd579bde27429789369" - integrity sha512-DSgNXGQ444nGKag+LZh92R/hM2PfRSu+6VKfVawoZ+JzFDiGX8yhMkAuyVlHrlxLCpfQOsqs80GcHje/h2SpmA== +ovsx@^0.10.1: + version "0.10.1" + resolved "https://registry.yarnpkg.com/ovsx/-/ovsx-0.10.1.tgz#444157bb2ba952b8e6e081286a5b7cf13675cc68" + integrity sha512-8i7+MJMMeq73m1zPEIClSFe17SNuuzU5br7G77ZIfOC24elB4pGQs0N1qRd+gnnbyhL5Qu96G21nFOVOBa2OBg== dependencies: - "@vscode/vsce" "^3.1.0" + "@vscode/vsce" "^3.2.1" commander "^6.2.1" follow-redirects "^1.14.6" is-ci "^2.0.0" @@ -4562,10 +4562,10 @@ typed-rest-client@^1.8.4: tunnel "0.0.6" underscore "^1.12.1" -typescript@^5.6.3: - version "5.6.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b" - integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw== +typescript@^5.7.2: + version "5.7.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6" + integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg== uc.micro@^2.0.0, uc.micro@^2.1.0: version "2.1.0"