diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ddfcf94..5a177e14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - name: Setup node uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 18 cache: "yarn" - name: Install dependencies diff --git a/src/components/inherited-map/components/filter-panel/filter-panel-normal.js b/src/components/inherited-map/components/filter-panel/filter-panel-normal.js index 4c084341..b31f96c6 100644 --- a/src/components/inherited-map/components/filter-panel/filter-panel-normal.js +++ b/src/components/inherited-map/components/filter-panel/filter-panel-normal.js @@ -4,7 +4,7 @@ import * as React from "react"; import { useStore } from "../../models/root-store"; import { DateFilter } from "./date-filter"; import { ParticipantsFilter } from "./participants-filter"; -import { RegionFilter } from "./region-filter"; +import { RegionFilterSection } from "./region-filter"; import { SeverityFilter } from "./severity-filter"; const FilterSection = ({ filter }) => { @@ -16,7 +16,7 @@ const FilterSection = ({ filter }) => { case "severity": return <SeverityFilter {...filter} />; case "region": - return <RegionFilter {...filter} />; + return <RegionFilterSection {...filter} />; default: return null; } diff --git a/src/pages/api/rewrites/proxy-django-html-page.tsx b/src/pages/api/rewrites/proxy-django-html-page.tsx index c52ee43c..3440dda4 100644 --- a/src/pages/api/rewrites/proxy-django-html-page.tsx +++ b/src/pages/api/rewrites/proxy-django-html-page.tsx @@ -7,9 +7,12 @@ import { djangoBaseUrl } from "../../../shared/django-helpers"; // Netlify runs inside Lambda functions, so page caching is not very efficient // or reliable. However, if two requests hit the same function instance, this // improves latency at a small memory footprint cost. + +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-ignore const pageCache = new LRU<string, string>({ max: 100, // Capping the number of entries helps us avoid accidental memory overflows - maxAge: 1000 * 60 * 10, // 10 minutes + ttl: 1000 * 60 * 10, // 10 minutes }); const transformHtmlByPathname: Record<string, (rawHtml: string) => string> = {