From 99e47cb3874b04f573e4b84051c8f4d9779c2d05 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 8 Nov 2025 22:55:25 +0000 Subject: [PATCH] chore(deps): Bump maplibre-gl from 5.10.0 to 5.11.0 (#1495) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [maplibre-gl](https://github.com/maplibre/maplibre-gl-js) from 5.10.0 to 5.11.0.
Release notes

Sourced from maplibre-gl's releases.

v5.11.0

https://github.com/maplibre/maplibre-gl-js Changes since MapLibre GL JS v5.10.0:

✨ Features and improvements

🐞 Bug fixes

Changelog

Sourced from maplibre-gl's changelog.

5.11.0

✨ Features and improvements

🐞 Bug fixes

Commits

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=maplibre-gl&package-manager=npm_and_yarn&previous-version=5.10.0&new-version=5.11.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
--------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: HarelM --- package-lock.json | 10 +++++----- package.json | 2 +- src/libs/layerwatcher.ts | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index d5aef303..53eae6cf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -42,7 +42,7 @@ "lodash.get": "^4.4.2", "lodash.isequal": "^4.5.0", "lodash.throttle": "^4.1.1", - "maplibre-gl": "^5.10.0", + "maplibre-gl": "^5.11.0", "maputnik-design": "github:maputnik/design#172b06c", "ol": "^10.6.1", "ol-mapbox-style": "^13.1.1", @@ -10162,9 +10162,9 @@ "license": "BSD-2-Clause" }, "node_modules/maplibre-gl": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-5.10.0.tgz", - "integrity": "sha512-eLhlX8Fnpaoo7+uGqggZmXmZld6WrbzOJUPB7G8JB8XpminlTnrQTtXilMHduR8fsNVxrzD8yRRqEoajONc8LQ==", + "version": "5.11.0", + "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-5.11.0.tgz", + "integrity": "sha512-XY2KHMsrVwSxGmudI94BXvP6v++9KxFs6/MEm9yPaF83H1YYDE8MPe2kc+2yAuPV7c1iA6Y5tmBsPcNj4J/ywg==", "license": "BSD-3-Clause", "dependencies": { "@mapbox/geojson-rewind": "^0.5.2", @@ -10174,7 +10174,7 @@ "@mapbox/unitbezier": "^0.0.1", "@mapbox/vector-tile": "^2.0.4", "@mapbox/whoots-js": "^3.1.0", - "@maplibre/maplibre-gl-style-spec": "^24.3.0", + "@maplibre/maplibre-gl-style-spec": "^24.3.1", "@maplibre/vt-pbf": "^4.0.3", "@types/geojson": "^7946.0.16", "@types/geojson-vt": "3.2.5", diff --git a/package.json b/package.json index 902605df..76659153 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "lodash.get": "^4.4.2", "lodash.isequal": "^4.5.0", "lodash.throttle": "^4.1.1", - "maplibre-gl": "^5.10.0", + "maplibre-gl": "^5.11.0", "maputnik-design": "github:maputnik/design#172b06c", "ol": "^10.6.1", "ol-mapbox-style": "^13.1.1", diff --git a/src/libs/layerwatcher.ts b/src/libs/layerwatcher.ts index 518411ae..1ff41fb2 100644 --- a/src/libs/layerwatcher.ts +++ b/src/libs/layerwatcher.ts @@ -32,11 +32,11 @@ export default class LayerWatcher { analyzeMap(map: Map) { const previousSources = { ...this._sources }; - Object.keys(map.style.sourceCaches).forEach(sourceId => { + for (const sourceId of Object.keys(map.style.tileManagers)) { //NOTE: This heavily depends on the internal API of Maplibre GL //so this breaks between Maplibre GL JS releases - this._sources[sourceId] = map.style.sourceCaches[sourceId]._source.vectorLayerIds as string[]; - }); + this._sources[sourceId] = map.style.tileManagers[sourceId]._source.vectorLayerIds as string[]; + }; if(!isEqual(previousSources, this._sources)) { this.onSourcesChange(this._sources);