@langchain/langgraph-cli 1.2.0 → 1.2.2-rc.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.
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod/v3";
2
2
  import { extname } from "node:path";
3
+ const API_VERSION_PATTERN = /^\d+(?:\.\d+){0,2}(?:(?:-[0-9A-Za-z]+(?:\.[0-9A-Za-z]+)*)|(?:[A-Za-z][0-9A-Za-z.-]*))?$/;
3
4
  const GraphPathSchema = z.string().refine((i) => i.includes(":"), {
4
5
  message: "Import string must be in format '<file>:<export>'",
5
6
  });
@@ -18,14 +19,8 @@ const BaseConfigSchema = z.object({
18
19
  _INTERNAL_docker_tag: z.string().optional(),
19
20
  api_version: z
20
21
  .string()
21
- .refine((v) => {
22
- const base = v.split("-")[0];
23
- const parts = base.split(".");
24
- if (parts.length === 0 || parts.length > 3)
25
- return false;
26
- return parts.every((p) => /^\d+$/.test(p));
27
- }, {
28
- message: "api_version must be in format major, major.minor, or major.minor.patch",
22
+ .refine((v) => API_VERSION_PATTERN.test(v), {
23
+ message: "api_version must be in format major, major.minor, or major.minor.patch with optional prerelease suffix",
29
24
  })
30
25
  .optional(),
31
26
  env: z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-cli",
3
- "version": "1.2.0",
3
+ "version": "1.2.2-rc.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "^18.19.0 || >=20.16.0"
@@ -38,7 +38,7 @@
38
38
  "winston-console-format": "^1.0.8",
39
39
  "yaml": "^2.8.3",
40
40
  "zod": "^3.25.76 || ^4",
41
- "@langchain/langgraph-api": "1.2.0",
41
+ "@langchain/langgraph-api": "1.2.2-rc.0",
42
42
  "create-langgraph": "1.1.5"
43
43
  },
44
44
  "devDependencies": {