From ba0405c9764ce890a05942f412c6fea08452a4d1 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Tue, 29 Nov 2022 10:51:29 +0000 Subject: [PATCH] change v5 to v4 --- src/datetimeformat-ponyfill.ts | 2 +- src/local-time-element.ts | 2 +- src/relative-time-element.ts | 8 ++++---- src/relative-time-ponyfill.ts | 2 +- src/time-ago-element.ts | 2 +- src/time-until-element.ts | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/datetimeformat-ponyfill.ts b/src/datetimeformat-ponyfill.ts index 34a5ba3..9d8c022 100644 --- a/src/datetimeformat-ponyfill.ts +++ b/src/datetimeformat-ponyfill.ts @@ -5,7 +5,7 @@ export class DateTimeFormat implements Intl.DateTimeFormat { constructor(locale: string, options: Intl.DateTimeFormatOptions) { // eslint-disable-next-line no-console console.warn( - `time-elements v5.0.0 will no longer ship with DateTimeFormat ponyfill. It must be polyfilled for continued support in older browsers` + `time-elements v4.0.0 will no longer ship with DateTimeFormat ponyfill. It must be polyfilled for continued support in older browsers` ) this.#options = { locale: 'en', diff --git a/src/local-time-element.ts b/src/local-time-element.ts index 97eef79..15707fd 100644 --- a/src/local-time-element.ts +++ b/src/local-time-element.ts @@ -4,7 +4,7 @@ export default class LocalTimeElement extends RelativeTimeElement { constructor() { super() // eslint-disable-next-line no-console - console.warn('local-time element is deprecated and will be removed in v5.0.0') + console.warn('local-time element is deprecated and will be removed in v4.0.0') } get prefix() { diff --git a/src/relative-time-element.ts b/src/relative-time-element.ts index d6d1196..1e3753a 100644 --- a/src/relative-time-element.ts +++ b/src/relative-time-element.ts @@ -129,7 +129,7 @@ export default class RelativeTimeElement extends HTMLElement implements Intl.Dat private getFormattedTitle(): string | undefined { // eslint-disable-next-line no-console - console.warn(`Calling getFormattedTitle is deprecated and will be removed in v5.0.0`) + console.warn(`Calling getFormattedTitle is deprecated and will be removed in v4.0.0`) return this.#getFormattedTitle() } @@ -176,7 +176,7 @@ export default class RelativeTimeElement extends HTMLElement implements Intl.Dat private getFormattedDate(now = new Date()): string | undefined { // eslint-disable-next-line no-console - console.warn(`Calling getFormattedTitle is deprecated and will be removed in v5.0.0`) + console.warn(`Calling getFormattedTitle is deprecated and will be removed in v4.0.0`) return this.#getFormattedDate(now) } @@ -316,7 +316,7 @@ export default class RelativeTimeElement extends HTMLElement implements Intl.Dat if (format && format.includes('%')) { // eslint-disable-next-line no-console console.warn( - `srftime formatting is deprecated and will be removed in v5.0.0. stftime formats will default to 'auto'` + `srftime formatting is deprecated and will be removed in v4.0.0. stftime formats will default to 'auto'` ) return format as unknown as Format } @@ -327,7 +327,7 @@ export default class RelativeTimeElement extends HTMLElement implements Intl.Dat if (value && value.includes('%')) { // eslint-disable-next-line no-console console.warn( - `srftime formatting is deprecated and will be removed in v5.0.0. stftime formats will default to 'auto'` + `srftime formatting is deprecated and will be removed in v4.0.0. stftime formats will default to 'auto'` ) } this.setAttribute('format', value) diff --git a/src/relative-time-ponyfill.ts b/src/relative-time-ponyfill.ts index 82d604b..2b4992f 100644 --- a/src/relative-time-ponyfill.ts +++ b/src/relative-time-ponyfill.ts @@ -2,7 +2,7 @@ export class RelativeTimeFormat implements Intl.RelativeTimeFormat { constructor() { // eslint-disable-next-line no-console console.warn( - `time-elements v5.0.0 will no longer ship with DateTimeFormat ponyfill. It must be polyfilled for continued support in older browsers` + `time-elements v4.0.0 will no longer ship with DateTimeFormat ponyfill. It must be polyfilled for continued support in older browsers` ) } diff --git a/src/time-ago-element.ts b/src/time-ago-element.ts index dbeff6b..54c09d7 100644 --- a/src/time-ago-element.ts +++ b/src/time-ago-element.ts @@ -5,7 +5,7 @@ export default class TimeAgoElement extends RelativeTimeElement { constructor() { super() // eslint-disable-next-line no-console - console.warn('time-ago element is deprecated and will be removed in v5.0.0') + console.warn('time-ago element is deprecated and will be removed in v4.0.0') } get tense(): Tense { diff --git a/src/time-until-element.ts b/src/time-until-element.ts index 3408185..ed40923 100644 --- a/src/time-until-element.ts +++ b/src/time-until-element.ts @@ -5,7 +5,7 @@ export default class TimeUntilElement extends RelativeTimeElement { constructor() { super() // eslint-disable-next-line no-console - console.warn('time-ago element is deprecated and will be removed in v5.0.0') + console.warn('time-ago element is deprecated and will be removed in v4.0.0') } get tense(): Tense {