New packagers like Vite don't automatically replace Node packages (events) with their browser equivalents, so this PR just installs the events NPM package so our code always has a fallback.
[x] briefly describe the changes in this PR
[ ] write tests for all new functionality
[ ] run npm run docs and commit changes to API.md
[x] update CHANGELOG.md with changes under master heading before merging
Fixes https://github.com/mapbox/mapbox-gl-geocoder/issues/441
New packagers like Vite don't automatically replace Node packages (
events
) with their browser equivalents, so this PR just installs theevents
NPM package so our code always has a fallback.npm run docs
and commit changes to API.mdmaster
heading before merging