From d0d8b8f82d1181f13393bd0aca118168eea6f75f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 6 Aug 2025 16:16:15 +0000 Subject: [PATCH] Update dependency zod to v4 (#109236) * Update dependency zod to v4 * don't need to specify zod/v4 anymore --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ashley Harrison --- package.json | 2 +- .../alerting/unified/rule-editor/formDefaults.ts | 2 +- yarn.lock | 11 +++++++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index f8009ce2866..90c32b62b0e 100644 --- a/package.json +++ b/package.json @@ -260,7 +260,7 @@ "webpackbar": "^7.0.0", "yaml": "^2.0.0", "yargs": "^18.0.0", - "zod": "^3.25.55" + "zod": "^4.0.0" }, "dependencies": { "@bsull/augurs": "^0.10.0", diff --git a/public/app/features/alerting/unified/rule-editor/formDefaults.ts b/public/app/features/alerting/unified/rule-editor/formDefaults.ts index e9eeeec8c71..3071b6a75c6 100644 --- a/public/app/features/alerting/unified/rule-editor/formDefaults.ts +++ b/public/app/features/alerting/unified/rule-editor/formDefaults.ts @@ -1,5 +1,5 @@ import { clamp } from 'lodash'; -import { z } from 'zod/v4'; +import { z } from 'zod'; import { config, getDataSourceSrv } from '@grafana/runtime'; import { RuleWithLocation } from 'app/types/unified-alerting'; diff --git a/yarn.lock b/yarn.lock index 4ee42bcdd8d..89afc33178b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18527,7 +18527,7 @@ __metadata: whatwg-fetch: "npm:3.6.20" yaml: "npm:^2.0.0" yargs: "npm:^18.0.0" - zod: "npm:^3.25.55" + zod: "npm:^4.0.0" dependenciesMeta: prettier@3.6.2: unplugged: true @@ -33207,13 +33207,20 @@ __metadata: languageName: node linkType: hard -"zod@npm:^3.23.8, zod@npm:^3.24.1, zod@npm:^3.25.3, zod@npm:^3.25.55": +"zod@npm:^3.23.8, zod@npm:^3.24.1, zod@npm:^3.25.3": version: 3.25.76 resolution: "zod@npm:3.25.76" checksum: 10/f0c963ec40cd96858451d1690404d603d36507c1fc9682f2dae59ab38b578687d542708a7fdbf645f77926f78c9ed558f57c3d3aa226c285f798df0c4da16995 languageName: node linkType: hard +"zod@npm:^4.0.0": + version: 4.0.15 + resolution: "zod@npm:4.0.15" + checksum: 10/a91e998d519b697a82e0f5ceea8b9c1e3a2ebc80ef6a275fc71b7f7b052cd4ab45140525c4ba93ad60fa28e0c72dc6f6c326be954aa3f621699b9a2d05fbdf1c + languageName: node + linkType: hard + "zstddec@npm:^0.1.0": version: 0.1.0 resolution: "zstddec@npm:0.1.0"