diff --git a/.changeset/typescript-7-declarations.md b/.changeset/typescript-7-declarations.md new file mode 100644 index 00000000..894e2eb4 --- /dev/null +++ b/.changeset/typescript-7-declarations.md @@ -0,0 +1,5 @@ +--- +"@stackables/bridge-stdlib": patch +--- + +The published type declarations are now emitted by TypeScript 7. In `tools/arrays.d.ts`, `tools/audit.d.ts` and `tools/strings.d.ts`, the `bridge` metadata of each tool is declared as `export { syncUtility as bridge }` inside the tool's namespace instead of `var bridge: { sync: true; trace: false }`. The type of `bridge` is the same, and the declarations still work with TypeScript 6. The JavaScript is unchanged. diff --git a/packages/bridge-compiler/package.json b/packages/bridge-compiler/package.json index 561c5489..753cc229 100644 --- a/packages/bridge-compiler/package.json +++ b/packages/bridge-compiler/package.json @@ -27,7 +27,7 @@ "@stackables/bridge-parser": "workspace:*", "@types/node": "^25.5.2", "fast-check": "^4.6.0", - "typescript": "^6.0.2" + "typescript": "^7.0.2" }, "repository": { "type": "git", diff --git a/packages/bridge-core/package.json b/packages/bridge-core/package.json index 2dbdb764..0886cf0a 100644 --- a/packages/bridge-core/package.json +++ b/packages/bridge-core/package.json @@ -31,7 +31,7 @@ "devDependencies": { "@stackables/bridge-parser": "workspace:*", "@types/node": "^25.5.2", - "typescript": "^6.0.2" + "typescript": "^7.0.2" }, "publishConfig": { "access": "public", diff --git a/packages/bridge-graphql/package.json b/packages/bridge-graphql/package.json index 15eae60f..41eac222 100644 --- a/packages/bridge-graphql/package.json +++ b/packages/bridge-graphql/package.json @@ -34,7 +34,7 @@ "@types/node": "^25.5.2", "graphql": "16.14.2", "graphql-yoga": "^6.0.0", - "typescript": "^6.0.2" + "typescript": "^7.0.2" }, "peerDependencies": { "@graphql-tools/utils": "^11 || ^13.0.0", diff --git a/packages/bridge-parser/package.json b/packages/bridge-parser/package.json index 361b64f1..2c121e72 100644 --- a/packages/bridge-parser/package.json +++ b/packages/bridge-parser/package.json @@ -33,7 +33,7 @@ "devDependencies": { "@types/node": "^25.5.2", "fast-check": "^4.6.0", - "typescript": "^6.0.2" + "typescript": "^7.0.2" }, "publishConfig": { "access": "public", diff --git a/packages/bridge-stdlib/package.json b/packages/bridge-stdlib/package.json index c26a5f44..7ab8779b 100644 --- a/packages/bridge-stdlib/package.json +++ b/packages/bridge-stdlib/package.json @@ -32,7 +32,7 @@ "devDependencies": { "@types/node": "^25.5.2", "fast-check": "^4.6.0", - "typescript": "^6.0.2" + "typescript": "^7.0.2" }, "publishConfig": { "access": "public", diff --git a/packages/bridge-syntax-highlight/package.json b/packages/bridge-syntax-highlight/package.json index 9e32fa68..470da6c0 100644 --- a/packages/bridge-syntax-highlight/package.json +++ b/packages/bridge-syntax-highlight/package.json @@ -72,7 +72,7 @@ "@types/node": "^25.5.2", "@types/vscode": "^1.110.0", "esbuild": "^0.28.0", - "typescript": "^6.0.2", + "typescript": "^7.0.2", "vscode-languageclient": "^10.1.2", "vscode-languageserver": "^10.1.2", "vscode-languageserver-textdocument": "^1.0.12" diff --git a/packages/bridge-types/package.json b/packages/bridge-types/package.json index 6e670b43..29c7c223 100644 --- a/packages/bridge-types/package.json +++ b/packages/bridge-types/package.json @@ -23,7 +23,7 @@ "license": "MIT", "devDependencies": { "@types/node": "^25.5.2", - "typescript": "^6.0.2" + "typescript": "^7.0.2" }, "publishConfig": { "access": "public", diff --git a/packages/bridge/package.json b/packages/bridge/package.json index 616e4012..379d37ee 100644 --- a/packages/bridge/package.json +++ b/packages/bridge/package.json @@ -37,7 +37,7 @@ "@stackables/bridge-types": "workspace:*", "@types/node": "^25.5.2", "graphql": "16.14.2", - "typescript": "^6.0.2" + "typescript": "^7.0.2" }, "dependencies": { "@stackables/bridge-core": "workspace:*", diff --git a/packages/playground/package.json b/packages/playground/package.json index eec76de4..ebfaca1f 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -49,7 +49,7 @@ "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^6.0.1", "tailwindcss": "4.3.3", - "typescript": "^6.0.2", + "typescript": "^7.0.2", "vite": "^8.0.3", "wrangler": "^4.151.1" } diff --git a/packages/playground/tsconfig.json b/packages/playground/tsconfig.json index 436b4bfc..3750b984 100644 --- a/packages/playground/tsconfig.json +++ b/packages/playground/tsconfig.json @@ -11,7 +11,7 @@ "moduleDetection": "force", "noEmit": true, "jsx": "react-jsx", - "types": ["node"], + "types": ["node", "vite/client"], "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 44ce4375..2d8c9c2d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -302,8 +302,8 @@ importers: specifier: 16.14.2 version: 16.14.2 typescript: - specifier: ^6.0.2 - version: 6.0.3 + specifier: ^7.0.2 + version: 7.0.2 packages/bridge-compiler: dependencies: @@ -324,8 +324,8 @@ importers: specifier: ^4.6.0 version: 4.10.2 typescript: - specifier: ^6.0.2 - version: 6.0.3 + specifier: ^7.0.2 + version: 7.0.2 packages/bridge-core: dependencies: @@ -343,8 +343,8 @@ importers: specifier: ^25.5.2 version: 25.9.9 typescript: - specifier: ^6.0.2 - version: 6.0.3 + specifier: ^7.0.2 + version: 7.0.2 packages/bridge-graphql: dependencies: @@ -374,8 +374,8 @@ importers: specifier: ^6.0.0 version: 6.0.0(graphql@16.14.2) typescript: - specifier: ^6.0.2 - version: 6.0.3 + specifier: ^7.0.2 + version: 7.0.2 packages/bridge-parser: dependencies: @@ -396,8 +396,8 @@ importers: specifier: ^4.6.0 version: 4.10.2 typescript: - specifier: ^6.0.2 - version: 6.0.3 + specifier: ^7.0.2 + version: 7.0.2 packages/bridge-stdlib: dependencies: @@ -415,8 +415,8 @@ importers: specifier: ^4.6.0 version: 4.10.2 typescript: - specifier: ^6.0.2 - version: 6.0.3 + specifier: ^7.0.2 + version: 7.0.2 packages/bridge-syntax-highlight: devDependencies: @@ -433,8 +433,8 @@ importers: specifier: ^0.28.0 version: 0.28.2 typescript: - specifier: ^6.0.2 - version: 6.0.3 + specifier: ^7.0.2 + version: 7.0.2 vscode-languageclient: specifier: ^10.1.2 version: 10.1.2 @@ -451,8 +451,8 @@ importers: specifier: ^25.5.2 version: 25.9.9 typescript: - specifier: ^6.0.2 - version: 6.0.3 + specifier: ^7.0.2 + version: 7.0.2 packages/docs-site: dependencies: @@ -615,8 +615,8 @@ importers: specifier: 4.3.3 version: 4.3.3 typescript: - specifier: ^6.0.2 - version: 6.0.3 + specifier: ^7.0.2 + version: 7.0.2 vite: specifier: ^8.0.3 version: 8.3.4(@types/node@25.9.9)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1) @@ -3001,6 +3001,126 @@ packages: resolution: {integrity: sha512-zozlN0UA32bSG2zkKAgQyRYSbEISVoyU6vvkKYo2aSny74D8Jh4e+POkJ6Lk0dlezZi5x7TtD+88Xb06IB8nhg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript/typescript-aix-ppc64@7.0.2': + resolution: {integrity: sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==} + engines: {node: '>=16.20.0'} + cpu: [ppc64] + os: [aix] + + '@typescript/typescript-darwin-arm64@7.0.2': + resolution: {integrity: sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [darwin] + + '@typescript/typescript-darwin-x64@7.0.2': + resolution: {integrity: sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [darwin] + + '@typescript/typescript-freebsd-arm64@7.0.2': + resolution: {integrity: sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [freebsd] + + '@typescript/typescript-freebsd-x64@7.0.2': + resolution: {integrity: sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [freebsd] + + '@typescript/typescript-linux-arm64@7.0.2': + resolution: {integrity: sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [linux] + + '@typescript/typescript-linux-arm@7.0.2': + resolution: {integrity: sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==} + engines: {node: '>=16.20.0'} + cpu: [arm] + os: [linux] + + '@typescript/typescript-linux-loong64@7.0.2': + resolution: {integrity: sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==} + engines: {node: '>=16.20.0'} + cpu: [loong64] + os: [linux] + + '@typescript/typescript-linux-mips64el@7.0.2': + resolution: {integrity: sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==} + engines: {node: '>=16.20.0'} + cpu: [mips64el] + os: [linux] + + '@typescript/typescript-linux-ppc64@7.0.2': + resolution: {integrity: sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==} + engines: {node: '>=16.20.0'} + cpu: [ppc64] + os: [linux] + + '@typescript/typescript-linux-riscv64@7.0.2': + resolution: {integrity: sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==} + engines: {node: '>=16.20.0'} + cpu: [riscv64] + os: [linux] + + '@typescript/typescript-linux-s390x@7.0.2': + resolution: {integrity: sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==} + engines: {node: '>=16.20.0'} + cpu: [s390x] + os: [linux] + + '@typescript/typescript-linux-x64@7.0.2': + resolution: {integrity: sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [linux] + + '@typescript/typescript-netbsd-arm64@7.0.2': + resolution: {integrity: sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [netbsd] + + '@typescript/typescript-netbsd-x64@7.0.2': + resolution: {integrity: sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [netbsd] + + '@typescript/typescript-openbsd-arm64@7.0.2': + resolution: {integrity: sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [openbsd] + + '@typescript/typescript-openbsd-x64@7.0.2': + resolution: {integrity: sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [openbsd] + + '@typescript/typescript-sunos-x64@7.0.2': + resolution: {integrity: sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [sunos] + + '@typescript/typescript-win32-arm64@7.0.2': + resolution: {integrity: sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [win32] + + '@typescript/typescript-win32-x64@7.0.2': + resolution: {integrity: sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [win32] + '@ungap/structured-clone@1.4.0': resolution: {integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==} @@ -4760,6 +4880,11 @@ packages: engines: {node: '>=14.17'} hasBin: true + typescript@7.0.2: + resolution: {integrity: sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==} + engines: {node: '>=16.20.0'} + hasBin: true + ufo@1.6.4: resolution: {integrity: sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==} @@ -7523,6 +7648,66 @@ snapshots: '@typescript-eslint/types': 8.71.2 eslint-visitor-keys: 5.0.1 + '@typescript/typescript-aix-ppc64@7.0.2': + optional: true + + '@typescript/typescript-darwin-arm64@7.0.2': + optional: true + + '@typescript/typescript-darwin-x64@7.0.2': + optional: true + + '@typescript/typescript-freebsd-arm64@7.0.2': + optional: true + + '@typescript/typescript-freebsd-x64@7.0.2': + optional: true + + '@typescript/typescript-linux-arm64@7.0.2': + optional: true + + '@typescript/typescript-linux-arm@7.0.2': + optional: true + + '@typescript/typescript-linux-loong64@7.0.2': + optional: true + + '@typescript/typescript-linux-mips64el@7.0.2': + optional: true + + '@typescript/typescript-linux-ppc64@7.0.2': + optional: true + + '@typescript/typescript-linux-riscv64@7.0.2': + optional: true + + '@typescript/typescript-linux-s390x@7.0.2': + optional: true + + '@typescript/typescript-linux-x64@7.0.2': + optional: true + + '@typescript/typescript-netbsd-arm64@7.0.2': + optional: true + + '@typescript/typescript-netbsd-x64@7.0.2': + optional: true + + '@typescript/typescript-openbsd-arm64@7.0.2': + optional: true + + '@typescript/typescript-openbsd-x64@7.0.2': + optional: true + + '@typescript/typescript-sunos-x64@7.0.2': + optional: true + + '@typescript/typescript-win32-arm64@7.0.2': + optional: true + + '@typescript/typescript-win32-x64@7.0.2': + optional: true + '@ungap/structured-clone@1.4.0': {} '@vitejs/plugin-react@6.1.2(vite@8.3.4(@types/node@25.9.9)(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))': @@ -9550,6 +9735,29 @@ snapshots: typescript@6.0.3: {} + typescript@7.0.2: + optionalDependencies: + '@typescript/typescript-aix-ppc64': 7.0.2 + '@typescript/typescript-darwin-arm64': 7.0.2 + '@typescript/typescript-darwin-x64': 7.0.2 + '@typescript/typescript-freebsd-arm64': 7.0.2 + '@typescript/typescript-freebsd-x64': 7.0.2 + '@typescript/typescript-linux-arm': 7.0.2 + '@typescript/typescript-linux-arm64': 7.0.2 + '@typescript/typescript-linux-loong64': 7.0.2 + '@typescript/typescript-linux-mips64el': 7.0.2 + '@typescript/typescript-linux-ppc64': 7.0.2 + '@typescript/typescript-linux-riscv64': 7.0.2 + '@typescript/typescript-linux-s390x': 7.0.2 + '@typescript/typescript-linux-x64': 7.0.2 + '@typescript/typescript-netbsd-arm64': 7.0.2 + '@typescript/typescript-netbsd-x64': 7.0.2 + '@typescript/typescript-openbsd-arm64': 7.0.2 + '@typescript/typescript-openbsd-x64': 7.0.2 + '@typescript/typescript-sunos-x64': 7.0.2 + '@typescript/typescript-win32-arm64': 7.0.2 + '@typescript/typescript-win32-x64': 7.0.2 + ufo@1.6.4: {} ultrahtml@1.7.0: {}