Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Update dependency maplibre-gl to v4 #12277

Closed
wants to merge 1 commit into from
Closed

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 21, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
maplibre-gl ^2.0.0 -> ^4.0.0 age adoption passing confidence

Release Notes

maplibre/maplibre-gl-js (maplibre-gl)

v4.0.1

Compare Source

✨ Features and improvements
  • Add setUrl method to RasterTileSource to dynamically update existing TileJSON resource. (3700)
🐞 Bug fixes
  • Fix Marker losing opacity after window resize (#​3656)
  • Fix vector tiles not loading when html is opened via "file://" (#​3681)

v4.0.0

Compare Source

✨ Features and improvements
  • ⚠️ Remove all global getters and setters from maplibregl, this means the the following methods have changed:

    • maplibregl.version => getVersion()
    • maplibregl.workerCount => getWorkerCount(), setWorkerCount(...)
    • maplibregl.maxParallelImageRequests => getMaxParallelImageRequests(), setMaxParallelImageRequests(...)
    • maplibregl.workerUrl => getWorkerUrl(), setWorkerUrl(...)

    This is to avoid the need to use a global object and allow named exports/imports (#​3601)

  • ⚠️ Change attribution to be on by default, change MapOptions.attributionControl to be the type that the control handles, removed MapOptions.customAttribution (#​3618)
    Note: showing the logo of MapLibre is not required for using MapLibre.

  • ⚠️ Changed cooperative gesture config and removed the strings from it in favor of the locale variable (#​3621)

  • ⚠️ Changed the terrain enable disable locale key to match the other keys' styles, updated the typings to allow using locale with more ease (#​3621)

  • ⚠️ Add the ability to import a script in the worker thread and call addProtocol and removeProtocol there (#​3459) - this also changed how addSourceType works since now you'll need to load the script with maplibregl.importScriptInWorkers.

  • ⚠️ Changes addProtocol to be promise-based without the usage of callbacks and cancelable (#​3433)

  • ⚠️ Moved the addSourceType to be a part of the global maplibregl object instead of being per map object (#​3420)

  • ⚠️ Removed callback usage from map.loadImage in continue to below change (#​3422)

  • ⚠️ Changed the GeoJSONSource's getClusterExpansionZoom, getClusterChildren, getClusterLeaves methods to return a Promise instead of a callback usage (#​3421)

  • ⚠️ Changed the setRTLTextPlugin function to return a promise instead of using callback (#​3418) this also changed how the RTL pluing code is handled internally by splitting the main thread and worker thread code.

  • ⚠️ Remove setCooperativeGestures and getCooperativeGestures functions in favor of cooperativeGestures handler which now has an enabled() or disabled() methods (#​3430)

  • ⚠️ Changed the undeling worker communication from callbacks to promises. This has a breaking effect on the implementation of custom WorkerSource and how it behaves (#​3233)

  • ⚠️ Changed the Source interface to return promises instead of callbacks (#​3233)

  • ⚠️ Changed all the sources to be promises based. (#​3233)

  • ⚠️ Changed the map.loadImage method to return a Promise instead of a callback usage (#​3233)

  • Add "opacity" option and setOpacity method to Marker (#​3620)

  • Created a new example showing how to place a threejs scene as a CustomLayer over maplibre 3d-terrain (#​3429)

  • Changed ImageRequest to be Promise based (#​3233)

  • Improved precision and added a subtle fade transition to marker opacity changes (#​3431)

  • Adds support for terrain in setStyle with diff method (#​3515, #​3463)

  • Upgraded to use Node JS 20 and removed the dependency of gl package from the tests to allow easier develpment setup. (#​3452)

🐞 Bug fixes
  • Fix wheel zoom to be into the same direction above or under the horizon (#​3398)
  • Fix _cameraForBoxAndBearing not fitting bounds properly when using asymettrical camera viewport and bearing.(#​3591)
  • Fix missing export Map type in the d.ts file (#​3564)
  • Fix the shifted mouse events after a css transform scale on the map container (#​3437)
  • Fix markers remaining transparent when disabling terrain (#​3431)
  • Fix labels disappearing when enabling terrain at high zoom (#​3545)
  • Fix zooming outside the central globe when terrain 3D is enabled (#​3425)
  • Fix cursor being shown indefinitely as a pointer when removing a popup with its trackPointer method active (#​3434)
  • Fix a bug in showing cooperative gestures when scroll zoom is disabled (#​2498)
  • Handle loading of empty raster tiles (204 No Content) (#​3428)
  • Fixes a security issue in Actor against XSS attacks in postMessage / onmessage (#​3239)

v3.6.2

Compare Source

🐞 Bug fixes

v3.6.1

Compare Source

🐞 Bug fixes
  • Fix undefined _onEaseFrame call in Camera._renderFrameCallback() while doing Camera.jumpTo during a Camera.easeTo (#​3332)

v3.6.0

Compare Source

✨ Features and improvements
  • Add getLayersOrder() to Map and Style (#​3279)
  • Updated description of fullscreen example (#​3311)
🐞 Bug fixes
  • Fix null feature properties in resolve_tokens (#​3272)

v3.5.2

Compare Source

✨ Features and improvements
  • Convert plantuml diagrams to mermaid (#​3217)
  • Improve buffer transfer in Safari after Safari fixed a memory leak bug (#​3225)
  • Minify internal exports to reduce bundle size (#​3216)
🐞 Bug fixes
  • Add terrain property to map style object (#​3234)
  • Fix exception thrown from isWebGL2 check (#​3238)
  • Fix rollup watch mode (#​3270)

v3.5.1

Compare Source

🐞 Bug fixes
  • Fix regression introduced in 3.5.0, related to async/await (#​3228)

v3.5.0

Compare Source

✨ Features and improvements
  • Add setTiles method to RasterTileSource to dynamically update existing tile sources. (#​3208)

v3.4.1

Compare Source

✨ Features and improvements
  • Locally rendered glyphs are double resolution (48px), greatly improving sharpness of CJK text. (#​2990, #​3006)
🐞 Bug fixes
  • Fix setStyle->style.setState didn't reset _serializedLayers (#​3133).
  • Fix Raster DEM decoding in safari private browsing mode (#​3185)

v3.4.0

Compare Source

✨ Features and improvements
  • Improve error message when a tile can't be loaded (#​3130)
  • Support custom raster-dem encodings (#​3087)
🐞 Bug fixes
  • Fixed Interrupting a scroll zoom causes the next scroll zoom to return to the prior zoom level by reseting scroll handler state properly (#​2709, #​3051)
  • Fix unit test warning about duplicate module names (#​3049)
  • Correct marker position when switching between 2D and 3D view (#​2996)
  • Fix error thrown when unsetting line-gradient [#​2683]
  • Update raster tile end points in documentation
  • Avoiding inertia animation on Mac when reduced motion is on (#​3068)
  • 3d buildings example doesn't work as expected (#​3165)

v3.3.1

Compare Source

✨ Features and improvements
  • Copy LICENSE.txt to dist folder so it's included in 3rdpartylicenses.txt by webpack (#​3021)
🐞 Bug fixes
  • Correct declared return type of Map.getLayer() and Style.getLayer() to be StyleLayer | undefined to match the documentation (#​2969)
  • Correct type of Map.addLayer() and Style.addLayer() to allow adding a layer with an embedded source, matching the documentation (#​2966)
  • Throttle map resizes from ResizeObserver to reduce flicker (#​2986)
  • Correct function Map.setTerrain(options: TerrainSpecification): Map to be Map.setTerrain(options: TerrainSpecification | null): Map per the API spec (#​2993)
  • Correct function Map.getTerrain(): TerrainSpecification to be Map.getTerrain(): TerrainSpecification | null for consistency with the setTerrain function (#​3020)

v3.3.0

Compare Source

✨ Features and improvements

v3.2.2

Compare Source

✨ Features and improvements
🐞 Bug fixes
  • Properly check ImageBitmap (#​2942, #​2940)
  • VectorTileWorkerSource: fix reload for original's load parse would not pass the rawTileData and meta. (#​2941)

v3.2.1

Compare Source

✨ Features and improvements
  • Remove cooperative gesture screen from the accessibility tree since screenreaders cannot interact with the map using gestures
  • Add cooperated gestures example to the doc.(#​2860)
🐞 Bug fixes
  • Incorrect distance field of view calculation for negative elevation, fixed by storing min elevation for the tile in view (#​1655, #​2858)
  • Fix reloadCallback not firing on VectorTileWorkerSource.reloadTile (#​1874)
  • Don't draw halo pixels underneath text pixels (#​2897)
  • Fix RasterDEMTileSource not serializing its options correctly (#​2895)
  • Remove node and jest from dist type checking, fix map event and other typing problems (#​2898)

v3.2.0

Compare Source

✨ Features and improvements
  • Change all internal exports to named exports(#​2711)
  • Docs generation is now part of this repo(#​2733)
  • Add className option to Marker constructor (#​2729)
  • Immediately redraw the map after setting pixel ratio (#​2674)
  • Add maxCanvasSize option to limit canvas size. It can prevent reaching the GL limits and reduce the load on the devices. Default value is [4096, 4096].
  • Reduce maxCanvasSize when hitting GL limits to avoid distortions (#​2674)
  • Rewrite all the code comments in TSDocs, introduced a new documentaiton system and moved examples into this repository for better debug options (#​2756)
  • ⚠️ Removed non documented Marker constructor parameter (#​2756)
  • Updated check-for-support example (#​2859)
🐞 Bug fixes
  • Return undefined instead of throwing from Style.serialize() when the style hasn't loaded yet (#​2712)
  • Don't throw an exception from checkMaxAngle when a label with length 0 is on the last segment of a line (#​2710)
  • Fix the tap then drag zoom gesture detection to abort when the two taps are far away (#​2673)
  • Fix regression - update pixel ratio when devicePixelRatio changes, restoring the v1.x behaviour (#​2706)
  • Fix incorrect elevation calculation [#​2772]

v3.1.0

Compare Source

✨ Features and improvements
  • Expose map options.maxTileCacheZoomLevels to allow better control of tile cache (#​2581)
🐞 Bug fixes
  • Fix regression - Add webgl1 fallback to accomondate users without webgl2 support (#​2653)

v3.0.1

Compare Source

✨ Features and improvements
  • Update shaders to GLSL ES 3.0 (#​2599)
🐞 Bug fixes
  • Fix RequestTransformFunction type to return RequestParameters or undefined (#​2586)
  • Load EXT_color_buffer_float WebGL2 extension to fix heatmap in firefox (#​2595)

v3.0.0

Compare Source


Configuration

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

🚦 Automerge: Enabled.

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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added Dependencies Pull requests that update a dependency file T-Task Refactoring, enabling or disabling functionality, other engineering tasks labels Feb 21, 2024
@t3chguy
Copy link
Member

t3chguy commented Feb 21, 2024

Non trivial, breaks tests

@t3chguy t3chguy closed this Feb 21, 2024
Copy link
Contributor Author

renovate bot commented Feb 21, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 4.x releases. But if you manually upgrade to 4.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/maplibre-gl-4.x branch February 21, 2024 19:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Dependencies Pull requests that update a dependency file T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant