Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 24, 2023

Note: This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
leaflet (source) 1.3.41.9.4 age confidence

Release Notes

Leaflet/Leaflet (leaflet)

v1.9.4

Compare Source

After two and a half years of hard work, we’re thrilled to announce the first alpha release of Leaflet 2.0!

This release marks a major modernization of the Leaflet codebase. We've dropped support for Internet Explorer, removed legacy methods and polyfills, adopted modern standards like Pointer Events, and now publish Leaflet as an ESM module. The global L is no longer part of the core package (though it’s still available in the bundled version leaflet-global.js for backward compatibility).

For more information checkout the blog post: https://leafletjs.com/2025/05/18/leaflet-2.0.0-alpha.html

What's New in Leaflet 2.0
  • Targeting only evergreen browsers
  • Switched from Mouse and Touch events to PointerEvents
  • ESM support and tree shaking
  • Rewritten using standardized ES6 classes
Migration
  1. Replace all factory methods with constructor calls: L.marker(latlng)new Marker(latlng)
  2. Change the <script> tag to module: <script type='module'>
  3. Replace usage of L with explicit imports from the Leaflet package: import { Marker } from 'leaflet'
  4. To have global access to variables of a module-script, assign them to the window object (Not recommended): window.map = map
  5. Consider Leaflet V1 Polyfill if you are using outdated plugins
Old implementation
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script>
	const map = L.map('map').setView([51.505, -0.09], 13);
	const tiles = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
		maxZoom: 19,
		attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
	}).addTo(map);
</script>
New implementation
Module
<script type="importmap">
	{
		"imports": {
			"leaflet": "https://unpkg.com/leaflet@2.0.0-alpha/dist/leaflet.js"
		}
	}
</script>
<script type="module">
	import L, {LeafletMap, TileLayer, Marker, Circle, Polygon, Popup} from 'leaflet';
	const map = new LeafletMap('map').setView([51.505, -0.09], 13);
	const tiles = new TileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
		maxZoom: 19,
		attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
	}).addTo(map);
</script>
Global Script
<script src="https://unpkg.com/leaflet@2.0.0-alpha/dist/leaflet-global.js"></script>
<script>
	const map = new L.LeafletMap('map').setView([51.505, -0.09], 13);
	const tiles = new L.TileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
		maxZoom: 19,
		attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
	}).addTo(map);
</script>
Need Legacy Support?

Check out this polyfill package to help ease the transition for legacy apps: Leaflet V1 Polyfill

v1.9.3

Compare Source

🙌 Accessibility
🐞 Bug fixes

v1.9.2

Compare Source

🐞 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

v1.9.1

Compare Source

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

v1.9.0

Compare Source

⚠️ Breaking Changes
❇️ API changes
✨ Improvements
🙌 Accessibility
🐞 Bug fixes
📝 Docs
🔧 Workflow
🧪 Tests

v1.8.0

Compare Source

⚠️ Breaking Changes
❇️ API changes
✨ Improvements
🙌 Accessibility
🐞 Bug fixes
📝 Docs
🔧 Workflow
🧪 Tests

v1.7.1

Compare Source

Bug fixes
  • Fix build toolchain to reflect uglifyjs upgrade from v2 to v3 (by @​ivansanchez)

v1.7.0

Compare Source

API changes
Improvements
Bug fixes
Docs & Web Site

v1.6.0

Compare Source

API changes
Improvements
Bug fixes
Docs & Web Site

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/leaflet-1.x-lockfile branch from 160e9cc to ae9311f Compare May 28, 2023 10:42
@renovate renovate bot changed the title Update dependency leaflet to v1.9.3 Update dependency leaflet to v1.9.4 May 28, 2023
@renovate renovate bot force-pushed the renovate/leaflet-1.x-lockfile branch from ae9311f to 3e9ee42 Compare December 31, 2025 13:11
@renovate renovate bot force-pushed the renovate/leaflet-1.x-lockfile branch from 3e9ee42 to 117ff81 Compare December 31, 2025 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant