AIGenLab
EN

UPDATEn8n 2.49.8

n8n stable 2.49.8 fixes wide-field expression read costs

Version & typev2.49.8 · Feature
In short

The n8n release notes list 2.49.8; a comparison of the 2.49.7 and 2.49.8 batch-read.ts files shows that fields not fully copied now record the characters actually traversed. Test wide-field expressions before rollout.

What changed in this release

18 checkpoints in 4 groups, organized by task from the official notes. Checkpoints do not count separate features or commits.

Read accounting

  • Wide fields are charged for the characters actually traversed instead of crossing a batch at zero cost.
  • Dates, class instances and deep objects are charged up to where the walk stops, with no missing cost.
  • The starting array item is charged even when it does not cross, so the read is no longer treated as free.
  • A field that crosses a batch also pays for its key length, so the budget is charged more precisely.
  • Batching stops as soon as the budget is spent, so later fields no longer ride along in the same batch.

Field fallback

  • A field left out of the batch is filled by a single-field read, so the expression still gets a value.
  • Dates and class instances keep their original semantics instead of being copied into plain objects.
  • A deep field in a wide object can still be read by path without moving the whole object into the sandbox.
  • Getters are not invoked by batch accounting, so their side effects stay unchanged.
  • When a proxy trap throws, the read stays lazy instead of failing the whole expression.

Code node

  • Python runs on the native runner instead of the Pyodide path.
  • All-items mode exposes only _items, and per-item mode exposes only _item.
  • The Code node has no network, so external requests belong in an HTTP Request node.
  • Imports are off by default, and even standard-library modules need the instance allowlist.

Upgrade gates

  • 2.49.8 requires Node >=24.0.0, so a Node 22 instance changes runtime first.
  • The runner image must match n8n, or external mode cannot connect.
  • External mode requires n8n >=1.111.0, so an older instance upgrades n8n before splitting out the sidecar.
  • 2.0 removed Pyodide and nodes such as Spontit, so old references need a cleanup first.

Read the original announcement

On this page
  1. Release inventory
  2. The patch changes read ac…
  3. Reads are charged by real…
  4. Fields left out of a batc…
  5. The Code node stays a net…
  6. Two gates come before the…
  7. For wide fields
  8. From 1.123.101 to 2.49.8
  9. Release analysis
  10. Sources & method

ContextThe patch changes read accounting, and every expression that scans wide rows feels it

This release fixes one accounting rule: a wide field pays for the characters a read actually traverses instead of crossing a 2.49.8 batch at zero cost.

The 2.x V8 isolate gives each evaluation a read budget, half of the default 128 MiB memory limit. A field is tried at 1024 characters; an array batch starts at 512 and caps at 262,144. When the budget runs out, batching stops and later fields fall back to charged single reads.

This article verifies 18 checklist rows in four groups: read accounting, field fallback, Code node boundaries, and upgrade checks. The last two cover existing boundaries and checks rather than new changes in this release. The figure below shows how those 18 verified rows are distributed across the groups; the sections below explain each group's effect on workflows.

The 18 verified checklist rows fall into four groups: five on read accounting, five on field fallback, four on Code node boundaries, and four on upgrade checks. The last two describe existing boundaries and checks, not new features in this release.
Where the 18 grouped changes landWhere the 18 grouped changes landRead accounting5Field fallback5Code node4Upgrade gates4
AIGenLab original

Reads are charged by real traversal, so a wide field no longer crosses a batch for free

  1. A wide field is tried at 1024 characters; the walk's real cost is charged, so it no longer crosses a batch free.
  2. Dates, class instances and deep objects are charged to where the walk stops before the original value returns.
  3. A batch stops when the budget is spent; the first item is charged even if it does not cross.

Fields left out of a batch return through single reads with value semantics intact

  1. A field left out of a batch returns through one path read and can still be traversed.
  2. Dates and class instances keep prototype and identity; batches do not flatten them.
  3. Getters are not called for accounting, and a throwing proxy keeps the read lazy.

The Code node stays a network-free sandbox, with Python on the native runner

  1. JavaScript and Python run all-items or per-item; Python exposes only _items and _item.
  2. The Code node has no network and imports stay off unless the instance allowlist allows them.
  3. Production uses an external runner sidecar; internal mode is deprecated from 3.0 and logs a warning.

