It appears that the main changes from https://github.com/elastic/fsevents have been upstreamed to https://github.com/fsnotify/fsevents, and that https://github.com/elastic/fsevents is missing a fix for a deprecated MacOS function in newer commits from upstream.
Upstreamed
Missing from upstream
fsnotify/fsevents#38 was merged into https://github.com/elastic/fsevents but is unmerged upstream, see #47637 (comment).