Skip to content

Commit

Permalink
change v5 to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Nov 29, 2022
1 parent 04963fa commit ba0405c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/datetimeformat-ponyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/local-time-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
8 changes: 4 additions & 4 deletions src/relative-time-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down Expand Up @@ -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)
}

Expand Down Expand Up @@ -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
}
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/relative-time-ponyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
)
}

Expand Down
2 changes: 1 addition & 1 deletion src/time-ago-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/time-until-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ba0405c

Please sign in to comment.