diff --git a/packages/@n8n/nodes-langchain/tsconfig.json b/packages/@n8n/nodes-langchain/tsconfig.json index 726bacc20e9..d44ddc55dce 100644 --- a/packages/@n8n/nodes-langchain/tsconfig.json +++ b/packages/@n8n/nodes-langchain/tsconfig.json @@ -10,7 +10,8 @@ // Type-only deep import of a type LangChain doesn't re-export publicly. // exports-map-aware resolution can't reach dist/, so map straight to the - // declaration file (erased at runtime — never resolved by Node). + // declaration file. Safe as `.d.cts` because these are `import type` + // (erased at runtime — never resolved by Node or a paths-honoring loader). "@langchain/classic/dist/experimental/openai_assistant/schema": [ "./node_modules/@langchain/classic/dist/experimental/openai_assistant/schema.d.cts" ], @@ -25,6 +26,8 @@ // reach @langchain/core through the import condition (.d.ts). This // package resolves core via require (.d.cts); pin the subpath it shares // with Oracle to .d.cts so both agree on a single VectorStore identity. + // Must stay `.d.cts` (not extensionless): the base resolves to the ESM + // `.d.ts` and reintroduces the "two unrelated VectorStore types" error. "@langchain/core/vectorstores": ["./node_modules/@langchain/core/dist/vectorstores.d.cts"] }, "emitDecoratorMetadata": true, diff --git a/packages/@n8n/tournament/tsconfig.json b/packages/@n8n/tournament/tsconfig.json index 9197a75b8b9..3ae8ddc349b 100644 --- a/packages/@n8n/tournament/tsconfig.json +++ b/packages/@n8n/tournament/tsconfig.json @@ -22,7 +22,7 @@ "tsBuildInfoFile": "dist/typecheck.tsbuildinfo", "types": ["node", "vitest/globals", "vite/client"], "paths": { - "esprima-next": ["./node_modules/esprima-next/dist/esm/esprima.d.ts"] + "esprima-next": ["./node_modules/esprima-next/dist/esm/esprima"] } }, "include": ["src/**/*.ts", "test/**/*.ts"], diff --git a/packages/core/package.json b/packages/core/package.json index 4fab695de54..18ad2443a27 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -48,7 +48,7 @@ "axios": "catalog:", "nock": "catalog:", "reflect-metadata": "catalog:", - "typescript": "catalog:", + "typescript": "catalog:typescript", "vite": "catalog:", "vitest": "catalog:", "vitest-mock-extended": "catalog:", diff --git a/packages/core/src/binary-data/binary-data.service.ts b/packages/core/src/binary-data/binary-data.service.ts index 05738e01131..98c234d6b1f 100644 --- a/packages/core/src/binary-data/binary-data.service.ts +++ b/packages/core/src/binary-data/binary-data.service.ts @@ -36,7 +36,7 @@ export class BinaryDataService { this.mode = config.mode === 'filesystem' ? 'filesystem-v2' : config.mode; - const { FileSystemManager } = await import('./file-system.manager'); + const { FileSystemManager } = await import('./file-system.manager.js'); this.managers.filesystem = new FileSystemManager(config.localStoragePath, this.errorReporter); this.managers['filesystem-v2'] = this.managers.filesystem; await this.managers.filesystem.init(); diff --git a/packages/core/src/execution-engine/__tests__/routing-node.test.ts b/packages/core/src/execution-engine/__tests__/routing-node.test.ts index 57c63c0fbfb..1a8eed93602 100644 --- a/packages/core/src/execution-engine/__tests__/routing-node.test.ts +++ b/packages/core/src/execution-engine/__tests__/routing-node.test.ts @@ -1,4 +1,5 @@ import get from 'lodash/get'; +import { Workflow, createEmptyRunExecutionData } from 'n8n-workflow'; import type { DeclarativeRestApiSettings, ICredentialDataDecryptedObject, @@ -18,9 +19,8 @@ import type { IRunExecutionData, ITaskDataConnections, IWorkflowExecuteAdditionalData, + ICredentialsDecrypted, } from 'n8n-workflow'; -import { Workflow, createEmptyRunExecutionData } from 'n8n-workflow'; -import type { ICredentialsDecrypted } from 'n8n-workflow/src'; import { mock } from 'vitest-mock-extended'; import * as executionContexts from '@/execution-engine/node-execution-context'; diff --git a/packages/core/src/execution-engine/__tests__/workflow-execute.test.ts b/packages/core/src/execution-engine/__tests__/workflow-execute.test.ts index 033190bed58..97ba4ac170e 100644 --- a/packages/core/src/execution-engine/__tests__/workflow-execute.test.ts +++ b/packages/core/src/execution-engine/__tests__/workflow-execute.test.ts @@ -3370,7 +3370,7 @@ describe('WorkflowExecute', () => { const workflowExecute = new WorkflowExecute(additionalData, 'manual'); // Spy on convertBinaryData - const convertBinaryDataModule = await import('../../utils/convert-binary-data'); + const convertBinaryDataModule = await import('../../utils/convert-binary-data.js'); const convertBinaryDataSpy = vi.spyOn(convertBinaryDataModule, 'convertBinaryData'); // ACT diff --git a/packages/core/tsconfig.build.json b/packages/core/tsconfig.build.json index cb6f7f235dc..bdd2a8da3f9 100644 --- a/packages/core/tsconfig.build.json +++ b/packages/core/tsconfig.build.json @@ -1,5 +1,5 @@ { - "extends": ["./tsconfig.json", "@n8n/typescript-config/tsconfig.build.json"], + "extends": ["./tsconfig.json", "@n8n/typescript-config/tsconfig.build.go.json"], "compilerOptions": { "composite": true, "rootDir": "src", diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index 4b561af66b6..17cf24c9a95 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -1,7 +1,7 @@ { "extends": [ - "@n8n/typescript-config/tsconfig.common.json", - "@n8n/typescript-config/tsconfig.backend.json" + "@n8n/typescript-config/tsconfig.common.go.json", + "@n8n/typescript-config/tsconfig.backend.go.json" ], "compilerOptions": { "lib": ["es2022"], diff --git a/packages/nodes-base/package.json b/packages/nodes-base/package.json index 6e3cc42d4ab..197df647107 100644 --- a/packages/nodes-base/package.json +++ b/packages/nodes-base/package.json @@ -921,7 +921,7 @@ "n8n-core": "workspace:*", "nock": "catalog:", "reflect-metadata": "catalog:", - "typescript": "catalog:", + "typescript": "catalog:typescript", "vite": "catalog:", "vitest": "catalog:", "vitest-mock-extended": "catalog:" diff --git a/packages/nodes-base/tsconfig.build.cjs.json b/packages/nodes-base/tsconfig.build.cjs.json index eeffb65cabc..6bd4cda7d87 100644 --- a/packages/nodes-base/tsconfig.build.cjs.json +++ b/packages/nodes-base/tsconfig.build.cjs.json @@ -1,8 +1,7 @@ { - "extends": ["./tsconfig.json", "@n8n/typescript-config/modern/tsconfig.cjs.json"], + "extends": ["./tsconfig.json", "@n8n/typescript-config/modern/tsconfig.cjs.go.json"], "compilerOptions": { - "outDir": "dist", - "module": "commonjs" + "outDir": "dist" }, "include": [ "credentials/**/*.ts", diff --git a/packages/nodes-base/tsconfig.json b/packages/nodes-base/tsconfig.json index dc8c3cb2f66..d418e30268d 100644 --- a/packages/nodes-base/tsconfig.json +++ b/packages/nodes-base/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": ["@n8n/typescript-config/modern/tsconfig.json"], + "extends": ["@n8n/typescript-config/modern/tsconfig.go.json"], "compilerOptions": { "paths": { "@credentials/*": ["./credentials/*"], diff --git a/packages/testing/code-health/package.json b/packages/testing/code-health/package.json index 8ed7f463858..9721000fe1d 100644 --- a/packages/testing/code-health/package.json +++ b/packages/testing/code-health/package.json @@ -33,7 +33,7 @@ "fast-glob": "catalog:", "ts-morph": "catalog:", "tsx": "catalog:", - "typescript": "catalog:", + "typescript": "catalog:typescript", "yaml": "catalog:" }, "devDependencies": { diff --git a/packages/testing/janitor/package.json b/packages/testing/janitor/package.json index 93cd5763cca..a9731600fe5 100644 --- a/packages/testing/janitor/package.json +++ b/packages/testing/janitor/package.json @@ -50,7 +50,7 @@ "@vitest/coverage-v8": "catalog:", "fast-check": "catalog:", "tsx": "catalog:", - "typescript": "catalog:", + "typescript": "catalog:typescript", "vitest": "catalog:" } } diff --git a/packages/testing/performance/package.json b/packages/testing/performance/package.json index 246dfc6d095..c14a4b98083 100644 --- a/packages/testing/performance/package.json +++ b/packages/testing/performance/package.json @@ -16,7 +16,7 @@ "@n8n/expression-runtime": "workspace:*", "vitest": "catalog:", "n8n-workflow": "workspace:*", - "typescript": "catalog:" + "typescript": "catalog:typescript" }, "license": "LicenseRef-n8n-sustainable-use" } diff --git a/packages/testing/playwright/package.json b/packages/testing/playwright/package.json index 908efef11d6..986f9dbc80c 100644 --- a/packages/testing/playwright/package.json +++ b/packages/testing/playwright/package.json @@ -83,7 +83,7 @@ "otplib": "^12.0.1", "ts-morph": "catalog:", "tsx": "catalog:", - "typescript": "catalog:", + "typescript": "catalog:typescript", "zod": "catalog:", "vitest": "catalog:" }, diff --git a/packages/testing/rules-engine/package.json b/packages/testing/rules-engine/package.json index 03668e75675..5a21ba7df28 100644 --- a/packages/testing/rules-engine/package.json +++ b/packages/testing/rules-engine/package.json @@ -40,7 +40,7 @@ "@n8n/vitest-config": "workspace:*", "@vitest/coverage-v8": "catalog:", "tsx": "catalog:", - "typescript": "catalog:", + "typescript": "catalog:typescript", "vitest": "catalog:" } } diff --git a/packages/testing/test-impact/package.json b/packages/testing/test-impact/package.json index f70cc2a5e8c..743aa09ad0a 100644 --- a/packages/testing/test-impact/package.json +++ b/packages/testing/test-impact/package.json @@ -44,7 +44,7 @@ "@types/node": "catalog:", "@vitest/coverage-v8": "catalog:", "fast-check": "catalog:", - "typescript": "catalog:", + "typescript": "catalog:typescript", "vitest": "catalog:" } } diff --git a/packages/workflow/package.json b/packages/workflow/package.json index 6379182b57c..dbe783d991c 100644 --- a/packages/workflow/package.json +++ b/packages/workflow/package.json @@ -62,7 +62,7 @@ "@types/xml2js": "catalog:", "fast-check": "catalog:", "nock": "catalog:", - "typescript": "catalog:", + "typescript": "catalog:typescript", "vite": "catalog:", "vitest": "catalog:", "vitest-mock-extended": "catalog:", diff --git a/packages/workflow/tsconfig.build.cjs.json b/packages/workflow/tsconfig.build.cjs.json index d823fe8a927..3275df20669 100644 --- a/packages/workflow/tsconfig.build.cjs.json +++ b/packages/workflow/tsconfig.build.cjs.json @@ -1,5 +1,5 @@ { - "extends": ["./tsconfig.json", "@n8n/typescript-config/modern/tsconfig.cjs.json"], + "extends": ["./tsconfig.json", "@n8n/typescript-config/modern/tsconfig.cjs.go.json"], "compilerOptions": { "rootDir": "src", "outDir": "dist/cjs" diff --git a/packages/workflow/tsconfig.json b/packages/workflow/tsconfig.json index e866429afe1..b38624ab915 100644 --- a/packages/workflow/tsconfig.json +++ b/packages/workflow/tsconfig.json @@ -1,9 +1,12 @@ { - "extends": "@n8n/typescript-config/modern/tsconfig.json", + "extends": "@n8n/typescript-config/modern/tsconfig.go.json", "compilerOptions": { "rootDir": ".", "noUncheckedIndexedAccess": false, - "types": ["vite/client", "vitest/globals"] + "types": ["vite/client", "vitest/globals"], + "paths": { + "esprima-next": ["./node_modules/esprima-next/dist/esm/esprima"] + } }, "include": ["src/**/*.ts", "test/**/*.ts", "vitest.config.ts"], "exclude": ["node_modules"] diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9f94647f84e..800a90ed534 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4664,8 +4664,8 @@ importers: specifier: 'catalog:' version: 0.2.2 typescript: - specifier: 'catalog:' - version: 6.0.2 + specifier: catalog:typescript + version: 7.0.2 vite: specifier: 'catalog:' version: 8.0.2(@types/node@20.19.41)(esbuild@0.28.1)(jiti@2.6.1)(sass-embedded@1.98.0)(sass@1.98.0)(terser@5.16.1)(tsx@4.19.3)(yaml@2.8.3) @@ -4674,7 +4674,7 @@ importers: version: 4.1.9(@opentelemetry/api@1.9.0)(@types/node@20.19.41)(@vitest/browser-playwright@4.1.9)(@vitest/coverage-v8@4.1.9)(jsdom@23.0.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(vite@8.0.2(@types/node@20.19.41)(esbuild@0.28.1)(jiti@2.6.1)(sass-embedded@1.98.0)(sass@1.98.0)(terser@5.16.1)(tsx@4.19.3)(yaml@2.8.3)) vitest-mock-extended: specifier: 'catalog:' - version: 3.1.0(typescript@6.0.2)(vitest@4.1.9) + version: 3.1.0(typescript@7.0.2)(vitest@4.1.9) zod: specifier: 3.25.67 version: 3.25.67 @@ -6327,7 +6327,7 @@ importers: version: 4.1.9(@vitest/browser@4.1.9)(vitest@4.1.9) eslint-plugin-n8n-nodes-base: specifier: 'catalog:' - version: 1.16.7(eslint@9.29.0(jiti@2.6.1))(typescript@6.0.2) + version: 1.16.7(eslint@9.29.0(jiti@2.6.1))(typescript@7.0.2) n8n-containers: specifier: workspace:* version: link:../testing/containers @@ -6341,8 +6341,8 @@ importers: specifier: 'catalog:' version: 0.2.2 typescript: - specifier: 'catalog:' - version: 6.0.2 + specifier: catalog:typescript + version: 7.0.2 vite: specifier: 'catalog:' version: 8.0.2(@types/node@20.19.41)(esbuild@0.28.1)(jiti@2.6.1)(sass-embedded@1.98.0)(sass@1.98.0)(terser@5.16.1)(tsx@4.19.3)(yaml@2.8.3) @@ -6351,7 +6351,7 @@ importers: version: 4.1.9(@opentelemetry/api@1.9.0)(@types/node@20.19.41)(@vitest/browser-playwright@4.1.9)(@vitest/coverage-v8@4.1.9)(jsdom@23.0.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(vite@8.0.2(@types/node@20.19.41)(esbuild@0.28.1)(jiti@2.6.1)(sass-embedded@1.98.0)(sass@1.98.0)(terser@5.16.1)(tsx@4.19.3)(yaml@2.8.3)) vitest-mock-extended: specifier: 'catalog:' - version: 3.1.0(typescript@6.0.2)(vitest@4.1.9) + version: 3.1.0(typescript@7.0.2)(vitest@4.1.9) packages/testing/code-health: dependencies: @@ -6371,8 +6371,8 @@ importers: specifier: 'catalog:' version: 4.19.3 typescript: - specifier: 'catalog:' - version: 6.0.2 + specifier: catalog:typescript + version: 7.0.2 yaml: specifier: 'catalog:' version: 2.8.3 @@ -6458,8 +6458,8 @@ importers: specifier: 'catalog:' version: 4.19.3 typescript: - specifier: 'catalog:' - version: 6.0.2 + specifier: catalog:typescript + version: 7.0.2 vitest: specifier: 'catalog:' version: 4.1.9(@opentelemetry/api@1.9.0)(@types/node@20.19.41)(@vitest/browser-playwright@4.1.9)(@vitest/coverage-v8@4.1.9)(jsdom@23.0.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(vite@8.0.2(@types/node@20.19.41)(esbuild@0.28.1)(jiti@2.6.1)(sass-embedded@1.98.0)(sass@1.98.0)(terser@5.16.1)(tsx@4.19.3)(yaml@2.8.3)) @@ -6476,8 +6476,8 @@ importers: specifier: workspace:* version: link:../../workflow typescript: - specifier: 'catalog:' - version: 6.0.2 + specifier: catalog:typescript + version: 7.0.2 vitest: specifier: 'catalog:' version: 4.1.9(@opentelemetry/api@1.9.0)(@types/node@20.19.41)(@vitest/browser-playwright@4.1.9)(@vitest/coverage-v8@4.1.9)(jsdom@23.0.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(vite@8.0.2(@types/node@20.19.41)(esbuild@0.28.1)(jiti@2.6.1)(sass-embedded@1.98.0)(sass@1.98.0)(terser@5.16.1)(tsx@4.19.3)(yaml@2.8.3)) @@ -6492,10 +6492,10 @@ importers: version: 2.0.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) '@memlab/api': specifier: 2.0.0 - version: 2.0.0(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10) + version: 2.0.0(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10) '@memlab/heap-analysis': specifier: 2.0.0 - version: 2.0.0(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10) + version: 2.0.0(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10) '@n8n/api-types': specifier: workspace:* version: link:../../@n8n/api-types @@ -6587,8 +6587,8 @@ importers: specifier: 'catalog:' version: 4.19.3 typescript: - specifier: 'catalog:' - version: 6.0.2 + specifier: catalog:typescript + version: 7.0.2 vitest: specifier: 'catalog:' version: 4.1.9(@opentelemetry/api@1.9.0)(@types/node@20.19.41)(@vitest/browser-playwright@4.1.9)(@vitest/coverage-v8@4.1.9)(jsdom@23.0.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(vite@8.0.2(@types/node@20.19.41)(esbuild@0.28.1)(jiti@2.6.1)(sass-embedded@1.98.0)(sass@1.98.0)(terser@5.16.1)(tsx@4.19.3)(yaml@2.8.3)) @@ -6612,8 +6612,8 @@ importers: specifier: 'catalog:' version: 4.19.3 typescript: - specifier: 'catalog:' - version: 6.0.2 + specifier: catalog:typescript + version: 7.0.2 vitest: specifier: 'catalog:' version: 4.1.9(@opentelemetry/api@1.9.0)(@types/node@20.19.41)(@vitest/browser-playwright@4.1.9)(@vitest/coverage-v8@4.1.9)(jsdom@23.0.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(vite@8.0.2(@types/node@20.19.41)(esbuild@0.28.1)(jiti@2.6.1)(sass-embedded@1.98.0)(sass@1.98.0)(terser@5.16.1)(tsx@4.19.3)(yaml@2.8.3)) @@ -6634,8 +6634,8 @@ importers: specifier: 'catalog:' version: 3.23.2 typescript: - specifier: 'catalog:' - version: 6.0.2 + specifier: catalog:typescript + version: 7.0.2 vitest: specifier: 'catalog:' version: 4.1.9(@opentelemetry/api@1.9.0)(@types/node@20.19.41)(@vitest/browser-playwright@4.1.9)(@vitest/coverage-v8@4.1.9)(jsdom@23.0.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(vite@8.0.2(@types/node@20.19.41)(esbuild@0.28.1)(jiti@2.6.1)(sass-embedded@1.98.0)(sass@1.98.0)(terser@5.16.1)(tsx@4.19.3)(yaml@2.8.3)) @@ -6773,8 +6773,8 @@ importers: specifier: 'catalog:' version: 14.0.14 typescript: - specifier: 'catalog:' - version: 6.0.2 + specifier: catalog:typescript + version: 7.0.2 vite: specifier: 'catalog:' version: 8.0.2(@types/node@20.19.41)(esbuild@0.28.1)(jiti@2.6.1)(sass-embedded@1.98.0)(sass@1.98.0)(terser@5.16.1)(tsx@4.19.3)(yaml@2.8.3) @@ -6783,7 +6783,7 @@ importers: version: 4.1.9(@opentelemetry/api@1.9.0)(@types/node@20.19.41)(@vitest/browser-playwright@4.1.9)(@vitest/coverage-v8@4.1.9)(jsdom@23.0.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(vite@8.0.2(@types/node@20.19.41)(esbuild@0.28.1)(jiti@2.6.1)(sass-embedded@1.98.0)(sass@1.98.0)(terser@5.16.1)(tsx@4.19.3)(yaml@2.8.3)) vitest-mock-extended: specifier: 'catalog:' - version: 3.1.0(typescript@6.0.2)(vitest@4.1.9) + version: 3.1.0(typescript@7.0.2)(vitest@4.1.9) zod: specifier: 3.25.67 version: 3.25.67 @@ -26725,17 +26725,17 @@ snapshots: '@types/react': 18.0.27 react: 18.2.0 - '@memlab/api@2.0.0(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10)': + '@memlab/api@2.0.0(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10)': dependencies: - '@memlab/core': 2.0.1(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10) - '@memlab/e2e': 2.0.1(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10) - '@memlab/heap-analysis': 2.0.0(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10) + '@memlab/core': 2.0.1(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10) + '@memlab/e2e': 2.0.1(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10) + '@memlab/heap-analysis': 2.0.0(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10) ansi: 0.3.1 babar: 0.2.3 chalk: 4.1.2 fs-extra: 4.0.3 minimist: 1.2.8 - puppeteer: 24.41.0(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10) + puppeteer: 24.41.0(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10) puppeteer-core: 24.41.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) string-width: 4.2.3 util.promisify: 1.1.3 @@ -26746,14 +26746,14 @@ snapshots: - typescript - utf-8-validate - '@memlab/core@2.0.1(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10)': + '@memlab/core@2.0.1(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10)': dependencies: ansi: 0.3.1 babar: 0.2.3 chalk: 4.1.2 fs-extra: 4.0.3 minimist: 1.2.8 - puppeteer: 24.41.0(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10) + puppeteer: 24.41.0(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10) puppeteer-core: 24.41.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) string-width: 4.2.3 util.promisify: 1.1.3 @@ -26764,20 +26764,20 @@ snapshots: - typescript - utf-8-validate - '@memlab/e2e@2.0.1(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10)': + '@memlab/e2e@2.0.1(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10)': dependencies: '@babel/generator': 7.29.1 '@babel/parser': 7.29.2 '@babel/template': 7.28.6 '@babel/traverse': 7.29.0 - '@memlab/core': 2.0.1(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10) + '@memlab/core': 2.0.1(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10) '@memlab/lens': 2.0.1 ansi: 0.3.1 babar: 0.2.3 chalk: 4.1.2 fs-extra: 4.0.3 minimist: 1.2.8 - puppeteer: 24.41.0(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10) + puppeteer: 24.41.0(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10) puppeteer-core: 24.41.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) string-width: 4.2.3 util.promisify: 1.1.3 @@ -26788,16 +26788,16 @@ snapshots: - typescript - utf-8-validate - '@memlab/heap-analysis@2.0.0(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10)': + '@memlab/heap-analysis@2.0.0(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10)': dependencies: - '@memlab/core': 2.0.1(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10) - '@memlab/e2e': 2.0.1(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10) + '@memlab/core': 2.0.1(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10) + '@memlab/e2e': 2.0.1(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10) ansi: 0.3.1 babar: 0.2.3 chalk: 4.1.2 fs-extra: 4.0.3 minimist: 1.2.8 - puppeteer: 24.41.0(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10) + puppeteer: 24.41.0(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10) puppeteer-core: 24.41.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) string-width: 4.2.3 util.promisify: 1.1.3 @@ -33795,20 +33795,6 @@ snapshots: - supports-color - typescript - eslint-plugin-n8n-nodes-base@1.16.7(eslint@9.29.0(jiti@2.6.1))(typescript@6.0.2): - dependencies: - '@typescript-eslint/utils': 8.35.0(eslint@9.29.0(jiti@2.6.1))(typescript@6.0.2) - camel-case: 4.1.2 - indefinite: 2.5.1 - pascal-case: 3.1.2 - pluralize: 8.0.0 - sentence-case: 3.0.4 - title-case: 3.0.3 - transitivePeerDependencies: - - eslint - - supports-color - - typescript - eslint-plugin-n8n-nodes-base@1.16.7(eslint@9.29.0(jiti@2.6.1))(typescript@7.0.2): dependencies: '@typescript-eslint/utils': 8.35.0(eslint@9.29.0(jiti@2.6.1))(typescript@7.0.2) @@ -38855,20 +38841,6 @@ snapshots: - utf-8-validate optional: true - puppeteer@24.41.0(bufferutil@4.0.9)(typescript@6.0.2)(utf-8-validate@5.0.10): - dependencies: - '@puppeteer/browsers': 2.13.0 - chromium-bidi: 14.0.0(devtools-protocol@0.0.1595872) - cosmiconfig: 9.0.0(typescript@6.0.2) - devtools-protocol: 0.0.1595872 - puppeteer-core: 24.41.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - typed-query-selector: 2.12.1 - transitivePeerDependencies: - - bufferutil - - supports-color - - typescript - - utf-8-validate - puppeteer@24.41.0(bufferutil@4.0.9)(typescript@7.0.2)(utf-8-validate@5.0.10): dependencies: '@puppeteer/browsers': 2.13.0 @@ -38882,7 +38854,6 @@ snapshots: - supports-color - typescript - utf-8-validate - optional: true pure-rand@6.1.0: {} diff --git a/scripts/typescript-migration/results/_n8n_code-health.json b/scripts/typescript-migration/results/_n8n_code-health.json new file mode 100644 index 00000000000..529d631a10b --- /dev/null +++ b/scripts/typescript-migration/results/_n8n_code-health.json @@ -0,0 +1,61 @@ +{ + "package": "@n8n/code-health", + "runs": { + "before": { + "label": "before", + "tsVersion": "6.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T11:22:22.057Z", + "tasks": { + "typecheck": { + "runsMs": [ + 1217, + 1033, + 955 + ], + "min": 955, + "median": 1033, + "mean": 1069 + }, + "build": { + "runsMs": [ + 890, + 974, + 851 + ], + "min": 851, + "median": 890, + "mean": 905 + } + } + }, + "after": { + "label": "after", + "tsVersion": "7.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T11:23:37.921Z", + "tasks": { + "typecheck": { + "runsMs": [ + 543, + 530, + 530 + ], + "min": 530, + "median": 530, + "mean": 535 + }, + "build": { + "runsMs": [ + 512, + 503, + 571 + ], + "min": 503, + "median": 512, + "mean": 529 + } + } + } + } +} diff --git a/scripts/typescript-migration/results/_n8n_performance.json b/scripts/typescript-migration/results/_n8n_performance.json new file mode 100644 index 00000000000..0524de2cebd --- /dev/null +++ b/scripts/typescript-migration/results/_n8n_performance.json @@ -0,0 +1,41 @@ +{ + "package": "@n8n/performance", + "runs": { + "before": { + "label": "before", + "tsVersion": "6.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T11:25:40.590Z", + "tasks": { + "typecheck": { + "runsMs": [ + 1186, + 1061, + 1031 + ], + "min": 1031, + "median": 1061, + "mean": 1093 + } + } + }, + "after": { + "label": "after", + "tsVersion": "7.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T11:26:08.440Z", + "tasks": { + "typecheck": { + "runsMs": [ + 584, + 538, + 526 + ], + "min": 526, + "median": 538, + "mean": 549 + } + } + } + } +} diff --git a/scripts/typescript-migration/results/_n8n_playwright-janitor.json b/scripts/typescript-migration/results/_n8n_playwright-janitor.json new file mode 100644 index 00000000000..491e34e7fc4 --- /dev/null +++ b/scripts/typescript-migration/results/_n8n_playwright-janitor.json @@ -0,0 +1,61 @@ +{ + "package": "@n8n/playwright-janitor", + "runs": { + "before": { + "label": "before", + "tsVersion": "6.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T11:24:20.759Z", + "tasks": { + "typecheck": { + "runsMs": [ + 1285, + 1194, + 1497 + ], + "min": 1194, + "median": 1285, + "mean": 1325 + }, + "build": { + "runsMs": [ + 1375, + 1451, + 1391 + ], + "min": 1375, + "median": 1391, + "mean": 1406 + } + } + }, + "after": { + "label": "after", + "tsVersion": "7.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T11:25:01.813Z", + "tasks": { + "typecheck": { + "runsMs": [ + 597, + 642, + 580 + ], + "min": 580, + "median": 597, + "mean": 606 + }, + "build": { + "runsMs": [ + 586, + 654, + 629 + ], + "min": 586, + "median": 629, + "mean": 623 + } + } + } + } +} diff --git a/scripts/typescript-migration/results/_n8n_rules-engine.json b/scripts/typescript-migration/results/_n8n_rules-engine.json new file mode 100644 index 00000000000..5a14ff6c583 --- /dev/null +++ b/scripts/typescript-migration/results/_n8n_rules-engine.json @@ -0,0 +1,61 @@ +{ + "package": "@n8n/rules-engine", + "runs": { + "before": { + "label": "before", + "tsVersion": "6.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T11:29:23.570Z", + "tasks": { + "typecheck": { + "runsMs": [ + 893, + 844, + 875 + ], + "min": 844, + "median": 875, + "mean": 871 + }, + "build": { + "runsMs": [ + 811, + 812, + 822 + ], + "min": 811, + "median": 812, + "mean": 815 + } + } + }, + "after": { + "label": "after", + "tsVersion": "7.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T11:30:00.600Z", + "tasks": { + "typecheck": { + "runsMs": [ + 535, + 521, + 515 + ], + "min": 515, + "median": 521, + "mean": 524 + }, + "build": { + "runsMs": [ + 565, + 513, + 495 + ], + "min": 495, + "median": 513, + "mean": 524 + } + } + } + } +} diff --git a/scripts/typescript-migration/results/_n8n_test-impact.json b/scripts/typescript-migration/results/_n8n_test-impact.json new file mode 100644 index 00000000000..e2ab967d77a --- /dev/null +++ b/scripts/typescript-migration/results/_n8n_test-impact.json @@ -0,0 +1,61 @@ +{ + "package": "@n8n/test-impact", + "runs": { + "before": { + "label": "before", + "tsVersion": "6.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T11:30:38.250Z", + "tasks": { + "typecheck": { + "runsMs": [ + 1077, + 948, + 912 + ], + "min": 912, + "median": 948, + "mean": 979 + }, + "build": { + "runsMs": [ + 926, + 920, + 887 + ], + "min": 887, + "median": 920, + "mean": 911 + } + } + }, + "after": { + "label": "after", + "tsVersion": "7.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T11:31:03.641Z", + "tasks": { + "typecheck": { + "runsMs": [ + 504, + 570, + 497 + ], + "min": 497, + "median": 504, + "mean": 524 + }, + "build": { + "runsMs": [ + 499, + 611, + 500 + ], + "min": 499, + "median": 500, + "mean": 537 + } + } + } + } +} diff --git a/scripts/typescript-migration/results/n8n-core.json b/scripts/typescript-migration/results/n8n-core.json new file mode 100644 index 00000000000..dbdc2c6b5cb --- /dev/null +++ b/scripts/typescript-migration/results/n8n-core.json @@ -0,0 +1,61 @@ +{ + "package": "n8n-core", + "runs": { + "before": { + "label": "before", + "tsVersion": "6.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T10:55:55.832Z", + "tasks": { + "typecheck": { + "runsMs": [ + 3748, + 3270, + 3184 + ], + "min": 3184, + "median": 3270, + "mean": 3401 + }, + "build": { + "runsMs": [ + 2979, + 3573, + 3050 + ], + "min": 2979, + "median": 3050, + "mean": 3201 + } + } + }, + "after": { + "label": "after", + "tsVersion": "7.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T10:58:23.587Z", + "tasks": { + "typecheck": { + "runsMs": [ + 1273, + 1119, + 1094 + ], + "min": 1094, + "median": 1119, + "mean": 1162 + }, + "build": { + "runsMs": [ + 1599, + 1797, + 978 + ], + "min": 978, + "median": 1599, + "mean": 1458 + } + } + } + } +} diff --git a/scripts/typescript-migration/results/n8n-nodes-base.json b/scripts/typescript-migration/results/n8n-nodes-base.json new file mode 100644 index 00000000000..c0de8989626 --- /dev/null +++ b/scripts/typescript-migration/results/n8n-nodes-base.json @@ -0,0 +1,61 @@ +{ + "package": "n8n-nodes-base", + "runs": { + "before": { + "label": "before", + "tsVersion": "6.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T11:05:53.926Z", + "tasks": { + "typecheck": { + "runsMs": [ + 17177, + 16411, + 16991 + ], + "min": 16411, + "median": 16991, + "mean": 16860 + }, + "build": { + "runsMs": [ + 42612, + 47814, + 45802 + ], + "min": 42612, + "median": 45802, + "mean": 45409 + } + } + }, + "after": { + "label": "after", + "tsVersion": "7.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T11:20:04.736Z", + "tasks": { + "typecheck": { + "runsMs": [ + 4628, + 3761, + 3682 + ], + "min": 3682, + "median": 3761, + "mean": 4024 + }, + "build": { + "runsMs": [ + 33356, + 32118, + 31927 + ], + "min": 31927, + "median": 32118, + "mean": 32467 + } + } + } + } +} diff --git a/scripts/typescript-migration/results/n8n-playwright.json b/scripts/typescript-migration/results/n8n-playwright.json new file mode 100644 index 00000000000..945dd92b386 --- /dev/null +++ b/scripts/typescript-migration/results/n8n-playwright.json @@ -0,0 +1,41 @@ +{ + "package": "n8n-playwright", + "runs": { + "before": { + "label": "before", + "tsVersion": "6.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T11:28:02.755Z", + "tasks": { + "typecheck": { + "runsMs": [ + 4097, + 3332, + 3298 + ], + "min": 3298, + "median": 3332, + "mean": 3576 + } + } + }, + "after": { + "label": "after", + "tsVersion": "7.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T11:28:40.308Z", + "tasks": { + "typecheck": { + "runsMs": [ + 1459, + 1238, + 1113 + ], + "min": 1113, + "median": 1238, + "mean": 1270 + } + } + } + } +} diff --git a/scripts/typescript-migration/results/n8n-workflow.json b/scripts/typescript-migration/results/n8n-workflow.json new file mode 100644 index 00000000000..6ba834d9734 --- /dev/null +++ b/scripts/typescript-migration/results/n8n-workflow.json @@ -0,0 +1,61 @@ +{ + "package": "n8n-workflow", + "runs": { + "before": { + "label": "before", + "tsVersion": "6.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T10:53:11.029Z", + "tasks": { + "typecheck": { + "runsMs": [ + 3033, + 2749, + 2774 + ], + "min": 2749, + "median": 2774, + "mean": 2852 + }, + "build": { + "runsMs": [ + 3221, + 4432, + 4179 + ], + "min": 3221, + "median": 4179, + "mean": 3944 + } + } + }, + "after": { + "label": "after", + "tsVersion": "7.0.2", + "node": "v24.13.0", + "timestamp": "2026-07-16T10:54:33.021Z", + "tasks": { + "typecheck": { + "runsMs": [ + 1012, + 896, + 917 + ], + "min": 896, + "median": 917, + "mean": 942 + }, + "build": { + "runsMs": [ + 856, + 1025, + 2129 + ], + "min": 856, + "median": 1025, + "mean": 1337 + } + } + } + } +} diff --git a/tsconfig.json b/tsconfig.json index 9e9f6f14875..e580b9c0a9d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "./packages/@n8n/typescript-config/tsconfig.common.json", + "extends": "./packages/@n8n/typescript-config/tsconfig.common.go.json", "exclude": ["**/dist/**/*", "**/node_modules/**/*"] }