temporal-polyfill-lite 0.4.2 → 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 CHANGED
@@ -5,117 +5,134 @@ 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
+
19
+ ## 0.4.3 (2026-09-02)
20
+
21
+ ### Fixed
22
+
23
+ - Correctly handle time zone aliases in `Temporal.ZonedDateTime.prototype.equals` on JavaScriptCore-based environments (such as Safari and Bun), provided that a native `Temporal` implementation is available ([#43](https://github.com/fabon-f/temporal-polyfill-lite/pull/43)).
24
+
8
25
  ## 0.4.2 (2026-06-29)
9
26
 
10
27
  ### Changed
11
28
 
12
- - Keep the original input in the error message for duration parsing. The input string was accidentally converted to lower case in the message before. ([#39](https://github.com/fabon-f/temporal-polyfill-lite/pull/39))
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)).
13
30
 
14
31
  ### Fixed
15
32
 
16
- - 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)).
17
34
 
18
35
  ## 0.4.1 (2026-06-21)
19
36
 
20
37
  ### Changed
21
38
 
22
- - Reduce bundle size a bit
39
+ - Slightly reduce bundle size.
23
40
 
24
41
  ## 0.4.0 (2026-05-25)
25
42
 
26
43
  ### Changed
27
44
 
28
- - **BREAKING**: Reflect normative changes approved in the TC39 meeting of May 2026 ([#34](https://github.com/fabon-f/temporal-polyfill-lite/pull/34), [#35](https://github.com/fabon-f/temporal-polyfill-lite/pull/35))
29
- - 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)).
30
47
 
31
48
  ### Fixed
32
49
 
33
- - 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)).
34
51
 
35
52
  ## 0.3.6 (2026-05-07)
36
53
 
37
54
  ### Fixed
38
55
 
39
- - Stop implement `formatRange` and `formatRangeToParts` methods to `Intl.DateTimeFormat` on legacy browsers without support for these methods, which makes feature detection of range formatting methods work correctly ([#32](https://github.com/fabon-f/temporal-polyfill-lite/pull/32))
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)).
40
57
 
41
58
  ## 0.3.5 (2026-04-20)
42
59
 
43
60
  ### Fixed
44
61
 
45
- - Fix wrong order of observable operations for options object in `Intl.DateTimeFormat` constructor ([#28](https://github.com/fabon-f/temporal-polyfill-lite/pull/28))
46
- - Fix types of `Intl` when the polyfill is used as a ponyfill ([#29](https://github.com/fabon-f/temporal-polyfill-lite/pull/29))
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)).
47
64
 
48
65
  ## 0.3.4 (2026-04-14)
49
66
 
50
67
  ### Fixed
51
68
 
52
- - Fix discrepancy of date time format between timestamp and Temporal objects in `Intl.DateTimeFormat` ([#27](https://github.com/fabon-f/temporal-polyfill-lite/pull/27))
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)).
53
70
 
54
71
  ## 0.3.3 (2026-03-21)
55
72
 
56
73
  ### Added
57
74
 
58
- - 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)).
59
76
 
60
77
  ### Fixed
61
78
 
62
- - 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)).
63
80
 
64
81
  ## 0.3.2 (2026-03-12)
65
82
 
66
83
  ### Changed
67
84
 
68
- - Implement out-of-bounds check in `Temporal.PlainMonthDay` construction for non-ISO calendars ([#21](https://github.com/fabon-f/temporal-polyfill-lite/pull/21))
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)).
69
86
 
70
87
  ### Fixed
71
88
 
72
- - 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)).
73
90
 
74
91
  ## 0.3.1 (2026-03-07)
75
92
 
76
93
  ### Fixed
77
94
 
78
- - Fix incorrect `sideEffects` package settings which causes a bundle issue ([#19](https://github.com/fabon-f/temporal-polyfill-lite/pull/19))
95
+ - Fix incorrect `sideEffects` package setting that caused bundling issues ([#19](https://github.com/fabon-f/temporal-polyfill-lite/pull/19)).
79
96
 
80
97
  ## 0.3.0 (2026-03-07)
81
98
 
82
99
  ### Added
83
100
 
84
- - 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)).
85
102
 
86
103
  ### Changed
87
104
 
88
- - **BREAKING**: Make a type definition compatible with TypeScript 6.0, stop importing types to the global namespace when importing `temporal-polyfill-lite/global` ([#17](https://github.com/fabon-f/temporal-polyfill-lite/pull/17))
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)).
89
106
 
90
107
  ## 0.2.3 (2026-03-04)
91
108
 
92
109
  ### Fixed
93
110
 
94
- - 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)).
95
112
 
96
113
  ## 0.2.2 (2026-02-09)
97
114
 
98
115
  ### Fixed
99
116
 
100
- - Fix the bug caused by improper minification which makes `new Intl.DateTimeFormat()` throw `TypeError` ([#5](https://github.com/fabon-f/temporal-polyfill-lite/pull/5))
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)).
101
118
 
102
119
  ## 0.2.1 (2026-02-06)
103
120
 
104
121
  ### Changed
105
122
 
106
- - 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))
107
- - 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)).
108
125
 
109
126
  ### Fixed
110
127
 
111
- - Stop display fractional seconds for date classes in `Intl.DateTimeFormat` ([#2](https://github.com/fabon-f/temporal-polyfill-lite/pull/2))
128
+ - Stop displaying fractional seconds for date classes in `Intl.DateTimeFormat` ([#2](https://github.com/fabon-f/temporal-polyfill-lite/pull/2)).
112
129
 
113
130
  ## 0.2.0 (2026-01-30)
114
131
 
115
132
  ### Changed
116
133
 
117
- - **BREAKING**: Reflect a normative change which disallows adding weeks, days, and time units to `PlainYearMonth` ([#1](https://github.com/fabon-f/temporal-polyfill-lite/pull/1))
118
- - Stop mangling of function names in the production build for better stack traces ([14a367e](https://github.com/fabon-f/temporal-polyfill-lite/commit/14a367e7392b06324bf1844316be4a0b43e6a531))
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)).
119
136
 
120
137
  ## 0.1.0 (2026-01-25)
121
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";
@@ -1,2 +1,2 @@
1
1
  import { install as s } from "./shim.js";
2
- s(!0);
2
+ s(!1);
@@ -1,2 +1 @@
1
- import { i as a, r as s, t as r } from "./src-Bu0ZLzZY.js";
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";
@@ -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-Bu0ZLzZY.js";
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 };