@axiom-lattice/pg-stores 4.1.1 → 5.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axiom-lattice/pg-stores",
3
- "version": "4.1.1",
3
+ "version": "5.0.0",
4
4
  "description": "PG stores implementation for Axiom Lattice framework",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20,13 +20,13 @@
20
20
  "author": "",
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
- "@langchain/community": "^0.3.40",
24
- "@langchain/langgraph-checkpoint-postgres": "1.0.0",
25
- "@langchain/core": "1.1.30",
23
+ "@langchain/community": "^1.1.29",
24
+ "@langchain/langgraph-checkpoint-postgres": "1.1.2",
25
+ "@langchain/core": "1.3.2",
26
26
  "pg": "^8.16.3",
27
27
  "uuid": "^9.0.1",
28
- "@axiom-lattice/core": "11.0.0",
29
- "@axiom-lattice/protocols": "6.4.0"
28
+ "@axiom-lattice/core": "12.0.0",
29
+ "@axiom-lattice/protocols": "7.0.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/jest": "^29.5.14",
@@ -42,6 +42,9 @@
42
42
  "tsup": "^8.0.1",
43
43
  "typescript": "^5.4.2"
44
44
  },
45
+ "engines": {
46
+ "node": ">=20.10.0"
47
+ },
45
48
  "scripts": {
46
49
  "build": "tsup src/index.ts --format cjs,esm --dts --sourcemap",
47
50
  "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
@@ -230,9 +230,11 @@ export async function createPgStoreConfig(connectionString: string) {
230
230
  await mm.migrate();
231
231
 
232
232
  const checkpoint = PostgresSaver.fromConnString(connectionString);
233
- checkpoint.setup().catch((err) => {
234
- console.error("[pg-stores] Failed to setup checkpoint table:", err.message || err);
235
- });
233
+ try {
234
+ await checkpoint.setup();
235
+ } catch (err) {
236
+ console.error("[pg-stores] Failed to setup checkpoint table:", (err as Error).message || err);
237
+ }
236
238
 
237
239
  const opts = { pool };
238
240