Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
9277fbd
feat: upgrade to Zod v4
matthewp Dec 2, 2025
0318297
Remove Zod v3 support, keep only v4
matthewp Dec 2, 2025
0bb5419
Finish upgrade
matthewp Dec 3, 2025
c78a21e
Merge branch 'next' into zod4-m
matthewp Dec 3, 2025
9fdfe72
skip these tests for now
matthewp Dec 3, 2025
be4e226
skip this one too
matthewp Dec 3, 2025
11766e1
correct mark the received item
matthewp Dec 3, 2025
beb8c67
fix config-validate tests
matthewp Dec 4, 2025
45b6c46
Merge branch 'next' into zod4-m
matthewp Dec 4, 2025
085e663
merge: resolve conflicts between zod4-m and next
matthewp Dec 4, 2025
19a3c1b
fix remaining build error
matthewp Dec 4, 2025
94f42c1
remove references to zod4 thing
matthewp Dec 4, 2025
86b54be
fixes
matthewp Dec 4, 2025
59e5cdf
prevent the crash
matthewp Dec 4, 2025
bb8f885
switch to the native zod to json schema
matthewp Dec 4, 2025
1ae84f2
oops
matthewp Dec 4, 2025
8084da5
fix content layer tests
matthewp Dec 4, 2025
62edc31
fix error map tests
matthewp Dec 4, 2025
ef994e5
fix actions test
matthewp Dec 5, 2025
4f005eb
fix intellisense tsts
matthewp Dec 5, 2025
2ddd549
fix schema test
matthewp Dec 5, 2025
215afa0
fix: types
florian-lefebvre Dec 5, 2025
3a61f4e
Update Svelte to exactly 5.43.8 in package and fixtures
matthewp Dec 5, 2025
713cb7e
fix svelte tests
matthewp Dec 5, 2025
8c429bc
fix more e2e
matthewp Dec 5, 2025
725859f
fix cloudflare tests
matthewp Dec 5, 2025
bfe74e8
fix defineMiddleware issue
matthewp Dec 5, 2025
530e2e0
remove unused reference
matthewp Dec 5, 2025
c51a23a
fix examples types
matthewp Dec 5, 2025
dcb3bdc
pr comment stuff
matthewp Dec 5, 2025
af68956
changeset
matthewp Dec 5, 2025
fcdf90d
remove experiemental flag
matthewp Dec 5, 2025
afd6528
add some debugging here
matthewp Dec 5, 2025
0f181c3
remove debugging stuff
matthewp Dec 5, 2025
7db7f57
Update packages/astro/src/actions/vite-plugin-actions.ts
matthewp Dec 8, 2025
b4a5b6b
fix
matthewp Dec 8, 2025
5301b0b
fix: import
florian-lefebvre Dec 8, 2025
a2e44cf
use zod/v4 imports in core
matthewp Dec 8, 2025
8c22939
Merge branch 'zod4-m' of github.com:withastro/astro into zod4-m
matthewp Dec 8, 2025
fe6659d
remove createDefineAction
matthewp Dec 8, 2025
9fe4f6b
remove unnecessary type alias
matthewp Dec 8, 2025
50ed91d
remove unused z4reference
matthewp Dec 8, 2025
73fa08d
rename stuff
matthewp Dec 8, 2025
4e90dae
unskip tests
matthewp Dec 8, 2025
2f4823f
rename back to createImage
matthewp Dec 8, 2025
a0099f4
nit
matthewp Dec 8, 2025
3e85a19
revert markdown change
matthewp Dec 8, 2025
f9caab6
put errorMap name back
matthewp Dec 8, 2025
c951ce2
address feedback on rss
matthewp Dec 8, 2025
58b6fc8
Merge branch 'next' into zod4-m
florian-lefebvre Dec 8, 2025
eb52371
fix: exports
florian-lefebvre Dec 8, 2025
7f760fa
Update packages/astro-rss/src/index.ts
matthewp Dec 8, 2025
dd9eadb
Update packages/astro-rss/src/schema.ts
matthewp Dec 8, 2025
8c18e1e
Update packages/astro-rss/src/util.ts
matthewp Dec 8, 2025
12485ed
Update packages/astro/src/assets/fonts/config.ts
matthewp Dec 8, 2025
1e084d2
Update packages/astro/src/assets/fonts/types.ts
matthewp Dec 8, 2025
bd8aecf
Update packages/astro/src/content/loaders/types.ts
matthewp Dec 8, 2025
fc02d97
Update packages/astro/src/content/config.ts
matthewp Dec 8, 2025
2d8ea90
Update packages/astro/src/core/config/schemas/relative.ts
matthewp Dec 8, 2025
16843f6
Update packages/astro/test/units/config/config-validate.test.js
matthewp Dec 8, 2025
c618507
Update packages/astro/test/units/actions/form-data-to-object.test.js
matthewp Dec 8, 2025
0422b86
Update packages/astro/src/core/config/schemas/refined.ts
matthewp Dec 8, 2025
d8ede75
Update packages/astro/src/content/content-layer.ts
matthewp Dec 8, 2025
e34b316
Update packages/astro/src/content/types-generator.ts
matthewp Dec 8, 2025
a70b1fc
Update packages/astro/src/content/utils.ts
matthewp Dec 8, 2025
7edf39c
Use $ZodError
matthewp Dec 8, 2025
df3795b
Update packages/astro/src/core/csp/config.ts
matthewp Dec 8, 2025
89692d3
fix the build
matthewp Dec 8, 2025
219d2cb
Merge branch 'zod4-m' of github.com:withastro/astro into zod4-m
matthewp Dec 8, 2025
1f422e3
fix e2e test
matthewp Dec 8, 2025
c64836d
replace z4 with z
matthewp Dec 8, 2025
be58ac5
increase vercel test timeout
matthewp Dec 8, 2025
3570d2a
pr comments
matthewp Dec 9, 2025
c346cb4
export ImageFunction
matthewp Dec 9, 2025
11b3dc1
use prefault
matthewp Dec 9, 2025
f6bfd6c
Validate experimental features special
matthewp Dec 9, 2025
d10cb61
bring back old locales
matthewp Dec 9, 2025
31c612a
fix test
matthewp Dec 9, 2025
50919d4
db needs to be a patch too
matthewp Dec 9, 2025
f149f99
fix chainability of image
matthewp Dec 9, 2025
528f6f1
Merge branch 'next' into zod4-m
matthewp Dec 9, 2025
f55cfcb
update zod imports
florian-lefebvre Dec 10, 2025
2a4b1da
Discard changes to packages/integrations/svelte/package.json
florian-lefebvre Dec 10, 2025
dfac302
Discard changes to packages/integrations/svelte/test/fixtures/async-r…
florian-lefebvre Dec 10, 2025
9d03430
refresh lockfile
florian-lefebvre Dec 10, 2025
c35609b
chore: changeset
florian-lefebvre Dec 10, 2025
82f1de6
fix: reference()
florian-lefebvre Dec 10, 2025
787325d
skip broken svelte test
matthewp Dec 10, 2025
1e3ac98
Update .changeset/dance-ornate-keen.md
matthewp Dec 11, 2025
4de6372
Merge branch 'next' into zod4-m
florian-lefebvre Dec 11, 2025
357480d
Merge branch 'next' into zod4-m
florian-lefebvre Dec 11, 2025
64f1796
fix config vlaidate test
matthewp Dec 11, 2025
93acc31
Merge branch 'next' into zod4-m
matthewp Dec 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix examples types
  • Loading branch information
matthewp committed Dec 5, 2025
commit c51a23a2c27c93db2f6f5ca784c1c267e9f8b57d
3 changes: 0 additions & 3 deletions examples/blog/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@ import { defineConfig } from 'astro/config';
export default defineConfig({
site: 'https://example.com',
integrations: [mdx(), sitemap()],
experimental: {
zod4: true
}
});
2 changes: 1 addition & 1 deletion examples/starlog/src/content.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const releases = defineCollection({
alt: z.string(),
}),
// Transform string to Date object
date: z.date({ coerce: true }),
date: z.coerce.date(),
}),
});

Expand Down
2 changes: 0 additions & 2 deletions packages/astro/templates/content/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ declare module 'astro:content' {
'.md': Promise<RenderResult>;
}

export const defineCollection: '@@DEFINE_COLLECTION@@';

export interface RenderedContent {
html: string;
metadata?: {
Expand Down
Loading