temporal-polyfill-lite 0.4.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -24
- package/README.md +1 -1
- package/dist/calendars/global.js +1 -1
- package/dist/calendars/index.js +1 -2
- package/dist/calendars/shim.js +1 -1
- package/dist/calendars/{src-BU-7y4gA.js → src-CLej0F_-.js} +220 -232
- package/dist/global.js +1 -1
- package/dist/index.js +1 -2
- package/dist/shim.js +1 -1
- package/dist/{src-sQY-gZ2P.js → src-DYpWRzuf.js} +52 -63
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 1.0.0 (2026-10-21)
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **BREAKING**: Stop overwriting native Temporal implementations in `temporal-polyfill-lite/global` and `temporal-polyfill-lite/calendars-full/global` entry points ([#47](https://github.com/fabon-f/temporal-polyfill-lite/pull/47)).
|
|
13
|
+
- Implement a workaround for Temporal specification issues in rare edge cases by throwing `RangeError` instead of returning dubious results ([#46](https://github.com/fabon-f/temporal-polyfill-lite/pull/46)).
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- Fix a bug in `Temporal.ZonedDateTime.prototype.getTimeZoneTransition` with future DST transitions ([#44](https://github.com/fabon-f/temporal-polyfill-lite/pull/44)).
|
|
18
|
+
|
|
8
19
|
## 0.4.3 (2026-09-02)
|
|
9
20
|
|
|
10
21
|
### Fixed
|
|
@@ -15,113 +26,113 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
15
26
|
|
|
16
27
|
### Changed
|
|
17
28
|
|
|
18
|
-
- Keep
|
|
29
|
+
- Keep original input in the error message for duration parsing; previously, the input string was accidentally converted to lowercase ([#39](https://github.com/fabon-f/temporal-polyfill-lite/pull/39)).
|
|
19
30
|
|
|
20
31
|
### Fixed
|
|
21
32
|
|
|
22
|
-
- Make `Intl.DurationFormat` spec-compliant ([#41](https://github.com/fabon-f/temporal-polyfill-lite/pull/41))
|
|
33
|
+
- Make `Intl.DurationFormat` spec-compliant ([#41](https://github.com/fabon-f/temporal-polyfill-lite/pull/41)).
|
|
23
34
|
|
|
24
35
|
## 0.4.1 (2026-06-21)
|
|
25
36
|
|
|
26
37
|
### Changed
|
|
27
38
|
|
|
28
|
-
-
|
|
39
|
+
- Slightly reduce bundle size.
|
|
29
40
|
|
|
30
41
|
## 0.4.0 (2026-05-25)
|
|
31
42
|
|
|
32
43
|
### Changed
|
|
33
44
|
|
|
34
|
-
- **BREAKING**: Reflect normative changes approved in the TC39 meeting
|
|
35
|
-
- Improve error messages ([#36](https://github.com/fabon-f/temporal-polyfill-lite/pull/36))
|
|
45
|
+
- **BREAKING**: Reflect normative changes approved in the May 2026 TC39 meeting ([#34](https://github.com/fabon-f/temporal-polyfill-lite/pull/34), [#35](https://github.com/fabon-f/temporal-polyfill-lite/pull/35)).
|
|
46
|
+
- Improve error messages ([#36](https://github.com/fabon-f/temporal-polyfill-lite/pull/36)).
|
|
36
47
|
|
|
37
48
|
### Fixed
|
|
38
49
|
|
|
39
|
-
- Remove extra observable `[[GetOwnProperty]]` calls in `Intl.DateTimeFormat` constructor ([#33](https://github.com/fabon-f/temporal-polyfill-lite/pull/33))
|
|
50
|
+
- Remove extra observable `[[GetOwnProperty]]` calls in the `Intl.DateTimeFormat` constructor ([#33](https://github.com/fabon-f/temporal-polyfill-lite/pull/33)).
|
|
40
51
|
|
|
41
52
|
## 0.3.6 (2026-05-07)
|
|
42
53
|
|
|
43
54
|
### Fixed
|
|
44
55
|
|
|
45
|
-
- Stop
|
|
56
|
+
- Stop implementing `formatRange` and `formatRangeToParts` on `Intl.DateTimeFormat` in legacy browsers that lack native support for them, ensuring feature detection works correctly ([#32](https://github.com/fabon-f/temporal-polyfill-lite/pull/32)).
|
|
46
57
|
|
|
47
58
|
## 0.3.5 (2026-04-20)
|
|
48
59
|
|
|
49
60
|
### Fixed
|
|
50
61
|
|
|
51
|
-
- Fix
|
|
52
|
-
- Fix types
|
|
62
|
+
- Fix incorrect order of observable operations for options object in the `Intl.DateTimeFormat` constructor ([#28](https://github.com/fabon-f/temporal-polyfill-lite/pull/28)).
|
|
63
|
+
- Fix types for `Intl` when the polyfill is used as a ponyfill ([#29](https://github.com/fabon-f/temporal-polyfill-lite/pull/29)).
|
|
53
64
|
|
|
54
65
|
## 0.3.4 (2026-04-14)
|
|
55
66
|
|
|
56
67
|
### Fixed
|
|
57
68
|
|
|
58
|
-
- Fix discrepancy
|
|
69
|
+
- Fix discrepancy in date-time formatting between timestamps and Temporal objects in `Intl.DateTimeFormat` ([#27](https://github.com/fabon-f/temporal-polyfill-lite/pull/27)).
|
|
59
70
|
|
|
60
71
|
## 0.3.3 (2026-03-21)
|
|
61
72
|
|
|
62
73
|
### Added
|
|
63
74
|
|
|
64
|
-
- Introduce opt-in cache for system time zone ID ([#22](https://github.com/fabon-f/temporal-polyfill-lite/pull/22))
|
|
75
|
+
- Introduce opt-in cache for system time zone ID ([#22](https://github.com/fabon-f/temporal-polyfill-lite/pull/22)).
|
|
65
76
|
|
|
66
77
|
### Fixed
|
|
67
78
|
|
|
68
|
-
- Fix bugs related to extreme dates in `persian` calendar ([#23](https://github.com/fabon-f/temporal-polyfill-lite/pull/23))
|
|
79
|
+
- Fix bugs related to extreme dates in the `persian` calendar ([#23](https://github.com/fabon-f/temporal-polyfill-lite/pull/23)).
|
|
69
80
|
|
|
70
81
|
## 0.3.2 (2026-03-12)
|
|
71
82
|
|
|
72
83
|
### Changed
|
|
73
84
|
|
|
74
|
-
- Implement out-of-bounds
|
|
85
|
+
- Implement out-of-bounds checks in `Temporal.PlainMonthDay` construction for non-ISO calendars ([#21](https://github.com/fabon-f/temporal-polyfill-lite/pull/21)).
|
|
75
86
|
|
|
76
87
|
### Fixed
|
|
77
88
|
|
|
78
|
-
- Fix a bug caused by extreme `year` field during `Temporal.PlainMonthDay` construction ([#20](https://github.com/fabon-f/temporal-polyfill-lite/pull/20))
|
|
89
|
+
- Fix a bug caused by extreme `year` field values during `Temporal.PlainMonthDay` construction ([#20](https://github.com/fabon-f/temporal-polyfill-lite/pull/20)).
|
|
79
90
|
|
|
80
91
|
## 0.3.1 (2026-03-07)
|
|
81
92
|
|
|
82
93
|
### Fixed
|
|
83
94
|
|
|
84
|
-
- Fix incorrect `sideEffects` package
|
|
95
|
+
- Fix incorrect `sideEffects` package setting that caused bundling issues ([#19](https://github.com/fabon-f/temporal-polyfill-lite/pull/19)).
|
|
85
96
|
|
|
86
97
|
## 0.3.0 (2026-03-07)
|
|
87
98
|
|
|
88
99
|
### Added
|
|
89
100
|
|
|
90
|
-
- Add support for non-ISO calendars ([#6](https://github.com/fabon-f/temporal-polyfill-lite/issues/6))
|
|
101
|
+
- Add support for non-ISO calendars ([#6](https://github.com/fabon-f/temporal-polyfill-lite/issues/6)).
|
|
91
102
|
|
|
92
103
|
### Changed
|
|
93
104
|
|
|
94
|
-
- **BREAKING**: Make
|
|
105
|
+
- **BREAKING**: Make type definitions compatible with TypeScript 6.0; stop exporting types to the global namespace when importing `temporal-polyfill-lite/global` ([#17](https://github.com/fabon-f/temporal-polyfill-lite/pull/17)).
|
|
95
106
|
|
|
96
107
|
## 0.2.3 (2026-03-04)
|
|
97
108
|
|
|
98
109
|
### Fixed
|
|
99
110
|
|
|
100
|
-
- Fix incorrect rounding of durations in edge cases ([#14](https://github.com/fabon-f/temporal-polyfill-lite/pull/14))
|
|
111
|
+
- Fix incorrect rounding of durations in edge cases ([#14](https://github.com/fabon-f/temporal-polyfill-lite/pull/14)).
|
|
101
112
|
|
|
102
113
|
## 0.2.2 (2026-02-09)
|
|
103
114
|
|
|
104
115
|
### Fixed
|
|
105
116
|
|
|
106
|
-
- Fix
|
|
117
|
+
- Fix a bug caused by improper minification that caused `new Intl.DateTimeFormat()` to throw a `TypeError` ([#5](https://github.com/fabon-f/temporal-polyfill-lite/pull/5)).
|
|
107
118
|
|
|
108
119
|
## 0.2.1 (2026-02-06)
|
|
109
120
|
|
|
110
121
|
### Changed
|
|
111
122
|
|
|
112
|
-
- Improve performance for `ZonedDateTime` ([#3](https://github.com/fabon-f/temporal-polyfill-lite/pull/3), [e9b5cbf](https://github.com/fabon-f/temporal-polyfill-lite/commit/e9b5cbf3e06cd1db24c086ec5b41f7c5faf5861e))
|
|
113
|
-
- Improve error messages ([94990ad](https://github.com/fabon-f/temporal-polyfill-lite/commit/94990adca9052a785db16f74716cccf653f51a83))
|
|
123
|
+
- Improve performance for `ZonedDateTime` ([#3](https://github.com/fabon-f/temporal-polyfill-lite/pull/3), [e9b5cbf](https://github.com/fabon-f/temporal-polyfill-lite/commit/e9b5cbf3e06cd1db24c086ec5b41f7c5faf5861e)).
|
|
124
|
+
- Improve error messages ([94990ad](https://github.com/fabon-f/temporal-polyfill-lite/commit/94990adca9052a785db16f74716cccf653f51a83)).
|
|
114
125
|
|
|
115
126
|
### Fixed
|
|
116
127
|
|
|
117
|
-
- Stop
|
|
128
|
+
- Stop displaying fractional seconds for date classes in `Intl.DateTimeFormat` ([#2](https://github.com/fabon-f/temporal-polyfill-lite/pull/2)).
|
|
118
129
|
|
|
119
130
|
## 0.2.0 (2026-01-30)
|
|
120
131
|
|
|
121
132
|
### Changed
|
|
122
133
|
|
|
123
|
-
- **BREAKING**: Reflect a normative change
|
|
124
|
-
- Stop mangling
|
|
134
|
+
- **BREAKING**: Reflect a normative change that disallows adding weeks, days, and time units to `PlainYearMonth` ([#1](https://github.com/fabon-f/temporal-polyfill-lite/pull/1)).
|
|
135
|
+
- Stop mangling function names in the production build for better stack traces ([14a367e](https://github.com/fabon-f/temporal-polyfill-lite/commit/14a367e7392b06324bf1844316be4a0b43e6a531)).
|
|
125
136
|
|
|
126
137
|
## 0.1.0 (2026-01-25)
|
|
127
138
|
|
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ For users who need only Gregorian calendar (`iso8601` and `gregory`), you can us
|
|
|
19
19
|
// as a ponyfill (without patching global variables)
|
|
20
20
|
import { Intl, Temporal } from "temporal-polyfill-lite";
|
|
21
21
|
|
|
22
|
-
// load the polyfill to global
|
|
22
|
+
// load the polyfill to global if native implementation does not exist
|
|
23
23
|
import "temporal-polyfill-lite/global";
|
|
24
24
|
// load types to global if you need (optional)
|
|
25
25
|
import "temporal-polyfill-lite/types/global";
|
package/dist/calendars/global.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { install as s } from "./shim.js";
|
|
2
|
-
s(!
|
|
2
|
+
s(!1);
|
package/dist/calendars/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { s as Intl, r as Temporal, a as toTemporalInstant };
|
|
1
|
+
export { r as Intl, t as Temporal, i as toTemporalInstant } from "./src-CLej0F_-.js";
|
package/dist/calendars/shim.js
CHANGED
|
@@ -4,5 +4,5 @@ function install(s) {
|
|
|
4
4
|
function setSystemTimeZoneIdCacheTtl(t) {
|
|
5
5
|
s(t);
|
|
6
6
|
}
|
|
7
|
-
import { a as t, i as a, n as s, r as e, t as l } from "./src-
|
|
7
|
+
import { a as t, i as a, n as s, r as e, t as l } from "./src-CLej0F_-.js";
|
|
8
8
|
export { install, setSystemTimeZoneIdCacheTtl };
|