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 <[email protected]>
Co-authored-by: Nate Moore <[email protected]>
Co-authored-by: Nate Moore <[email protected]>
  • Loading branch information
4 people authored Oct 30, 2023
1 parent 4c261c9 commit 35cd810
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 11 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
19 changes: 11 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 35cd810

Please sign in to comment.