Skip to content

NPM package outdated #970

Open
Open
@ebhoren

Description

@ebhoren

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions