@langchain/langgraph-api 0.0.64 → 0.0.65

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @langchain/langgraph-api
2
2
 
3
+ ## 0.0.65
4
+
5
+ ### Patch Changes
6
+
7
+ - 0aefafe: Skip auth middleware when requesting JS/CSS assets for built-in generative UI
8
+ - @langchain/langgraph-ui@0.0.65
9
+
3
10
  ## 0.0.64
4
11
 
5
12
  ### Patch Changes
@@ -13,6 +13,9 @@ export const auth = () => {
13
13
  // skip for /info
14
14
  if (c.req.path === "/info")
15
15
  return next();
16
+ // skip for UI asset requests
17
+ if (c.req.path.startsWith("/ui") && c.req.method === "GET")
18
+ return next();
16
19
  if (!isStudioAuthDisabled() &&
17
20
  c.req.header("x-auth-scheme") === "langsmith") {
18
21
  c.set("auth", {
@@ -1,5 +1,5 @@
1
1
  import type { Context } from "hono";
2
2
  import { StreamingApi } from "hono/utils/stream";
3
- export declare function jsonExtra<T>(c: Context, object: T): Response & import("hono").TypedResponse<unknown, import("hono/utils/http-status").ContentfulStatusCode, "body">;
3
+ export declare function jsonExtra<T>(c: Context, object: T): Response & import("hono").TypedResponse<string, import("hono/utils/http-status").ContentfulStatusCode, "body">;
4
4
  export declare function waitKeepAlive(c: Context, promise: Promise<unknown>): Response;
5
5
  export declare const getDisconnectAbortSignal: (c: Context, stream: StreamingApi) => AbortSignal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-api",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "^18.19.0 || >=20.16.0"
@@ -64,7 +64,7 @@
64
64
  "@babel/code-frame": "^7.26.2",
65
65
  "@hono/node-server": "^1.12.0",
66
66
  "@hono/zod-validator": "^0.2.2",
67
- "@langchain/langgraph-ui": "0.0.64",
67
+ "@langchain/langgraph-ui": "0.0.65",
68
68
  "@types/json-schema": "^7.0.15",
69
69
  "@typescript/vfs": "^1.6.0",
70
70
  "dedent": "^1.5.3",