diff --git a/.changeset/weak-worms-scream.md b/.changeset/weak-worms-scream.md new file mode 100644 index 000000000..f654fddc4 --- /dev/null +++ b/.changeset/weak-worms-scream.md @@ -0,0 +1,7 @@ +--- +"inngest": patch +--- + +Ensure support for `typescript@~5.7.0` + +No notable changes have been made, though minor TypeScript versions often affect transpiled outputs. diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 928088384..92caa06b3 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -59,6 +59,7 @@ jobs: matrix: tsVersion: - "latest" + - "~5.7.0" - "~5.6.0" - "~5.5.0" - "~5.4.0" diff --git a/packages/inngest/package.json b/packages/inngest/package.json index c7d722b18..1b333f207 100644 --- a/packages/inngest/package.json +++ b/packages/inngest/package.json @@ -243,7 +243,7 @@ "shx": "^0.3.4", "ts-jest": "^29.1.0", "tsx": "^3.12.7", - "typescript": "~5.6.2" + "typescript": "~5.7.2" }, "volta": { "node": "18.12.1", diff --git a/packages/inngest/tsconfig.json b/packages/inngest/tsconfig.json index ecdbc4212..7c4599c6a 100644 --- a/packages/inngest/tsconfig.json +++ b/packages/inngest/tsconfig.json @@ -18,6 +18,19 @@ "resolveJsonModule": true, "noUncheckedIndexedAccess": true, "strictNullChecks": true, + + // In TS 5.7+ we can use these to ensure we can import `.ts` extensions and + // have them compile to `.js` imports. This also then means we're compatible + // with Node/Deno/Bun's TS running instead of leaking compilation + // requirements into the source code. + // + // Importing `.ts` extensions fails miserably when using compiled output + // with TS<5.0 though, so we must keep this commented out and unactioned + // until we can safely assume at least TS>=5.0. + // + // "rewriteRelativeImportExtensions": true, + // "allowImportingTsExtensions": true, + "paths": { "inngest": ["./src"], "inngest/*": ["./src/*"], diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2a1bf8ecd..69fdbe3d3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -141,10 +141,10 @@ importers: version: 2.4.4 '@typescript-eslint/eslint-plugin': specifier: ^6.0.0 - version: 6.11.0(@typescript-eslint/parser@6.11.0(eslint@8.36.0)(typescript@5.6.2))(eslint@8.36.0)(typescript@5.6.2) + version: 6.11.0(@typescript-eslint/parser@6.11.0(eslint@8.36.0)(typescript@5.7.2))(eslint@8.36.0)(typescript@5.7.2) '@typescript-eslint/parser': specifier: ^6.0.0 - version: 6.11.0(eslint@8.36.0)(typescript@5.6.2) + version: 6.11.0(eslint@8.36.0)(typescript@5.7.2) '@vercel/node': specifier: ^2.15.9 version: 2.15.9 @@ -165,7 +165,7 @@ importers: version: 9.0.0(eslint@8.36.0) eslint-plugin-import: specifier: ^2.27.5 - version: 2.27.5(@typescript-eslint/parser@6.11.0(eslint@8.36.0)(typescript@5.6.2))(eslint@8.36.0) + version: 2.27.5(@typescript-eslint/parser@6.11.0(eslint@8.36.0)(typescript@5.7.2))(eslint@8.36.0) eslint-plugin-prettier: specifier: ^5.0.0 version: 5.0.1(@types/eslint@8.56.10)(eslint-config-prettier@9.0.0(eslint@8.36.0))(eslint@8.36.0)(prettier@3.1.0) @@ -192,7 +192,7 @@ importers: version: 9.2.10 jest: specifier: ^29.3.1 - version: 29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.6.2)) + version: 29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.7.2)) jest-fetch-mock: specifier: ^3.0.3 version: 3.0.3 @@ -225,13 +225,13 @@ importers: version: 0.3.4 ts-jest: specifier: ^29.1.0 - version: 29.1.0(@babel/core@7.23.6)(@jest/types@29.5.0)(babel-jest@29.5.0(@babel/core@7.23.6))(jest@29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.6.2)))(typescript@5.6.2) + version: 29.1.0(@babel/core@7.23.6)(@jest/types@29.5.0)(babel-jest@29.5.0(@babel/core@7.23.6))(jest@29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.7.2)))(typescript@5.7.2) tsx: specifier: ^3.12.7 version: 3.12.7 typescript: - specifier: ~5.6.2 - version: 5.6.2 + specifier: ~5.7.2 + version: 5.7.2 packages/middleware-encryption: dependencies: @@ -304,7 +304,7 @@ importers: dependencies: inngest: specifier: ^3.22.12 - version: 3.23.0(@sveltejs/kit@1.27.3(svelte@4.2.5)(vite@4.5.3(@types/node@20.14.8)))(@vercel/node@2.15.9)(aws-lambda@1.0.7)(express@4.19.2)(fastify@4.21.0)(h3@1.8.1)(hono@4.2.7)(koa@2.14.2)(next@13.5.4(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(typescript@5.6.2) + version: 3.23.0(@sveltejs/kit@1.27.3(svelte@4.2.5)(vite@4.5.3(@types/node@20.14.8)))(@vercel/node@2.15.9)(aws-lambda@1.0.7)(express@4.19.2)(fastify@4.21.0)(h3@1.8.1)(hono@4.2.7)(koa@2.14.2)(next@13.5.4(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(typescript@5.7.2) tinyspy: specifier: ^3.0.2 version: 3.0.2 @@ -2498,11 +2498,13 @@ packages: eslint@8.36.0: resolution: {integrity: sha512-Y956lmS7vDqomxlaaQAHVmeb4tNMp2FWIvU/RnU5BD3IKMD/MJPr76xdyr68P8tV1iNMvN2mRK0yy3c+UjL+bw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true eslint@8.53.0: resolution: {integrity: sha512-N4VuiPjXDUa4xVeV/GC/RV3hQW9Nw+Y463lkWaKKXKYMvmRiRDAtfpuPFLN+E1/6ZhyR8J2ig+eVREnYgUsiag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true esm-env@1.0.0: @@ -4746,8 +4748,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - typescript@5.6.2: - resolution: {integrity: sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==} + typescript@5.7.2: + resolution: {integrity: sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==} engines: {node: '>=14.17'} hasBin: true @@ -5725,7 +5727,7 @@ snapshots: - supports-color - ts-node - '@jest/core@29.5.0(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.6.2))': + '@jest/core@29.5.0(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.7.2))': dependencies: '@jest/console': 29.5.0 '@jest/reporters': 29.5.0 @@ -5739,7 +5741,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.6.2)) + jest-config: 29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.7.2)) jest-haste-map: 29.5.0 jest-message-util: 29.5.0 jest-regex-util: 29.4.3 @@ -6334,13 +6336,13 @@ snapshots: dependencies: '@types/yargs-parser': 21.0.0 - '@typescript-eslint/eslint-plugin@6.11.0(@typescript-eslint/parser@6.11.0(eslint@8.36.0)(typescript@5.6.2))(eslint@8.36.0)(typescript@5.6.2)': + '@typescript-eslint/eslint-plugin@6.11.0(@typescript-eslint/parser@6.11.0(eslint@8.36.0)(typescript@5.7.2))(eslint@8.36.0)(typescript@5.7.2)': dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.11.0(eslint@8.36.0)(typescript@5.6.2) + '@typescript-eslint/parser': 6.11.0(eslint@8.36.0)(typescript@5.7.2) '@typescript-eslint/scope-manager': 6.11.0 - '@typescript-eslint/type-utils': 6.11.0(eslint@8.36.0)(typescript@5.6.2) - '@typescript-eslint/utils': 6.11.0(eslint@8.36.0)(typescript@5.6.2) + '@typescript-eslint/type-utils': 6.11.0(eslint@8.36.0)(typescript@5.7.2) + '@typescript-eslint/utils': 6.11.0(eslint@8.36.0)(typescript@5.7.2) '@typescript-eslint/visitor-keys': 6.11.0 debug: 4.3.4 eslint: 8.36.0 @@ -6348,9 +6350,9 @@ snapshots: ignore: 5.2.4 natural-compare: 1.4.0 semver: 7.5.4 - ts-api-utils: 1.0.3(typescript@5.6.2) + ts-api-utils: 1.0.3(typescript@5.7.2) optionalDependencies: - typescript: 5.6.2 + typescript: 5.7.2 transitivePeerDependencies: - supports-color @@ -6372,16 +6374,16 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@6.11.0(eslint@8.36.0)(typescript@5.6.2)': + '@typescript-eslint/parser@6.11.0(eslint@8.36.0)(typescript@5.7.2)': dependencies: '@typescript-eslint/scope-manager': 6.11.0 '@typescript-eslint/types': 6.11.0 - '@typescript-eslint/typescript-estree': 6.11.0(typescript@5.6.2) + '@typescript-eslint/typescript-estree': 6.11.0(typescript@5.7.2) '@typescript-eslint/visitor-keys': 6.11.0 debug: 4.3.4 eslint: 8.36.0 optionalDependencies: - typescript: 5.6.2 + typescript: 5.7.2 transitivePeerDependencies: - supports-color @@ -6421,15 +6423,15 @@ snapshots: '@typescript-eslint/types': 7.16.1 '@typescript-eslint/visitor-keys': 7.16.1 - '@typescript-eslint/type-utils@6.11.0(eslint@8.36.0)(typescript@5.6.2)': + '@typescript-eslint/type-utils@6.11.0(eslint@8.36.0)(typescript@5.7.2)': dependencies: - '@typescript-eslint/typescript-estree': 6.11.0(typescript@5.6.2) - '@typescript-eslint/utils': 6.11.0(eslint@8.36.0)(typescript@5.6.2) + '@typescript-eslint/typescript-estree': 6.11.0(typescript@5.7.2) + '@typescript-eslint/utils': 6.11.0(eslint@8.36.0)(typescript@5.7.2) debug: 4.3.4 eslint: 8.36.0 - ts-api-utils: 1.0.3(typescript@5.6.2) + ts-api-utils: 1.0.3(typescript@5.7.2) optionalDependencies: - typescript: 5.6.2 + typescript: 5.7.2 transitivePeerDependencies: - supports-color @@ -6463,7 +6465,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/typescript-estree@6.11.0(typescript@5.6.2)': + '@typescript-eslint/typescript-estree@6.11.0(typescript@5.7.2)': dependencies: '@typescript-eslint/types': 6.11.0 '@typescript-eslint/visitor-keys': 6.11.0 @@ -6471,9 +6473,9 @@ snapshots: globby: 11.1.0 is-glob: 4.0.3 semver: 7.5.4 - ts-api-utils: 1.0.3(typescript@5.6.2) + ts-api-utils: 1.0.3(typescript@5.7.2) optionalDependencies: - typescript: 5.6.2 + typescript: 5.7.2 transitivePeerDependencies: - supports-color @@ -6492,14 +6494,14 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@6.11.0(eslint@8.36.0)(typescript@5.6.2)': + '@typescript-eslint/utils@6.11.0(eslint@8.36.0)(typescript@5.7.2)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.36.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.0 '@typescript-eslint/scope-manager': 6.11.0 '@typescript-eslint/types': 6.11.0 - '@typescript-eslint/typescript-estree': 6.11.0(typescript@5.6.2) + '@typescript-eslint/typescript-estree': 6.11.0(typescript@5.7.2) eslint: 8.36.0 semver: 7.5.4 transitivePeerDependencies: @@ -7451,17 +7453,17 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.8.0(@typescript-eslint/parser@6.11.0(eslint@8.36.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.7)(eslint@8.36.0): + eslint-module-utils@2.8.0(@typescript-eslint/parser@6.11.0(eslint@8.36.0)(typescript@5.7.2))(eslint-import-resolver-node@0.3.7)(eslint@8.36.0): dependencies: debug: 3.2.7(supports-color@5.5.0) optionalDependencies: - '@typescript-eslint/parser': 6.11.0(eslint@8.36.0)(typescript@5.6.2) + '@typescript-eslint/parser': 6.11.0(eslint@8.36.0)(typescript@5.7.2) eslint: 8.36.0 eslint-import-resolver-node: 0.3.7 transitivePeerDependencies: - supports-color - eslint-plugin-import@2.27.5(@typescript-eslint/parser@6.11.0(eslint@8.36.0)(typescript@5.6.2))(eslint@8.36.0): + eslint-plugin-import@2.27.5(@typescript-eslint/parser@6.11.0(eslint@8.36.0)(typescript@5.7.2))(eslint@8.36.0): dependencies: array-includes: 3.1.6 array.prototype.flat: 1.3.1 @@ -7470,7 +7472,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.36.0 eslint-import-resolver-node: 0.3.7 - eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.11.0(eslint@8.36.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.7)(eslint@8.36.0) + eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.11.0(eslint@8.36.0)(typescript@5.7.2))(eslint-import-resolver-node@0.3.7)(eslint@8.36.0) has: 1.0.3 is-core-module: 2.12.0 is-glob: 4.0.3 @@ -7480,7 +7482,7 @@ snapshots: semver: 6.3.0 tsconfig-paths: 3.14.2 optionalDependencies: - '@typescript-eslint/parser': 6.11.0(eslint@8.36.0)(typescript@5.6.2) + '@typescript-eslint/parser': 6.11.0(eslint@8.36.0)(typescript@5.7.2) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack @@ -8183,7 +8185,7 @@ snapshots: - encoding - supports-color - inngest@3.23.0(@sveltejs/kit@1.27.3(svelte@4.2.5)(vite@4.5.3(@types/node@20.14.8)))(@vercel/node@2.15.9)(aws-lambda@1.0.7)(express@4.19.2)(fastify@4.21.0)(h3@1.8.1)(hono@4.2.7)(koa@2.14.2)(next@13.5.4(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(typescript@5.6.2): + inngest@3.23.0(@sveltejs/kit@1.27.3(svelte@4.2.5)(vite@4.5.3(@types/node@20.14.8)))(@vercel/node@2.15.9)(aws-lambda@1.0.7)(express@4.19.2)(fastify@4.21.0)(h3@1.8.1)(hono@4.2.7)(koa@2.14.2)(next@13.5.4(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(typescript@5.7.2): dependencies: '@types/debug': 4.1.12 canonicalize: 1.0.8 @@ -8206,7 +8208,7 @@ snapshots: hono: 4.2.7 koa: 2.14.2 next: 13.5.4(@babel/core@7.23.6)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - typescript: 5.6.2 + typescript: 5.7.2 transitivePeerDependencies: - encoding - supports-color @@ -8466,16 +8468,16 @@ snapshots: - supports-color - ts-node - jest-cli@29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.6.2)): + jest-cli@29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.7.2)): dependencies: - '@jest/core': 29.5.0(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.6.2)) + '@jest/core': 29.5.0(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.7.2)) '@jest/test-result': 29.5.0 '@jest/types': 29.5.0 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.6.2)) + jest-config: 29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.7.2)) jest-util: 29.5.0 jest-validate: 29.5.0 prompts: 2.4.2 @@ -8515,7 +8517,7 @@ snapshots: transitivePeerDependencies: - supports-color - jest-config@29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.6.2)): + jest-config@29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.7.2)): dependencies: '@babel/core': 7.23.6 '@jest/test-sequencer': 29.5.0 @@ -8541,7 +8543,7 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.14.8 - ts-node: 10.9.1(@types/node@20.14.8)(typescript@5.6.2) + ts-node: 10.9.1(@types/node@20.14.8)(typescript@5.7.2) transitivePeerDependencies: - supports-color @@ -8797,12 +8799,12 @@ snapshots: - supports-color - ts-node - jest@29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.6.2)): + jest@29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.7.2)): dependencies: - '@jest/core': 29.5.0(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.6.2)) + '@jest/core': 29.5.0(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.7.2)) '@jest/types': 29.5.0 import-local: 3.1.0 - jest-cli: 29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.6.2)) + jest-cli: 29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.7.2)) transitivePeerDependencies: - '@types/node' - supports-color @@ -9966,9 +9968,9 @@ snapshots: dependencies: typescript: 5.5.2 - ts-api-utils@1.0.3(typescript@5.6.2): + ts-api-utils@1.0.3(typescript@5.7.2): dependencies: - typescript: 5.6.2 + typescript: 5.7.2 ts-api-utils@1.3.0(typescript@5.5.2): dependencies: @@ -9991,17 +9993,17 @@ snapshots: '@jest/types': 29.5.0 babel-jest: 29.5.0(@babel/core@7.23.6) - ts-jest@29.1.0(@babel/core@7.23.6)(@jest/types@29.5.0)(babel-jest@29.5.0(@babel/core@7.23.6))(jest@29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.6.2)))(typescript@5.6.2): + ts-jest@29.1.0(@babel/core@7.23.6)(@jest/types@29.5.0)(babel-jest@29.5.0(@babel/core@7.23.6))(jest@29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.7.2)))(typescript@5.7.2): dependencies: bs-logger: 0.2.6 fast-json-stable-stringify: 2.1.0 - jest: 29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.6.2)) + jest: 29.5.0(@types/node@20.14.8)(ts-node@10.9.1(@types/node@20.14.8)(typescript@5.7.2)) jest-util: 29.5.0 json5: 2.2.3 lodash.memoize: 4.1.2 make-error: 1.3.6 semver: 7.5.4 - typescript: 5.6.2 + typescript: 5.7.2 yargs-parser: 21.1.1 optionalDependencies: '@babel/core': 7.23.6 @@ -10050,7 +10052,7 @@ snapshots: yn: 3.1.1 optional: true - ts-node@10.9.1(@types/node@20.14.8)(typescript@5.6.2): + ts-node@10.9.1(@types/node@20.14.8)(typescript@5.7.2): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.9 @@ -10064,7 +10066,7 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.6.2 + typescript: 5.7.2 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optional: true @@ -10148,7 +10150,7 @@ snapshots: typescript@5.5.2: {} - typescript@5.6.2: {} + typescript@5.7.2: {} ufo@1.3.0: {}