Skip to content
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-source-wordpress): allow path to js file for beforeChangeNode option #32901

Merged
merged 4 commits into from
Aug 26, 2021

Conversation

TylerBarnes
Copy link
Contributor

In Gatsby v4 functions in plugin options wont work anymore. This change alters the beforeChangeNode plugin type option to allow entering a path to a js file instead.

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 25, 2021
beforeChangeNodePath
)
? beforeChangeNodePath
: require.resolve(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wardpeet you mentioned gatsby-fs. Is that available now or will this need to be updated in the future?

@TylerBarnes TylerBarnes merged commit ac7bd4e into master Aug 26, 2021
@TylerBarnes TylerBarnes deleted the feat/wp-allow-fn-path-for-beforechangenode-option branch August 26, 2021 16:04
wardpeet pushed a commit that referenced this pull request Aug 27, 2021
…Node option (#32901)

* Allow path to js file for beforeChangeNode option

* ensure Joi doesn't fail the build for inline beforeChangeNode fn's

* Create gatsby-version.ts

* Panic on Gatsby v4+ if beforeChangeNode is a function.
@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants