date-and-time 2.4.0 → 2.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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +8 -17
package/README.md CHANGED
@@ -24,6 +24,9 @@ npm i date-and-time
24
24
 
25
25
  ## Recent Changes
26
26
 
27
+ - 2.4.1
28
+ - Fixed the previous Jest support.
29
+
27
30
  - 2.4.0
28
31
  - Support for testing in Jest.
29
32
 
@@ -34,9 +37,6 @@ npm i date-and-time
34
37
  - TypeScript support.
35
38
  - Fixed an issue where `parseTZ()` in timezone plugin could return `NaN` instead of `Invalid Date` if parsing failed.
36
39
 
37
- - 2.2.1
38
- - Fixed an issue where `parse()` would treat a date and time string containing a UTC time zone (i.e. +0000) as a local time zone when parsing.
39
-
40
40
  ## Usage
41
41
 
42
42
  - ES Modules:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "date-and-time",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "A Minimalist DateTime utility for Node.js and the browser",
5
5
  "main": "date-and-time.js",
6
6
  "module": "esm/date-and-time.es.js",
@@ -8,28 +8,19 @@
8
8
  "unpkg": "date-and-time.min.js",
9
9
  "exports": {
10
10
  ".": {
11
- "browser": {
12
- "import": "./esm/date-and-time.es.js",
13
- "require": "./date-and-time.js"
14
- },
15
11
  "import": "./esm/date-and-time.mjs",
16
- "require": "./date-and-time.js"
12
+ "require": "./date-and-time.js",
13
+ "browser": "./esm/date-and-time.es.js"
17
14
  },
18
15
  "./locale/*": {
19
- "browser": {
20
- "import": "./esm/locale/*.es.js",
21
- "require": "./locale/*.js"
22
- },
23
16
  "import": "./esm/locale/*.mjs",
24
- "require": "./locale/*.js"
17
+ "require": "./locale/*.js",
18
+ "browser": "./esm/locale/*.es.js"
25
19
  },
26
20
  "./plugin/*": {
27
- "browser": {
28
- "import": "./esm/plugin/*.es.js",
29
- "require": "./plugin/*.js"
30
- },
31
21
  "import": "./esm/plugin/*.mjs",
32
- "require": "./plugin/*.js"
22
+ "require": "./plugin/*.js",
23
+ "browser": "./esm/plugin/*.es.js"
33
24
  }
34
25
  },
35
26
  "scripts": {
@@ -59,7 +50,7 @@
59
50
  "expect.js": "^0.3.1",
60
51
  "mocha": "^10.0.0",
61
52
  "mocha-headless-chrome": "^4.0.0",
62
- "rollup": "^2.75.7",
53
+ "rollup": "^2.77.0",
63
54
  "tsd": "^0.21.0"
64
55
  }
65
56
  }