visit API no longer offers parents and visitParents doesn't have parents? #118
Unanswered
kentcdodds
asked this question in
Q&A
Replies: 1 comment 4 replies
-
The unkfied ecosystem is being updated with (mostly small) breaking changes. The unist utilities have already been updated, but remark not yet. You're best off updating |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here's my current code that worked with
unist-util-visit
v4.1.2: https://github.com/kentcdodds/kentcdodds.com/blob/95663825007397455c634ae1527756377248302a/app/utils/simplecast.server.ts#L296Now I'm trying to upgrade and I don't see a migration guide, but apparently
index
andparents
are no longer supplied. So I'm tryingunist-util-visit-parents
:And in this case
parents
isArray<never>
.I'm not sure what I'm doing wrong.
Beta Was this translation helpful? Give feedback.
All reactions