Skip to content

Commit ba0405c

Browse files
committed
change v5 to v4
1 parent 04963fa commit ba0405c

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/datetimeformat-ponyfill.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export class DateTimeFormat implements Intl.DateTimeFormat {
55
constructor(locale: string, options: Intl.DateTimeFormatOptions) {
66
// eslint-disable-next-line no-console
77
console.warn(
8-
`time-elements v5.0.0 will no longer ship with DateTimeFormat ponyfill. It must be polyfilled for continued support in older browsers`
8+
`time-elements v4.0.0 will no longer ship with DateTimeFormat ponyfill. It must be polyfilled for continued support in older browsers`
99
)
1010
this.#options = {
1111
locale: 'en',

src/local-time-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default class LocalTimeElement extends RelativeTimeElement {
44
constructor() {
55
super()
66
// eslint-disable-next-line no-console
7-
console.warn('local-time element is deprecated and will be removed in v5.0.0')
7+
console.warn('local-time element is deprecated and will be removed in v4.0.0')
88
}
99

1010
get prefix() {

src/relative-time-element.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default class RelativeTimeElement extends HTMLElement implements Intl.Dat
129129

130130
private getFormattedTitle(): string | undefined {
131131
// eslint-disable-next-line no-console
132-
console.warn(`Calling getFormattedTitle is deprecated and will be removed in v5.0.0`)
132+
console.warn(`Calling getFormattedTitle is deprecated and will be removed in v4.0.0`)
133133
return this.#getFormattedTitle()
134134
}
135135

@@ -176,7 +176,7 @@ export default class RelativeTimeElement extends HTMLElement implements Intl.Dat
176176

177177
private getFormattedDate(now = new Date()): string | undefined {
178178
// eslint-disable-next-line no-console
179-
console.warn(`Calling getFormattedTitle is deprecated and will be removed in v5.0.0`)
179+
console.warn(`Calling getFormattedTitle is deprecated and will be removed in v4.0.0`)
180180
return this.#getFormattedDate(now)
181181
}
182182

@@ -316,7 +316,7 @@ export default class RelativeTimeElement extends HTMLElement implements Intl.Dat
316316
if (format && format.includes('%')) {
317317
// eslint-disable-next-line no-console
318318
console.warn(
319-
`srftime formatting is deprecated and will be removed in v5.0.0. stftime formats will default to 'auto'`
319+
`srftime formatting is deprecated and will be removed in v4.0.0. stftime formats will default to 'auto'`
320320
)
321321
return format as unknown as Format
322322
}
@@ -327,7 +327,7 @@ export default class RelativeTimeElement extends HTMLElement implements Intl.Dat
327327
if (value && value.includes('%')) {
328328
// eslint-disable-next-line no-console
329329
console.warn(
330-
`srftime formatting is deprecated and will be removed in v5.0.0. stftime formats will default to 'auto'`
330+
`srftime formatting is deprecated and will be removed in v4.0.0. stftime formats will default to 'auto'`
331331
)
332332
}
333333
this.setAttribute('format', value)

src/relative-time-ponyfill.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export class RelativeTimeFormat implements Intl.RelativeTimeFormat {
22
constructor() {
33
// eslint-disable-next-line no-console
44
console.warn(
5-
`time-elements v5.0.0 will no longer ship with DateTimeFormat ponyfill. It must be polyfilled for continued support in older browsers`
5+
`time-elements v4.0.0 will no longer ship with DateTimeFormat ponyfill. It must be polyfilled for continued support in older browsers`
66
)
77
}
88

src/time-ago-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default class TimeAgoElement extends RelativeTimeElement {
55
constructor() {
66
super()
77
// eslint-disable-next-line no-console
8-
console.warn('time-ago element is deprecated and will be removed in v5.0.0')
8+
console.warn('time-ago element is deprecated and will be removed in v4.0.0')
99
}
1010

1111
get tense(): Tense {

src/time-until-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default class TimeUntilElement extends RelativeTimeElement {
55
constructor() {
66
super()
77
// eslint-disable-next-line no-console
8-
console.warn('time-ago element is deprecated and will be removed in v5.0.0')
8+
console.warn('time-ago element is deprecated and will be removed in v4.0.0')
99
}
1010

1111
get tense(): Tense {

0 commit comments

Comments
 (0)