Releases: github/relative-time-element
Releases · github/relative-time-element
v3.5.0
What's Changed
This release moves define calls into separate files, allowing import of each element without triggering the custom element definition. In addition it attempts to safely use globals so that it can be imported into NodeJS without error.
- move customElements define calls to index.js and refactor by @keithamus in #209
- Ensure HTMLElement exists in all contexts by @keithamus in #211
- add
define
export for custom element registration by @keithamus in #210
Full Changelog: v3.4.1...v3.5.0
v3.4.1
v3.4.0
What's Changed
- Strftime localisation by @keithamus in #206
- Add some localised dates as examples by @keithamus in #207
(Thanks @brunoprietog for the bug report!)
Full Changelog: v3.3.0...v3.4.0
v3.3.0
v3.2.5
What's Changed
- ensure invalid dates fallback to lightdom textcontent by @keithamus in #203
Full Changelog: v3.2.4...v3.2.5
v3.2.4
v3.2.3
What's Changed
Full Changelog: v3.2.2...v3.2.3
v3.2.2
v3.2.1
What's Changed
- avoid eagerly calling this.update() by @keithamus in #200
Full Changelog: v3.2.0...v3.2.1
v3.2.0
What's Changed
This release includes a large rewrite of the component with many new features that allow for fine-grained control over the display of the date. Existing uses will work as they always have, but a set of new attributes provide detailed control about how dates get rendered!
- Update README.md by @josepmartins in #171
- Fix closing tag for
time-until
in documentation by @meduzen in #172 - move AOR to primer by @keithamus in #173
- fix lang on relative-time day ordering by @keithamus in #175
- Custom format by @keithamus in #177
- switch from karma to web-test-runner by @keithamus in #178
- Use esbuild by @keithamus in #179
- Split strftime out by @keithamus in #180
- add tense to relative-time by @keithamus in #181
- simplify time-until/ago elements by @keithamus in #182
- Extract tostring from relative time into element by @keithamus in #183
- Add threshold by @keithamus in #184
- Refactor relative time by @koddsson in #185
- Inline utilities only used in
<relative-time>
by @koddsson in #186 - Inline extended time element into relative time by @keithamus in #187
- add relative-time tests for local-time by @keithamus in #188
- add setters for all attributes by @keithamus in #189
- RelativeTimeElement: Progressive time update intervals by @keithamus in #190
- Add custome elements manifest by @keithamus in #191
- Switch element to defining content within ShadowDOM by @keithamus in #193
- Update readme by @keithamus in #192
- Local time refactor by @keithamus in #194
- add tests for ponyfills by @keithamus in #195
- refactor relative-time to remove RelativeTimeFormat by @keithamus in #196
- inline utils functions by @keithamus in #197
- Make duration class by @keithamus in #198
- Minor cleanups by @keithamus in #199
New Contributors
- @josepmartins made their first contribution in #171
- @meduzen made their first contribution in #172
Full Changelog: v3.1.4...v3.2.0