From cb52d631cf313f267eb99bf9a2fbec09599ded5c Mon Sep 17 00:00:00 2001 From: danji90 Date: Mon, 9 Feb 2026 12:34:49 +0100 Subject: [PATCH 01/16] chore: upgrade libs --- package.json | 7 +- yarn.lock | 211 ++++++++++++++++++++++++++++++--------------------- 2 files changed, 129 insertions(+), 89 deletions(-) diff --git a/package.json b/package.json index 28dcac6f..ec3d2236 100644 --- a/package.json +++ b/package.json @@ -64,8 +64,8 @@ "jest-transformer-svg": "^2.1.0", "jsts": "2.12.1", "lint-staged": "16.1.5", - "maplibre-gl": "5.6.2", - "mobility-toolbox-js": "3.4.4", + "maplibre-gl": "5.16.0", + "mobility-toolbox-js": "3.6.4", "ol": "10.6.1", "postcss": "^8.5.6", "prettier": "3.6.2", @@ -121,5 +121,6 @@ "not op_mini all", "not ie <= 11", "not android < 5" - ] + ], + "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" } diff --git a/yarn.lock b/yarn.lock index f86abbcc..6ff8d457 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2840,10 +2840,15 @@ resolved "https://registry.yarnpkg.com/@mapbox/whoots-js/-/whoots-js-3.1.0.tgz#497c67a1cef50d1a2459ba60f315e448d2ad87fe" integrity sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q== -"@maplibre/maplibre-gl-style-spec@^23.3.0": - version "23.3.0" - resolved "https://registry.yarnpkg.com/@maplibre/maplibre-gl-style-spec/-/maplibre-gl-style-spec-23.3.0.tgz#b69ab48cb3abead4e49213396c8f83492638b97c" - integrity sha512-IGJtuBbaGzOUgODdBRg66p8stnwj9iDXkgbYKoYcNiiQmaez5WVRfXm4b03MCDwmZyX93csbfHFWEJJYHnn5oA== +"@maplibre/geojson-vt@^5.0.4": + version "5.0.4" + resolved "https://registry.npmjs.org/@maplibre/geojson-vt/-/geojson-vt-5.0.4.tgz#c5f301a5d227cecf0bf4d1ab9239b8b0b13e78fe" + integrity sha512-KGg9sma45S+stfH9vPCJk1J0lSDLWZgCT9Y8u8qWZJyjFlP8MNP1WGTxIMYJZjDvVT3PDn05kN1C95Sut1HpgQ== + +"@maplibre/maplibre-gl-style-spec@^24.4.1": + version "24.4.1" + resolved "https://registry.npmjs.org/@maplibre/maplibre-gl-style-spec/-/maplibre-gl-style-spec-24.4.1.tgz#600a1dbb2912831564cc6ba6e96c22cf34ffdc0c" + integrity sha512-UKhA4qv1h30XT768ccSv5NjNCX+dgfoq2qlLVmKejspPcSQTYD4SrVucgqegmYcKcmwf06wcNAa/kRd0NHWbUg== dependencies: "@mapbox/jsonlint-lines-primitives" "~2.0.2" "@mapbox/unitbezier" "^0.0.1" @@ -2853,16 +2858,23 @@ rw "^1.3.3" tinyqueue "^3.0.0" -"@maplibre/vt-pbf@^4.0.3": - version "4.0.3" - resolved "https://registry.yarnpkg.com/@maplibre/vt-pbf/-/vt-pbf-4.0.3.tgz#8702b8330cfa0efbe7c81eb2ae138e588a02bfa6" - integrity sha512-YsW99BwnT+ukJRkseBcLuZHfITB4puJoxnqPVjo72rhW/TaawVYsgQHcqWLzTxqknttYoDpgyERzWSa/XrETdA== +"@maplibre/mlt@^1.1.2": + version "1.1.6" + resolved "https://registry.npmjs.org/@maplibre/mlt/-/mlt-1.1.6.tgz#49d91b54e4ae6cd03b19d6c3b342a7e8e2c6246d" + integrity sha512-rgtY3x65lrrfXycLf6/T22ZnjTg5WgIOsptOIoCaMZy4O4UAKTyZlYY0h6v8le721pTptF94U65yMDQkug+URw== + dependencies: + "@mapbox/point-geometry" "^1.1.0" + +"@maplibre/vt-pbf@^4.2.0": + version "4.2.1" + resolved "https://registry.npmjs.org/@maplibre/vt-pbf/-/vt-pbf-4.2.1.tgz#395d97bd5de68b5efabf0d56c535163bb88f75c7" + integrity sha512-IxZBGq/+9cqf2qdWlFuQ+ZfoMhWpxDUGQZ/poPHOJBvwMUT1GuxLo6HgYTou+xxtsOsjfbcjI8PZaPCtmt97rA== dependencies: "@mapbox/point-geometry" "^1.1.0" "@mapbox/vector-tile" "^2.0.4" - "@types/geojson-vt" "3.2.5" + "@maplibre/geojson-vt" "^5.0.4" + "@types/geojson" "^7946.0.16" "@types/supercluster" "^7.1.3" - geojson-vt "^4.0.2" pbf "^4.0.1" supercluster "^8.0.1" @@ -3275,93 +3287,94 @@ resolved "https://registry.yarnpkg.com/@trysound/sax/-/sax-0.2.0.tgz#cccaab758af56761eb7bf37af6f03f326dd798ad" integrity sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA== -"@turf/centroid@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@turf/centroid/-/centroid-7.2.0.tgz#3211fe81d68b65082c7be72bf099b33b9211b282" - integrity sha512-yJqDSw25T7P48au5KjvYqbDVZ7qVnipziVfZ9aSo7P2/jTE7d4BP21w0/XLi3T/9bry/t9PR1GDDDQljN4KfDw== +"@turf/centroid@7.3.2": + version "7.3.2" + resolved "https://registry.npmjs.org/@turf/centroid/-/centroid-7.3.2.tgz#d8a01f98626d63557363afce3cb59edaa73dd39a" + integrity sha512-zWlX/t7goUx+FqCYzyscO7muXPSADb5nTGXWAbRR51P3Zsdx24P5tJshJhrHwIb3OR9a+YE4ig568Clex6tc2g== dependencies: - "@turf/helpers" "^7.2.0" - "@turf/meta" "^7.2.0" + "@turf/helpers" "7.3.2" + "@turf/meta" "7.3.2" "@types/geojson" "^7946.0.10" tslib "^2.8.1" -"@turf/clone@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@turf/clone/-/clone-7.2.0.tgz#1dbf6e2f82ba2f9da45285fb870aa40662ccc55f" - integrity sha512-JlGUT+/5qoU5jqZmf6NMFIoLDY3O7jKd53Up+zbpJ2vzUp6QdwdNzwrsCeONhynWM13F0MVtPXH4AtdkrgFk4g== +"@turf/clone@7.3.2": + version "7.3.2" + resolved "https://registry.npmjs.org/@turf/clone/-/clone-7.3.2.tgz#a77acc251689c835152dd2dba20d10fcefa84629" + integrity sha512-ET6EqfEbDq4EsvyhC5Fwyg5hkkRGcHUM7v63sqbLtz4bY2cSAZ1gGcgmBQdztSXQyKqSsFkIXpp1amfrLATNOQ== dependencies: - "@turf/helpers" "^7.2.0" + "@turf/helpers" "7.3.2" "@types/geojson" "^7946.0.10" tslib "^2.8.1" -"@turf/helpers@7.2.0", "@turf/helpers@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@turf/helpers/-/helpers-7.2.0.tgz#5771308108c98d608eb8e7f16dcd0eb3fb8a3417" - integrity sha512-cXo7bKNZoa7aC7ydLmUR02oB3IgDe7MxiPuRz3cCtYQHn+BJ6h1tihmamYDWWUlPHgSNF0i3ATc4WmDECZafKw== +"@turf/helpers@7.3.2": + version "7.3.2" + resolved "https://registry.npmjs.org/@turf/helpers/-/helpers-7.3.2.tgz#deb2a1a5bb84d8db78571bc89ca8b75586e31ed7" + integrity sha512-5HFN42rgWjSobdTMxbuq+ZdXPcqp1IbMgFYULTLCplEQM3dXhsyRFe7DCss4Eiw12iW3q6Z5UeTNVfITsE5lgA== dependencies: "@types/geojson" "^7946.0.10" tslib "^2.8.1" -"@turf/invariant@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@turf/invariant/-/invariant-7.2.0.tgz#ba5b377ea20ee8c45af0a4c9b8bf03aa1c43bd5d" - integrity sha512-kV4u8e7Gkpq+kPbAKNC21CmyrXzlbBgFjO1PhrHPgEdNqXqDawoZ3i6ivE3ULJj2rSesCjduUaC/wyvH/sNr2Q== +"@turf/invariant@7.3.2": + version "7.3.2" + resolved "https://registry.npmjs.org/@turf/invariant/-/invariant-7.3.2.tgz#490ea975572a7dfebed5ce0dd20a7dd8d0517602" + integrity sha512-brGmL1EFhZH/YNXhq6S+8sPWBEnmvEyxMWJO8bUNOFZyWHYiRTwxQHZM+An1blkbQ77PiEzsdNAspZqE1j7YKA== dependencies: - "@turf/helpers" "^7.2.0" + "@turf/helpers" "7.3.2" "@types/geojson" "^7946.0.10" tslib "^2.8.1" -"@turf/meta@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@turf/meta/-/meta-7.2.0.tgz#6a6b1918890b4d9d2b5ff10b3ad47e2fd7470912" - integrity sha512-igzTdHsQc8TV1RhPuOLVo74Px/hyPrVgVOTgjWQZzt3J9BVseCdpfY/0cJBdlSRI4S/yTmmHl7gAqjhpYH5Yaw== +"@turf/meta@7.3.2": + version "7.3.2" + resolved "https://registry.npmjs.org/@turf/meta/-/meta-7.3.2.tgz#e31320bf0602692664291b827eb6eb7344430a45" + integrity sha512-FIcIY+ZsAe9QV4fHciTXeuRz2TKIVaEjivkl4vMFCibdj7FUkWDofqOncbIre1xPrgktQeh20ZrmD+p0kf3n4Q== dependencies: - "@turf/helpers" "^7.2.0" + "@turf/helpers" "7.3.2" "@types/geojson" "^7946.0.10" + tslib "^2.8.1" -"@turf/rhumb-bearing@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@turf/rhumb-bearing/-/rhumb-bearing-7.2.0.tgz#859caf61b0b757b68ed03636a8bbb5fbaf4615e3" - integrity sha512-jbdexlrR8X2ZauUciHx3tRwG+BXoMXke4B8p8/IgDlAfIrVdzAxSQN89FMzIKnjJ/kdLjo9bFGvb92bu31Etug== +"@turf/rhumb-bearing@7.3.2": + version "7.3.2" + resolved "https://registry.npmjs.org/@turf/rhumb-bearing/-/rhumb-bearing-7.3.2.tgz#4d7b035f103c113e245a5fce6a981ea79ab7c2c4" + integrity sha512-RoiZ9ZihgjKI8G2QUmikxEe9Z7+yL1m+1notOQ2eEMZ3+9rlhxKkLAfTZyioSlTsV3ovQmr2k30TKGL4CMQzWw== dependencies: - "@turf/helpers" "^7.2.0" - "@turf/invariant" "^7.2.0" + "@turf/helpers" "7.3.2" + "@turf/invariant" "7.3.2" "@types/geojson" "^7946.0.10" tslib "^2.8.1" -"@turf/rhumb-destination@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@turf/rhumb-destination/-/rhumb-destination-7.2.0.tgz#807438a778e236e1855cbb068defa82e02f8a2ed" - integrity sha512-U9OLgLAHlH4Wfx3fBZf3jvnkDjdTcfRan5eI7VPV1+fQWkOteATpzkiRjCvSYK575GljVwWBjkKca8LziGWitQ== +"@turf/rhumb-destination@7.3.2": + version "7.3.2" + resolved "https://registry.npmjs.org/@turf/rhumb-destination/-/rhumb-destination-7.3.2.tgz#16325497efcff94a4ba3d44b9b66340a1a486d88" + integrity sha512-i43WHFzugO6D8aBk/jli0XL3GGI21JmPJRd1odz4HSxfbjjZe+WOf+amwouGFuDCkE73/odXn5ohx4iA1F3MSQ== dependencies: - "@turf/helpers" "^7.2.0" - "@turf/invariant" "^7.2.0" + "@turf/helpers" "7.3.2" + "@turf/invariant" "7.3.2" "@types/geojson" "^7946.0.10" tslib "^2.8.1" -"@turf/rhumb-distance@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@turf/rhumb-distance/-/rhumb-distance-7.2.0.tgz#7da0dbecd559aadea3ad5b17181a7ce64fa33f58" - integrity sha512-NsijTPON1yOc9tirRPEQQuJ5aQi7pREsqchQquaYKbHNWsexZjcDi4wnw2kM3Si4XjmgynT+2f7aXH7FHarHzw== +"@turf/rhumb-distance@7.3.2": + version "7.3.2" + resolved "https://registry.npmjs.org/@turf/rhumb-distance/-/rhumb-distance-7.3.2.tgz#84a3721d1e14cf02ef0175716a53cfd18b14787b" + integrity sha512-8ZZ8EGeZREnWCk5a6pNFazSBxIqRCdPLAGPukCTpJONN3kke4Y3ftw7/Cd4rjX6tnkE2qT/I+vo67weqSuC5pg== dependencies: - "@turf/helpers" "^7.2.0" - "@turf/invariant" "^7.2.0" + "@turf/helpers" "7.3.2" + "@turf/invariant" "7.3.2" "@types/geojson" "^7946.0.10" tslib "^2.8.1" -"@turf/transform-rotate@7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@turf/transform-rotate/-/transform-rotate-7.2.0.tgz#578e67d2cb8a529774520d6e9ba97d4f05198c16" - integrity sha512-EMCj0Zqy3cF9d3mGRqDlYnX2ZBXe3LgT+piDR0EuF5c5sjuKErcFcaBIsn/lg1gp4xCNZFinkZ3dsFfgGHf6fw== - dependencies: - "@turf/centroid" "^7.2.0" - "@turf/clone" "^7.2.0" - "@turf/helpers" "^7.2.0" - "@turf/invariant" "^7.2.0" - "@turf/meta" "^7.2.0" - "@turf/rhumb-bearing" "^7.2.0" - "@turf/rhumb-destination" "^7.2.0" - "@turf/rhumb-distance" "^7.2.0" +"@turf/transform-rotate@7.3.2": + version "7.3.2" + resolved "https://registry.npmjs.org/@turf/transform-rotate/-/transform-rotate-7.3.2.tgz#03f032beaf104cbd00cee2667f4a5c9eecf45949" + integrity sha512-e50qc5JG/lryhYa1/z6KBS0EIiHUXZte+3ZHJXlNq4HjpoY6M0/sAZprRkRqmNbo4UN2PS7HNRKnDSNA6swofA== + dependencies: + "@turf/centroid" "7.3.2" + "@turf/clone" "7.3.2" + "@turf/helpers" "7.3.2" + "@turf/invariant" "7.3.2" + "@turf/meta" "7.3.2" + "@turf/rhumb-bearing" "7.3.2" + "@turf/rhumb-destination" "7.3.2" + "@turf/rhumb-distance" "7.3.2" "@types/geojson" "^7946.0.10" tslib "^2.8.1" @@ -7617,10 +7630,10 @@ github-slugger@^1.2.1: resolved "https://registry.yarnpkg.com/github-slugger/-/github-slugger-1.5.0.tgz#17891bbc73232051474d68bd867a34625c955f7d" integrity sha512-wIh+gKBI9Nshz2o46B0B3f5k/W+WI9ZAv6y5Dn5WJ5SK1t0TnDimB4WE5rmTD05ZAIn8HALCZVmCsvj0w0v0lw== -gl-matrix@^3.4.3: - version "3.4.3" - resolved "https://registry.yarnpkg.com/gl-matrix/-/gl-matrix-3.4.3.tgz#fc1191e8320009fd4d20e9339595c6041ddc22c9" - integrity sha512-wcCp8vu8FT22BnvKVPjXa/ICBWRq/zjFfdofZy1WSpQZpphblv12/bOQLBC1rMM7SGOFS9ltVmKOHil5+Ml7gA== +gl-matrix@^3.4.4: + version "3.4.4" + resolved "https://registry.npmjs.org/gl-matrix/-/gl-matrix-3.4.4.tgz#7789ee4982f62c7a7af447ee488f3bd6b0c77003" + integrity sha512-latSnyDNt/8zYUB6VIJ6PCh2jBjJX6gnDsoCZ7LyW7GkqrD51EWwa9qCoGixj8YqBtETQK/xY7OmpTF8xz1DdQ== glob-parent@^5.1.2, glob-parent@~5.1.2: version "5.1.2" @@ -9865,10 +9878,10 @@ map-obj@^4.0.0: resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a" integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ== -maplibre-gl@5.6.2: - version "5.6.2" - resolved "https://registry.yarnpkg.com/maplibre-gl/-/maplibre-gl-5.6.2.tgz#eda90691658e76e8c92576b008bdefd22c535dd7" - integrity sha512-SEqYThhUCFf6Lm0TckpgpKnto5u4JsdPYdFJb6g12VtuaFsm3nYdBO+fOmnUYddc8dXihgoGnuXvPPooUcRv5w== +maplibre-gl@5.16.0: + version "5.16.0" + resolved "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-5.16.0.tgz#fbf386810ceec66fbe30404e4baf493b33f31423" + integrity sha512-/VDY89nr4jgLJyzmhy325cG6VUI02WkZ/UfVuDbG/piXzo6ODnM+omDFIwWY8tsEsBG26DNDmNMn3Y2ikHsBiA== dependencies: "@mapbox/geojson-rewind" "^0.5.2" "@mapbox/jsonlint-lines-primitives" "^2.0.2" @@ -9877,14 +9890,15 @@ maplibre-gl@5.6.2: "@mapbox/unitbezier" "^0.0.1" "@mapbox/vector-tile" "^2.0.4" "@mapbox/whoots-js" "^3.1.0" - "@maplibre/maplibre-gl-style-spec" "^23.3.0" - "@maplibre/vt-pbf" "^4.0.3" + "@maplibre/maplibre-gl-style-spec" "^24.4.1" + "@maplibre/mlt" "^1.1.2" + "@maplibre/vt-pbf" "^4.2.0" "@types/geojson" "^7946.0.16" "@types/geojson-vt" "3.2.5" "@types/supercluster" "^7.1.3" earcut "^3.0.2" geojson-vt "^4.0.2" - gl-matrix "^3.4.3" + gl-matrix "^3.4.4" kdbush "^4.0.2" murmurhash-js "^1.0.0" pbf "^4.0.1" @@ -10172,15 +10186,15 @@ mkdirp@~0.5.1: dependencies: minimist "^1.2.6" -mobility-toolbox-js@3.4.4: - version "3.4.4" - resolved "https://registry.yarnpkg.com/mobility-toolbox-js/-/mobility-toolbox-js-3.4.4.tgz#a8466e97e56fc4e4eb4d430778e296390ea7a80c" - integrity sha512-KPjdgAnEpNt1nATTlj03rzTuvsPOg/rzCmyStG3HK+nuIUbu2g7n895yqC8LpbAOcrFbzDvRVJimUruXeZsmHQ== +mobility-toolbox-js@3.6.4: + version "3.6.4" + resolved "https://registry.npmjs.org/mobility-toolbox-js/-/mobility-toolbox-js-3.6.4.tgz#13b41ac9822c9dedea4d76bd2fcfc0a4d846ad92" + integrity sha512-xQlsdj8iVdQFsyZExfYBpaKRKWY5FkT4UbtIbj7FM7MFLMfiVabTksC9mzvS0UxCC6CLB3UQMzM2QQoARWRxUg== dependencies: "@geoblocks/ol-maplibre-layer" "^1.0.3" "@geops/geops-ui" "0.3.6" - "@turf/helpers" "7.2.0" - "@turf/transform-rotate" "7.2.0" + "@turf/helpers" "7.3.2" + "@turf/transform-rotate" "7.3.2" lodash.debounce "4.0.8" lodash.throttle "4.1.1" uuid "13.0.0" @@ -12644,7 +12658,7 @@ string-length@^4.0.2: char-regex "^1.0.2" strip-ansi "^6.0.0" -"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0": version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -12661,6 +12675,15 @@ string-width@^2.0.0, string-width@^2.1.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^4.0.0" +string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + string-width@^5.0.1, string-width@^5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" @@ -12802,7 +12825,7 @@ stringify-package@^1.0.1: resolved "https://registry.yarnpkg.com/stringify-package/-/stringify-package-1.0.1.tgz#e5aa3643e7f74d0f28628b72f3dad5cecfc3ba85" integrity sha512-sa4DUQsYciMP1xhKWGuFM04fB0LG/9DlluZoSVywUMRNvzid6XucHK0/90xGxRoHrAaROrcHK1aPKaijCtSrhg== -"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1": version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -12823,6 +12846,13 @@ strip-ansi@^4.0.0: dependencies: ansi-regex "^3.0.0" +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + strip-ansi@^7.0.1, strip-ansi@^7.1.0: version "7.1.0" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" @@ -14134,7 +14164,16 @@ wordwrap@^1.0.0: resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== From fa47497b1f693e21e28d039472767e499128ac53 Mon Sep 17 00:00:00 2001 From: danji90 Date: Mon, 9 Feb 2026 12:36:54 +0100 Subject: [PATCH 02/16] chore(release): 2.0.2-beta.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ec3d2236..8566f359 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "react-spatial", "license": "MIT", "description": "Components to build React map apps.", - "version": "2.0.1", + "version": "2.0.2-beta.0", "dependencies": { "@emotion/react": "^11.14.0", "@emotion/styled": "^11.14.1", From 12d05de2a877ab633d390c3aea929ba143fb0d53 Mon Sep 17 00:00:00 2001 From: danji90 Date: Mon, 9 Feb 2026 13:07:15 +0100 Subject: [PATCH 03/16] chore: revert stage --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8566f359..ec3d2236 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "react-spatial", "license": "MIT", "description": "Components to build React map apps.", - "version": "2.0.2-beta.0", + "version": "2.0.1", "dependencies": { "@emotion/react": "^11.14.0", "@emotion/styled": "^11.14.1", From 9bfe6f5acb2e27274d91ffcd2fdf510594fd607d Mon Sep 17 00:00:00 2001 From: danji90 Date: Mon, 9 Feb 2026 13:07:20 +0100 Subject: [PATCH 04/16] chore(release): 2.0.2-beta.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ec3d2236..8566f359 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "react-spatial", "license": "MIT", "description": "Components to build React map apps.", - "version": "2.0.1", + "version": "2.0.2-beta.0", "dependencies": { "@emotion/react": "^11.14.0", "@emotion/styled": "^11.14.1", From e6534af8e88a3e5ea4c922eb6002f6e2d15706c5 Mon Sep 17 00:00:00 2001 From: danji90 Date: Mon, 9 Feb 2026 13:20:06 +0100 Subject: [PATCH 05/16] chore: upgrade mtb peer dep --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8566f359..fc3541db 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ }, "peerDependencies": { "maplibre-gl": "^4", - "mobility-toolbox-js": "^3", + "mobility-toolbox-js": "^3.6", "ol": "^10", "react": "^18", "react-dom": "^18" From 5702c616a3e5b1417d65029145e4c21707cbf588 Mon Sep 17 00:00:00 2001 From: danji90 Date: Mon, 9 Feb 2026 13:35:15 +0100 Subject: [PATCH 06/16] chore: fix setupTests --- src/setupTests.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/setupTests.js b/src/setupTests.js index 7d65d0c2..12131582 100644 --- a/src/setupTests.js +++ b/src/setupTests.js @@ -1,5 +1,16 @@ import ResizeObserver from "resize-observer-polyfill"; +// eslint-disable-next-line perfectionist/sort-imports +const util = require("util"); + +if (!global.TextDecoder) { + global.TextDecoder = util.TextDecoder; +} + +if (!global.TextEncoder) { + global.TextEncoder = util.TextEncoder; +} + global.URL.createObjectURL = jest.fn(() => { return "fooblob"; }); @@ -23,21 +34,14 @@ class Worker { } } -Object.defineProperty(window, "Worker", { - value: Worker, - writable: true, -}); +Object.defineProperty(window, "Worker", { value: Worker, writable: true }); const mock = { clearWatch: jest.fn(), getCurrentPosition: jest.fn(), watchPosition: (onSuccess) => { onSuccess({ - coords: { - accuracy: 55, - latitude: 47.9913611, - longitude: 7.84868, - }, + coords: { accuracy: 55, latitude: 47.9913611, longitude: 7.84868 }, timestamp: 1552660077044, }); }, From f70e52bf1ed48a06225443a784160830e08255e2 Mon Sep 17 00:00:00 2001 From: danji90 Date: Mon, 9 Feb 2026 13:35:33 +0100 Subject: [PATCH 07/16] chore: fix setupTests --- .lintstagedrc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index 2d37ca67..9ced99ee 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,8 +1,8 @@ module.exports = { - "(src|__mocks__)/**/*.js": [ + "(src|__mocks__)/**/!(*setupTests).js": [ "eslint --fix", "prettier --write", - "yarn test --bail --findRelatedTests", + "jest --bail --findRelatedTests", ], "package.json": ["fixpack"], "src/**/*.{css,scss}": ["stylelint --fix"], From fd53f0f9a85a306932785267cb8801059facbb0c Mon Sep 17 00:00:00 2001 From: danji90 Date: Mon, 9 Feb 2026 13:37:12 +0100 Subject: [PATCH 08/16] chore: fix setupTests --- .lintstagedrc.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index 9ced99ee..4ffb3747 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,9 +1,10 @@ module.exports = { - "(src|__mocks__)/**/!(*setupTests).js": [ - "eslint --fix", - "prettier --write", - "jest --bail --findRelatedTests", - ], + // Always lint & format source files + "(src|__mocks__)/**/*.js": ["eslint --fix", "prettier --write"], + + // Only run Jest when actual test files are staged + "(src|__mocks__)/**/*.{test,spec}.js": ["jest --bail --findRelatedTests"], + "package.json": ["fixpack"], "src/**/*.{css,scss}": ["stylelint --fix"], }; From 5e60da82ad13a54da0b16fce4b3bb590703901b1 Mon Sep 17 00:00:00 2001 From: danji90 Date: Mon, 9 Feb 2026 13:37:35 +0100 Subject: [PATCH 09/16] chore: fix setupTests --- .lintstagedrc.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index 4ffb3747..2d37ca67 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,10 +1,9 @@ module.exports = { - // Always lint & format source files - "(src|__mocks__)/**/*.js": ["eslint --fix", "prettier --write"], - - // Only run Jest when actual test files are staged - "(src|__mocks__)/**/*.{test,spec}.js": ["jest --bail --findRelatedTests"], - + "(src|__mocks__)/**/*.js": [ + "eslint --fix", + "prettier --write", + "yarn test --bail --findRelatedTests", + ], "package.json": ["fixpack"], "src/**/*.{css,scss}": ["stylelint --fix"], }; From 9f4b713ae1cb16f6d134a5093a1d099b0fd9f0b9 Mon Sep 17 00:00:00 2001 From: danji90 Date: Mon, 9 Feb 2026 13:50:54 +0100 Subject: [PATCH 10/16] chore: fix setupTests --- .lintstagedrc.js | 2 +- src/setupTests.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index 2d37ca67..dd21d05e 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -2,7 +2,7 @@ module.exports = { "(src|__mocks__)/**/*.js": [ "eslint --fix", "prettier --write", - "yarn test --bail --findRelatedTests", + "yarn test --bail --findRelatedTests --passWithNoTests", ], "package.json": ["fixpack"], "src/**/*.{css,scss}": ["stylelint --fix"], diff --git a/src/setupTests.js b/src/setupTests.js index 12131582..bc15f71b 100644 --- a/src/setupTests.js +++ b/src/setupTests.js @@ -3,6 +3,7 @@ import ResizeObserver from "resize-observer-polyfill"; // eslint-disable-next-line perfectionist/sort-imports const util = require("util"); +// make jest happy if (!global.TextDecoder) { global.TextDecoder = util.TextDecoder; } From 01826d724feb4f01a9440d65b81abbfa5b3288bf Mon Sep 17 00:00:00 2001 From: danji90 Date: Mon, 9 Feb 2026 13:52:00 +0100 Subject: [PATCH 11/16] chore: testing pre-commit --- src/components/Overlay/Overlay.test.js | 32 ++++---------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/src/components/Overlay/Overlay.test.js b/src/components/Overlay/Overlay.test.js index f1131a7e..23580847 100644 --- a/src/components/Overlay/Overlay.test.js +++ b/src/components/Overlay/Overlay.test.js @@ -57,13 +57,7 @@ describe("Overlay", () => { // The mock class set the onResize property, we just have to run it to // simulate a resize ResizeObserver.onResize([ - { - contentRect: { - height: 200, - width: 200, - }, - target, - }, + { contentRect: { height: 10, width: 200 }, target }, ]); }); @@ -79,13 +73,7 @@ describe("Overlay", () => { act(() => { ResizeObserver.onResize([ - { - contentRect: { - height: 200, - width: 1200, - }, - target, - }, + { contentRect: { height: 200, width: 1200 }, target }, ]); }); @@ -100,13 +88,7 @@ describe("Overlay", () => { // Force resize to make it mobile. act(() => { ResizeObserver.onResize([ - { - contentRect: { - height: 200, - width: 200, - }, - target, - }, + { contentRect: { height: 200, width: 200 }, target }, ]); }); @@ -121,13 +103,7 @@ describe("Overlay", () => { // Force resize to make it mobile. act(() => { ResizeObserver.onResize([ - { - contentRect: { - height: 200, - width: 200, - }, - target, - }, + { contentRect: { height: 200, width: 200 }, target }, ]); }); expect(container.querySelector(".tm-overlay-mobile")).not.toBe(null); From 8a3a48c30f456fcad8f99834fb082f321cd71ad6 Mon Sep 17 00:00:00 2001 From: danji90 Date: Mon, 9 Feb 2026 13:52:47 +0100 Subject: [PATCH 12/16] chore: testing pre-commit --- .lintstagedrc.js | 2 +- src/components/Overlay/Overlay.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index dd21d05e..2d37ca67 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -2,7 +2,7 @@ module.exports = { "(src|__mocks__)/**/*.js": [ "eslint --fix", "prettier --write", - "yarn test --bail --findRelatedTests --passWithNoTests", + "yarn test --bail --findRelatedTests", ], "package.json": ["fixpack"], "src/**/*.{css,scss}": ["stylelint --fix"], diff --git a/src/components/Overlay/Overlay.test.js b/src/components/Overlay/Overlay.test.js index 23580847..7c98ff7d 100644 --- a/src/components/Overlay/Overlay.test.js +++ b/src/components/Overlay/Overlay.test.js @@ -57,7 +57,7 @@ describe("Overlay", () => { // The mock class set the onResize property, we just have to run it to // simulate a resize ResizeObserver.onResize([ - { contentRect: { height: 10, width: 200 }, target }, + { contentRect: { height: 200, width: 200 }, target }, ]); }); From 43f20c2aae51469b8934bc60a34bc4b54f7e98e5 Mon Sep 17 00:00:00 2001 From: danji90 Date: Mon, 9 Feb 2026 13:54:06 +0100 Subject: [PATCH 13/16] chore: testing pre-commit --- src/components/BasicMap/BasicMap.test.js | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/src/components/BasicMap/BasicMap.test.js b/src/components/BasicMap/BasicMap.test.js index 31f7c458..6f8e8a48 100644 --- a/src/components/BasicMap/BasicMap.test.js +++ b/src/components/BasicMap/BasicMap.test.js @@ -21,12 +21,7 @@ proj4.defs( register(proj4); const extent = [0, 0, 1000, 1000]; -const olLayers = [ - new OLLayer({ - name: "foo", - visible: true, - }), -]; +const olLayers = [new OLLayer({ name: "foo", visible: true })]; describe("BasicMap", () => { let olMap; @@ -106,9 +101,7 @@ describe("BasicMap", () => { // Test componentDidMount const { rerender } = render( , - { - lifecycleExperimental: true, - }, + { lifecycleExperimental: true }, ); olMap.dispatchEvent(evt); expect(spy).toHaveBeenCalledTimes(1); @@ -139,11 +132,7 @@ describe("BasicMap", () => { extent={extent} layers={olLayers} map={olMap} - viewOptions={{ - maxZoom: 22, - minZoom: 16, - projection: "EPSG:21781", - }} + viewOptions={{ maxZoom: 22, minZoom: 16, projection: "EPSG:21781" }} />, ); expect(olMap.getLayers().getLength()).toBe(1); @@ -175,9 +164,7 @@ describe("BasicMap", () => { }); test("animation shoud be set", () => { - const obj = { - zoom: 4, - }; + const obj = { zoom: 4 }; const { rerender } = render(); const spy = jest.spyOn(olMap.getView(), "animate"); rerender(); From e0a7d0a6e719ef90f22d71bdd6efae1ae8829e29 Mon Sep 17 00:00:00 2001 From: danji90 Date: Mon, 9 Feb 2026 13:56:20 +0100 Subject: [PATCH 14/16] chore: update setupTests --- src/setupTests.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/setupTests.js b/src/setupTests.js index bc15f71b..a15a1f45 100644 --- a/src/setupTests.js +++ b/src/setupTests.js @@ -1,7 +1,5 @@ import ResizeObserver from "resize-observer-polyfill"; - -// eslint-disable-next-line perfectionist/sort-imports -const util = require("util"); +import util from "util"; // make jest happy if (!global.TextDecoder) { From 47c3a404ae68f1652b5a143d426b3529e881cb3d Mon Sep 17 00:00:00 2001 From: danji90 Date: Mon, 9 Feb 2026 13:57:17 +0100 Subject: [PATCH 15/16] chore: setup tests clean --- .lintstagedrc.js | 2 +- src/setupTests.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index 2d37ca67..dd21d05e 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -2,7 +2,7 @@ module.exports = { "(src|__mocks__)/**/*.js": [ "eslint --fix", "prettier --write", - "yarn test --bail --findRelatedTests", + "yarn test --bail --findRelatedTests --passWithNoTests", ], "package.json": ["fixpack"], "src/**/*.{css,scss}": ["stylelint --fix"], diff --git a/src/setupTests.js b/src/setupTests.js index a15a1f45..8eb47877 100644 --- a/src/setupTests.js +++ b/src/setupTests.js @@ -1,7 +1,6 @@ import ResizeObserver from "resize-observer-polyfill"; import util from "util"; -// make jest happy if (!global.TextDecoder) { global.TextDecoder = util.TextDecoder; } From 13bb7816983a7ccc58dadb6993118ef27059e219 Mon Sep 17 00:00:00 2001 From: danji90 Date: Mon, 9 Feb 2026 13:57:29 +0100 Subject: [PATCH 16/16] chore: setup tests clean --- .lintstagedrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index dd21d05e..2d37ca67 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -2,7 +2,7 @@ module.exports = { "(src|__mocks__)/**/*.js": [ "eslint --fix", "prettier --write", - "yarn test --bail --findRelatedTests --passWithNoTests", + "yarn test --bail --findRelatedTests", ], "package.json": ["fixpack"], "src/**/*.{css,scss}": ["stylelint --fix"],