-
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): Remove old touchNode signature #29245
Conversation
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.
This looks good to me, the warning looks helpful too!
I left one small suggestion that I'm not even sure makes a difference is all 🙂
Co-authored-by: Kyle Gill <[email protected]>
@TylerBarnes I also had to update the WordPress plugin (will do the same in #29205) |
@LekoArts does this depend on a newer version of Gatsby? I haven't PR'd over the tests from the WP experimental repo yet so I'm a bit nervous to make changes to it. |
@TylerBarnes The change is made only here in this PR, so how about you merging your tests, I rebase onto master and we'll see if they work? |
This reverts commit 2e4cc3a.
@TylerBarnes To get myself unblocked and you not urged to merge your tests ASAP I reverted the WordPress changes :) The current state is now using deprecated APIs then, but it still works. |
see: ttps://github.com/gatsbyjs/gatsby/pull/29245/files
Description
Similarly to #29205 this removes an old arg signature, namely calling
touchNode
with a string (the id). This PR also adds a new deprecation so that in the futuretouchNode
will be called likecreateNode
anddeleteNode
-- withtouchNode(node)
.Documentation
The docs (source plugin guide) are updated.
Related Issues
[ch23714]