From 3dde66b6e96490b120d34e3def52b052ac58ff59 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 30 Jan 2025 13:43:58 +0000 Subject: [PATCH] Bump ol from 10.3.1 to 10.4.0 (#1041) Bumps [ol](https://github.com/openlayers/openlayers) from 10.3.1 to 10.4.0.
Release notes

Sourced from ol's releases.

v10.4.0

With more than 40 pull requests, the 10.4 release brings performance improvements, bug fixes, better TypeScript generics and new features. New features include a convenience Image layer loader for debugging MapServer map files using the MapServer CGI API, and an experimental WebGLVectorTile layer.

Upgrade notes

Deprecation of ol/layer/WebGLPoints

Use ol/layer/WebGLVector instead. Besides rendering points it will also render lines and polygons. In most cases this is a drop-in replacement. To use filtering the style and filter have to be in a nested object.

// Before
new WebGLPointsLayer({
filter: ['between', ['get', 'year'], ['var', 'minYear'], ['var',
'maxYear']],
  style: {
    'circle-radius': 8,
    'circle-fill-color': 'blue',
  },
  source: vectorSource,
})

// After new WebGLVectorLayer({ style: [{ filter: ['between', ['get', 'year'], ['var', 'minYear'], ['var', 'maxYear']], style: { 'circle-radius': 8, 'circle-fill-color': 'blue', }, }], source: vectorSource, })

ol-mapbox-style compatibility

This version of OpenLayers is only compatible with ol-mapbox-style@12.4.0 or higher.

Returning false from a one-time listener added with once

Returning false from the listener function will now stop propagation, when the listener is added with once. Previously this only worked with the on method.

The filter option for WebGLPointsLayer has changed

The filter option for the WebGLPointsLayer must now be specified alongside other options instead of being part of the style object. Note that the WebGLPointsLayer is not part of the stable API and is subject to breaking changes between major releases.

// Before
new WebGLPointsLayer({
  style: {
</tr></table>

... (truncated)

Commits

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ol&package-manager=npm_and_yarn&previous-version=10.3.1&new-version=10.4.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> --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index a459a449..5158f7dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -38,7 +38,7 @@ "lodash.throttle": "^4.1.1", "maplibre-gl": "^5.1.0", "maputnik-design": "github:maputnik/design#172b06c", - "ol": "^10.3.1", + "ol": "^10.4.0", "ol-mapbox-style": "^12.4.0", "pmtiles": "^4.1.0", "prop-types": "^15.8.1", @@ -9652,9 +9652,9 @@ } }, "node_modules/ol": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/ol/-/ol-10.3.1.tgz", - "integrity": "sha512-D1nRQVLOBCRempVqBFV8pSI5H13BtnhuLDjGl+3NKdMOFyjx/UqRX/tcMspEw3LhFOSPWn1Ev+1KIRV8AlHM7A==", + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/ol/-/ol-10.4.0.tgz", + "integrity": "sha512-gv3voS4wgej1WVvdCz2ZIBq3lPWy8agaf0094E79piz8IGQzHiOWPs2in1pdoPmuTNvcqGqyUFG3IbxNE6n08g==", "license": "BSD-2-Clause", "dependencies": { "@types/rbush": "4.0.0", diff --git a/package.json b/package.json index 38326726..c77c0d88 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "lodash.throttle": "^4.1.1", "maplibre-gl": "^5.1.0", "maputnik-design": "github:maputnik/design#172b06c", - "ol": "^10.3.1", + "ol": "^10.4.0", "ol-mapbox-style": "^12.4.0", "pmtiles": "^4.1.0", "prop-types": "^15.8.1",