-
Notifications
You must be signed in to change notification settings - Fork 93
NPM package outdated #970
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
Comments
Yes, please fix this as we get same warning after updating to latest google maps api ver (3.60.5) and now i need to suppress it like this:
|
I am getting the same warning here. It would be great to have an update on that one! |
This package hasn't been released for a bit, the last release on npm is 2.5.3, see release notes. Jan 29, 2024, 42 commits to main since then. There's also a 2.5.4 release but it doesn't contain any code changes. Jul 30, 2024, 34 commits to main since then. Looks like there's an open release PR, @usefulthink any chance you can take a look? #936 In the meantime, you can install from this repo instead of npm, see https://docs.npmjs.com/cli/v11/configuring-npm/package-json#git-urls-as-dependencies -- e.g. to point to #ec322bf (the current most recent commit on
https://github.com/googlemaps/js-markerclusterer/blob/main/src/markerclusterer.ts#L264 shows the latest code from the Tip: linking to |
I think the official NPM package of this repository is not up to date.
When i compare code from the main branch to code pulled from NPM in my project node_modules/, MarkerClusterer.renderClusters method code is slightly different. I'm pulling 2.5.3 from NPM.
I've notice this while navigating the source code trying to figure out why this warning was showing up in my developer console.
<gmp-advanced-marker>: Please use addEventListener('gmp-click', ...) instead of addEventListener('click', ...).
When looking at the source code from Github in https://github.com/googlemaps/js-markerclusterer/blob/main/src/markerclusterer.ts#L264, you can see that it seem to be handled properly. Unfortunately, when i looked at the same code pulled from NPM (@googlemaps/markerclusterer/dist/index.esm.js#L942), click handling isn't done the same way.
I think the problem came from distribution files not being recompiled before being publish to NPM.
Is that possible to take a look at this issue?
Thanks
The text was updated successfully, but these errors were encountered: