@langchain/langgraph-ui 0.0.40 → 0.0.42

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/api.mjs CHANGED
@@ -5,10 +5,10 @@ import * as bundler from "./bundler.mjs";
5
5
  const ConfigSchema = z.object({ shared: z.array(z.string()).optional() });
6
6
  const DefsSchema = z.record(z.string(), z.string());
7
7
  function getBuildEnv(options) {
8
- const cwd = options.cwd ?? process.cwd();
9
- const defs = options.defs ??
8
+ const cwd = options?.cwd ?? process.cwd();
9
+ const defs = options?.defs ??
10
10
  DefsSchema.parse(JSON.parse(process.env.LANGGRAPH_UI || "{}"));
11
- const config = options.config ??
11
+ const config = options?.config ??
12
12
  ConfigSchema.parse(JSON.parse(process.env.LANGGRAPH_UI_CONFIG || "{}"));
13
13
  return { cwd, defs, config };
14
14
  }
package/dist/bundler.mjs CHANGED
@@ -71,7 +71,7 @@ function setup(agentName, args, onResult) {
71
71
  ...(args.config?.shared ?? []),
72
72
  ],
73
73
  plugins: [tailwind(), entrypointPlugin(args), registerPlugin(onResult)],
74
- globalName: `__LGUI_${agentName}`,
74
+ globalName: `__LGUI_${agentName.replace(/[^a-zA-Z0-9]/g, "_")}`,
75
75
  };
76
76
  }
77
77
  export async function build(agentName, args) {
package/dist/cli.mjs CHANGED
File without changes
@@ -8,7 +8,7 @@ declare global {
8
8
  respond: (
9
9
  shadowRootId: string,
10
10
  component: FunctionComponent | ComponentClass,
11
- renderEl: HTMLElement,
11
+ renderEl: HTMLElement
12
12
  ) => void;
13
13
  };
14
14
  }
@@ -16,7 +16,7 @@ declare global {
16
16
 
17
17
  // @ts-ignore
18
18
  function createRenderer(
19
- components: Record<string, FunctionComponent | ComponentClass>,
19
+ components: Record<string, FunctionComponent | ComponentClass>
20
20
  ) {
21
21
  return (name: string, shadowRootId: string) => {
22
22
  const root = document.getElementById(shadowRootId)!.shadowRoot;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-ui",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "^18.19.0 || >=20.16.0"
@@ -18,8 +18,9 @@
18
18
  "url": "git@github.com:langchain-ai/langgraphjs-api.git"
19
19
  },
20
20
  "scripts": {
21
- "clean": "npx -y bun scripts/clean.mjs",
22
- "build": "npx -y bun scripts/build.mjs",
21
+ "clean": "rm -rf dist/ .turbo/",
22
+ "build": "yarn turbo:command build:internal --filter=@langchain/langgraph-ui",
23
+ "build:internal": "yarn clean && node scripts/build.mjs",
23
24
  "prepack": "yarn run build",
24
25
  "typecheck": "tsc --noEmit",
25
26
  "format": "prettier --write .",
@@ -33,11 +34,11 @@
33
34
  "zod": "^3.23.8"
34
35
  },
35
36
  "devDependencies": {
36
- "@types/node": "^22.2.0",
37
+ "@types/node": "^18.15.11",
37
38
  "@types/react": "^19.0.8",
38
39
  "@types/react-dom": "^19.0.3",
39
- "prettier": "^3.3.3",
40
- "typescript": "^5.5.4",
41
- "vitest": "^3.0.5"
40
+ "prettier": "^2.8.3",
41
+ "typescript": "^4.9.5 || ^5.4.5",
42
+ "vitest": "^3.1.2"
42
43
  }
43
- }
44
+ }