From fdb9cdb575739e0d77b4c1eddd14fd9c3b398433 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Wed, 4 Sep 2024 16:27:09 +0100 Subject: [PATCH] Update web dependencies --- web/package-lock.json | 11 ++++++----- web/package.json | 2 +- web/src/EdgeCostApp.svelte | 5 ++--- web/src/InteractiveApp.svelte | 3 ++- web/src/Layers.svelte | 3 ++- web/tsconfig.json | 2 +- 6 files changed, 14 insertions(+), 12 deletions(-) diff --git a/web/package-lock.json b/web/package-lock.json index 9021319..fe8be06 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -11,7 +11,7 @@ "chart.js": "^4.4.2", "chartjs-plugin-dragdata": "^2.2.5", "pmtiles": "^3.0.4", - "svelte-maplibre": "^0.9.7", + "svelte-maplibre": "^0.9.13", "svelte-utils": "github:a-b-street/svelte-utils" }, "devDependencies": { @@ -3488,11 +3488,12 @@ } }, "node_modules/svelte-maplibre": { - "version": "0.9.7", - "resolved": "https://registry.npmjs.org/svelte-maplibre/-/svelte-maplibre-0.9.7.tgz", - "integrity": "sha512-Z0FNCDMcoan/7ZzlICWU2j+BO32Xs3tyGL8YvCzeO5zxzTdIKo3mqHKXkmkKslL87+2cSbFyc2TSqLDNIOOoeA==", + "version": "0.9.13", + "resolved": "https://registry.npmjs.org/svelte-maplibre/-/svelte-maplibre-0.9.13.tgz", + "integrity": "sha512-XHQFKE86dKQ0PqjPGZ97jcHi83XdQRa4RW3hXDqmuxJ4yi2yvawdbO1Y0b2raAemCVERTcIU9HYgx0TAvqJgrA==", "dependencies": { "d3-geo": "^3.1.0", + "dequal": "^2.0.3", "just-compare": "^2.3.0", "just-flush": "^2.3.0", "maplibre-gl": "^4.0.0", @@ -3581,7 +3582,7 @@ }, "node_modules/svelte-utils": { "version": "0.0.1", - "resolved": "git+ssh://git@github.com/a-b-street/svelte-utils.git#b46a647c6b3397009f8fb031c9baf6ef49e74ed5", + "resolved": "git+ssh://git@github.com/a-b-street/svelte-utils.git#e65bcf6939323551a086fa1214fa42e84572b537", "dependencies": { "@maptiler/geocoding-control": "^1.2.2", "@turf/bbox": "^7.0.0-alpha.114", diff --git a/web/package.json b/web/package.json index 02cf874..8a08733 100644 --- a/web/package.json +++ b/web/package.json @@ -30,7 +30,7 @@ "chart.js": "^4.4.2", "chartjs-plugin-dragdata": "^2.2.5", "pmtiles": "^3.0.4", - "svelte-maplibre": "^0.9.7", + "svelte-maplibre": "^0.9.13", "svelte-utils": "github:a-b-street/svelte-utils" } } diff --git a/web/src/EdgeCostApp.svelte b/web/src/EdgeCostApp.svelte index 563f65c..b5665a2 100644 --- a/web/src/EdgeCostApp.svelte +++ b/web/src/EdgeCostApp.svelte @@ -26,15 +26,14 @@ import CostFunction from "./CostFunction.svelte"; import Header from "./Header.svelte"; import Layout from "./Layout.svelte"; + import { Popup, makeColorRamp } from "svelte-utils/map"; import { - Popup, Loading, SequentialLegend, Legend, - OverpassSelector, PropertiesTable, - makeColorRamp, } from "svelte-utils"; + import { OverpassSelector } from "svelte-utils/overpass"; onMount(async () => { await init(); diff --git a/web/src/InteractiveApp.svelte b/web/src/InteractiveApp.svelte index 0719131..2426122 100644 --- a/web/src/InteractiveApp.svelte +++ b/web/src/InteractiveApp.svelte @@ -13,7 +13,8 @@ import Header from "./Header.svelte"; import Layers from "./Layers.svelte"; import Layout from "./Layout.svelte"; - import { Loading, OverpassSelector } from "svelte-utils"; + import { Loading } from "svelte-utils"; + import { OverpassSelector } from "svelte-utils/overpass"; import SidebarControls from "./SidebarControls.svelte"; onMount(async () => { diff --git a/web/src/Layers.svelte b/web/src/Layers.svelte index 60ff694..f1c2f0d 100644 --- a/web/src/Layers.svelte +++ b/web/src/Layers.svelte @@ -17,7 +17,8 @@ colors, type LayersControls, } from "./common"; - import { makeColorRamp, Popup, PropertiesTable } from "svelte-utils"; + import { PropertiesTable } from "svelte-utils"; + import { makeColorRamp, Popup } from "svelte-utils/map"; import { showSlope, showDestinations, diff --git a/web/tsconfig.json b/web/tsconfig.json index 4d35df8..ca78f98 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -5,7 +5,7 @@ "target": "ESNext", "useDefineForClassFields": true, "module": "ESNext", - "moduleResolution": "Node", + "moduleResolution": "bundler", "resolveJsonModule": true, /** * Typecheck JS in `.svelte` and `.js` files by default.