npm / @langchain/langgraph-checkpoint
@langchain/langgraph-checkpoint
What changed in @langchain/langgraph-checkpoint 0.1 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
10 breaking1 security2 deprecations52 new APIs and options1 performance5 behavior and defaults12 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@langchain/langgraph-checkpoint 146 changes
Breaking changes 9
Shared store namespace labels containing colons or NUL bytes are rejected; PostgreSQL store namespace labels containing NUL bytes are rejected before CRUD queries.
BaseStore gets, deletes, and namespace-listing filters reject empty, non-string, or period-containing labels with InvalidNamespaceError instead of returning no results.
Task IDs for functional task() calls under a Send or handler task change with the updated task paths.
Writes to the same DeltaChannel in a superstep are applied and replayed in (task_path, task_id, idx) order instead of task-id order, aligning with Python langgraph.
getTuple and list must return pendingWrites in writesSortKey order; third-party savers that ignore this can replay a different DeltaChannel value.
Search prefixes now match at namespace segment boundaries; empty-prefix searches remain unrestricted.
Labels containing colons are rejected.
An Overwrite discards every sibling write in its super-step, and the channel is snapshotted at the next checkpoint so reconstructed state matches live state.
The low-level helper has been removed; streaming responses are handled natively by the SDK.
Security 1
Rejects unsafe storage keys at public entry points to prevent prototype pollution; valid string identifiers behave unchanged.
Deprecations 1
The LangGraph prebuilt is deprecated in favor of LangChain's createAgent, which offers a simpler interface and greater customization through middleware.
New APIs and options 17
The default checkpointer serializer is now exported so savers that send checkpoints elsewhere can encode them the same way.
putWrites accepts an optional taskPath containing the serialized task path; custom savers must persist it and return pending writes in the new sort order.
A new export provides comparison of pending-write sort keys for the required ordering.
SQLite and Postgres gain a task_path column, migrated automatically on setup; Redis and MongoDB documents gain a task_path field.
A new export provides the sort key used to order pending writes by task path, task id, and index.
Override the default recursion limit with the LANGGRAPH_DEFAULT_RECURSION_LIMIT environment variable.
Adds BaseCheckpointSaver.toJSON() so ConfigurableModel can stringify runnable config without traversing pg Pool timers.
Adds a shared metadata-key exclusion constant to @langchain/langgraph-checkpoint.
Adds a field to CheckpointMetadata for tracking counts since a delta snapshot.
Adds a count-based snapshot cadence option, with a default of 1000.
Adds a reducer channel that stores a sentinel in checkpoint blobs and reconstructs accumulated state by replaying ancestor writes.
Adds serialization support for DeltaSnapshot in the JSON+ serializer.
Adds a beta BaseCheckpointSaver API that walks the parent chain and returns per-channel writes and an optional seed; MemorySaver provides a direct-storage override.
Adds an environment variable for the system bound on supersteps since a delta snapshot; its default is 5000.
Adds a batching-invariant messages reducer that coerces raw object and string writes for use with DeltaChannel.
Pass an encoding format to select between SSE and normal JSON responses without changing UI logic.
The React hook supports pluggable transports, allowing control over the network layer without changing UI code.
Performance 1
The batched store wakes when a call is queued instead of polling a timer, avoiding about 1 ms of wait per store call made from a node.
Behavior and default changes 5
Task metadata changes to reflect the new Send and node-error-handler task path shapes.
The SDK's Send-task detection accepts both the old and new task path shapes.
The default recursion limit is 10,007 super-steps starting in version 1.1.4.
Task stream payloads now include filtered user-meaningful metadata; subagent graph_name is set from lc_agent_name, and parent tool-dispatch tasks can recover toolCall cause metadata.
The JSON plus serializer now supports Uint8Array values.
Fixes and other changes 12
Without a query embedding, search stops collecting matches at offset + limit and copies only the returned page, improving first-page speed and avoiding RangeError on very large namespaces.
AsyncBatchedStore validates namespace labels before queueing, so a failing namespace rejects only its own call; in-graph puts also reject a langgraph root label and an empty namespace.
bulkUpdateState seals the first update superstep by snapshotting affected DeltaChannels on the update checkpoint, preventing writes from replaying in the wrong order.
Resumed delta writes replay in live order, interleaving with loaded writes by task path; writes loaded with the checkpoint are no longer stored twice.
MemorySaver uses locale-independent checkpoint ID ordering in getTuple, list, and getDeltaChannelHistory, consistent with UUID6 timestamp order and the before filter.
When config has no checkpoint_id, the method reads from the thread's latest checkpoint, like getTuple and the other savers.
bulkUpdateState and updateState update tasks carry (__interrupt__, i) task paths so multiple updates writing the same DeltaChannel replay in the given order.
Narrows the reconstructable types in JsonPlusSerializer.
Missing checkpoint maps are defaulted on load and copy, preventing resume from crashing when versions_seen is undefined.
Concurrent same-superstep writes are applied in canonical (task_id, idx) order both live and during checkpoint reconstruction, keeping replayed state consistent with live execution.
Checkpoint IDs created within the same millisecond now retain stable lexicographic ordering, independent of the clockseq value.
The package is updated for compatibility with LangGraph v1.0.
@langchain/langgraph-checkpoint 0.137 changes
Breaking changes 1
Accepts up to five origins allowed to embed the window's pages in an iframe; without them, no page may frame the window.
Deprecations 1
The API key creation response marks read_only as deprecated.
New APIs and options 35
Adds a PUT endpoint to replace every field of a custom model price entry. The request body is a full replacement; omitted optional fields reset to defaults. Default entries cannot be updated, and recorded run costs are not recomputed.
Adds a limit query parameter to control the maximum number of returned entries; it defaults to 100 and accepts values from 1 to 100.
Adds an offset query parameter to skip entries before the page; it defaults to 0.
Adds a provider query parameter to filter prices by one or more providers, case-insensitively.
Adds a sort_by query parameter for sorting by start_time; when unset, entries use match priority order.
Adds a sort_order query parameter accepting asc or desc; it defaults to desc.
Adds an organization-scoped endpoint for creating model price entries that apply to every workspace in the organization.
Adds a DELETE endpoint to delete an organization model price, whether or not it exists.
Adds a GET endpoint to retrieve an organization model price by ID. It returns 404 if the entry does not belong to the organization, including when the ID belongs to a workspace or LangSmith default entry.
Adds an endpoint to create an organization tracing key. Requests require workspaces and may include a description and expiration; responses include the created key.
Adds an endpoint to revoke an organization tracing key you own or have permission to manage.
Adds a paginated endpoint for listing organization teams, with filters for workspace, parent team, and identity.
Adds an endpoint to get one team in an organization. Organization-scoped teams require organization:teams:read; workspace-scoped teams require workspaces:teams:read in their workspace.
Adds an endpoint to attach an existing organization access policy to a team, optionally limiting an organization-wide team's policy to one workspace.
Adds an endpoint to list a team's access policies, with page_size and cursor query parameters and organization- or workspace-scoped read permissions.
Adds an endpoint to get an organization-wide team's grant in one workspace. It requires organization:teams:read or workspaces:teams:read in the workspace.
Adds an endpoint that resolves an AGENT, EXPERIMENT, or EVALUATOR address to its tracing project session ID.
Adds a boolean option to render pages at twice the resolution; it is off by default and fixed once the browser is created.
Adds an idle timeout option that stops the browser after a specified period without use; 0 disables the idle stop.
Adds an integer option to set the browser sandbox memory size.
Adds a beta endpoint to get a browser and its attached windows.
Adds a beta DELETE endpoint to close a tab in a browser window.
Adds a beta API to create a copy-on-write copy of an existing volume, subject to workspace enablement, volume state, and authorization requirements.
Sets the price in US dollars per output token for a model price entry.
Allows different prices for specific output token types; uncovered output tokens use completion_cost.
Adds an endpoint to remove an organization-wide team's access to a workspace, including workspace-attached access policies and the workspace-scoped team. Requires organization:teams:manage-grants.
Retrieve a model price entry the workspace uses to compute run costs, including workspace, organization, and LangSmith default entries.
Adds an optional cursor query parameter for retrieving subsequent pages, using the previous page's next_cursor value.
Adds an optional page_size query parameter to limit the number of entries returned; it defaults to 20 and accepts values from 1 to 100.
Adds a paginated endpoint to list workspace identities of a workspace-scoped team's members.
Adds an endpoint to grant an organization-wide team a workspace role. The request requires role_id and workspace_id; callers need organization:teams:manage-grants.
Adds a beta API endpoint to open a tab in a browser window, optionally at a supplied URL; without a URL, it opens about:blank.
Sets the price in US dollars per input token for a model price entry.
Allows different prices for specific input token types; uncovered input tokens use prompt_cost.
Optionally limits pricing to runs that started at or after a specified time.