Releases: github/relative-time-element
Releases · github/relative-time-element
v4.2.2
What's Changed
- Update to use latest npm CLI release by @feelepxyz in #251
- fix: fixes round to string unit by @zbinlin in #253
New Contributors
- @feelepxyz made their first contribution in #251
- @zbinlin made their first contribution in #253
Full Changelog: v4.2.1...v4.2.2
v4.2.1
What's Changed
- tweak rounding rules for months by @keithamus in #249
Full Changelog: v4.2.0...v4.2.1
v4.2.0
What's Changed
- Add onrelativetimeupdated getter by @keithamus in #246
Full Changelog: v4.1.6...v4.2.0
v4.1.6
-
This release uses calendar months and years when balancing rounding of relative dates to a single unit. For example some displays that used to say "last year" will now more accurately say "2 years ago".
-
The year setter had a bug in which it was setting the day. Using
.year =
will now properly set the year.
What's Changed
- Update README.md by @AlphaRomeoMike in #239
- Update README.md by @AlphaRomeoMike in #240
- Year setter typo by @idlewan in #242
- Bump json5 from 1.0.1 to 1.0.2 by @dependabot in #241
- Bump ua-parser-js from 1.0.32 to 1.0.33 by @dependabot in #244
- update rounding rules for months/years in Duration by @keithamus in #245
New Contributors
- @AlphaRomeoMike made their first contribution in #239
- @idlewan made their first contribution in #242
Full Changelog: v4.1.5...v4.1.6
v4.1.5
What's Changed
- allow opting out of months and weekdays on datetime format by @keithamus in #237
Full Changelog: v4.1.4...v4.1.5
v4.1.4
What's Changed
- avoid throwing errors for empty lang attributes by @keithamus in #235
Full Changelog: v4.1.3...v4.1.4
v4.1.3
What's Changed
- fix: fixes examples include to relative-time-element by @rafaeliga in #233
- Increase rounding rules in roundToSingleUnit to 90% of the next largest unit by @keithamus in #234
New Contributors
- @rafaeliga made their first contribution in #233
Full Changelog: v4.1.2...v4.1.3
v4.1.2
Full Changelog: v4.1.1...v4.1.2
v4.1.1
What's Changed
- Add a job to publish the package in GPR by @broccolinisoup in #231
- Actions: Remove
needs
from the publish-github job by @broccolinisoup in #232
New Contributors
- @broccolinisoup made their first contribution in #231
Full Changelog: v4.1.0...v4.1.1
v4.1.0
What's Changed
- Upgrade all deps by @keithamus in #219
- add formatStyle attribute by @keithamus in #221
- change some Dates to .now() by @keithamus in #222
- add milliseconds to duration type by @keithamus in #223
- Move elapsed to duration by @keithamus in #224
- fix: dasherize formatStyle in observedAttributes by @lyricwulf in #225
- Refactor micro time to use a rounded duration by @keithamus in #226
- Refactor formats by @keithamus in #227
- support format=datetime/format=relative/format=duration by @keithamus in #228
- fix up examples page by @keithamus in #229
- setup npm provenance by @keithamus in #230
New Contributors
- @lyricwulf made their first contribution in #225
Full Changelog: v4.0.0...v4.1.0