Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency ol to v10 (prod-2-9) #1352

Merged
merged 1 commit into from
Aug 7, 2024
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 1, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ol (source) v8.2.0 -> 10.0.0 age adoption passing confidence

Release Notes

openlayers/openlayers (ol)

v10.0.0

Compare Source

10.0.0

The 10.0 release brings several significant improvements, including a new base source for image tile sources with improved performance and simplified code. Flat styles handling has been reworked, removing the need to specify type hints among other internal improvements. In the WebGL renderer, a memory allocation issue has been fixed. For better developer experience, we improved generic types and fixed some issues with types, stabilizing the back and forth on generics in v9.x.

Breaking changes are very minor, so we recommend upgrading to v10.x for all v9.x users.

Backwards incompatible changes
ol/source/VectorTile: getFeaturesInExtent() method moved to ol/layer/VectorTile

The getFeaturesInExtent() method of ol/source/VectorTile has been moved to ol/layer/VectorTile. The signature and behavior have not changed, so all that needs to be done is change code from e.g.

layer.getSource().getFeaturesInExtent(extent);

to

layer.getFeaturesInExtent(extent);
Flat styles: Removal of Type hints in 'get' expressions

For the Canvas renderer, additional arguments to the 'get' call expression now mean access to nested properties or array items. The expression system has been improved so type hints are no longer needed. If you were previously using a type hint in a get expression, you have to change the expression from e.g.

['get', 'foo', 'number[]']

to

['get', 'foo']
Other changes
Removal of the opaque option from all Tile sources

The opaque option was previously used to hint the renderer to perform some optimizations on layers known to be fully opaque. This is no longer needed, and the option has been removed.

List of all changes

See below for a complete list of features and fixes.

Dependency Updates

v9.2.4

Compare Source

The 9.2.4 is a patch release that addresses the issue below.

v9.2.3

Compare Source

The 9.2.3 is a patch release that addresses the issue below.

v9.2.2

Compare Source

The 9.2.2 is a patch release that addresses the issues below.

List of all changes

v9.2.1

Compare Source

The 9.2.1 release patches the 9.2.0 release with a fix for a TypeScript issue using vector layers.

List of all changes

See below for a complete list of features and fixes.

v9.2.0

Compare Source

The 9.2 release fixes a number of rendering issues and introduces a few new features. OGC tile sources now support collections selection. Snap events are now more consistent (see below). Type annotations continue to improve, and documentation and examples got a number of updates.

The snap event's feature property is now never null

Previously, listeners for the Snap interaction's snap event received null as value for the feature property when snapped to a segment. Now, the value of the feature property is always set to the snapped feature.

To distinguish between a vertex and a segment snap, look at the snap event's segment property. It will set to null on a vertex snap, and to the snapped segment on a segment snap.

List of all changes

See below for a complete list of features and fixes.

Dependency Updates

New Contributors

Full Changelog: openlayers/openlayers@v9.1.0...v9.2.0

v9.1.0

Compare Source

The 9.1 release fixes a few rendering regressions introduced in v9.0. It introduces bulk feature removal in Vector sources, addresses attribution consistency, includes new style operators, and adds the Alidade Satellite style to the Stamen source. Moreover, it ensures compliance with Google's terms of use for attribution handling of the Google source.

What's Changed

New Contributors

Full Changelog: openlayers/openlayers@v9.0.0...v9.1.0

v9.0.0

Compare Source

The 9.0 release adds several new features, including a Google Maps source (finally!), improved WebGL line rendering, and a new symbol and text decluttering implementation. We also improved and broadened flat styles support for both WebGL and Canvas 2D renderers. For better developer experience, we made more types generic and fixed some issues with types.

Backwards incompatible changes
Improved render order of decluttered items

Decluttered items in Vector and VectorTile layers now maintain the render order of the layers and within a layer. They do not get lifted to a higher place in the stack any more.

For most use cases, this is the desired behavior. If, however, you've been relying on the previous behavior, you now have to create separate layers above the layer stack, with just the styles for the declutter items.

Removal of Map#flushDeclutterItems()

It is no longer necessary to call this function to put layers above decluttered symbols and text, because decluttering no longer lifts elements above the layer stack.

To upgrade, simply remove the code where you use the flushDeclutterItems() method.

Changes in ol/style
  • Removed the ol/style/RegularShape's radius1 property. Use radius for regular polygons or radius and radius2 for stars.
  • Removed the shape-radius1 property from ol/style/flat~FlatShape. Use shape-radius instead.
GeometryCollection constructor

ol/geom/GeometryCollection can no longer be created without providing a Geometry array. Empty arrays are still valid.

ol/interaction/Draw
  • The finishDrawing() method now returns the drawn feature or null if no drawing could be finished. Previously it returned undefined.

What's Changed


Configuration

📅 Schedule: Branch creation - "after 5pm on the first day of the month" in timezone Europe/Zurich, Automerge - At any time (no schedule defined).

🚦 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.


  • 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 added the dependencies Update the dependencies label Aug 1, 2024
@sbrunner sbrunner merged commit d60478b into prod-2-9 Aug 7, 2024
10 checks passed
@sbrunner sbrunner deleted the renovate/prod-2-9-ol-10.x branch August 7, 2024 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Update the dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant