Skip to content

feat(config)!: remove function memoryMib (fixed by platform)#173

Merged
andrelandgraf merged 4 commits into
mainfrom
feat/remove-function-memory-v2
Jun 9, 2026
Merged

feat(config)!: remove function memoryMib (fixed by platform)#173
andrelandgraf merged 4 commits into
mainfrom
feat/remove-function-memory-v2

Conversation

@andrelandgraf

Copy link
Copy Markdown
Collaborator

Summary

Function memory is no longer user-configurable; it is fixed by the platform policy. This removes the setting from every layer.

  • @neondatabase/config: drop FunctionMemoryMib; remove memoryMib from FunctionTuning, ResolvedFunctionConfig, and DeployFunctionInput. The real NeonApi adapter no longer sends a memory_mib form field.
  • @neondatabase/config-runtime: stop threading memoryMib through plan/apply steps.
  • A neon.ts setting branch.preview.functions[slug].memoryMib is now a type error and is rejected by the schema.

Versions: config 0.3.0 -> 0.4.0, config-runtime 0.4.0, env 0.3.0 (changeset included).

Stacked on #172 (lint fix). Merge #172 first, then this.

Test plan

  • pnpm --filter @neondatabase/config --filter @neondatabase/config-runtime --filter @neondatabase/env tsc
  • package tests: config 154 / config-runtime 34 / env 35
  • pnpm lint:ci

Base automatically changed from fix/static-config-lint-ci to main June 9, 2026 15:40
Function memory is no longer user-configurable. Remove `FunctionMemoryMib` and
drop `memoryMib` from `FunctionTuning`, `ResolvedFunctionConfig`, and
`DeployFunctionInput`; the real NeonApi adapter no longer sends a `memory_mib`
form field, and config-runtime stops threading it through plan/apply steps.

A `neon.ts` setting `branch.preview.functions[slug].memoryMib` is now a type
error and rejected by the schema.

config 0.3.0 -> 0.4.0, config-runtime 0.4.0, env 0.3.0 (changeset included).
@andrelandgraf andrelandgraf force-pushed the feat/remove-function-memory-v2 branch from 777091a to b1a7a9e Compare June 9, 2026 15:42
@andrelandgraf andrelandgraf enabled auto-merge (squash) June 9, 2026 15:44
The `loads a neon.ts branch policy` test loads a temp `neon.ts` via jiti; under
CI's `--coverage` instrumentation that cold TypeScript transpile can exceed the
default 5s vitest timeout (it ran ~250ms locally but flaked at 5.6s in CI).
Give it an explicit 30s timeout.
@andrelandgraf andrelandgraf merged commit 3fbf556 into main Jun 9, 2026
9 checks passed
@andrelandgraf andrelandgraf deleted the feat/remove-function-memory-v2 branch June 9, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants