@formatjs/intl-datetimeformat 6.18.0 → 6.18.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.
Files changed (2) hide show
  1. package/package.json +10 -10
  2. package/polyfill.iife.js +8 -2
package/package.json CHANGED
@@ -1,21 +1,19 @@
1
1
  {
2
2
  "name": "@formatjs/intl-datetimeformat",
3
3
  "description": "Intl.DateTimeFormat polyfill",
4
- "version": "6.18.0",
5
- "license": "MIT",
4
+ "version": "6.18.1",
6
5
  "author": "Long Ho <holevietlong@gmail.com>",
7
- "types": "index.d.ts",
6
+ "bugs": "https://github.com/formatjs/formatjs/issues",
8
7
  "dependencies": {
8
+ "@formatjs/ecma402-abstract": "2.3.5",
9
+ "@formatjs/intl-localematcher": "0.6.2",
9
10
  "decimal.js": "^10.4.3",
10
- "tslib": "^2.8.0",
11
- "@formatjs/ecma402-abstract": "2.3.4",
12
- "@formatjs/intl-localematcher": "0.6.1"
11
+ "tslib": "^2.8.0"
13
12
  },
14
13
  "devDependencies": {
15
- "@formatjs/intl-locale": "4.2.11",
16
- "@formatjs/intl-getcanonicallocales": "2.5.5"
14
+ "@formatjs/intl-getcanonicallocales": "2.5.6",
15
+ "@formatjs/intl-locale": "4.2.12"
17
16
  },
18
- "bugs": "https://github.com/formatjs/formatjs/issues",
19
17
  "homepage": "https://github.com/formatjs/formatjs#readme",
20
18
  "keywords": [
21
19
  "datetimeformat",
@@ -24,6 +22,8 @@
24
22
  "intl",
25
23
  "polyfill"
26
24
  ],
25
+ "license": "MIT",
27
26
  "main": "index.js",
28
- "repository": "formatjs/formatjs.git"
27
+ "repository": "formatjs/formatjs.git",
28
+ "types": "index.d.ts"
29
29
  }
package/polyfill.iife.js CHANGED
@@ -52,7 +52,7 @@
52
52
  return ianaTimeZone;
53
53
  }
54
54
 
55
- // node_modules/.aspect_rules_js/decimal.js@10.5.0/node_modules/decimal.js/decimal.mjs
55
+ // node_modules/.aspect_rules_js/decimal.js@10.6.0/node_modules/decimal.js/decimal.mjs
56
56
  var EXP_LIMIT = 9e15;
57
57
  var MAX_DIGITS = 1e9;
58
58
  var NUMERALS = "0123456789abcdef";
@@ -2678,6 +2678,12 @@
2678
2678
  return mod2(Day(t) + 4, 7);
2679
2679
  }
2680
2680
  function DayFromYear(y) {
2681
+ if (y < 100) {
2682
+ var date = /* @__PURE__ */ new Date(0);
2683
+ date.setUTCFullYear(y, 0, 1);
2684
+ date.setUTCHours(0, 0, 0, 0);
2685
+ return date.getTime() / MS_PER_DAY;
2686
+ }
2681
2687
  return Date.UTC(y, 0) / MS_PER_DAY;
2682
2688
  }
2683
2689
  function YearFromTime(t) {
@@ -9355,7 +9361,7 @@
9355
9361
 
9356
9362
  decimal.js/decimal.mjs:
9357
9363
  (*!
9358
- * decimal.js v10.5.0
9364
+ * decimal.js v10.6.0
9359
9365
  * An arbitrary-precision Decimal type for JavaScript.
9360
9366
  * https://github.com/MikeMcl/decimal.js
9361
9367
  * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>