date-and-time 3.0.2 → 3.0.3
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 +4 -4
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# date-and-time
|
|
2
2
|
|
|
3
|
-
[](https://circleci.com/gh/knowledgecode/date-and-time)
|
|
3
|
+
[](https://circleci.com/gh/knowledgecode/date-and-time)
|
|
4
4
|
|
|
5
5
|
This JS library is just a collection of functions for manipulating date and time. It's small, simple, and easy to learn.
|
|
6
6
|
|
|
@@ -25,6 +25,9 @@ npm i date-and-time
|
|
|
25
25
|
|
|
26
26
|
## Recent Changes
|
|
27
27
|
|
|
28
|
+
- 3.0.3
|
|
29
|
+
- Fixed TypeScript types exports in `package.json`.
|
|
30
|
+
|
|
28
31
|
- 3.0.2
|
|
29
32
|
- Dropped the use of the logical OR assignment operator to support older environments.
|
|
30
33
|
|
|
@@ -32,9 +35,6 @@ npm i date-and-time
|
|
|
32
35
|
- Fixed calculation of last day of month in `addYears()` and `addMonths()`.
|
|
33
36
|
- Fixed lint errors.
|
|
34
37
|
|
|
35
|
-
- 3.0.0
|
|
36
|
-
- **Breaking Changes!** Added `utc` option to the 3rd parameter of `addYears()`, `addMonths()`, `addDays()`, `addHours()`, `addMinutes()`, `addSeconds()` and `addMilliseconds()`. If you use these functions in timezones with daylight savings time, you may get different results depending on the 3rd parameter.
|
|
37
|
-
|
|
38
38
|
## Usage
|
|
39
39
|
|
|
40
40
|
- ES Modules:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "date-and-time",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
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,16 +8,19 @@
|
|
|
8
8
|
"unpkg": "date-and-time.min.js",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
+
"types": "./date-and-time.d.ts",
|
|
11
12
|
"import": "./esm/date-and-time.mjs",
|
|
12
13
|
"require": "./date-and-time.js",
|
|
13
14
|
"browser": "./esm/date-and-time.es.js"
|
|
14
15
|
},
|
|
15
16
|
"./locale/*": {
|
|
17
|
+
"types": "./locale/*.d.ts",
|
|
16
18
|
"import": "./esm/locale/*.mjs",
|
|
17
19
|
"require": "./locale/*.js",
|
|
18
20
|
"browser": "./esm/locale/*.es.js"
|
|
19
21
|
},
|
|
20
22
|
"./plugin/*": {
|
|
23
|
+
"types": "./plugin/*.d.ts",
|
|
21
24
|
"import": "./esm/plugin/*.mjs",
|
|
22
25
|
"require": "./plugin/*.js",
|
|
23
26
|
"browser": "./esm/plugin/*.es.js"
|
|
@@ -49,7 +52,7 @@
|
|
|
49
52
|
"@rollup/plugin-terser": "^0.4.3",
|
|
50
53
|
"expect.js": "^0.3.1",
|
|
51
54
|
"mocha": "^10.2.0",
|
|
52
|
-
"rollup": "^3.
|
|
53
|
-
"tsd": "^0.
|
|
55
|
+
"rollup": "^3.29.2",
|
|
56
|
+
"tsd": "^0.29.0"
|
|
54
57
|
}
|
|
55
58
|
}
|