@langchain/langgraph-sdk 0.0.90 → 0.0.91

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/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # @langchain/langgraph-sdk
2
+
3
+ ## 0.0.91
4
+
5
+ ### Patch Changes
6
+
7
+ - 2f26f2f: Send metadata when creating a new thread
8
+
9
+ ## 0.0.90
10
+
11
+ ### Patch Changes
12
+
13
+ - c8d7a0a: Add missing optional peer dependency on react-dom
@@ -506,6 +506,7 @@ function useStream(options) {
506
506
  if (!usableThreadId) {
507
507
  const thread = await client.threads.create({
508
508
  threadId: submitOptions?.threadId,
509
+ metadata: submitOptions?.metadata,
509
510
  });
510
511
  onThreadId(thread.thread_id);
511
512
  usableThreadId = thread.thread_id;
@@ -502,6 +502,7 @@ export function useStream(options) {
502
502
  if (!usableThreadId) {
503
503
  const thread = await client.threads.create({
504
504
  threadId: submitOptions?.threadId,
505
+ metadata: submitOptions?.metadata,
505
506
  });
506
507
  onThreadId(thread.thread_id);
507
508
  usableThreadId = thread.thread_id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-sdk",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "description": "Client library for interacting with the LangGraph API",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -147,4 +147,4 @@
147
147
  "react-ui/server.d.ts",
148
148
  "react-ui/server.d.cts"
149
149
  ]
150
- }
150
+ }