@williamthorsen/toolbelt.datetime 4.0.2 → 4.0.4
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/CHANGELOG.md +14 -0
- package/README.md +1 -11
- package/dist/esm/2-draft/Timestamp.js +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 4.0.4 — 2026-08-24
|
|
6
|
+
|
|
7
|
+
### Refactoring
|
|
8
|
+
|
|
9
|
+
- Clear the last lint warning and suppression (#223)
|
|
10
|
+
|
|
11
|
+
Removes the last `eslint-disable` directive from `@williamthorsen/toolbelt.datetime` and clears its one remaining lint warning.
|
|
12
|
+
|
|
13
|
+
## 4.0.3 — 2026-08-24
|
|
14
|
+
|
|
15
|
+
### Dependency updates
|
|
16
|
+
|
|
17
|
+
- Bumped `@williamthorsen/toolbelt.numbers` to 7.0.1
|
|
18
|
+
|
|
5
19
|
## 4.0.2 — 2026-08-21
|
|
6
20
|
|
|
7
21
|
### Bug fixes
|
package/README.md
CHANGED
|
@@ -2,17 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Date and time utilities.
|
|
4
4
|
|
|
5
|
-
<!-- section:release-notes -->
|
|
6
|
-
## Release notes — v4.0.2 (2026-08-21)
|
|
7
|
-
|
|
8
|
-
### Bug fixes
|
|
9
|
-
|
|
10
|
-
- Adopt `round` in `TimeUnit.convert` and repair its same-unit path (#192)
|
|
11
|
-
|
|
12
|
-
Fixes an issue where `TimeUnit.convert` ignored both `decimalPlaces` and `throwOnFractional` whenever the source and target units were the same, returning the amount untouched.
|
|
13
|
-
|
|
14
|
-
Separately, replaces the method's hand-rolled decimal rounding with `round` from `@williamthorsen/toolbelt.numbers/candidate`, which gives `datetime` its first runtime dependency.
|
|
15
|
-
<!-- /section:release-notes -->
|
|
5
|
+
<!-- section:release-notes --><!-- /section:release-notes -->
|
|
16
6
|
|
|
17
7
|
## Installation
|
|
18
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@williamthorsen/toolbelt.datetime",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "Date and time utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"date",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"CHANGELOG.md"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@williamthorsen/toolbelt.numbers": "7.0.
|
|
47
|
+
"@williamthorsen/toolbelt.numbers": "7.0.1"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=24.0.0"
|