Skip to content

Commit

Permalink
chore(deps): Upgrade Zod to @latest (#8762)
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
  • Loading branch information
4 people committed Nov 22, 2023
1 parent 8b5fae8 commit 9d42c6d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .changeset/swift-rivers-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astrojs/markdoc': patch
'@astrojs/sitemap': patch
'astro': patch
---

Upgrades Zod to 3.22.4
3 changes: 2 additions & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions packages/astro/src/core/config/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ShikiConfig['langs']>;
type ShikiTheme = NonNullable<ShikiConfig['theme']>;

Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/markdoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/sitemap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"dependencies": {
"sitemap": "^7.1.1",
"zod": "3.21.1"
"zod": "^3.22.4"
},
"devDependencies": {
"@astrojs/node": "workspace:*",
Expand Down

0 comments on commit 9d42c6d

Please sign in to comment.