From 4d33b23d87a0ab960e2b61318a170b5629102103 Mon Sep 17 00:00:00 2001 From: Savannah Ostrowski Date: Tue, 24 Mar 2026 14:42:18 -0700 Subject: [PATCH 1/2] Bump to TypeScript 6.0.2 --- bun.lock | 4 ++-- package.json | 2 +- src/core/parser.ts | 4 +++- tsconfig.json | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/bun.lock b/bun.lock index 5ffa7b3..648d05a 100644 --- a/bun.lock +++ b/bun.lock @@ -24,7 +24,7 @@ "lint-staged": "^16.2.7", "path-browserify": "^1.0.1", "sinon": "^21.0.1", - "typescript": "^5.0.0", + "typescript": "6.0.2", }, }, }, @@ -837,7 +837,7 @@ "typed-rest-client": ["typed-rest-client@1.8.11", "", { "dependencies": { "qs": "^6.9.1", "tunnel": "0.0.6", "underscore": "^1.12.1" } }, "sha512-5UvfMpd1oelmUPRbbaVnq+rHP7ng2cE4qoQkQeAqxRL6PklkxsM0g32/HL0yfvruK6ojQ5x8EE+HF4YV6DtuCA=="], - "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], + "typescript": ["typescript@6.0.2", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ=="], "uc.micro": ["uc.micro@2.1.0", "", {}, "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A=="], diff --git a/package.json b/package.json index 38105c0..4057053 100644 --- a/package.json +++ b/package.json @@ -355,7 +355,7 @@ "lint-staged": "^16.2.7", "path-browserify": "^1.0.1", "sinon": "^21.0.1", - "typescript": "^5.0.0" + "typescript": "6.0.2" }, "dependencies": { "posthog-node": "^5.24.1", diff --git a/src/core/parser.ts b/src/core/parser.ts index 7dc5bdd..896ff3a 100644 --- a/src/core/parser.ts +++ b/src/core/parser.ts @@ -18,7 +18,9 @@ export class Parser { } // Pre-compile the Wasm module from the binary - const wasmModule = await WebAssembly.compile(wasmBinaries.core) + const wasmModule = await WebAssembly.compile( + wasmBinaries.core as Uint8Array, + ) // Use instantiateWasm to provide custom Wasm instantiation. // This bypasses tree-sitter's default URL-based loading which relies diff --git a/tsconfig.json b/tsconfig.json index 4eca918..4092470 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,7 +15,8 @@ "noUnusedLocals": true, "noUnusedParameters": true, "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true + "noFallthroughCasesInSwitch": true, + "types": ["node", "mocha"] }, "include": ["src/**/*"], "exclude": ["node_modules", ".vscode-test"] From e628dc7819e21c0e106a1fa8ad2bef7c325888c9 Mon Sep 17 00:00:00 2001 From: Savannah Ostrowski Date: Tue, 24 Mar 2026 14:45:38 -0700 Subject: [PATCH 2/2] Allow patch and minors --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4057053..3df88d8 100644 --- a/package.json +++ b/package.json @@ -355,7 +355,7 @@ "lint-staged": "^16.2.7", "path-browserify": "^1.0.1", "sinon": "^21.0.1", - "typescript": "6.0.2" + "typescript": "^6.0.2" }, "dependencies": { "posthog-node": "^5.24.1",