From ab0d36f8b487ffd038350cbb226a3267c4be2cb0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 29 Jul 2024 11:46:05 -0700 Subject: [PATCH] Update dependency ol to v10 (#3806) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Conor Brady --- web/package.json | 2 +- web/src/features/map/VectorLayer.tsx | 3 +- web/yarn.lock | 43 ++++++++++++++-------------- 3 files changed, 23 insertions(+), 25 deletions(-) diff --git a/web/package.json b/web/package.json index 96f8e8fc1..f4b9563fe 100644 --- a/web/package.json +++ b/web/package.json @@ -48,7 +48,7 @@ "luxon": "^3.0.2", "match-sorter": "^6.3.1", "nyc": "^17.0.0", - "ol": "9.2.4", + "ol": "10.0.0", "ol-pmtiles": "^0.5.0", "prettier": "^3.3.3", "react": "^18.2.0", diff --git a/web/src/features/map/VectorLayer.tsx b/web/src/features/map/VectorLayer.tsx index f952d6af4..cc23ba8f7 100644 --- a/web/src/features/map/VectorLayer.tsx +++ b/web/src/features/map/VectorLayer.tsx @@ -1,5 +1,4 @@ import React, { useState, useContext, useEffect } from 'react' -import * as ol from 'ol' import OLVectorLayer from 'ol/layer/Vector' import VectorSource from 'ol/source/Vector' import { StyleLike } from 'ol/style/Style' @@ -18,7 +17,7 @@ interface Props { const VectorLayer = ({ source, style, opacity, zIndex = 0 }: Props) => { const map = useContext(MapContext) - const [layer, setLayer] = useState> | null>(null) + const [layer, setLayer] = useState(null) useEffect(() => { if (!map) return diff --git a/web/yarn.lock b/web/yarn.lock index 134ebd19f..dd7580c31 100644 --- a/web/yarn.lock +++ b/web/yarn.lock @@ -7554,10 +7554,10 @@ __metadata: languageName: node linkType: hard -"earcut@npm:^2.2.3": - version: 2.2.4 - resolution: "earcut@npm:2.2.4" - checksum: 10c0/01ca51830edd2787819f904ae580087d37351f6048b4565e7add4b3da8a86b7bc19262ab2aa7fdc64129ab03af2d9cec8cccee4d230c82275f97ef285c79aafb +"earcut@npm:^3.0.0": + version: 3.0.0 + resolution: "earcut@npm:3.0.0" + checksum: 10c0/20f3d8492f02452648466d2ce98276c9317c4d6980fc2596b1cb119fc3ef2d034724c5721de2af191331fb43610a27995b0f1b611d3386976b770ae9af7b3bbe languageName: node linkType: hard @@ -9810,7 +9810,7 @@ __metadata: languageName: node linkType: hard -"ieee754@npm:^1.1.12, ieee754@npm:^1.1.13": +"ieee754@npm:^1.1.13": version: 1.2.1 resolution: "ieee754@npm:1.2.1" checksum: 10c0/b0782ef5e0935b9f12883a2e2aa37baa75da6e66ce6515c168697b42160807d9330de9a32ec1ed73149aea02e0d822e572bca6f1e22bdcbd2149e13b050b17bb @@ -12569,17 +12569,17 @@ __metadata: languageName: node linkType: hard -"ol@npm:9.2.4": - version: 9.2.4 - resolution: "ol@npm:9.2.4" +"ol@npm:10.0.0": + version: 10.0.0 + resolution: "ol@npm:10.0.0" dependencies: color-rgba: "npm:^3.0.0" color-space: "npm:^2.0.1" - earcut: "npm:^2.2.3" + earcut: "npm:^3.0.0" geotiff: "npm:^2.0.7" - pbf: "npm:3.2.1" - rbush: "npm:^3.0.1" - checksum: 10c0/6eb288d03908ef7276760011867836b737b7508c56a966013dbee6184e4c6b54a458c2efd2dfec08aa86b5cffc3d90488746737b64ef2c05b772ad6ee9bbbfd5 + pbf: "npm:4.0.1" + rbush: "npm:^4.0.0" + checksum: 10c0/0d9ec40818e63014024dfacf13a156f842e309c908fdff76c125c4a589280279739ecb5ff8abb0f7671d5cb7d9746eb543e3d59a62e13002ee38fb8dd831b498 languageName: node linkType: hard @@ -12908,15 +12908,14 @@ __metadata: languageName: node linkType: hard -"pbf@npm:3.2.1": - version: 3.2.1 - resolution: "pbf@npm:3.2.1" +"pbf@npm:4.0.1": + version: 4.0.1 + resolution: "pbf@npm:4.0.1" dependencies: - ieee754: "npm:^1.1.12" resolve-protobuf-schema: "npm:^2.1.0" bin: pbf: bin/pbf - checksum: 10c0/63b4a27749a9b5a3cf4260d75f9d91ad8d8b326bcdd2bfafd9460a94d0a297a80f80c70d5481213d6c4ebf03c027aca0ac9287c7d8217d327a6d0456f23b9d3c + checksum: 10c0/1a95cc3bdc61ee01d4728f4a57a9f1233732d183a8568818b714a747fd8b957d99b63e1c67f0f72dc5623657c42f88a1a7e44e1fbcd06e2fe2ef9a85a964832e languageName: node linkType: hard @@ -14161,12 +14160,12 @@ __metadata: languageName: node linkType: hard -"rbush@npm:^3.0.1": - version: 3.0.1 - resolution: "rbush@npm:3.0.1" +"rbush@npm:^4.0.0": + version: 4.0.0 + resolution: "rbush@npm:4.0.0" dependencies: quickselect: "npm:^2.0.0" - checksum: 10c0/55311586c30cdedaa2220de6f1da45fe1fa806263afbf7b6f4c0078983830c2abc7771187896d68bfc9078cb279079fb4c84971831da4b74384aab2c2c417758 + checksum: 10c0/a2d407ea87e11eb0ae7b924acb2094994a60c503a892421313a48d2073aa9f1201fe0413b576e81d2c41954d97e78ee507a9ddbf361cc613f33efcce83a85b0a languageName: node linkType: hard @@ -17491,7 +17490,7 @@ __metadata: luxon: "npm:^3.0.2" match-sorter: "npm:^6.3.1" nyc: "npm:^17.0.0" - ol: "npm:9.2.4" + ol: "npm:10.0.0" ol-pmtiles: "npm:^0.5.0" prettier: "npm:^3.3.3" react: "npm:^18.2.0"