Skip to content

chore(deps): update chokidar to v4#5374

Draft
Fuzzyma wants to merge 11 commits intowebpack:mainfrom
Fuzzyma:update-chokidar
Draft

chore(deps): update chokidar to v4#5374
Fuzzyma wants to merge 11 commits intowebpack:mainfrom
Fuzzyma:update-chokidar

Conversation

@Fuzzyma
Copy link
Copy Markdown

@Fuzzyma Fuzzyma commented Dec 8, 2024

This PR aims to close #5368

In order to replace chokidars removed glob functionality, we have to use some trickery.

  • glob-parent is used to get the common ancenstor dir that needs to be watched.
  • picomatch is used as ignore-filter to make sure that only files/dirs are watched that match the given glob
  • is-glob is used to only use glob logic when needed

In total this adds 4 direct or transitive dependencies. However, the update to chokidar v4 removes 12. So its a net positive

I also added a test to ensure that creation of nested directories is detected properly.

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

NOTE: This PR needs to wait for paulmillr/chokidar#1394. If that issue is not resolved, we have to make sure to not let undefined values slip through for watcher options.

I didn't add this change to this PR because it would add more changed lined and it might be not needed after all.
That's why this PR is still draft

Loading
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.

Update chokidar to v4

5 participants