-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
feat(gatsby): release plugin option validation #27437
Merged
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
fdd8ae6
chore(gatsby): add @gatsbyVersion pragma to pluginOptionsSchema Node API
mxstbr fae44f8
2.25.0!
mxstbr 32ba7d3
Merge branch 'master' into plugin-options-schema-gatsby-version
mxstbr 1aabfda
Merge branch 'master' into plugin-options-schema-gatsby-version
mxstbr 69614e4
Remove GATSBY_EXPERIMENTAL_PLUGIN_OPTION_VALIDATION feature flag
mxstbr 1c46c62
Fix incorrect option in gatsby-admin;
mxstbr 2709129
Fix tests
mxstbr a68bd74
Remove obsolete snapshots
mxstbr 75cd960
Merge branch 'master' into plugin-options-schema-gatsby-version
mxstbr d0e2d34
Trigger Build
mxstbr 7392fb6
Remove flag from remark-autolink-headers
mxstbr 1dde97d
Fix gatsby-plugin-mdx default
mxstbr 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
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -431,6 +431,7 @@ export const onCreateDevServer = true | |
|
||
/** | ||
* Called during `gatsby develop` bootstrap to get and validate a plugins options schema | ||
* @gatsbyVersion 2.24.69 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that this is going to need to be bumped to whatever version is the first to include the |
||
* @param {Joi} $0.Joi The instance of Joi to define the schema with | ||
* | ||
*/ | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wow, is the PR only that size? How is it working under the hood?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! @DSchau implemented this way back in 2019 in #16105, I just didn't know! Soooo goooood 😍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wow, this is an incredible feature! Thanks for pointing the PR, will study on that 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mxstbr what do you think of arbitrarily bumping the version of Gatsby here? (e.g. to 2.25.0 or something)
Seems better user behavior (cc @vladar useful to think about as a concrete example of release cadence being useful!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I'm not quite following... How are users meant to upgrade to 2.25.0 if it doesn't exist yet? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh -- I mean bump the version locally and then ship this 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's bump that version after we land #27381 and set the minimum version to that!