From 6885f6fa82a89b623f820efa7d20e6f5c2571aef Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 02:58:57 +0000 Subject: [PATCH 1/2] chore(deps): update dependency typescript to v6 --- package.json | 2 +- yarn.lock | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 276cfc3..8144d9f 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "rollup-plugin-banner2": "^1.3.1", "rollup-plugin-typescript2": "^0.37.0", "ts-jest": "^29.4.9", - "typescript": "^5.9.3", + "typescript": "^6.0.3", "userscript-metadata-generator": "^0.2.4" }, "publishConfig": { diff --git a/yarn.lock b/yarn.lock index 1dbf6c9..c68b645 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1080,7 +1080,7 @@ __metadata: rollup-plugin-banner2: "npm:^1.3.1" rollup-plugin-typescript2: "npm:^0.37.0" ts-jest: "npm:^29.4.9" - typescript: "npm:^5.9.3" + typescript: "npm:^6.0.3" userscript-metadata-generator: "npm:^0.2.4" languageName: unknown linkType: soft @@ -4152,23 +4152,23 @@ __metadata: languageName: node linkType: hard -"typescript@npm:^5.9.3": - version: 5.9.3 - resolution: "typescript@npm:5.9.3" +"typescript@npm:^6.0.3": + version: 6.0.3 + resolution: "typescript@npm:6.0.3" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/6bd7552ce39f97e711db5aa048f6f9995b53f1c52f7d8667c1abdc1700c68a76a308f579cd309ce6b53646deb4e9a1be7c813a93baaf0a28ccd536a30270e1c5 + checksum: 10c0/4a25ff5045b984370f48f196b3a0120779b1b343d40b9a68d114ea5e5fff099809b2bb777576991a63a5cd59cf7bffd96ff6fe10afcefbcb8bd6fb96ad4b6606 languageName: node linkType: hard -"typescript@patch:typescript@npm%3A^5.9.3#optional!builtin": - version: 5.9.3 - resolution: "typescript@patch:typescript@npm%3A5.9.3#optional!builtin::version=5.9.3&hash=5786d5" +"typescript@patch:typescript@npm%3A^6.0.3#optional!builtin": + version: 6.0.3 + resolution: "typescript@patch:typescript@npm%3A6.0.3#optional!builtin::version=6.0.3&hash=5786d5" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/ad09fdf7a756814dce65bc60c1657b40d44451346858eea230e10f2e95a289d9183b6e32e5c11e95acc0ccc214b4f36289dcad4bf1886b0adb84d711d336a430 + checksum: 10c0/2f25c74e65663c248fa1ade2b8459d9ce5372ff9dad07067310f132966ebec1d93f6c42f0baf77a6b6a7a91460463f708e6887013aaade22111037457c6b25df languageName: node linkType: hard From 6607706d8067fc3112957f476ca80f9160bd6b5d Mon Sep 17 00:00:00 2001 From: Trim21 Date: Fri, 17 Apr 2026 19:47:21 +0800 Subject: [PATCH 2/2] fix: restore TypeScript 6 compatibility --- package.json | 1 + tsconfig.json | 2 +- yarn.lock | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8144d9f..b81aedd 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "@rollup/plugin-node-resolve": "^16.0.3", "@types/greasemonkey": "^4.0.7", "@types/jest": "^30.0.0", + "@types/node": "^25.6.0", "husky": "^9.1.7", "jest": "^30.3.0", "lint-staged": "^16.4.0", diff --git a/tsconfig.json b/tsconfig.json index 2957da2..dab94fd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,8 +5,8 @@ "rootDir": "./", "outDir": "./dist/", "declarationDir": "./dist/types", - "esModuleInterop": false, "moduleResolution": "Bundler", + "types": ["greasemonkey", "jest", "node"], "forceConsistentCasingInFileNames": true, "declaration": true, "declarationMap": true, diff --git a/yarn.lock b/yarn.lock index c68b645..9fc5ad5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1072,6 +1072,7 @@ __metadata: "@rollup/plugin-node-resolve": "npm:^16.0.3" "@types/greasemonkey": "npm:^4.0.7" "@types/jest": "npm:^30.0.0" + "@types/node": "npm:^25.6.0" husky: "npm:^9.1.7" jest: "npm:^30.3.0" lint-staged: "npm:^16.4.0" @@ -1184,7 +1185,7 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*": +"@types/node@npm:*, @types/node@npm:^25.6.0": version: 25.6.0 resolution: "@types/node@npm:25.6.0" dependencies: