From 45bf27bafe39326ded2d3c0db4e6c41a967e9570 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Tue, 1 Oct 2024 10:45:49 -0700 Subject: [PATCH 1/4] Release 0.0.14-rc.0 --- libs/sdk-js/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sdk-js/package.json b/libs/sdk-js/package.json index 988823e3f..918c97e8c 100644 --- a/libs/sdk-js/package.json +++ b/libs/sdk-js/package.json @@ -1,6 +1,6 @@ { "name": "@langchain/langgraph-sdk", - "version": "0.0.13", + "version": "0.0.14-rc.0", "description": "Client library for interacting with the LangGraph API", "type": "module", "packageManager": "yarn@1.22.19", From 8486c9d413e227c0b4837576c8f718a671d4085a Mon Sep 17 00:00:00 2001 From: bracesproul Date: Tue, 1 Oct 2024 11:31:29 -0700 Subject: [PATCH 2/4] fix(sdk-js): Fix null item error --- libs/sdk-js/src/client.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/sdk-js/src/client.ts b/libs/sdk-js/src/client.ts index 6ceb5333b..df42b6572 100644 --- a/libs/sdk-js/src/client.ts +++ b/libs/sdk-js/src/client.ts @@ -1050,6 +1050,11 @@ export class StoreClient extends BaseClient { const response = await this.fetch("/store/items", { params: { namespace: namespace.join("."), key }, }); + + if (!response) { + return null; + } + return { ...response, createdAt: response.created_at, From 38a3e11c9f4e50f7033beb355ca7bfda32035ee4 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Tue, 1 Oct 2024 11:32:07 -0700 Subject: [PATCH 3/4] cr --- libs/sdk-js/src/client.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/libs/sdk-js/src/client.ts b/libs/sdk-js/src/client.ts index df42b6572..07125ee9f 100644 --- a/libs/sdk-js/src/client.ts +++ b/libs/sdk-js/src/client.ts @@ -1051,15 +1051,13 @@ export class StoreClient extends BaseClient { params: { namespace: namespace.join("."), key }, }); - if (!response) { - return null; - } - - return { - ...response, - createdAt: response.created_at, - updatedAt: response.updated_at, - }; + return response + ? { + ...response, + createdAt: response.created_at, + updatedAt: response.updated_at, + } + : null; } /** From 79cded748da63afb90f9d8f4811e418c473df6ac Mon Sep 17 00:00:00 2001 From: bracesproul Date: Tue, 1 Oct 2024 12:45:57 -0700 Subject: [PATCH 4/4] fix(sdk-js): Release 0.0.14 --- libs/sdk-js/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sdk-js/package.json b/libs/sdk-js/package.json index 918c97e8c..5fe09ade2 100644 --- a/libs/sdk-js/package.json +++ b/libs/sdk-js/package.json @@ -1,6 +1,6 @@ { "name": "@langchain/langgraph-sdk", - "version": "0.0.14-rc.0", + "version": "0.0.14", "description": "Client library for interacting with the LangGraph API", "type": "module", "packageManager": "yarn@1.22.19",