chore: update dependency maplibre-gl to v6 - #70
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
Deploying sit-frontend with
|
| Latest commit: |
f128668
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://01fd13ae.sit-frontend.pages.dev |
| Branch Preview URL: | https://renovate-maplibre-gl-6-x.sit-frontend.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^5.24.0→^6.0.0Release Notes
maplibre/maplibre-gl-js (maplibre-gl)
v6.0.0Compare Source
The following incorporates all the pre-releases for version 6 changes.
Check-out our migration guide from v5 to v6 for more information.
✨ Features and improvements
maplibre-gl.mjs). The UMD bundles (maplibre-gl.js,maplibre-gl-csp.js) are no longer published. The CSP-specific bundle is also dropped: the ESM build loads its worker as a real URL, soworker-src blob:is no longer required. Consumers using<script src=".../maplibre-gl.js">must switch to<script type="module">, and consumers usingimport maplibregl from 'maplibre-gl'must switch toimport * as maplibregl from 'maplibre-gl'or named imports. See the docs ESM section or our migration guide for migration steps. (#6254) (by @birkskyum)styleimagemissingis now a notify-only event instead of the previous callback that allowed to provide an image. This aligns the event with standard event semantics (notify, not resolve). UseMap.setMissingStyleImageResolverto on-demand supply images instead via an function that can now also be async. (#7892) (by @birkskyum)Mapnow composes aCamerainstead of extending it (MapextendsEventeddirectly and forwards the camera API). The internalmap.transformwas removed — use map's public API instead or open a PR if you need something that's not exposed. Removed the internaltransform.getMatrixForModelhelper (#7800) (by @HarelM)Maps'BoxZoomhandler fromMapLibreZoomEventtoMapBoxZoomEvent, added therollstart/roll/rollendandstyle.load(asMapStyleLoadEvent) events toMapEventType, and added event classes and type-map forMarker,Popup,GeolocateControlandFullscreenControl. RemovedMapDataEvent: thedata/dataloading/dataabortevents are nowMapSourceDataEvent | MapStyleDataEvent, so source data events carry the full source info (sourceId,tile,sourceDataType, …). AddedMapMovementEventas the type for all camera-transition events (move/zoom/rotate/pitch/roll/dragand theirstart/endvariants).Eventedis now generic over an event-type map (Evented<EventType>) and isabstract, so subclasses get strongly-typedon/once/offautomatically without re-declaring overloads — this also types the events onCamera/Style(viaMapEventType) and on the sources (via the newSourceEventType) (#7789) (by @HarelM)#pragma mapboxto#pragma maplibrein case you have shader code that relied on it. (#7761) (by @HarelM)zoomLevelsToOverscaledefault value was changed to 4 to support better handling of high level zoom with dense labels. This might have a side effect of changing a bit the results ofqueryRenderedFeaturesand some rendering of polygon center label. To revert this change, set the value toundefined(#7537) (by @HarelM)GeoJSONSource.setData(waitForCompletion) and remove the return value ofthisto allow future changes to the API (#7538) (by @HarelM)This results in smaller bundles and improved runtime performance by relying on modern JavaScript features and reducing transpilation. Consumers targeting browsers or using some tooling released before 2022 may need to transpile MapLibre or update. This change also aligns all internal build configurations to a single target instead of ES2016 + ES2019, avoiding inconsistencies in emitted code. (#7404) (by @CommanderStorm)
In practical terms, this will not change how you interact with the map.
This enables performance improvements (e.g. line opacity), Terrain3D enhancements, and several bug fixes.
WebGL2 support has been widely available for years, and usage of the legacy path had plateaued, so maintaining it no longer justified the added complexity.
To ease this breaking change, we have also refactored how we handle the case that no webgl is avaliable (e.g. due to browser restrictions).
You can now listen to the webgl error via
.on("error").See caniuse.com/webgl2 for ecosystem support and our RFC for details. (#7453) (by @CommanderStorm)
__$json__before properties that used to be an object. It also parses them back, but this is still a breaking change if you assumed this bug existed. (#6992) (by HarelM){get,set}LayoutProperty,{get,set}PaintPropertyto be the actual type instead ofstring/any(#7481) (by @CommanderStorm)Hash-based location control (the option that syncs map state to the URL like#map=5/1/2) to useURLSearchParamsinternally. This improves extensibility for custom use cases, but may break existing code that relies on the previous implementation. It also changes how certain edge cases are parsed—for example, strings like#​10%2F3.00%2F-1.00are now accepted, and hashes like#fooare normalized to#foo=. (#7073) (by @CommanderStorm)map.setTerrain, which was previously applied unchecked (#7941) (by @HarelM)layers[3].paint.line-color,layers[3].filter) instead of just logging the bare error message (#7869) (by @CommanderStorm)Map.setMissingStyleImageResolverfor resolving missing style images with sync or async callbacks (#7850) (by @birkskyum)RasterTileSource#setPremultiplyAlpha(false)to preserve raw RGBA tile values when alpha is used for data instead of opacity (#7235) (by @plantain).@mapbox/whoots-jsdependency by inlining its singlegetTileBBoxhelper (#7838) (by @qorexdevs)setImagesbroadcast to once per animation frame, fixing O(n²) serialization overhead when adding many images (#7614) (by @bradymadden97)fill-layer-opacityandline-layer-opacitypaint properties, which apply opacity to the entire layer output uniformly (#7570) (by @CommanderStorm)line-opacity-driven offscreen rendering introduced in #7490 (#7764) (by @CommanderStorm). The overlap-artefact fix is now driven byline-layer-opacityinstead.ProjectionDatamatrix backing types for renderer and custom layer projection matrices (#6316) (by @cat0825)flatto opt out of interpolation for constant shader varyings (#7661) (by @birkskyum)bindAttribLocationcalls (#7644) (by @birkskyum)terrainSkirtLength, which allows the removal of visually unappealing vertical artifacts when using a terrain along with a transparent background (#7523) (by @safwat-halaby)getProjectionDatafunction in custom layer args objects (#7471) (by @kubapelc)sideEffectsas CSS-only in package metadata, which may improve tree-shaking and reduce bundle size in some bundlers (#7258) (by @CommanderStorm)🐞 Bug fixes
line-opacity, but purposefully not for transparentline-colorproperties, thus still allowing transparent colors to stack their effect. (#7490) (by @CommanderStorm)raster-demsources passed tomap.addSource, which were previously skipped. Stop a source type the style spec has no schema for, such as one registered withaddSourceType, from failing the whole style. Previously onlycanvaswas let through (#7941) (by @HarelM)line-layer-opacity/fill-layer-opacityclipping away a subsequent layer that shares the same source (#7867) (by @CommanderStorm)Actor.sendAsyncnow rejects with anAbortErroron abort (#7826) (by @kamil-sienkiewicz-asi)undefinedproperties during worker serialization (#7801) (by @xavierjs)queryRenderedFeatures(#7765) (by @ckolin)Framebuffer is not completeerror on transient GPU resource loss (e.g. when a tab wakes from sleep); incomplete framebuffers now self-heal on the next frame instead (#7303) (by @johanrd)line-dasharraystep transition lags one zoom level when the step's branches are data-driven (#7705) (by @lucaswoj)Configuration
📅 Schedule: (in timezone UTC)
* 0-3 * * 1)🚦 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.
This PR was generated by Mend Renovate. View the repository job log.