date-and-time 2.3.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.
- package/README.md +9 -7
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -24,17 +24,19 @@ npm i date-and-time
|
|
|
24
24
|
|
|
25
25
|
## Recent Changes
|
|
26
26
|
|
|
27
|
+
- 2.4.1
|
|
28
|
+
- Fixed the previous Jest support.
|
|
29
|
+
|
|
30
|
+
- 2.4.0
|
|
31
|
+
- Support for testing in Jest.
|
|
32
|
+
|
|
33
|
+
- 2.3.1
|
|
34
|
+
- Updated dev dependencies to resolve vulnerabilities.
|
|
35
|
+
|
|
27
36
|
- 2.3.0
|
|
28
37
|
- TypeScript support.
|
|
29
38
|
- Fixed an issue where `parseTZ()` in timezone plugin could return `NaN` instead of `Invalid Date` if parsing failed.
|
|
30
39
|
|
|
31
|
-
- 2.2.1
|
|
32
|
-
- 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.
|
|
33
|
-
|
|
34
|
-
- 2.2.0
|
|
35
|
-
- Added `tranformTZ()` to `timezone` plugin. See [PLUGINS.md](./PLUGINS.md) for details.
|
|
36
|
-
- Added `ZZ` token to support time zone values with colon like `-08:00` `+09:00` to `format()` and `parse()`.
|
|
37
|
-
|
|
38
40
|
## Usage
|
|
39
41
|
|
|
40
42
|
- ES Modules:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "date-and-time",
|
|
3
|
-
"version": "2.
|
|
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,19 +8,19 @@
|
|
|
8
8
|
"unpkg": "date-and-time.min.js",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"browser": "./esm/date-and-time.es.js",
|
|
12
11
|
"import": "./esm/date-and-time.mjs",
|
|
13
|
-
"require": "./date-and-time.js"
|
|
12
|
+
"require": "./date-and-time.js",
|
|
13
|
+
"browser": "./esm/date-and-time.es.js"
|
|
14
14
|
},
|
|
15
15
|
"./locale/*": {
|
|
16
|
-
"browser": "./esm/locale/*.es.js",
|
|
17
16
|
"import": "./esm/locale/*.mjs",
|
|
18
|
-
"require": "./locale/*.js"
|
|
17
|
+
"require": "./locale/*.js",
|
|
18
|
+
"browser": "./esm/locale/*.es.js"
|
|
19
19
|
},
|
|
20
20
|
"./plugin/*": {
|
|
21
|
-
"browser": "./esm/plugin/*.es.js",
|
|
22
21
|
"import": "./esm/plugin/*.mjs",
|
|
23
|
-
"require": "./plugin/*.js"
|
|
22
|
+
"require": "./plugin/*.js",
|
|
23
|
+
"browser": "./esm/plugin/*.es.js"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
|
|
50
50
|
"expect.js": "^0.3.1",
|
|
51
|
-
"mocha": "^
|
|
51
|
+
"mocha": "^10.0.0",
|
|
52
52
|
"mocha-headless-chrome": "^4.0.0",
|
|
53
|
-
"rollup": "^2.
|
|
54
|
-
"tsd": "^0.
|
|
53
|
+
"rollup": "^2.77.0",
|
|
54
|
+
"tsd": "^0.21.0"
|
|
55
55
|
}
|
|
56
56
|
}
|