Skip to content

Commit

Permalink
update caniuse-lite, fix bug re: newer browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
nonrational committed Nov 21, 2024
1 parent 882b3eb commit c3d18ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
deno 2.0.6
deno 2.1.0
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@ const AgentReleaseAge = ({ name, version, releaseDate, asOf, currentVersion }: R
)
}

const ageDesc = humanizeDurationSince(releaseDate.date)

return (
<p>
{name} {releaseDate.version} was released in {formatDateYearMonth(releaseDate.date)};{' '}
<>it's {humanizeDurationSince(releaseDate.date)} old.</>
<>it's {ageDesc ? `${ageDesc} old.` : 'brand new!'}</>
</p>
)
}
Expand Down

0 comments on commit c3d18ce

Please sign in to comment.