From 35cd810f0f988010fbb8e6d7ab205de5d816e2b2 Mon Sep 17 00:00:00 2001 From: Eva Decker Date: Mon, 30 Oct 2023 11:02:59 -0400 Subject: [PATCH] chore(deps): Upgrade Zod to @latest (#8762) Co-authored-by: Sarah Rainsberger Co-authored-by: Nate Moore Co-authored-by: Nate Moore --- .changeset/swift-rivers-impress.md | 7 +++++++ packages/astro/package.json | 3 ++- packages/astro/src/core/config/schema.ts | 4 ++++ packages/integrations/markdoc/package.json | 2 +- packages/integrations/sitemap/package.json | 2 +- pnpm-lock.yaml | 19 +++++++++++-------- 6 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 .changeset/swift-rivers-impress.md diff --git a/.changeset/swift-rivers-impress.md b/.changeset/swift-rivers-impress.md new file mode 100644 index 0000000000..bb2e07bb08 --- /dev/null +++ b/.changeset/swift-rivers-impress.md @@ -0,0 +1,7 @@ +--- +'@astrojs/markdoc': patch +'@astrojs/sitemap': patch +'astro': patch +--- + +Upgrades Zod to 3.22.4 diff --git a/packages/astro/package.json b/packages/astro/package.json index df6d0d4cdf..0198b9d834 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -154,6 +154,7 @@ "js-yaml": "^4.1.0", "kleur": "^4.1.4", "magic-string": "^0.30.3", + "mdast-util-to-hast": "12.3.0", "mime": "^3.0.0", "ora": "^7.0.1", "p-limit": "^4.0.0", @@ -176,7 +177,7 @@ "vitefu": "^0.2.4", "which-pm": "^2.1.1", "yargs-parser": "^21.1.1", - "zod": "3.21.1" + "zod": "^3.22.4" }, "optionalDependencies": { "sharp": "^0.32.5" diff --git a/packages/astro/src/core/config/schema.ts b/packages/astro/src/core/config/schema.ts index ee470abc8f..4ca70f85a8 100644 --- a/packages/astro/src/core/config/schema.ts +++ b/packages/astro/src/core/config/schema.ts @@ -14,6 +14,10 @@ import { pathToFileURL } from 'node:url'; import { z } from 'zod'; import { appendForwardSlash, prependForwardSlash, removeTrailingForwardSlash } from '../path.js'; +// This import is required to appease TypeScript! +// See https://github.com/withastro/astro/pull/8762 +import 'mdast-util-to-hast'; + type ShikiLangs = NonNullable; type ShikiTheme = NonNullable; diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json index 87749bf685..d75c3aa4a5 100644 --- a/packages/integrations/markdoc/package.json +++ b/packages/integrations/markdoc/package.json @@ -72,7 +72,7 @@ "htmlparser2": "^9.0.0", "kleur": "^4.1.5", "shikiji": "^0.6.8", - "zod": "3.21.1" + "zod": "^3.22.4" }, "peerDependencies": { "astro": "^3.0.0" diff --git a/packages/integrations/sitemap/package.json b/packages/integrations/sitemap/package.json index 2cb7ed72a7..819e601cd8 100644 --- a/packages/integrations/sitemap/package.json +++ b/packages/integrations/sitemap/package.json @@ -34,7 +34,7 @@ }, "dependencies": { "sitemap": "^7.1.1", - "zod": "3.21.1" + "zod": "^3.22.4" }, "devDependencies": { "@astrojs/node": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 74f736d623..2961475d3d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -586,6 +586,9 @@ importers: magic-string: specifier: ^0.30.3 version: 0.30.5 + mdast-util-to-hast: + specifier: 12.3.0 + version: 12.3.0 mime: specifier: ^3.0.0 version: 3.0.0 @@ -653,8 +656,8 @@ importers: specifier: ^21.1.1 version: 21.1.1 zod: - specifier: 3.21.1 - version: 3.21.1 + specifier: ^3.22.4 + version: 3.22.4 optionalDependencies: sharp: specifier: ^0.32.5 @@ -3760,8 +3763,8 @@ importers: specifier: ^0.6.8 version: 0.6.10 zod: - specifier: 3.21.1 - version: 3.21.1 + specifier: ^3.22.4 + version: 3.22.4 devDependencies: '@astrojs/markdown-remark': specifier: workspace:* @@ -4459,8 +4462,8 @@ importers: specifier: ^7.1.1 version: 7.1.1 zod: - specifier: 3.21.1 - version: 3.21.1 + specifier: ^3.22.4 + version: 3.22.4 devDependencies: '@astrojs/node': specifier: workspace:* @@ -17836,8 +17839,8 @@ packages: engines: {node: '>=12.20'} dev: false - /zod@3.21.1: - resolution: {integrity: sha512-+dTu2m6gmCbO9Ahm4ZBDapx2O6ZY9QSPXst2WXjcznPMwf2YNpn3RevLx4KkZp1OPW/ouFcoBtBzFz/LeY69oA==} + /zod@3.22.4: + resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==} dev: false /zwitch@2.0.4: