temporal-polyfill-lite 0.3.6 → 0.4.1
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 +17 -0
- package/README.md +10 -0
- package/dist/calendars/index.js +1 -1
- package/dist/calendars/shim.js +1 -1
- package/dist/calendars/{src-B3jme83H.js → src-CIbGWA87.js} +940 -981
- package/dist/index.js +1 -1
- package/dist/shim.js +1 -1
- package/dist/{src-Kt6fkCUU.js → src-Cpu9wF28.js} +800 -835
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,23 @@ 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.4.1 (2026-06-21)
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Reduce bundle size a bit
|
|
13
|
+
|
|
14
|
+
## 0.4.0 (2026-05-25)
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- **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))
|
|
19
|
+
- Improve error messages ([#36](https://github.com/fabon-f/temporal-polyfill-lite/pull/36))
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- Remove extra observable `[[GetOwnProperty]]` calls in `Intl.DateTimeFormat` constructor ([#33](https://github.com/fabon-f/temporal-polyfill-lite/pull/33))
|
|
24
|
+
|
|
8
25
|
## 0.3.6 (2026-05-07)
|
|
9
26
|
|
|
10
27
|
### Fixed
|
package/README.md
CHANGED
|
@@ -40,6 +40,16 @@ import "temporal-polyfill-lite/calendars-full/global";
|
|
|
40
40
|
import { install } from "temporal-polyfill-lite/calendars-full/shim";
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
`Temporal.Now.timeZoneId` is very slow in the polyfill because there is no efficient way to get the system time zone (except native `Temporal.Now.timeZoneId`). `temporal-polyfill-lite` has an opt-in cache mechanism for this.
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
import { setSystemTimeZoneIdCacheTtl } from "temporal-polyfill-lite/shim";
|
|
47
|
+
// or use "temporal-polyfill-lite/calendars-full/shim" entrypoint if you use the "full" bundle
|
|
48
|
+
|
|
49
|
+
setSystemTimeZoneIdCacheTtl(1000);
|
|
50
|
+
// The result of `Temporal.Now.timeZoneId()` will be cached for a second
|
|
51
|
+
```
|
|
52
|
+
|
|
43
53
|
## Browser support
|
|
44
54
|
|
|
45
55
|
The polyfill works in browsers after September 2020 by default (e.g. Safari 14).
|
package/dist/calendars/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as a, r as s, t as r } from "./src-
|
|
1
|
+
import { i as a, r as s, t as r } from "./src-CIbGWA87.js";
|
|
2
2
|
export { s as Intl, r as Temporal, a as toTemporalInstant };
|
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-CIbGWA87.js";
|
|
8
8
|
export { install, setSystemTimeZoneIdCacheTtl };
|