@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 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
 
@@ -79,6 +79,7 @@ export class Timestamp {
79
79
  return `${datePart}Z`;
80
80
  }
81
81
  case TimeUnit.Millis:
82
+ return isoDateTime;
82
83
  default:
83
84
  return isoDateTime;
84
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@williamthorsen/toolbelt.datetime",
3
- "version": "4.0.2",
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.0"
47
+ "@williamthorsen/toolbelt.numbers": "7.0.1"
48
48
  },
49
49
  "engines": {
50
50
  "node": ">=24.0.0"