temporal-polyfill-lite 0.4.0 → 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 CHANGED
@@ -5,6 +5,12 @@ 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
+
8
14
  ## 0.4.0 (2026-05-25)
9
15
 
10
16
  ### Changed
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).
@@ -1,2 +1,2 @@
1
- import { i as a, r as s, t as r } from "./src-BuTL4TvD.js";
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 };
@@ -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-BuTL4TvD.js";
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 };