@trackunit/date-and-time-utils 1.11.91 → 1.11.94

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/index.cjs.js CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- require('@formatjs/intl-durationformat/polyfill');
4
- var intlEnumerator = require('@formatjs/intl-enumerator');
5
3
  var polyfill = require('@js-temporal/polyfill');
6
4
 
7
5
  /**
@@ -33,9 +31,7 @@ const getTimeZoneOffset = (timeZone) => {
33
31
  *
34
32
  * @returns {string[]}
35
33
  */
36
- const timeZonesAvailable = !intlEnumerator.shouldPolyfill()
37
- ? Intl.supportedValuesOf("timeZone")
38
- : intlEnumerator.supportedValuesOf("timeZone");
34
+ const timeZonesAvailable = Intl.supportedValuesOf("timeZone");
39
35
  const LOCALES_WITH_23h_CYCLE = ["da", "de", "jp"];
40
36
  const DEFAULT_HOUR_CYCLE = "h12";
41
37
  /**
package/index.esm.js CHANGED
@@ -1,5 +1,3 @@
1
- import '@formatjs/intl-durationformat/polyfill';
2
- import { shouldPolyfill, supportedValuesOf } from '@formatjs/intl-enumerator';
3
1
  import { Temporal } from '@js-temporal/polyfill';
4
2
  export { Temporal } from '@js-temporal/polyfill';
5
3
 
@@ -32,9 +30,7 @@ const getTimeZoneOffset = (timeZone) => {
32
30
  *
33
31
  * @returns {string[]}
34
32
  */
35
- const timeZonesAvailable = !shouldPolyfill()
36
- ? Intl.supportedValuesOf("timeZone")
37
- : supportedValuesOf("timeZone");
33
+ const timeZonesAvailable = Intl.supportedValuesOf("timeZone");
38
34
  const LOCALES_WITH_23h_CYCLE = ["da", "de", "jp"];
39
35
  const DEFAULT_HOUR_CYCLE = "h12";
40
36
  /**
package/package.json CHANGED
@@ -1,14 +1,12 @@
1
1
  {
2
2
  "name": "@trackunit/date-and-time-utils",
3
- "version": "1.11.91",
3
+ "version": "1.11.94",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
7
7
  "node": ">=24.x"
8
8
  },
9
9
  "dependencies": {
10
- "@formatjs/intl-durationformat": "^0.6.1",
11
- "@formatjs/intl-enumerator": "^1.8.11",
12
10
  "@js-temporal/polyfill": "^0.5.1"
13
11
  },
14
12
  "module": "./index.esm.js",
@@ -1,4 +1,3 @@
1
- import "@formatjs/intl-durationformat/polyfill";
2
1
  import { Temporal } from "./temporal";
3
2
  export type TemporalTimeUnit = Temporal.TimeUnit;
4
3
  export type TemporalDate = Temporal.Instant | Temporal.ZonedDateTime | Date;