Skip to content

Commit 80a6594

Browse files
chore(deps): bump zod from 3.25.76 to 4.3.6 (#9)
* chore(deps): bump zod from 3.25.76 to 4.3.6 Bumps [zod](https://github.com/colinhacks/zod) from 3.25.76 to 4.3.6. - [Release notes](https://github.com/colinhacks/zod/releases) - [Commits](colinhacks/zod@v3.25.76...v4.3.6) --- updated-dependencies: - dependency-name: zod dependency-version: 4.3.6 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * fix: update ZodError.errors to .issues for Zod v4 compat Zod v4 renamed ZodError.errors to ZodError.issues. Update all 3 error handlers and regenerate bun.lock. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nigel Bazzeghin <[email protected]>
1 parent 602f872 commit 80a6594

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

bun.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"dependencies": {
2626
"@opencode-ai/plugin": "^1.0.85",
27-
"zod": "^3.22.0"
27+
"zod": "^4.3.6"
2828
},
2929
"devDependencies": {
3030
"@types/bun": "latest",

src/lib/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export async function loadConfig(): Promise<MCConfig> {
6060
return result;
6161
} catch (error) {
6262
if (error instanceof z.ZodError) {
63-
throw new Error(`Invalid config in ${filePath}: ${error.errors.map(e => `${e.path.join('.')}: ${e.message}`).join(', ')}`);
63+
throw new Error(`Invalid config in ${filePath}: ${error.issues.map(e => `${e.path.join('.')}: ${e.message}`).join(', ')}`);
6464
}
6565
throw new Error(`Failed to load config from ${filePath}: ${error}`);
6666
}

src/lib/job-state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export async function loadJobState(): Promise<JobState> {
7676
return JobStateSchema.parse(parsed);
7777
} catch (error) {
7878
if (error instanceof z.ZodError) {
79-
throw new Error(`Invalid job state in ${filePath}: ${error.errors.map(e => `${e.path.join('.')}: ${e.message}`).join(', ')}`);
79+
throw new Error(`Invalid job state in ${filePath}: ${error.issues.map(e => `${e.path.join('.')}: ${e.message}`).join(', ')}`);
8080
}
8181
throw new Error(`Failed to load job state from ${filePath}: ${error}`);
8282
}

src/lib/plan-state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function loadPlan(): Promise<PlanSpec | null> {
3333
return PlanSpecSchema.parse(parsed);
3434
} catch (error) {
3535
if (error instanceof z.ZodError) {
36-
throw new Error(`Invalid plan state in ${filePath}: ${error.errors.map(e => `${e.path.join('.')}: ${e.message}`).join(', ')}`);
36+
throw new Error(`Invalid plan state in ${filePath}: ${error.issues.map(e => `${e.path.join('.')}: ${e.message}`).join(', ')}`);
3737
}
3838
throw new Error(`Failed to load plan state from ${filePath}: ${error}`);
3939
}

0 commit comments

Comments
 (0)