@langchain/langgraph-checkpoint 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/serde/jsonplus.d.cts +12 -0
- package/dist/serde/jsonplus.d.cts.map +1 -0
- package/dist/serde/jsonplus.d.ts +12 -0
- package/dist/serde/jsonplus.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_id = require("./id.cjs");
|
|
3
3
|
const require_types = require("./serde/types.cjs");
|
|
4
|
+
const require_jsonplus = require("./serde/jsonplus.cjs");
|
|
4
5
|
const require_base = require("./base.cjs");
|
|
5
6
|
const require_memory = require("./memory.cjs");
|
|
6
7
|
const require_base$1 = require("./store/base.cjs");
|
|
@@ -20,6 +21,7 @@ exports.INTERRUPT = require_types.INTERRUPT;
|
|
|
20
21
|
exports.InMemoryCache = require_memory$2.InMemoryCache;
|
|
21
22
|
exports.InMemoryStore = require_memory$1.InMemoryStore;
|
|
22
23
|
exports.InvalidNamespaceError = require_base$1.InvalidNamespaceError;
|
|
24
|
+
exports.JsonPlusSerializer = require_jsonplus.JsonPlusSerializer;
|
|
23
25
|
exports.MemorySaver = require_memory.MemorySaver;
|
|
24
26
|
exports.MemoryStore = require_memory$1.MemoryStore;
|
|
25
27
|
exports.RESUME = require_types.RESUME;
|
package/dist/index.d.cts
CHANGED
|
@@ -3,10 +3,11 @@ import { All, CheckpointMetadata, CheckpointPendingWrite, DeltaChannelHistory, P
|
|
|
3
3
|
import { BaseCheckpointSaver, ChannelVersions, Checkpoint, CheckpointListOptions, CheckpointTuple, EXCLUDED_METADATA_KEYS, ReadonlyCheckpoint, WRITES_IDX_MAP, WritesSortKey, compareChannelVersions, compareWritesSortKeys, copyCheckpoint, deepCopy, emptyCheckpoint, getCheckpointId, maxChannelVersion, writesSortKey } from "./base.cjs";
|
|
4
4
|
import { MemorySaver } from "./memory.cjs";
|
|
5
5
|
import { uuid5, uuid6 } from "./id.cjs";
|
|
6
|
+
import { JsonPlusSerializer } from "./serde/jsonplus.cjs";
|
|
6
7
|
import { ChannelProtocol, ConstructorRecord, DeltaSnapshot, ERROR, INTERRUPT, RESUME, SCHEDULED, SendProtocol, TASKS, isDeltaSnapshot } from "./serde/types.cjs";
|
|
7
8
|
import { BaseStore, GetOperation, IndexConfig, InvalidNamespaceError, Item, ListNamespacesOperation, MatchCondition, NameSpacePath, NamespaceMatchType, Operation, OperationResults, PutOperation, SearchItem, SearchOperation, getTextAtPath, tokenizePath, validateNamespace } from "./store/base.cjs";
|
|
8
9
|
import { AsyncBatchedStore } from "./store/batch.cjs";
|
|
9
10
|
import { InMemoryStore, MemoryStore } from "./store/memory.cjs";
|
|
10
11
|
import { BaseCache, CacheFullKey, CacheNamespace } from "./cache/base.cjs";
|
|
11
12
|
import { InMemoryCache } from "./cache/memory.cjs";
|
|
12
|
-
export { All, AsyncBatchedStore, BaseCache, BaseCheckpointSaver, BaseStore, CacheFullKey, CacheNamespace, ChannelProtocol, ChannelVersions, Checkpoint, CheckpointListOptions, CheckpointMetadata, CheckpointPendingWrite, CheckpointTuple, ConstructorRecord, DeltaChannelHistory, DeltaSnapshot, ERROR, EXCLUDED_METADATA_KEYS, GetOperation, INTERRUPT, InMemoryCache, InMemoryStore, IndexConfig, InvalidNamespaceError, Item, ListNamespacesOperation, MatchCondition, MemorySaver, MemoryStore, NameSpacePath, NamespaceMatchType, Operation, OperationResults, PendingWrite, PendingWriteValue, PutOperation, RESUME, ReadonlyCheckpoint, SCHEDULED, SearchItem, SearchOperation, SendProtocol, SerializerProtocol, TASKS, WRITES_IDX_MAP, WritesSortKey, compareChannelVersions, compareWritesSortKeys, copyCheckpoint, deepCopy, emptyCheckpoint, getCheckpointId, getTextAtPath, isDeltaSnapshot, maxChannelVersion, tokenizePath, uuid5, uuid6, validateNamespace, writesSortKey };
|
|
13
|
+
export { All, AsyncBatchedStore, BaseCache, BaseCheckpointSaver, BaseStore, CacheFullKey, CacheNamespace, ChannelProtocol, ChannelVersions, Checkpoint, CheckpointListOptions, CheckpointMetadata, CheckpointPendingWrite, CheckpointTuple, ConstructorRecord, DeltaChannelHistory, DeltaSnapshot, ERROR, EXCLUDED_METADATA_KEYS, GetOperation, INTERRUPT, InMemoryCache, InMemoryStore, IndexConfig, InvalidNamespaceError, Item, JsonPlusSerializer, ListNamespacesOperation, MatchCondition, MemorySaver, MemoryStore, NameSpacePath, NamespaceMatchType, Operation, OperationResults, PendingWrite, PendingWriteValue, PutOperation, RESUME, ReadonlyCheckpoint, SCHEDULED, SearchItem, SearchOperation, SendProtocol, SerializerProtocol, TASKS, WRITES_IDX_MAP, WritesSortKey, compareChannelVersions, compareWritesSortKeys, copyCheckpoint, deepCopy, emptyCheckpoint, getCheckpointId, getTextAtPath, isDeltaSnapshot, maxChannelVersion, tokenizePath, uuid5, uuid6, validateNamespace, writesSortKey };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,10 +3,11 @@ import { All, CheckpointMetadata, CheckpointPendingWrite, DeltaChannelHistory, P
|
|
|
3
3
|
import { BaseCheckpointSaver, ChannelVersions, Checkpoint, CheckpointListOptions, CheckpointTuple, EXCLUDED_METADATA_KEYS, ReadonlyCheckpoint, WRITES_IDX_MAP, WritesSortKey, compareChannelVersions, compareWritesSortKeys, copyCheckpoint, deepCopy, emptyCheckpoint, getCheckpointId, maxChannelVersion, writesSortKey } from "./base.js";
|
|
4
4
|
import { MemorySaver } from "./memory.js";
|
|
5
5
|
import { uuid5, uuid6 } from "./id.js";
|
|
6
|
+
import { JsonPlusSerializer } from "./serde/jsonplus.js";
|
|
6
7
|
import { ChannelProtocol, ConstructorRecord, DeltaSnapshot, ERROR, INTERRUPT, RESUME, SCHEDULED, SendProtocol, TASKS, isDeltaSnapshot } from "./serde/types.js";
|
|
7
8
|
import { BaseStore, GetOperation, IndexConfig, InvalidNamespaceError, Item, ListNamespacesOperation, MatchCondition, NameSpacePath, NamespaceMatchType, Operation, OperationResults, PutOperation, SearchItem, SearchOperation, getTextAtPath, tokenizePath, validateNamespace } from "./store/base.js";
|
|
8
9
|
import { AsyncBatchedStore } from "./store/batch.js";
|
|
9
10
|
import { InMemoryStore, MemoryStore } from "./store/memory.js";
|
|
10
11
|
import { BaseCache, CacheFullKey, CacheNamespace } from "./cache/base.js";
|
|
11
12
|
import { InMemoryCache } from "./cache/memory.js";
|
|
12
|
-
export { All, AsyncBatchedStore, BaseCache, BaseCheckpointSaver, BaseStore, CacheFullKey, CacheNamespace, ChannelProtocol, ChannelVersions, Checkpoint, CheckpointListOptions, CheckpointMetadata, CheckpointPendingWrite, CheckpointTuple, ConstructorRecord, DeltaChannelHistory, DeltaSnapshot, ERROR, EXCLUDED_METADATA_KEYS, GetOperation, INTERRUPT, InMemoryCache, InMemoryStore, IndexConfig, InvalidNamespaceError, Item, ListNamespacesOperation, MatchCondition, MemorySaver, MemoryStore, NameSpacePath, NamespaceMatchType, Operation, OperationResults, PendingWrite, PendingWriteValue, PutOperation, RESUME, ReadonlyCheckpoint, SCHEDULED, SearchItem, SearchOperation, SendProtocol, SerializerProtocol, TASKS, WRITES_IDX_MAP, WritesSortKey, compareChannelVersions, compareWritesSortKeys, copyCheckpoint, deepCopy, emptyCheckpoint, getCheckpointId, getTextAtPath, isDeltaSnapshot, maxChannelVersion, tokenizePath, uuid5, uuid6, validateNamespace, writesSortKey };
|
|
13
|
+
export { All, AsyncBatchedStore, BaseCache, BaseCheckpointSaver, BaseStore, CacheFullKey, CacheNamespace, ChannelProtocol, ChannelVersions, Checkpoint, CheckpointListOptions, CheckpointMetadata, CheckpointPendingWrite, CheckpointTuple, ConstructorRecord, DeltaChannelHistory, DeltaSnapshot, ERROR, EXCLUDED_METADATA_KEYS, GetOperation, INTERRUPT, InMemoryCache, InMemoryStore, IndexConfig, InvalidNamespaceError, Item, JsonPlusSerializer, ListNamespacesOperation, MatchCondition, MemorySaver, MemoryStore, NameSpacePath, NamespaceMatchType, Operation, OperationResults, PendingWrite, PendingWriteValue, PutOperation, RESUME, ReadonlyCheckpoint, SCHEDULED, SearchItem, SearchOperation, SendProtocol, SerializerProtocol, TASKS, WRITES_IDX_MAP, WritesSortKey, compareChannelVersions, compareWritesSortKeys, copyCheckpoint, deepCopy, emptyCheckpoint, getCheckpointId, getTextAtPath, isDeltaSnapshot, maxChannelVersion, tokenizePath, uuid5, uuid6, validateNamespace, writesSortKey };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { uuid5, uuid6 } from "./id.js";
|
|
2
2
|
import { DeltaSnapshot, ERROR, INTERRUPT, RESUME, SCHEDULED, TASKS, isDeltaSnapshot } from "./serde/types.js";
|
|
3
|
+
import { JsonPlusSerializer } from "./serde/jsonplus.js";
|
|
3
4
|
import { BaseCheckpointSaver, EXCLUDED_METADATA_KEYS, WRITES_IDX_MAP, compareChannelVersions, compareWritesSortKeys, copyCheckpoint, deepCopy, emptyCheckpoint, getCheckpointId, maxChannelVersion, writesSortKey } from "./base.js";
|
|
4
5
|
import { MemorySaver } from "./memory.js";
|
|
5
6
|
import { BaseStore, InvalidNamespaceError, getTextAtPath, tokenizePath, validateNamespace } from "./store/base.js";
|
|
@@ -8,4 +9,4 @@ import { InMemoryStore, MemoryStore } from "./store/memory.js";
|
|
|
8
9
|
import { BaseCache } from "./cache/base.js";
|
|
9
10
|
import { InMemoryCache } from "./cache/memory.js";
|
|
10
11
|
import "./cache/index.js";
|
|
11
|
-
export { AsyncBatchedStore, BaseCache, BaseCheckpointSaver, BaseStore, DeltaSnapshot, ERROR, EXCLUDED_METADATA_KEYS, INTERRUPT, InMemoryCache, InMemoryStore, InvalidNamespaceError, MemorySaver, MemoryStore, RESUME, SCHEDULED, TASKS, WRITES_IDX_MAP, compareChannelVersions, compareWritesSortKeys, copyCheckpoint, deepCopy, emptyCheckpoint, getCheckpointId, getTextAtPath, isDeltaSnapshot, maxChannelVersion, tokenizePath, uuid5, uuid6, validateNamespace, writesSortKey };
|
|
12
|
+
export { AsyncBatchedStore, BaseCache, BaseCheckpointSaver, BaseStore, DeltaSnapshot, ERROR, EXCLUDED_METADATA_KEYS, INTERRUPT, InMemoryCache, InMemoryStore, InvalidNamespaceError, JsonPlusSerializer, MemorySaver, MemoryStore, RESUME, SCHEDULED, TASKS, WRITES_IDX_MAP, compareChannelVersions, compareWritesSortKeys, copyCheckpoint, deepCopy, emptyCheckpoint, getCheckpointId, getTextAtPath, isDeltaSnapshot, maxChannelVersion, tokenizePath, uuid5, uuid6, validateNamespace, writesSortKey };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SerializerProtocol } from "./base.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/serde/jsonplus.d.ts
|
|
4
|
+
declare class JsonPlusSerializer implements SerializerProtocol {
|
|
5
|
+
protected _dumps(obj: any): Uint8Array;
|
|
6
|
+
dumpsTyped(obj: any): Promise<[string, Uint8Array]>;
|
|
7
|
+
protected _loads(data: string): Promise<any>;
|
|
8
|
+
loadsTyped(type: string, data: Uint8Array | string): Promise<any>;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { JsonPlusSerializer };
|
|
12
|
+
//# sourceMappingURL=jsonplus.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonplus.d.cts","names":[],"sources":["../../src/serde/jsonplus.ts"],"mappings":";;;cAkOa,kBAAA,YAA8B,kBAAA;EAAA,UAC/B,MAAA,CAAO,GAAA,QAAW,UAAA;EAStB,UAAA,CAAW,GAAA,QAAW,OAAA,UAAiB,UAAA;EAAA,UAQ7B,MAAA,CAAO,IAAA,WAAe,OAAA;EAKhC,UAAA,CAAW,IAAA,UAAc,IAAA,EAAM,UAAA,YAAsB,OAAA;AAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SerializerProtocol } from "./base.js";
|
|
2
|
+
|
|
3
|
+
//#region src/serde/jsonplus.d.ts
|
|
4
|
+
declare class JsonPlusSerializer implements SerializerProtocol {
|
|
5
|
+
protected _dumps(obj: any): Uint8Array;
|
|
6
|
+
dumpsTyped(obj: any): Promise<[string, Uint8Array]>;
|
|
7
|
+
protected _loads(data: string): Promise<any>;
|
|
8
|
+
loadsTyped(type: string, data: Uint8Array | string): Promise<any>;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { JsonPlusSerializer };
|
|
12
|
+
//# sourceMappingURL=jsonplus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonplus.d.ts","names":[],"sources":["../../src/serde/jsonplus.ts"],"mappings":";;;cAkOa,kBAAA,YAA8B,kBAAA;EAAA,UAC/B,MAAA,CAAO,GAAA,QAAW,UAAA;EAStB,UAAA,CAAW,GAAA,QAAW,OAAA,UAAiB,UAAA;EAAA,UAQ7B,MAAA,CAAO,IAAA,WAAe,OAAA;EAKhC,UAAA,CAAW,IAAA,UAAc,IAAA,EAAM,UAAA,YAAsB,OAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph-checkpoint",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Library with base interfaces for LangGraph checkpoint savers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"rollup": "^4.62.3",
|
|
27
27
|
"tsx": "^4.19.3",
|
|
28
28
|
"typescript": "^4.9.5 || ^5.4.5",
|
|
29
|
-
"vitest": "^4.1.
|
|
29
|
+
"vitest": "^4.1.12"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public",
|