diff --git a/.tool-versions b/.tool-versions index eaa2a8f..a906f5c 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -deno 2.0.6 +deno 2.1.0 diff --git a/deno.jsonc b/deno.jsonc index 749b9fc..36ff07f 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -40,7 +40,7 @@ "tailwindcss/": "npm:/tailwindcss@3.4.1/", "tailwindcss/plugin": "npm:/tailwindcss@3.4.1/plugin.js", // Production / Runtime - "caniuse-lite": "npm:caniuse-lite@^1.0.30001680", + "caniuse-lite": "npm:caniuse-lite@^1.0.30001683", "@std/semver": "jsr:@std/semver@^1.0.3", // Scripting / Scraping "@b-fuze/deno-dom": "jsr:@b-fuze/deno-dom@^0.1.48", diff --git a/routes/index.tsx b/routes/index.tsx index 2b78efb..128fdee 100644 --- a/routes/index.tsx +++ b/routes/index.tsx @@ -83,10 +83,12 @@ const AgentReleaseAge = ({ name, version, releaseDate, asOf, currentVersion }: R ) } + const ageDesc = humanizeDurationSince(releaseDate.date) + return (
{name} {releaseDate.version} was released in {formatDateYearMonth(releaseDate.date)};{' '} - <>it's {humanizeDurationSince(releaseDate.date)} old.> + <>it's {ageDesc ? `${ageDesc} old.` : 'brand new!'}>
) }