Releases: metonym/svelte-time
Releases · metonym/svelte-time
v0.9.0
Features
- allow
title
attribute to be overridden (72a02ce, #44)
v0.8.3
This is a patch release to update documentation published to NPM.
Docs
- Add recipe to use a custom timezone (a18d4ec)
- Add recipe to use a custom locale (2892599)
v0.8.2
Fixes
- fix
exports
in package.json to include types; add exports for ./src/*.svelte
and ./src/*
(#38, 748e53a)
v0.8.1
Fixes
- add
exports
to package.json to resolve Vite development warnings (#37, 044abc1)
v0.8.0
Breaking Changes
- minimum Svelte version required is 3.55
Features
- update type definitions to support Svelte 4
- upgrade
dayjs
to v1.11.9
v0.7.2
Fixes
- upgrade
dayjs
to v1.11.8
- fix
Time.svelte
types to allow data-*
attributes (e.g., data-test-id
)
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 the relativeTime
plugin
- fix
svelteTime
action to update when using a custom live interval
- fix
svelteTime
action to also set the datetime
attribute
v0.7.0
Breaking Changes
-
format title
attribute using format
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 the format
prop, the relative timestamp title will be easier to read while the machine-parseable format is still used by the datetime
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>
v0.6.3
Fixes
- revert back to using ESM exports from
dayjs
(6470749, #14)
v0.6.2
Fixes
-
use default CJS imports from dayjs
instead of ESM (e9d56e4, #13)
This fixes a dev/build issue where the ESM package could not be properly loaded. Using the default dayjs
exports lets SvelteKit/vite optimize the packages.