Two gates come before the upgrade: Node 24 and a matching runner image

  1. 2.49.8 needs Node >=24.0.0, so a Node 22 instance changes runtime before the image.
  2. The runner image must match n8n; external mode also needs n8n >=1.111.0.
  3. 2.0 removed Pyodide and nodes such as Spontit, so old Python and node references need cleanup.

For wide fields, n8n caps the read budget, Dify caps output, and Node-RED caps run time

All three sandbox user code, but they control cost in different places: n8n limits reads, Dify limits output, and Node-RED limits run time.

The same wide-row reader hits the n8n read budget and falls back to single reads, fails the Dify node at an output limit, and meets only a synchronous timeout in Node-RED. Bottom line: the boundary moved, so a migration changes how the reader is written before syntax.

Update pointn8n stable 2.49.8Dify 1.20.0Node-RED 5.0.10
Wide-field read accountingTraversed characters are charged; budget = MiB × 1024 × 1024 ÷ 2, default 128 MiB.Declared inputs enter main; string output caps at 400,000 characters.Full msg in; Setup timeout in seconds, 0 = none.
Non-JSON valuesDates and class values survive; a failed batch uses one path read.Declared inputs and outputs; output nesting is capped at 5 levels.Buffer values are available and read as JavaScript objects.
Single read or output boundaryFirst batch 512, cap 262,144 characters.400,000 characters or 30 array[object] items; over limit fails.Synchronous timeout; async ends with node.send() and node.done().
Dependencies and isolationExternal runner, no network, allowlisted imports.Sandboxed Python/JS; SANDBOX_ENABLE_NETWORK=true by default.JavaScript only; modules via functionGlobalContext or functionExternalModules.

From 1.123.101 to 2.49.8, the expression engine and code isolation changed generation

The engine default and code isolation changed generation; 2.49.8 only completes large-field accounting.

Read 1.123.101 as the earlier stable build and n8n@2.49.7 to n8n@2.49.8 as the patch run: across major versions watch engine and Python, across the patch watch read accounting. A 1.x upgrade changes runtime boundaries; a 2.49.7 upgrade needs a large-field regression.

Capabilityv1.123.101v2.49.7v2.49.8
Backend expression enginelegacy default; docs say it does not isolate.vm default; V8 isolate.vm default; same engine.
Wide-field batch accountinglegacy evaluation path; official docs say it does not isolate.Non-crossing field charged 0 or fixed childChars.Actual traversal plus key length.
Non-JSON values and fallbacklegacy direct; no batch chain.In 2.49.7 a non-crossing field was sometimes free and sometimes charged a fixed amount before a single read filled itCharge walk, then one read fills.
Python runtimePyodide path present.Pyodide removed; native only.Native runner; _items or _item.
Node runtimeNode >=22.16.Node >=24.0.0.Node >=24.0.0.
Task runner enablementNeeds N8N_RUNNERS_ENABLED=true.Variable unnecessary; all Code on runners.Same; external advised in production.

Release analysisWide-table teams should regress first, small-object users can wait, and 1.x upgrades start at runtime boundaries

The teams most exposed map wide-record batches and read several fields in one expression: the budget runs out earlier, later fields become single reads, and results slow or lose fields. Instances reading one field, working on small objects, or staying on 1.x can wait.

Dify 1.20.0 stops at a 400,000-character output limit and Node-RED 5.0.10 stops at a synchronous timeout; n8n moves the cost forward into the read budget. Failure lands at input, output, or timeout, which changes where a team debugs.

Our recommendation is to trim each large-field expression to the fields it needs, upgrade to 2.49.8, and keep a 2.49.7 image for rollback; a 1.x instance also needs the Node 24, runner sidecar, and Python checks. This judgement comes from source and official documentation, is the station's view, and was not independently tested.

AIGenLab views

Not independently tested

This patch deserves a dedicated regression for wide-field expressions, not a full workflow rewrite.

The 2.49.7 and 2.49.8 batch-read.ts files differ in how a non-crossing field records cost; the limits and budget formula are unchanged.

The main risk in a 1.x upgrade is not read accounting but Node 24, external runners, and the Python path.

1.123.101 requires Node >=22.16; from 2.0 Python uses only the native runner, with task runners enabled by default.

Official sources and scope

Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.