Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jan 7, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

nabbydude and others added 2 commits January 6, 2026 23:12
…scriminators (#5982)

* add `isEditorNode`, `isElementNode`, and `isTextNode` and switch to using them whenever possible.
also switch to `node === editor` checks where it makes sense
also add a comment to a confusing failure state of `Node.parent`
also remove a superfluous call to `Editor.nodes` in certain codepaths of `Editor.wrapNodes`

* fix deep checking for `isEditor` and check for new properties from #5307

* convert all instances of `Element.isAncestor` and a few I missed before

* changeset

* fix pretter complaint in changeset

* use new guards in other packages and examples

* revert wrap nodes change (keeping new guards)

* add other packages to changeset

* preemptively update peerDependencies

* renamed isXNode functions to Node.isX

* replaced a few places where isText is passed as a value directly

* removed unneeded imports

* update yarn lock so tests can pass

* added `Node.isAncestor` sugar function

* update jsx examples
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@pull pull bot locked and limited conversation to collaborators Jan 7, 2026
@pull pull bot added the ⤵️ pull label Jan 7, 2026
@pull pull bot merged commit 0e6c691 into MLH-Fellowship:main Jan 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant