v4.0.0-pre
Pre-release
Pre-release
What's Changed
- Warn on use of deprecated elements, functions and properties by @keithamus in #217
BREAKING CHANGES
This PR is a BREAKING CHANGE, in which we console.warn on all deprecated features, which we plan to remove in the next version, v4.0.0.
The following features are to be deprecated in v4.0.0:
- The
local-timeelement will be removed. - The
time-agoelement will be removed. - The
time-untilelement will be removed. getFormattedTitlewill be private.getFormattedDatewill be private.formatwill no longer accept astrftimecompatible format. Instead, any value other than'micro','elapsed'will revert to the string'auto'- the
Intl.DateTimeFormatconstructor will not be ponyfilled, and so in environments without this constructor, the
element will fall back to provided text. - the
Intl.RelativeTimeFormatconstructor will not be ponyfilled, and so in environments without this constructor, the element will fall back to provided text.
v4.0.0-pre maintains compatibility with Version 3 but will console.warn on the use of any of these deprecated features. Additionally the typescript definitions have changed which means integrators will need to alter their code for typescript.
v4.0.0-pre will allow integrators to install a version and ship it to production in a backwards-compatible way with v3.x, while refactoring out any uses of deprecated APIs, before finally installing v4.0.0.
Full Changelog: v3.6.0...v4.0.0-pre