diff --git a/packages/type-safe-api/src/project/codegen/handlers/generated-python-handlers-base-project.ts b/packages/type-safe-api/src/project/codegen/handlers/generated-python-handlers-base-project.ts index 337c67beb..def152db3 100644 --- a/packages/type-safe-api/src/project/codegen/handlers/generated-python-handlers-base-project.ts +++ b/packages/type-safe-api/src/project/codegen/handlers/generated-python-handlers-base-project.ts @@ -58,7 +58,7 @@ export abstract class GeneratedPythonHandlersBaseProject extends PythonProject { }); TypeSafeApiCommandEnvironment.ensure(this); this.options = options; - this.runtimeVersion = options.runtimeVersion ?? PythonVersion.PYTHON_3_11; + this.runtimeVersion = options.runtimeVersion ?? PythonVersion.PYTHON_3_13; this.tstDir = "test"; if (options.pytest ?? true) { diff --git a/packages/type-safe-api/src/project/codegen/handlers/generated-typescript-handlers-base-project.ts b/packages/type-safe-api/src/project/codegen/handlers/generated-typescript-handlers-base-project.ts index d5cfafd24..75abb447e 100644 --- a/packages/type-safe-api/src/project/codegen/handlers/generated-typescript-handlers-base-project.ts +++ b/packages/type-safe-api/src/project/codegen/handlers/generated-typescript-handlers-base-project.ts @@ -63,7 +63,7 @@ export abstract class GeneratedTypescriptHandlersBaseProject extends TypeScriptP npmignoreEnabled: false, }); this.options = options; - this.runtimeVersion = options.runtimeVersion ?? NodeVersion.NODE_18; + this.runtimeVersion = options.runtimeVersion ?? NodeVersion.NODE_22; TypeSafeApiCommandEnvironment.ensure(this); diff --git a/packages/type-safe-api/src/project/types.ts b/packages/type-safe-api/src/project/types.ts index 5c720b8e9..c12a822d0 100644 --- a/packages/type-safe-api/src/project/types.ts +++ b/packages/type-safe-api/src/project/types.ts @@ -210,7 +210,7 @@ export interface GeneratedTypeScriptHandlersOptions /** * Runtime version to target for the handlers - * @default NodeVersion.NODE_18 + * @default NodeVersion.NODE_22 */ readonly runtimeVersion?: NodeVersion; } @@ -231,7 +231,7 @@ export interface GeneratedPythonHandlersOptions /** * Runtime version to target for the handlers - * @default PythonVersion.PYTHON_3_11 + * @default PythonVersion.PYTHON_3_13 */ readonly runtimeVersion?: PythonVersion; }