Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chore: bump zod to v4 (#2954)

teo5c7997726fee
diff --git a/js/app/package.json b/js/app/package.json
index e27fc3007f..3dbb8e7718 100644
--- a/js/app/package.json
+++ b/js/app/package.json
@@ -114,7 +114,7 @@
"uuid": "^10.0.0",
"virtua": "0.48.8",
"vite-plugin-wasm": "^3.5.0",
- "zod": "^3.23.8"
+ "zod": "^4.3.6"
},
"devDependencies": {
"@apidevtools/json-schema-ref-parser": "^15.3.5",
diff --git a/js/app/packages/app/component/interactive-onboarding/lessons/invite-team.tsx b/js/app/packages/app/component/interactive-onboarding/lessons/invite-team.tsx
index 4f65080a8d..bd951a999e 100644
--- a/js/app/packages/app/component/interactive-onboarding/lessons/invite-team.tsx
+++ b/js/app/packages/app/component/interactive-onboarding/lessons/invite-team.tsx
@@ -151,7 +151,7 @@ function InviteTeamDemo(props: LessonContentProps) {
.safeParse(value);
setErrors((prev) => ({
...prev,
- teamName: result.success ? undefined : result.error.errors[0]?.message,
+ teamName: result.success ? undefined : result.error.issues[0]?.message,
}));
} else if (field === 'email' && value.trim() !== '') {
const result = z.string().email('Invalid email address').safeParse(value);
@@ -159,7 +159,7 @@ function InviteTeamDemo(props: LessonContentProps) {
...prev,
emails: {
...prev.emails,
- [index]: result.success ? undefined : result.error.errors[0]?.message,
+ [index]: result.success ? undefined : result.error.issues[0]?.message,
},
}));
}
@@ -176,7 +176,7 @@ function InviteTeamDemo(props: LessonContentProps) {
if (!result.success) {
const newErrors: FormErrors = {};
- for (const error of result.error.errors) {
+ for (const error of result.error.issues) {
if (error.path[0] === 'teamName') {
newErrors.teamName = error.message;
} else if (
diff --git a/js/app/packages/block-pdf/package.json b/js/app/packages/block-pdf/package.json
index 1f89885812..cae9f25caf 100644
--- a/js/app/packages/block-pdf/package.json
+++ b/js/app/packages/block-pdf/package.json
@@ -8,6 +8,6 @@
"pdfjs-dist": "github:macro-inc/pdf.js#v2.16.52-web",
"solid-custom-scrollbars": "^0.1.7",
"solid-styled-components": "^0.28.5",
- "zod-validation-error": "^3.4.0"
+ "zod-validation-error": "^5.0.0"
}
}
diff --git a/js/app/packages/block-pdf/type/coParse.ts b/js/app/packages/block-pdf/type/coParse.ts
index 0c562af0a3..e8c0f1da2c 100644
--- a/js/app/packages/block-pdf/type/coParse.ts
+++ b/js/app/packages/block-pdf/type/coParse.ts
@@ -99,15 +99,12 @@ export interface IModificationData {
}
// NOTE: typing this way ensures that the parsed output matches the expected type
-export const IModificationDataSchema: z.ZodType<
- IModificationData,
- z.ZodTypeDef,
- any
-> = z.object({
- bookmarks: z.array(IBookmarkSchema),
- placeables: z.array(IPlaceableSchema),
- pinnedTermsNames: z.array(z.string()),
-});
+export const IModificationDataSchema: z.ZodType<IModificationData, any> =
+ z.object({
+ bookmarks: z.array(IBookmarkSchema),
+ placeables: z.array(IPlaceableSchema),
+ pinnedTermsNames: z.array(z.string()),
+ });
// Transform server data to client data
export function transformModificationDataToClient(
@@ -131,6 +128,7 @@ export function transformModificationDataToServer(
data: IModificationData
): IModificationDataOnServer {
return {
+ highlights: null,
bookmarks: data.bookmarks,
placeables: data.placeables
.filter((p) => !isThreadPlaceable(p))
@@ -167,7 +165,7 @@ export interface ICoParse {
documentData?: TDocumentData;
}
-export const CoParseSchema: z.ZodType<ICoParse, z.ZodTypeDef, any> = z.object({
+export const CoParseSchema: z.ZodType<ICoParse, any> = z.object({
bookmarks: z.array(IBookmarkSchema).optional(),
hash: z.string().optional(),
toc: z.string().optional(), // Stringified XML of the PDF table of contents
diff --git a/js/app/packages/block-pdf/type/placeables.ts b/js/app/packages/block-pdf/type/placeables.ts
index 7945f2ceca..da7f93777d 100644
--- a/js/app/packages/block-pdf/type/placeables.ts
+++ b/js/app/packages/block-pdf/type/placeables.ts
@@ -108,7 +108,7 @@ const IPageNumberSchema = z
suffix: z.string(),
digits: z.number(),
startNum: z.number(),
- mapper: z.function().args(z.number()).returns(z.string()),
+ mapper: z.function({ input: [z.number()], output: z.string() }),
})
.and(ITextBoxSchema);
diff --git a/js/app/packages/core/service.ts b/js/app/packages/core/service.ts
index 2ef349a0ea..b0c563425d 100644
--- a/js/app/packages/core/service.ts
+++ b/js/app/packages/core/service.ts
@@ -49,7 +49,7 @@ export type Access =
export interface FunctionDefinition<
ErrorCodes extends string = never,
Args extends z.ZodRawShape | undefined = undefined,
- Result extends z.ZodRawShape | undefined = undefined,
+ Result extends z.ZodRawShape | AnyZodType | undefined = undefined,
Throws extends
| Array<ErrorCodes extends never ? never : ErrorCodes>
| undefined = undefined,
@@ -202,7 +202,7 @@ export class Svc<
fn<
NewF extends string,
Args extends z.ZodRawShape | undefined = undefined,
- Result extends z.ZodRawShape | undefined = undefined,
+ Result extends z.ZodRawShape | AnyZodType | undefined = undefined,
const Throws extends Array<ErrorCodes> | undefined = undefined,
>(
this: Svc<ErrorCodes, Functions, Services>,
@@ -222,7 +222,11 @@ export class Svc<
modifies: def.modifies ?? this.state.def.modifies,
access: def.access ?? this.state.def.access,
args: def.args ? z.object(def.args) : undefined,
- result: def.result ? z.object(def.result) : undefined,
+ result: def.result
+ ? def.result instanceof z.ZodType
+ ? def.result
+ : z.object(def.result)
+ : undefined,
throws: def.throws,
};
return this as any;
@@ -245,6 +249,13 @@ export class Svc<
type ZodShapeToType<T extends z.ZodRawShape | undefined> =
T extends z.ZodRawShape ? z.infer<z.ZodObject<T>> : undefined;
+type ZodResultToType<T extends z.ZodRawShape | AnyZodType | undefined> =
+ T extends z.ZodRawShape
+ ? z.infer<z.ZodObject<T>>
+ : T extends AnyZodType
+ ? z.infer<T>
+ : undefined;
+
type ClientFunctionArgs<T> =
T extends FunctionDefinition<any, infer Args, any, any>
? ZodShapeToType<Args>
@@ -252,10 +263,10 @@ type ClientFunctionArgs<T> =
type ClientFunctionResult<T> =
T extends FunctionDefinition<any, any, infer Result, infer Throws>
- ? Result extends z.ZodRawShape
+ ? Result extends z.ZodRawShape | AnyZodType
? Throws extends string[]
- ? MaybeResult<Throws[number], ZodShapeToType<Result>>
- : ZodShapeToType<Result>
+ ? MaybeResult<Throws[number], ZodResultToType<Result>>
+ : ZodResultToType<Result>
: Throws extends string[]
? MaybeError<Throws[number]>
: void
@@ -316,23 +327,51 @@ export function withFetchErrors<const T extends string>(
return [...specificErrors, ...fetchErrors];
}
-type NonNullableShape<T extends z.ZodTypeAny> = T extends
- | z.ZodOptional<infer U>
- | z.ZodNullable<infer U>
- ? NonNullableShape<U>
- : T extends z.ZodObject<infer Shape>
- ? Shape
- : T;
+type AnyZodType = z.core.SomeType;
+
+type UnionToIntersection<U> = (
+ U extends unknown
+ ? (value: U) => void
+ : never
+) extends (value: infer I) => void
+ ? I
+ : never;
+
+type NonNullableShape<T extends AnyZodType> =
+ T extends z.ZodOptional<infer U>
+ ? NonNullableShape<U>
+ : T extends z.ZodNullable<infer U>
+ ? NonNullableShape<U>
+ : T extends z.ZodIntersection<infer Left, infer Right>
+ ? NonNullableShape<Left> & NonNullableShape<Right>
+ : T extends z.ZodUnion<infer Options>
+ ? UnionToIntersection<NonNullableShape<Options[number]>>
+ : T extends z.ZodObject<infer Shape>
+ ? Shape
+ : T;
+
+type LooseRawShape = Record<string, z.ZodAny>;
+
+type RawShapeFromSchema<T extends AnyZodType> = Extract<
+ T extends z.ZodOptional<infer U>
+ ? RawShapeFromSchema<U>
+ : T extends z.ZodNullable<infer U>
+ ? RawShapeFromSchema<U>
+ : T extends z.ZodUnion<any>
+ ? LooseRawShape
+ : NonNullableShape<T>,
+ z.ZodRawShape
+>;
/**
* Extracts the non-nullable shape of a Zod schema.
* @param schema - The Zod schema to process.
* @returns The non-nullable shape of the schema.
*/
-export function nonNullShape<T extends z.ZodTypeAny>(
+export function nonNullShape<T extends AnyZodType>(
schema: T
): NonNullableShape<T> {
- let currentSchema: z.ZodTypeAny = schema;
+ let currentSchema = schema as AnyZodType;
// Unwrap optional and nullable types
while (
@@ -344,26 +383,30 @@ export function nonNullShape<T extends z.ZodTypeAny>(
// Handle intersection types by merging their shapes
if (currentSchema instanceof z.ZodIntersection) {
- const leftShape = nonNullShape(currentSchema._def.left);
- const rightShape = nonNullShape(currentSchema._def.right);
- return { ...leftShape, ...rightShape };
+ const leftShape = nonNullShape(currentSchema._def.left as AnyZodType);
+ const rightShape = nonNullShape(currentSchema._def.right as AnyZodType);
+ return { ...leftShape, ...rightShape } as NonNullableShape<T>;
}
// Handle union types by merging all possible shapes
if (currentSchema instanceof z.ZodUnion) {
- return currentSchema._def.options.map(nonNullShape);
+ return currentSchema._def.options.map((option) =>
+ nonNullShape(option as AnyZodType)
+ ) as unknown as NonNullableShape<T>;
}
// Extract object shapes
if (currentSchema instanceof z.ZodObject) {
- return currentSchema.shape;
+ return currentSchema.shape as NonNullableShape<T>;
}
return currentSchema as NonNullableShape<T>;
}
-export function asRawShape<T extends z.ZodTypeAny>(schema: T): z.ZodRawShape {
- let currentSchema: z.ZodTypeAny = schema;
+export function asRawShape<T extends AnyZodType>(
+ schema: T
+): RawShapeFromSchema<T> {
+ let currentSchema = schema as AnyZodType;
// Unwrap optional and nullable types
while (
@@ -375,20 +418,28 @@ export function asRawShape<T extends z.ZodTypeAny>(schema: T): z.ZodRawShape {
// Handle intersection types by merging their shapes
if (currentSchema instanceof z.ZodIntersection) {
- const leftShape = asRawShape(currentSchema._def.left);
- const rightShape = asRawShape(currentSchema._def.right);
- return { ...leftShape, ...rightShape };
+ const leftShape = asRawShape(currentSchema._def.left as AnyZodType);
+ const rightShape = asRawShape(currentSchema._def.right as AnyZodType);
+ return {
+ ...(leftShape as object),
+ ...(rightShape as object),
+ } as RawShapeFromSchema<T>;
}
// Handle union types by finding a common raw shape
if (currentSchema instanceof z.ZodUnion) {
- const options = currentSchema._def.options.map(asRawShape);
- return options.reduce((acc: any, shape: any) => ({ ...acc, ...shape }), {});
+ const options = currentSchema._def.options.map((option) =>
+ asRawShape(option as AnyZodType)
+ );
+ return options.reduce(
+ (acc: any, shape: any) => ({ ...acc, ...shape }),
+ {}
+ ) as RawShapeFromSchema<T>;
}
// Extract object shapes
if (currentSchema instanceof z.ZodObject) {
- return currentSchema.shape;
+ return currentSchema.shape as RawShapeFromSchema<T>;
}
throw new Error('Schema does not have a raw shape');
diff --git a/js/app/packages/document-processing-types/package.json b/js/app/packages/document-processing-types/package.json
index 872d75626f..4feb1935ec 100644
--- a/js/app/packages/document-processing-types/package.json
+++ b/js/app/packages/document-processing-types/package.json
@@ -14,6 +14,6 @@
}
},
"dependencies": {
- "zod": "^3.23.4"
+ "zod": "^4.3.6"
}
}
diff --git a/js/app/packages/notifications/package.json b/js/app/packages/notifications/package.json
index 20d807a8e7..ed0cde0ee5 100644
--- a/js/app/packages/notifications/package.json
+++ b/js/app/packages/notifications/package.json
@@ -5,7 +5,7 @@
"types": "./index.ts",
"dependencies": {
"vitest": "^3.2.3",
- "zod-validation-error": "^3.4.0"
+ "zod-validation-error": "^5.0.0"
},
"scripts": {
"test": "vitest"
diff --git a/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts b/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts
index ffa9b773d7..131765c361 100644
--- a/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts
@@ -1,7 +1,7 @@
/* Generated by scripts/generate-dcs-tools.ts
* *DO NOT EDIT MANUALLY*
*/
-import { z } from 'zod';
+import { z } from 'zod/v3';
export const ContentSearch = z.object({
entityTypes: z
diff --git a/js/app/packages/service-clients/service-storage/client.ts b/js/app/packages/service-clients/service-storage/client.ts
index 8a290386ab..12261a67c5 100644
--- a/js/app/packages/service-clients/service-storage/client.ts
+++ b/js/app/packages/service-clients/service-storage/client.ts
@@ -1059,20 +1059,16 @@ export const storageServiceClient = {
getDocxExpandedParts,
async upsertDocumentViewLocation({ documentId, location }) {
- return ok(
- await dssFetch<{}>(`/user_document_view_location/${documentId}`, {
- method: 'POST',
- body: JSON.stringify({ location }),
- })
- );
+ return await dssFetch<{}>(`/user_document_view_location/${documentId}`, {
+ method: 'POST',
+ body: JSON.stringify({ location }),
+ });
},
async deleteDocumentViewLocation({ documentId }) {
- return ok(
- await dssFetch<{}>(`/user_document_view_location/${documentId}`, {
- method: 'DELETE',
- })
- );
+ return await dssFetch<{}>(`/user_document_view_location/${documentId}`, {
+ method: 'DELETE',
+ });
},
projects: {
@@ -1145,7 +1141,6 @@ export const storageServiceClient = {
);
},
- // @ts-expect-error - TODO: we need to be able to return a string, the record<string, any> constraint is too strict
async getUserAccessLevel({
id,
}): Promise<MaybeResult<FetchWithTokenErrorCode, AccessLevel>> {
@@ -1262,7 +1257,9 @@ export const storageServiceClient = {
(result) => result.data
);
},
-} satisfies StorageServiceClient & typeof enhancements;
+} satisfies StorageServiceClient &
+ typeof enhancements &
+ Record<string, unknown>;
export const uploadFileToPresignedUrl = async (
presignedUrl: URL,
diff --git a/js/app/packages/service-clients/service-storage/service.ts b/js/app/packages/service-clients/service-storage/service.ts
index fde8822271..4b252fa2a6 100644
--- a/js/app/packages/service-clients/service-storage/service.ts
+++ b/js/app/packages/service-clients/service-storage/service.ts
@@ -60,7 +60,7 @@ const AnnotationsSvc = new Svc('Annotations Service')
documentId: schemas.createAnchorParams.shape.document_id,
body: schemas.createAnchorBody,
},
- result: asRawShape(schemas.createAnchorResponse),
+ result: schemas.createAnchorResponse,
throws: withFetchErrors(),
})
.fn('deleteComment', {
@@ -75,8 +75,8 @@ const AnnotationsSvc = new Svc('Annotations Service')
})
.fn('deleteAnchor', {
description: schemas.deleteAnchorBody.description!,
- args: { body: asRawShape(schemas.deleteAnchorBody).shape },
- result: asRawShape(schemas.deleteAnchorResponse),
+ args: { body: schemas.deleteAnchorBody },
+ result: schemas.deleteAnchorResponse,
throws: withFetchErrors(),
modifies: true,
})
@@ -92,8 +92,8 @@ const AnnotationsSvc = new Svc('Annotations Service')
})
.fn('editAnchor', {
description: schemas.editAnchorBody.description!,
- args: { body: asRawShape(schemas.editAnchorBody).shape },
- result: asRawShape(schemas.editAnchorResponse),
+ args: { body: schemas.editAnchorBody },
+ result: schemas.editAnchorResponse,
throws: withFetchErrors(),
modifies: true,
});
@@ -163,7 +163,6 @@ export const ProjectsSvc = new Svc('Projects Service')
schemas.getProjectUserAccessLevelParams.description ??
'Get project user access level',
args: schemas.getProjectUserAccessLevelParams.shape,
- // @ts-expect-error - TODO: we need to be able to return a string, the record<string, any> constraint is too strict
result: schemas.getProjectUserAccessLevelResponse,
throws: withFetchErrors(),
})
diff --git a/js/app/scripts/generate-dcs-tools.ts b/js/app/scripts/generate-dcs-tools.ts
index deac55b1c6..d212e142c5 100644
--- a/js/app/scripts/generate-dcs-tools.ts
+++ b/js/app/scripts/generate-dcs-tools.ts
@@ -109,7 +109,7 @@ async function generateSchemasFile(schema: CombinedSchema) {
await Bun.write(
schemasFile,
- `${warning}\nimport { z } from 'zod';\n\n${content.join('\n\n')}\n`
+ `${warning}\nimport { z } from 'zod/v3';\n\n${content.join('\n\n')}\n`
);
}
diff --git a/js/bun.lock b/js/bun.lock
index d6f6a583b9..8dc4083836 100644
--- a/js/bun.lock
+++ b/js/bun.lock
@@ -105,7 +105,7 @@
"uuid": "^10.0.0",
"virtua": "0.48.8",
"vite-plugin-wasm": "^3.5.0",
- "zod": "^3.23.8",
+ "zod": "^4.3.6",
},
"devDependencies": {
"@apidevtools/json-schema-ref-parser": "^15.3.5",
@@ -200,7 +200,7 @@
"pdfjs-dist": "github:macro-inc/pdf.js#v2.16.52-web",
"solid-custom-scrollbars": "^0.1.7",
"solid-styled-components": "^0.28.5",
- "zod-validation-error": "^3.4.0",
+ "zod-validation-error": "^5.0.0",
},
},
"app/packages/block-project": {
@@ -222,7 +222,7 @@
"name": "@coparse/document-processing-types",
"version": "0.1.1",
"dependencies": {
- "zod": "^3.23.4",
+ "zod": "^4.3.6",
},
},
"app/packages/filesystem": {
@@ -264,7 +264,7 @@
"name": "notifications",
"dependencies": {
"vitest": "^3.2.3",
- "zod-validation-error": "^3.4.0",
+ "zod-validation-error": "^5.0.0",
},
"devDependencies": {
"vite-tsconfig-paths": "^5.1.4",
@@ -333,11 +333,11 @@
"@lexical/selection": "0.32.1",
"@lexical/table": "0.32.1",
"@lexical/utils": "0.32.1",
- "chanfana": "^2.6.3",
+ "chanfana": "^3.3.0",
"hono": "^4.6.20",
"lexical": "0.32.1",
"nanoid": "^5.1.5",
- "zod": "^3.24.1",
+ "zod": "^4.3.6",
},
"devDependencies": {
"@types/bun": "^1.2.19",
@@ -384,7 +384,7 @@
"@asamuzakjp/css-color": ["@asamuzakjp/[email protected]", "", { "dependencies": { "@csstools/css-calc": "^2.1.3", "@csstools/css-color-parser": "^3.0.9", "@csstools/css-parser-algorithms": "^3.0.4", "@csstools/css-tokenizer": "^3.0.3", "lru-cache": "^10.4.3" } }, "sha512-K1A6z8tS3XsmCMM86xoWdn7Fkdn9m6RSVtocUrJYIwZnFVkng/PvkEoWtOWmP+Scc6saYWHWZYbndEEXxl24jw=="],
- "@asteasolutions/zod-to-openapi": ["@asteasolutions/[email protected]", "", { "dependencies": { "openapi3-ts": "^4.1.2" }, "peerDependencies": { "zod": "^3.20.2" } }, "sha512-/2rThQ5zPi9OzVwes6U7lK1+Yvug0iXu25olp7S0XsYmOqnyMfxH7gdSQjn/+DSOHRg7wnotwGJSyL+fBKdnEA=="],
+ "@asteasolutions/zod-to-openapi": ["@asteasolutions/[email protected]", "", { "dependencies": { "openapi3-ts": "^4.1.2" }, "peerDependencies": { "zod": "^4.0.0" } }, "sha512-SABbKiObg5dLRiTFnqiW1WWwGcg1BJfmHtT2asIBnBHg6Smy/Ms2KHc650+JI4Hw7lSkdiNebEGXpwoxfben8Q=="],
"@asyncapi/specs": ["@asyncapi/[email protected]", "", { "dependencies": { "@types/json-schema": "^7.0.11" } }, "sha512-A3WBLqAKGoJ2+6FWFtpjBlCQ1oFCcs4GxF7zsIGvNqp/klGUHjlA3aAcZ9XMMpLGE8zPeYDz2x9FmO6DSuKraQ=="],
@@ -1724,7 +1724,7 @@
"chalk": ["[email protected]", "", { "dependencies": { "ansi-styles": "^2.2.1", "escape-string-regexp": "^1.0.2", "has-ansi": "^2.0.0", "strip-ansi": "^3.0.0", "supports-color": "^2.0.0" } }, "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A=="],
- "chanfana": ["[email protected]", "", { "dependencies": { "@asteasolutions/zod-to-openapi": "^7.2.0", "js-yaml": "^4.1.0", "openapi3-ts": "^4.4.0", "yargs-parser": "^22.0.0", "zod": "^3.23.8" }, "bin": { "chanfana": "dist/cli.js" } }, "sha512-OBefbT8n+CeRYkC6lUoRgySTFbth+3LetxiNrCe0t+WgpQhhoIxPlo+lDYvNrLJgtsQr7XuPazm8yyxR8zwB7g=="],
+ "chanfana": ["[email protected]", "", { "dependencies": { "@asteasolutions/zod-to-openapi": "^8.4.1", "js-yaml": "^4.1.1", "openapi3-ts": "^4.5.0", "yargs-parser": "^22.0.0", "zod": "^4.3.6" }, "bin": { "chanfana": "dist/cli.js" } }, "sha512-YKZkjymihSi9Wiwb4BbdMzXH7j9OxT4KS+5b9Y9ZUsj6Wthfodkw81cgoSEOMvgMTicCryohKhKZSIKCA6GFQA=="],
"channel": ["channel@workspace:app/packages/channel"],
@@ -3170,9 +3170,9 @@
"youch-core": ["[email protected]", "", { "dependencies": { "@poppinss/exception": "^1.2.2", "error-stack-parser-es": "^1.0.5" } }, "sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA=="],
- "zod": ["[email protected]", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],
+ "zod": ["[email protected]", "", {}, "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg=="],
- "zod-validation-error": ["[email protected]", "", { "peerDependencies": { "zod": "^3.24.4" } }, "sha512-+hEiRIiPobgyuFlEojnqjJnhFvg4r/i3cqgcm67eehZf/WBaK3g6cD02YU9mtdVxZjv8CzCA9n/Rhrs3yAAvAw=="],
+ "zod-validation-error": ["[email protected]", "", { "peerDependencies": { "zod": "^3.25.0 || ^4.0.0" } }, "sha512-hmk+pkyKq7Q71PiWVSDUc3VfpzpvcRHZ3QPw9yEMVvmtCekaMeOHnbr3WbxfrgEnQTv6haGP4cmv0Ojmihzsxw=="],
"@antfu/install-pkg/tinyexec": ["[email protected]", "", {}, "sha512-VKS/ZaQhhkKFMANmAOhhXVoIfBXblQxGX1myCQ2faQrfmobMftXeJPcZGp0gS07ocvGJWDLZGyOZDadDBqYIJg=="],
@@ -3496,8 +3496,6 @@
"katex/commander": ["[email protected]", "", {}, "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww=="],
- "knip/zod": ["[email protected]", "", {}, "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg=="],
-
"lexical-service/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.20.0" } }, "sha512-ClIbNe36lawluuvq3+YYhnIN2CELi+6q8NpnM7PYp4hBn/TatfboPgVSm2rwKRfnV2M+Ty9GWDFI64KEe+kysA=="],
"lexical-service/nanoid": ["[email protected]", "", { "bin": { "nanoid": "bin/nanoid.js" } }, "sha512-ZUvP7KeBLe3OZ1ypw6dI/TzYJuvHP77IM4Ry73waSQTLn8/g8rpdjfyVAh7t1/+FjBtG4lCP42MEbDxOsRpBMw=="],
diff --git a/js/lexical-service/package.json b/js/lexical-service/package.json
index 73a3731d08..1e3ca486b7 100644
--- a/js/lexical-service/package.json
+++ b/js/lexical-service/package.json
@@ -30,11 +30,11 @@
"@lexical/selection": "0.32.1",
"@lexical/table": "0.32.1",
"@lexical/utils": "0.32.1",
- "chanfana": "^2.6.3",
+ "chanfana": "^3.3.0",
"hono": "^4.6.20",
"lexical": "0.32.1",
"nanoid": "^5.1.5",
- "zod": "^3.24.1"
+ "zod": "^4.3.6"
},
"devDependencies": {
"@types/bun": "^1.2.19",