Releases: metonym/svelte-time
Releases · metonym/svelte-time
v2.0.0
The library is modernized to only support Svelte 5 (Runes mode). There are no component API changes.
Use [email protected] for Svelte 3/4 support. v1 is also compatible with Svelte 5 (non-Runes mode).
Breaking Changes
f986943, #51 contributed by @kvangrae, @niemyjski, @metonym
- update
Time.svelte
to use Runes - update
svelteTime
action to use Runes - update TypeScript definitions to replace deprecated
SvelteComponentTyped
withComponent
v1.0.0
v0.9.0
v0.8.3
v0.8.2
v0.8.1
v0.8.0
v0.7.2
v0.7.1
Fixes
- use default CJS imports from
dayjs
instead of ESM - upgrade
dayjs
to v1.11.3 - fix TypeScript definition for re-exported
dayjs
function to extend therelativeTime
plugin - fix
svelteTime
action to update when using a custom live interval - fix
svelteTime
action to also set thedatetime
attribute
v0.7.0
Breaking Changes
-
format
title
attribute usingformat
prop when using relative time (2d9bc08, #16 contributed by @imbolc)Previously, the
title
attribute used the original timestamp, which may not be human-readable. By re-using theformat
prop, the relative timestamp title will be easier to read while the machine-parseable format is still used by thedatetime
attribute.<time - title="2022-05-15T18:03:57.430Z" + title="May 15, 2022" datetime="2022-05-15T18:03:57.430Z"> a few seconds ago </time>