diff --git a/eslint.config.js b/eslint.config.js index 9cf8056..6cac22b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -10,7 +10,7 @@ export default tseslint.config( extends: [js.configs.recommended, ...tseslint.configs.recommended], files: ["**/*.{ts,tsx}"], languageOptions: { - ecmaVersion: 2020, + ecmaVersion: 2022, globals: globals.browser, }, plugins: { diff --git a/package.json b/package.json index cbe777f..d8e704f 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "@turf/bbox-polygon": "^7.3.1", "@turf/boolean-valid": "^7.3.1", "@turf/helpers": "^7.2.0", - "apache-arrow": "^19.0.0", + "apache-arrow": "^21.1.0", "deck.gl": "^9.2.4", "duckdb-wasm-kit": "^0.1.38", "maplibre-gl": "^5.14.0", diff --git a/src/components/sections/item-search.tsx b/src/components/sections/item-search.tsx index 3c6bb1d..330d4e9 100644 --- a/src/components/sections/item-search.tsx +++ b/src/components/sections/item-search.tsx @@ -187,7 +187,7 @@ function Search({ setItems: (items: StacItem[] | undefined) => void; }) { const result = useStacSearch(search, link); - const numberMatched = result.data?.pages.at(0)?.numberMatched; + const numberMatched = result.data?.pages[0]?.numberMatched; const items = useMemo(() => { return result.data?.pages.flatMap((page) => page.features); }, [result.data]); diff --git a/src/components/value.tsx b/src/components/value.tsx index 4b387d7..b592e92 100644 --- a/src/components/value.tsx +++ b/src/components/value.tsx @@ -161,7 +161,7 @@ export function Value({ {getValueIcon(value)} {(value.title as string) || value.id || - href.split("/").at(-1)?.split("?").at(0)} + href.split("/").slice(-1)[0]?.split("?")[0]} diff --git a/src/utils/stac-geoparquet.ts b/src/utils/stac-geoparquet.ts index 607ec7b..2e843ba 100644 --- a/src/utils/stac-geoparquet.ts +++ b/src/utils/stac-geoparquet.ts @@ -45,7 +45,7 @@ export async function getStacGeoparquet( type: "FeatureCollection", bbox: [summaryRow.xmin, summaryRow.ymin, summaryRow.xmax, summaryRow.ymax], features: [], - title: href.split("/").at(-1), + title: href.split("/").slice(-1)[0], description: `A stac-geoparquet file with ${summaryRow.count} items`, start_datetime: summaryRow.start_datetime ? new Date(summaryRow.start_datetime).toLocaleString() diff --git a/tsconfig.app.json b/tsconfig.app.json index c9ccbd4..227a6c6 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -1,9 +1,9 @@ { "compilerOptions": { "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", - "target": "ES2020", + "target": "ES2022", "useDefineForClassFields": true, - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": ["ES2022", "DOM", "DOM.Iterable"], "module": "ESNext", "skipLibCheck": true, diff --git a/yarn.lock b/yarn.lock index 609881f..7ac15d4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2443,10 +2443,10 @@ resolved "https://registry.yarnpkg.com/@types/ms/-/ms-2.1.0.tgz#052aa67a48eccc4309d7f0191b7e41434b90bb78" integrity sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA== -"@types/node@*": - version "24.10.1" - resolved "https://registry.yarnpkg.com/@types/node/-/node-24.10.1.tgz#91e92182c93db8bd6224fca031e2370cef9a8f01" - integrity sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ== +"@types/node@*", "@types/node@^24.0.3": + version "24.10.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-24.10.2.tgz#82a57476a19647d8f2c7750d0924788245e39b26" + integrity sha512-WOhQTZ4G8xZ1tjJTvKOpyEVSGgOTvJAfDK3FNFgELyaTpzhdgHVHeqW8V+UJvzF5BT+/B54T/1S2K6gd9c7bbA== dependencies: undici-types "~7.16.0" @@ -3560,18 +3560,18 @@ apache-arrow@^17.0.0: json-bignum "^0.0.3" tslib "^2.6.2" -apache-arrow@^19.0.0: - version "19.0.1" - resolved "https://registry.yarnpkg.com/apache-arrow/-/apache-arrow-19.0.1.tgz#aeac6922102e3274f57d97ec72da69d20e55b15c" - integrity sha512-APmMLzS4qbTivLrPdQXexGM4JRr+0g62QDaobzEvip/FdQIrv2qLy0mD5Qdmw4buydtVJgbFeKR8f59I6PPGDg== +apache-arrow@^21.1.0: + version "21.1.0" + resolved "https://registry.yarnpkg.com/apache-arrow/-/apache-arrow-21.1.0.tgz#0b8d0a844d7a86cc29902f3561bf8be7844b7b36" + integrity sha512-kQrYLxhC+NTVVZ4CCzGF6L/uPVOzJmD1T3XgbiUnP7oTeVFOFgEUu6IKNwCDkpFoBVqDKQivlX4RUFqqnWFlEA== dependencies: "@swc/helpers" "^0.5.11" "@types/command-line-args" "^5.2.3" "@types/command-line-usage" "^5.0.4" - "@types/node" "^20.13.0" + "@types/node" "^24.0.3" command-line-args "^6.0.1" command-line-usage "^7.0.1" - flatbuffers "^24.3.25" + flatbuffers "^25.1.24" json-bignum "^0.0.3" tslib "^2.6.2" @@ -4748,6 +4748,11 @@ flatbuffers@^24.3.25: resolved "https://registry.yarnpkg.com/flatbuffers/-/flatbuffers-24.12.23.tgz#6eea59d2bcda0c5d59bcacefd6216348b3086883" integrity sha512-dLVCAISd5mhls514keQzmEG6QHmUUsNuWsb4tFafIUwvvgDjXhtfAYSKOzt5SWOy+qByV5pbsDZ+Vb7HUOBEdA== +flatbuffers@^25.1.24: + version "25.9.23" + resolved "https://registry.yarnpkg.com/flatbuffers/-/flatbuffers-25.9.23.tgz#346811557fe9312ab5647535e793c761e9c81eb1" + integrity sha512-MI1qs7Lo4Syw0EOzUl0xjs2lsoeqFku44KpngfIduHBYvzm8h2+7K8YMQh1JtVVVrUvhLpNwqVi4DERegUJhPQ== + flatted@^3.2.9: version "3.3.3" resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.3.tgz#67c8fad95454a7c7abebf74bb78ee74a44023358"