Skip to content

Conversation

@LekoArts
Copy link
Contributor

@LekoArts LekoArts commented Jan 26, 2021

Description

This removes the deprecated hasNodeChanged API from the public API surface.

Documentation

Related Issues

[ch23649]

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jan 26, 2021
@LekoArts LekoArts added topic: internal topic: plugins Related to plugin system, themes & catch-all for plugins that don't have a label and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jan 26, 2021
@LekoArts LekoArts marked this pull request as ready for review February 2, 2021 10:04
Copy link
Contributor

@gillkyle gillkyle left a comment

Choose a reason for hiding this comment

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

Looks straightforward enough!

It looks like this PR removes existing places where hasNodeChanged is destructured in plugins, and removes it's references in docs.

My only question would be, can the actual declaration of hasNodeChanged be removed as well? https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/redux/nodes.ts#L101-L111

@LekoArts
Copy link
Contributor Author

LekoArts commented Feb 9, 2021

@gillkyle The function is used internally here :)

if (oldNode && !hasNodeChanged(node.id, node.internal.contentDigest)) {

@LekoArts LekoArts changed the title gatsby: Remove hasNodeChanged chore(gatsby): Remove hasNodeChanged Feb 9, 2021
@LekoArts LekoArts merged commit 7c24fd0 into master Feb 9, 2021
@LekoArts LekoArts deleted the v3/has-node-changed branch February 9, 2021 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: plugins Related to plugin system, themes & catch-all for plugins that don't have a label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants