Skip to content

chore(deps): update dependency leaflet to v1.9.4#6

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/leaflet-1.x-lockfile
Open

chore(deps): update dependency leaflet to v1.9.4#6
renovate[bot] wants to merge 1 commit intomainfrom
renovate/leaflet-1.x-lockfile

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 15, 2023

This PR contains the following updates:

Package Change Age Confidence
leaflet (source) 1.9.3 -> 1.9.4 age confidence
@types/leaflet (source) 1.9.0 -> 1.9.21 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, {Map, TileLayer, Marker, Circle, Polygon, Popup} from 'leaflet';
	const map = new Map('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.Map('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


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 is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates 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 requested review from DarkArtek and hikuch March 15, 2023 19:33
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch from 145c864 to bbd7ad8 Compare March 24, 2023 17:13
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch from bbd7ad8 to df8784f Compare April 28, 2023 00:25
@renovate renovate Bot changed the title chore(deps): update dependency @types/leaflet to v1.9.3 chore(deps): update dependency leaflet to v1.9.4 May 18, 2023
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch from df8784f to 9e1db31 Compare August 30, 2023 22:14
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch 2 times, most recently from c956229 to 251c37b Compare September 24, 2023 13:10
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch from 251c37b to b321691 Compare October 18, 2023 12:00
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch from b321691 to 7674665 Compare November 7, 2023 21:12
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch from 7674665 to c7976f1 Compare April 3, 2024 19:17
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch 2 times, most recently from 467b9fa to 15efbd3 Compare April 14, 2024 15:01
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch from 15efbd3 to bf1f97f Compare April 22, 2024 16:56
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch 2 times, most recently from a8042f3 to 5f0c78f Compare October 23, 2024 04:56
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch from 5f0c78f to d5029aa Compare December 4, 2024 20:34
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch from d5029aa to ea80516 Compare January 7, 2025 16:39
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch from ea80516 to 3aa4fae Compare March 23, 2025 13:44
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch from 3aa4fae to 72e6d3e Compare May 19, 2025 12:26
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch from 72e6d3e to 0d758ec Compare June 24, 2025 16:01
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch from 0d758ec to a9351d2 Compare July 8, 2025 19:32
@renovate renovate Bot force-pushed the renovate/leaflet-1.x-lockfile branch from a9351d2 to 5bdfcaf Compare October 11, 2025 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants