@thi.ng/date 2.5.2 → 2.5.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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-11-09T10:28:18Z
3
+ - **Last updated**: 2023-11-24T09:35:46Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/date",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "Datetime types, relative dates, math, iterators, composable formatters, locales",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -33,17 +33,17 @@
33
33
  "test": "bun test"
34
34
  },
35
35
  "dependencies": {
36
- "@thi.ng/api": "^8.9.8",
37
- "@thi.ng/checks": "^3.4.8",
38
- "@thi.ng/strings": "^3.6.6"
36
+ "@thi.ng/api": "^8.9.9",
37
+ "@thi.ng/checks": "^3.4.9",
38
+ "@thi.ng/strings": "^3.7.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@microsoft/api-extractor": "^7.38.2",
42
- "@thi.ng/testament": "^0.4.1",
41
+ "@microsoft/api-extractor": "^7.38.3",
42
+ "@thi.ng/testament": "^0.4.2",
43
43
  "rimraf": "^5.0.5",
44
44
  "tools": "^0.0.1",
45
45
  "typedoc": "^0.25.3",
46
- "typescript": "^5.2.2"
46
+ "typescript": "^5.3.2"
47
47
  },
48
48
  "keywords": [
49
49
  "datastructure",
@@ -131,5 +131,5 @@
131
131
  "thi.ng": {
132
132
  "year": 2020
133
133
  },
134
- "gitHead": "669a3151e4302480244fe3e60eff5e732ea5b7a7\n"
134
+ "gitHead": "f6de41f4991704fdbbb2899bb430ed4f4f6efab0\n"
135
135
  }
package/relative.js CHANGED
@@ -147,9 +147,9 @@ export const decomposeDifference = (a, b = new Date()) => {
147
147
  abs -= hour;
148
148
  const parts = [
149
149
  Math.sign(dur),
150
- 0,
151
- 0,
152
- 0,
150
+ 0, // year
151
+ 0, // month
152
+ 0, // day
153
153
  hour / HOUR,
154
154
  min / MINUTE,
155
155
  sec / SECOND,