Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
refactor(ts/e2e): remove deprecated `nodeVersions` property
jkomyno2367cd799bbb
diff --git a/ts/e2e-tests/_utils/README.md b/ts/e2e-tests/_utils/README.mdindex b45242341..e74986ac9 100644--- a/ts/e2e-tests/_utils/README.md+++ b/ts/e2e-tests/_utils/README.md@@ -50,7 +50,6 @@ Configuration object passed to `e2e()`:| Property | Type | Description || -------------- | ------------------------------------- | ---------------------------------------------------------------- || `versions` | `RuntimeVersions` | Runtime versions to test. See RuntimeVersions below |-| `nodeVersions` | `readonly NodeVersionFromUser[]` | **Deprecated.** Use `versions.node` instead || `env` | `Record<string, string \| undefined>` | Environment variables for Docker. Validated at startup || `usesFixtures` | `boolean` | When true, sets cwd to `{testDir}/fixtures`. Default: `false` || `defineTests` | `(ctx: DefineTestsContext) => void` | Callback to define tests using bun:test primitives |@@ -162,7 +161,7 @@ it('calls LLM', async () => {Node.js versions to test are resolved in this order:1. **`COMPOSIO_E2E_NODE_VERSION` env var** (highest priority): Use `[env_value]`-2. **`config.versions.node`** or **`config.nodeVersions`**: Use the provided array+2. **`config.versions.node`**: Use the provided array3. **Default**: Use version from `.nvmrc` file### Well-Known Node Versionsdiff --git a/ts/e2e-tests/_utils/src/e2e.ts b/ts/e2e-tests/_utils/src/e2e.tsindex 7f99e6fcf..04c0007ca 100644--- a/ts/e2e-tests/_utils/src/e2e.ts+++ b/ts/e2e-tests/_utils/src/e2e.ts@@ -52,7 +52,7 @@ function inferCwd(importMetaUrl: string, repoRoot: string): string {* import type { E2ETestResult } from '@e2e-tests/utils';** e2e(import.meta.url, {- * nodeVersions: ['20.19.0', '22.12.0'],+ * versions: { node: ['20.19.0', '22.12.0'] },* env: { COMPOSIO_API_KEY: process.env.COMPOSIO_API_KEY },* defineTests: ({ describe, it, expect, beforeAll, runFixture }) => {* let result: E2ETestResult;diff --git a/ts/e2e-tests/_utils/src/runner.ts b/ts/e2e-tests/_utils/src/runner.tsindex a059a36e3..b17339ff6 100644--- a/ts/e2e-tests/_utils/src/runner.ts+++ b/ts/e2e-tests/_utils/src/runner.ts@@ -576,17 +576,12 @@ function createDenoDockerExecutors(// ============================================================================/**- * Normalize config to support both old (nodeVersions) and new (versions) formats.+ * Normalize config to RuntimeVersions format.*/function normalizeVersionConfig(config: E2EConfig): RuntimeVersions {- // New format takes precedenceif (config.versions) {return config.versions;}- // Legacy format- if (config.nodeVersions) {- return { node: config.nodeVersions };- }// Default: use current Node.js versionreturn { node: ['current'] };}diff --git a/ts/e2e-tests/_utils/src/types.ts b/ts/e2e-tests/_utils/src/types.tsindex a0fc7106c..8b217684b 100644--- a/ts/e2e-tests/_utils/src/types.ts+++ b/ts/e2e-tests/_utils/src/types.ts@@ -133,19 +133,9 @@ export interface DefineTestsContext {* Configuration for e2e tests.*/export interface E2EConfig {- /**- * Node.js versions to test against.- * Each version creates a separate describe block.- * If not provided, defaults to the current Node runtime version.- *- * @deprecated Use `versions.node` instead. This property will be removed in a future version.- */- nodeVersions?: readonly NodeVersionFromUser[];-/*** Runtime versions to test against.* Supports Node.js and Deno runtimes.- * Takes precedence over the deprecated `nodeVersions` property.** @example* ```typescriptdiff --git a/ts/e2e-tests/runtimes/node/cjs-basic/e2e.test.ts b/ts/e2e-tests/runtimes/node/cjs-basic/e2e.test.tsindex 2b50a319c..365837c50 100644--- a/ts/e2e-tests/runtimes/node/cjs-basic/e2e.test.ts+++ b/ts/e2e-tests/runtimes/node/cjs-basic/e2e.test.ts@@ -8,13 +8,15 @@ import { e2e, type E2ETestResult } from '@e2e-tests/utils';import { describe, it, expect, beforeAll } from 'bun:test';e2e(import.meta.url, {- nodeVersions: [- // may throw ERR_REQUIRE_ESM- '20.18.0',- // supports ESM by default- '20.19.0',- '22.12.0',- ],+ versions: {+ node: [+ // may throw ERR_REQUIRE_ESM+ '20.18.0',+ // supports ESM by default+ '20.19.0',+ '22.12.0',+ ],+ },usesFixtures: true,defineTests: ({ runFixture }) => {let result: E2ETestResult;diff --git a/ts/e2e-tests/runtimes/node/esm-basic/e2e.test.ts b/ts/e2e-tests/runtimes/node/esm-basic/e2e.test.tsindex 12c098ab9..96c0933f4 100644--- a/ts/e2e-tests/runtimes/node/esm-basic/e2e.test.ts+++ b/ts/e2e-tests/runtimes/node/esm-basic/e2e.test.ts@@ -8,13 +8,15 @@ import { e2e, type E2ETestResult } from '@e2e-tests/utils';import { describe, it, expect, beforeAll } from 'bun:test';e2e(import.meta.url, {- nodeVersions: [- // may throw ERR_REQUIRE_ESM- '20.18.0',- // supports ESM by default- '20.19.0',- '22.12.0',- ],+ versions: {+ node: [+ // may throw ERR_REQUIRE_ESM+ '20.18.0',+ // supports ESM by default+ '20.19.0',+ '22.12.0',+ ],+ },usesFixtures: true,defineTests: ({ runFixture }) => {let result: E2ETestResult;diff --git a/ts/e2e-tests/runtimes/node/file-roundtrip/e2e.test.ts b/ts/e2e-tests/runtimes/node/file-roundtrip/e2e.test.tsindex 4c15f49c3..a6f20709e 100644--- a/ts/e2e-tests/runtimes/node/file-roundtrip/e2e.test.ts+++ b/ts/e2e-tests/runtimes/node/file-roundtrip/e2e.test.ts@@ -8,7 +8,7 @@ declare module 'bun' {}e2e(import.meta.url, {- nodeVersions: ['current'],+ versions: { node: ['current'] },usesFixtures: true,env: {COMPOSIO_API_KEY: Bun.env.COMPOSIO_API_KEY,diff --git a/ts/e2e-tests/runtimes/node/json-schema-to-zod-v3/e2e.test.ts b/ts/e2e-tests/runtimes/node/json-schema-to-zod-v3/e2e.test.tsindex e21195a6b..e654380d3 100644--- a/ts/e2e-tests/runtimes/node/json-schema-to-zod-v3/e2e.test.ts+++ b/ts/e2e-tests/runtimes/node/json-schema-to-zod-v3/e2e.test.ts@@ -11,7 +11,7 @@ import { describe, it, expect } from 'bun:test';import zodToJsonSchema from 'zod-to-json-schema';e2e(import.meta.url, {- nodeVersions: ['current'],+ versions: { node: ['current'] },defineTests: () => {describe('json-schema-to-zod with Zod v3', () => {describe('Basic functionality', () => {diff --git a/ts/e2e-tests/runtimes/node/json-schema-to-zod-v4/e2e.test.ts b/ts/e2e-tests/runtimes/node/json-schema-to-zod-v4/e2e.test.tsindex 3d081b8dd..1e162205a 100644--- a/ts/e2e-tests/runtimes/node/json-schema-to-zod-v4/e2e.test.ts+++ b/ts/e2e-tests/runtimes/node/json-schema-to-zod-v4/e2e.test.ts@@ -10,7 +10,7 @@ import { e2e } from '@e2e-tests/utils';import { describe, it, expect } from 'bun:test';e2e(import.meta.url, {- nodeVersions: ['current'],+ versions: { node: ['current'] },defineTests: () => {describe('json-schema-to-zod with Zod v4', () => {describe('Basic functionality', () => {diff --git a/ts/e2e-tests/runtimes/node/mastra-tool-router-zod-v3/e2e.test.ts b/ts/e2e-tests/runtimes/node/mastra-tool-router-zod-v3/e2e.test.tsindex e4b8e37b5..094dae2b7 100644--- a/ts/e2e-tests/runtimes/node/mastra-tool-router-zod-v3/e2e.test.ts+++ b/ts/e2e-tests/runtimes/node/mastra-tool-router-zod-v3/e2e.test.ts@@ -25,7 +25,7 @@ declare module 'bun' {}e2e(import.meta.url, {- nodeVersions: ['22.12.0'],+ versions: { node: ['22.12.0'] },env: {COMPOSIO_API_KEY: Bun.env.COMPOSIO_API_KEY,OPENAI_API_KEY: Bun.env.OPENAI_API_KEY,diff --git a/ts/e2e-tests/runtimes/node/mastra-tool-router-zod-v4/e2e.test.ts b/ts/e2e-tests/runtimes/node/mastra-tool-router-zod-v4/e2e.test.tsindex 554a67287..0d940e774 100644--- a/ts/e2e-tests/runtimes/node/mastra-tool-router-zod-v4/e2e.test.ts+++ b/ts/e2e-tests/runtimes/node/mastra-tool-router-zod-v4/e2e.test.ts@@ -25,7 +25,7 @@ declare module 'bun' {}e2e(import.meta.url, {- nodeVersions: ['22.12.0'],+ versions: { node: ['22.12.0'] },env: {COMPOSIO_API_KEY: Bun.env.COMPOSIO_API_KEY,OPENAI_API_KEY: Bun.env.OPENAI_API_KEY,diff --git a/ts/e2e-tests/runtimes/node/openai-zod4-compat/e2e.test.ts b/ts/e2e-tests/runtimes/node/openai-zod4-compat/e2e.test.tsindex ef0fe22a2..5c32d42a4 100644--- a/ts/e2e-tests/runtimes/node/openai-zod4-compat/e2e.test.ts+++ b/ts/e2e-tests/runtimes/node/openai-zod4-compat/e2e.test.ts@@ -15,7 +15,7 @@ declare module 'bun' {}e2e(import.meta.url, {- nodeVersions: ['20.19.0', '22.12.0'],+ versions: { node: ['20.19.0', '22.12.0'] },usesFixtures: true,env: {COMPOSIO_API_KEY: Bun.env.COMPOSIO_API_KEY,diff --git a/ts/e2e-tests/runtimes/node/typescript-mjs-import-nodenext/e2e.test.ts b/ts/e2e-tests/runtimes/node/typescript-mjs-import-nodenext/e2e.test.tsindex 50d062689..6382aeb4a 100644--- a/ts/e2e-tests/runtimes/node/typescript-mjs-import-nodenext/e2e.test.ts+++ b/ts/e2e-tests/runtimes/node/typescript-mjs-import-nodenext/e2e.test.ts@@ -17,7 +17,7 @@ declare module 'bun' {}e2e(import.meta.url, {- nodeVersions: ['current'],+ versions: { node: ['current'] },env: {COMPOSIO_API_KEY: Bun.env.COMPOSIO_API_KEY,},