temporal-polyfill-lite 0.3.1 → 0.3.3
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 +20 -0
- package/dist/calendars/index.js +2 -2
- package/dist/calendars/shim.d.ts +5 -0
- package/dist/calendars/shim.js +6 -6
- package/dist/calendars/src-m77GJsdB.js +3471 -0
- package/dist/index.js +2 -2
- package/dist/shim.d.ts +5 -0
- package/dist/shim.js +6 -6
- package/dist/src-CfkGat92.js +2876 -0
- package/package.json +1 -1
- package/dist/calendars/src-CmT13QxP.js +0 -4938
- package/dist/src-CvhHR31X.js +0 -4092
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,26 @@ 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
|
+
## 0.3.3 (2026-03-21)
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Introduce opt-in cache for system time zone ID ([#22](https://github.com/fabon-f/temporal-polyfill-lite/pull/22))
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Fix bugs related to extreme dates in `persian` calendar ([#23](https://github.com/fabon-f/temporal-polyfill-lite/pull/23))
|
|
17
|
+
|
|
18
|
+
## 0.3.2 (2026-03-12)
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Implement out-of-bounds check in `Temporal.PlainMonthDay` construction for non-ISO calendars ([#21](https://github.com/fabon-f/temporal-polyfill-lite/pull/21))
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- Fix a bug caused by extreme `year` field during `Temporal.PlainMonthDay` construction ([#20](https://github.com/fabon-f/temporal-polyfill-lite/pull/20))
|
|
27
|
+
|
|
8
28
|
## 0.3.1 (2026-03-07)
|
|
9
29
|
|
|
10
30
|
### Fixed
|
package/dist/calendars/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { i as a, r as s, t as r } from "./src-m77GJsdB.js";
|
|
2
|
+
export { s as Intl, r as Temporal, a as toTemporalInstant };
|
package/dist/calendars/shim.d.ts
CHANGED
|
@@ -3,3 +3,8 @@
|
|
|
3
3
|
* @param overwrite Whether to overwrite an existing Temporal implementation
|
|
4
4
|
*/
|
|
5
5
|
export declare function install(overwrite: boolean): void;
|
|
6
|
+
/**
|
|
7
|
+
* Set TTL for `Temporal.Now.timeZoneId` cache (`Infinity` means no expiration). Pass `0` to clear and disable cache again.
|
|
8
|
+
* @param ttl TTL in milliseconds
|
|
9
|
+
*/
|
|
10
|
+
export declare function setSystemTimeZoneIdCacheTtl(ttl: number): void;
|
package/dist/calendars/shim.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
function install(s) {
|
|
2
|
-
|
|
3
|
-
(a(globalThis, "Temporal", o),
|
|
4
|
-
a(globalThis, "Intl", l),
|
|
5
|
-
a(Date.prototype, "toTemporalInstant", t));
|
|
2
|
+
(s || "object" != typeof globalThis.Temporal) && (t(globalThis, "Temporal", l), t(globalThis, "Intl", e), t(Date.prototype, "toTemporalInstant", a));
|
|
6
3
|
}
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
function setSystemTimeZoneIdCacheTtl(t) {
|
|
5
|
+
s(t);
|
|
6
|
+
}
|
|
7
|
+
import { a as t, i as a, n as s, r as e, t as l } from "./src-m77GJsdB.js";
|
|
8
|
+
export { install, setSystemTimeZoneIdCacheTtl };
|