Skip to content

fix: replace traversal packages with empathic #6576

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Jul 25, 2025

Just the same we've done in primitives - replacing various "upwards traversal" packages with just one.

This comes with a perf improvement too (CPU time).


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures
    we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or
    something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures
    your code follows our style guide and passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

Replaces `find-up` with `empathic`, a faster library.

We can follow this up with replacements of other similar dependencies duplicating
this work, so everything is consolidated around `empathic`.
@43081j 43081j requested a review from a team as a code owner July 25, 2025 07:48
@43081j 43081j changed the title Tidy empaths chore: replace traversal packages with empathic Jul 25, 2025
Empathic can do this with a basic dirname check.
@mrstork
Copy link
Contributor

mrstork commented Jul 28, 2025

Related to netlify/primitives#387

@mrstork mrstork changed the title chore: replace traversal packages with empathic fix: replace traversal packages with empathic Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants