Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

leaflet

Package Overview
Dependencies
Maintainers
5
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet - npm Package Versions

2345

1.9.4

Diff

Changelog

Source

1.9.4 (2023-05-18)

🐞 Bug fixes

  • Fix tile gaps in Chromium-based browsers (#8891 by @IvanSanchez)
  • Fix vector drifts when zoomAnimation is false and zooming via flyTo or pinch (#8794 by @plainheart)
  • Ensure toGeoJSON() still works with an empty array (#8737 by @Falke-Design)
  • Ensure LineUtil and PolyUtil only iterate over array values and not properties (#8840 by @Falke-Design)
  • Fix rounding errors in center calculation of LineUtil and PolyUtil for small layers (#8784 by @Falke-Design)
  • Prevent unwanted layer toggle while expanding the Layers control on mobile (#8910 by @Falke-Design)
  • Fix an error when a focusing on a Tooltip-bound FeatureGroup that contains a layer without a getElement method (#8890 by @Falke-Design)
  • Fix Tooltip is not showing when loaded dynamically while moving the map (#8672 by @theGOTOguy)
  • Fix noMoveStart option not applying to fitBounds (#8911 by @AbdullahSohail-SE)
  • Fix outlines showing up when interacting with the map on Safari 16.4+ (#8917 by @jonkoops)
mourner
published 1.9.3 •

Changelog

Source

1.9.3 (2022-11-18)

🙌 Accessibility

  • Expand the layers control on <kbd>Enter</kbd> keydown (#8556 by @larsgw)
  • Align the scale control's alpha transparency with the attribution control (#8547 by @Malvoz)
  • Allow the scale control's text to overflow the container (#8548 by @Malvoz)

🐞 Bug fixes

  • Remove internal usage of L global (#8536 by @mourner)
  • Fix intermittent wobble when using setMaxBounds(map.getBounds()) (#8534 by @rjackson)
  • Ensure that latLngsToCoords() does not return references passed to it (#7344 by @marlo22)
  • Ensure worldCopyJump() behavior is consistent when using a keyboard (#8562 by @Falke-Design)
  • Ensure correct target is used for the popupopen event (#8571 by @Belair34)
  • Prevent recursion when panning a Popup (#8520 by @rjackson)
  • Support CSS position: sticky for map container (#8550 by @tmiaa)
mourner
published 1.9.2 •

Changelog

Source

1.9.2 (2022-10-04)

🐞 Bug fixes

  • ⚠️ Drop ESM entrypoint from package because of numerous compatibility issues with plugins (import leaflet/dist/leaflet-src.esm.js explicitly instead to take advantage; ESM by default will come in v2) (#8493 by @jonkoops)
  • Fix a bug where tooltips could throw an error with canvas renderer (#8498 by @Falke-Design)
  • Fix a bug with incorrect marker popup location when there are multiple markers registered to the same popup (#8523 by @raychanks).

🧪 Tests

  • Fix unit tests suite stopping abruptly on Mac (#8478)

📝 Docs

mourner
published 1.9.1 •

Changelog

Source

1.9.1 (2022-09-23)

  • Fix Events listens not propagating to parent objects, in particular fixing compatibility with Leaflet.markercluster plugin (#8211 by @Falke-Design)
mourner
published 1.9.0 •

Changelog

Source

1.9.0 (2022-09-21)

⚠️ Breaking Changes

  • Update color-adjust to print-color-adjust (#8211 by @Malvoz)

❇️ API changes

✨ Improvements

🙌 Accessibility

  • Improve Tooltip accessibility (focus and voice over) (#8247 by @alekzvik)
  • Fix links in accessibility guide (#8198 by @Malvoz)
  • Remove redundant role="presentation" from image tiles (#8172 by @Malvoz)

🐞 Bug fixes

  • Fix invalid GeoJSON on unbalanced arrays (#7637 by @steff1986)
  • Fix 2 step zooming while using mouse wheel scrolling (#8298 by @Falke-Design)
  • Fix wrong assigned parameter while calling map._move over requestAnimFrame (#8328 by @AMDvsTMD)
  • Fix _isClickDisabled to not throw no error if parent is removed from DOM (#8288 by @Falke-Design)
  • Fix DomEvent.DoubleTap to ignore clicks on <label>s with a for attribute (#8227 by @IvanSanchez)
  • Fix calling once() twice if same event is fired inside once (#8190 by @Falke-Design)
  • Fix map.getCenter() returning a mutable object (#8167)
  • Fix regression about popup close button modifying the URL (#8160 by @IvanSanchez)
  • Fix min/maxZoom when used in combination with detectRetina (#7328 by @bozdoz)

📝 Docs

🔧 Workflow

  • Improve GitHub Workflows security (#8419 by @sashashura)
  • Update development dependencies
  • Replace deprecated eslint-plugin-script-tags (#8331 by @jonkoops)
  • Use major version ranges for Github Actions (#8286 by @jonkoops)
  • Configure YAML issue forms (#8246 by @Malvoz)
  • Add FUNDING.yml
  • Add pre-commit hook to fix linting issues (#8212 by @jonkoops)
  • Remove Dependabot specific labels (#8199 by @jonkoops)
  • Use shorter bundlemon names (#8195)
  • Make sure integrity hashes are generated for the built version

🧪 Tests

mourner
published 1.8.0 •

Changelog

Source

1.8.0 (2022-04-18)

⚠️ Breaking Changes

  • Improve reliability of contextmenu event simulation on mobile Safari by introducing a new TapHold handler, replacing legacy Tap (#7026 by @johnd0e)
  • Reorganize DivOverlay/Popup/Tooltip APIs (#7540 by @johnd0e)
  • Improve error / argument handling for event listeners (#7518 by @johnd0e)
  • Improve reliability of touch events simulation on non-touch devices (DomEvent.Pointer) (#7059, #7084, #7415 by @johnd0e)
  • Improve reliability of dblclick event simulation on touch devices (DomEvent.DoubleTap) (#7027 by @johnd0e)
  • Improve reliability of disableClickPropagation (#7439 by @johnd0e)
  • Improve Map hasLayer() and LayerGroup hasLayer() to require a layer as argument (#6999 by @johnd0e)
  • Fix Class.include to not overwrite options (#7756 by @johnd0e)
  • Fix Class.extend to not modify source props object (#6766 by @johnd0e)
  • Improve Browser.touch touch devices detection (#7029 by @johnd0e)
  • Get rid of legacy Android hacks (#7022 by @johnd0e)
  • Allow fonts to respect users' browser settings by making the font-size relative to the map container. (You can change the font size on leaflet-container to adjust it if needed.) (#7800 by @Chandu-4444)

❇️ API changes

✨ Improvements

  • Improve memory footprint by removing will-change CSS property on tile images (#7872 by @janjaap)
  • Improve reliability of icons path detection heuristics (#7092 by @johnd0e)
  • Improve performance of adding tiled sources by avoiding excessive updates in GridLayer.onAdd (#7570 by @johnd0e)
  • Improve handling of edge cases in panInside (#7469 by @daverayment)
  • Minify marker icon SVG (#7600 by @rala72)
  • Allow template keys with spaces in TileLayer URL (#7216 by @lubojr)
  • Improve behavior of Tooltip bound to ImageOverlay (#7306 by @IvanSanchez)
  • Remove the gap between Popup tip and content dialog (#7920 by @Malvoz)
  • Fire mousemove through Canvas to map if it has no layers (#7809 by @johnd0e)
  • Add print styles to prevent printers from removing background-images in controls (#7851 by @Malvoz)
  • Move attribution code from Layer to Control.Attribution (#7764 by @johnd0e)
  • Refactor vmlCreate() so that it does not expose closure to TypeError (#7279 by @darcyparker)
  • Improve reliability of Control.Layers by not relying on Browser android and touch properties (#7057 by @johnd0e)
  • Improve reliability of Tooltip by not relying on Browser touch checks (#7535 by @johnd0e)
  • Make Browser mutable for easier automated testing (#7335 by @bozdoz)
  • Replace div with span in Control.Layers container to fix an HTML validation error (#7914 by @tmiaa)
  • Add a Ukrainian flag to default attribution 🇺🇦 (by @mourner in https://github.com/Leaflet/Leaflet/pull/8109)

🙌 Accessibility

  • Increase default font sizes and decrease attribution transparency for improved legibility (#8057, by @mourner)
  • Improve accessibility of popup close button (#7908, by @Malvoz)
  • Auto pan to markers on focus by default for improved keyboard operability (#8042 by @IvanSanchez)
  • Add accessibility section to plugins guide (#7277 by @Malvoz)
  • Update Marker to default to role="button" & alt="marker" for an improved screen reader experience (#7895 by @tmiaa)
  • Set role="button" for appropriate semantics on the <a> layers control (#7850 by @Malvoz)
  • Generally enable outlines for keyboard users by not stripping outline on focus for keyboard events (#7259 by @jafin)
  • Enable outlines on leaflet-container for keyboard users (#7996 by @Malvoz)
  • Multiple enhancements to popup's close button (#7794 by @Falke-Design)
  • Use relative font-size units for resizable text (#7800 by @Chandu-4444)
  • Apply :hover styles to :focus as well (#7274 by @Malvoz)
  • Hide the decorative attribution separator from screen readers (#7969 by @Malvoz)
  • Make the disabled state of zoom controls available to screen readers (#7280 by @akshataj96)
  • Hide the +/- characters in zoom controls from screen readers to prevent erroneous announcements (#7795 by @Falke-Design)

🐞 Bug fixes

  • Fix vector drift when dragging and immediately zooming (by @manubb @johnd0e @mourner in https://github.com/Leaflet/Leaflet/pull/8103)
  • Reduce the occurrence of glitches on rapid zoom (by @mourner in https://github.com/Leaflet/Leaflet/pull/8102)
  • Fix Marker jumping position while zooming in certain cases (#7967 by @Falke-Design)
  • Fix opening / closing Tooltip while dragging the map (#7862 by @Falke-Design)
  • Break the reference to the options of the Class prototype (#7459 by @Falke-Design)
  • Improve Tooltip options permanent & sticky to work together (#7563 by @Falke-Design)
  • Check if map container is still connected with Leaflet in locate event listener (#7813 by @Falke-Design)
  • Fix Tooltip bindTooltip to unbind existent tooltip (#7633 by @Falke-Design)
  • Correct if condition, to add zoom limits for Layer (#7609 by @vcoppe)
  • GridLayer redraw tiles after changing maxNativeZoom (#6443 by @cherniavskii)
  • Fix Popup keepInView if the map needs to panned over a long distance (#7792 by @Falke-Design)
  • Tolerate wrong event names in add/removePointerListener (#7808 by @johnd0e)
  • Reset width & padding to prevent cascading CSS from breaking tile rendering (#6843 by @Spudley)
  • Fix mousedown event calling after dragging Canvas map (#7781 by @johnd0e)
  • Decrease console.warn pollution (#7748 by @johnd0e)
  • Fix contextmenu event default-preventing when there are >1 target candidates (#7544 by @johnd0e)
  • Prevent click on Popup-tip from firing on map. (#7541 by @johnd0e)
  • Fix error by calling Path.setStyle before adding the layer to the map (#6941 by @NielsHolt)
  • Reset BoxZoom after cancel with ESC (#7597 by @Falke-Design)
  • Fix noConflict (#7855 by @Falke-Design)
  • Fix popup appearance when content is empty (#8136, by @ansh-ag)
  • Fix latLngToCoords and latLngsToCoords not accepting array form of lat/lngs (#7436, by @Relkfaw)

📝 Docs

🔧 Workflow

🧪 Tests

mourner
published 1.8.0-beta.3 •

mourner
published 1.8.0-beta.2 •

mourner
published 1.8.0-beta.1 •

mourner
published 1.8.0-beta.0 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc