Skip to content
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

Upgrade chokidar and fsevents for Apple M1 compatibility #3945

Merged
merged 1 commit into from Feb 1, 2021
Merged

Upgrade chokidar and fsevents for Apple M1 compatibility #3945

merged 1 commit into from Feb 1, 2021

Conversation

threepointone
Copy link
Contributor

@threepointone threepointone commented Jan 31, 2021

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers: -NA-

Description

This PR updates chokidar and fsevents in package.json.

fsevents ~2.1.2 was deprecated, and mentions to use 2.2 or 2.3 instead. This is the message you see when installing rollup as a dependency: rollup > fsevents@2.1.3: "Please update to latest v2.3 or v2.2". The commits there imply it's for Apple M1 compatibility.

chokidar also updated to that version of fsevents, so I updated that here too.

If you see package-lock.json, you'll see the older version of 2.1.3 got added to mocha's dependencies. They use the older version, and haven't released a new version yet.

This PR updates `chokidar` and `fsevents` in package.json.

`fsevents` ~2.1.2 was deprecated, and mentions to use 2.2 or 2.3 instead. This is the message you see when installing rollup as a dependency: `rollup > fsevents@2.1.3: "Please update to latest v2.3 or v2.2"`. The [commits](https://github.com/fsevents/fsevents/commits/master) there imply it's for Apple M1 compatibility.

`chokidar` also updated to that version of `fsevents`, so I updated that here too.

If you see package-lock.json, you'll see the older version of 2.1.3 got added to mocha's dependencies. They use the older version, and haven't released a new version yet.
@codecov
Copy link

codecov bot commented Jan 31, 2021

Codecov Report

Merging #3945 (0698336) into master (5cbcb67) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3945   +/-   ##
=======================================
  Coverage   97.18%   97.18%           
=======================================
  Files         188      188           
  Lines        6685     6685           
  Branches     1947     1947           
=======================================
  Hits         6497     6497           
  Misses         99       99           
  Partials       89       89           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5cbcb67...0698336. Read the comment docs.

Copy link
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

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

Thanks. Previously, I was not updating because the updated fsevents was failing on my local non-M1 Mac, see #3931 (comment), but it appears this is working now, so I will merge this.

@lukastaegert lukastaegert merged commit 683cc6a into rollup:master Feb 1, 2021
@threepointone
Copy link
Contributor Author

Thanks! A bit confused, the linked issue doesn't seem to be resolved tho? 😐

@threepointone threepointone deleted the upgrade-chokidar-fsevents branch February 1, 2021 09:14
@lukastaegert
Copy link
Member

True. But it did not break for me this time and well, let's hope it will be resolved eventually.

threepointone added a commit to threepointone/vite that referenced this pull request Feb 6, 2021
The installed version of `fsevents`, ~2.1.2 (2.1.3, to be precise) has issues with Apple M1 machines. So if you use `vite` to create an app, you'll get a warning `vite > fsevents@2.1.3: "Please update to latest v2.3 or v2.2"`.

So, this PR updates `fsevents` to 2.3.1. `chokidar` also updated their usage of `fsevents`, so I updated `chokidar` as well to 3.5.1. Both these packages were already available trasnitively. `rollup` updated it's usafe as well (via me, rollup/rollup#3945), so I updated `rollup` here too.
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.

None yet

2 participants