-
-
Notifications
You must be signed in to change notification settings - Fork 3k
feat: loader.createSchema()
#14759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
florian-lefebvre
merged 36 commits into
next
from
feat/content-loader-get-schema-context
Dec 4, 2025
Merged
feat: loader.createSchema()
#14759
Changes from 33 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
082fc52
feat: loader.getSchemaContext()
florian-lefebvre fc7a785
wip
florian-lefebvre 865e64b
wip
florian-lefebvre 144c791
wip
florian-lefebvre 0ecc8d5
fix
florian-lefebvre 85fb14a
chore: format
florian-lefebvre 91a4d99
feat: error
florian-lefebvre a0e3f43
Discard changes to examples/blog/src/content.config.ts
florian-lefebvre 652b78e
feat: backward compat
florian-lefebvre 9a2f0ab
Merge branch 'next' into feat/content-loader-get-schema-context
florian-lefebvre 6e26dcd
chore: remove unused dep
florian-lefebvre f998122
Merge branch 'feat/content-loader-get-schema-context' of https://gith…
florian-lefebvre 67cb44f
fix: tests
florian-lefebvre b198c4c
test
florian-lefebvre 6f3daaf
chore: todo
florian-lefebvre 77b47e0
chore: changesets
florian-lefebvre b375c59
Discard changes to packages/astro/src/content/loaders/glob.ts
florian-lefebvre c7fd7a6
Discard changes to packages/astro/src/content/loaders/file.ts
florian-lefebvre 09c6543
Apply suggestion from @ascorbic
florian-lefebvre 9b53484
Merge branch 'next' into feat/content-loader-get-schema-context
florian-lefebvre a5a64cc
feedback
florian-lefebvre 5bb7411
Apply suggestion from @florian-lefebvre
florian-lefebvre be1be6d
Merge branch 'next' into feat/content-loader-get-schema-context
florian-lefebvre 8810bd3
fix
florian-lefebvre bde8ece
Merge branch 'next' into feat/content-loader-get-schema-context
florian-lefebvre c409b14
fix: test
florian-lefebvre d2c3fd8
feedback
florian-lefebvre d9b14c4
Apply suggestion from @florian-lefebvre
florian-lefebvre 9057916
feat: rename getSchemaContext to createSchema
florian-lefebvre ad72298
Apply suggestions from code review
florian-lefebvre 1e906b2
Update packages/astro/src/content/utils.ts
florian-lefebvre 591eeb8
Update .changeset/fresh-rocks-sing.md
florian-lefebvre 0c1b558
Apply suggestion from @florian-lefebvre
florian-lefebvre 551dea9
Apply suggestion from @florian-lefebvre
florian-lefebvre e9f9ba7
Merge branch 'next' into feat/content-loader-get-schema-context
florian-lefebvre c0be1db
Merge branch 'next' into feat/content-loader-get-schema-context
florian-lefebvre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| 'astro': major | ||
| --- | ||
|
|
||
| Updates how schema types are inferred for content loaders with schemas (Loader API) - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/TODO:)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| 'astro': major | ||
| --- | ||
|
|
||
| Removes the option to define dynamic schemas in content loaders as functions and adds a new equivalent `createSchema()` property (Loader API) - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/TODO:)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.