@thi.ng/date 2.4.9 → 2.4.11

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-03-22T22:24:21Z
3
+ - **Last updated**: 2023-04-08T11:09:50Z
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.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [2.4.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@2.4.10) (2023-03-27)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update imports (TS5.0) ([9ad7746](https://github.com/thi-ng/umbrella/commit/9ad7746))
17
+
12
18
  ## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@2.4.0) (2022-12-29)
13
19
 
14
20
  #### 🚀 Features
package/datetime.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { ICompare, ICopy, IEqualsDelta, IEquiv } from "@thi.ng/api";
2
- import { MaybeDate, Period, Precision } from "./api.js";
2
+ import { type MaybeDate, type Period, type Precision } from "./api.js";
3
3
  export declare const dateTime: (epoch?: MaybeDate, prec?: Precision) => DateTime;
4
4
  /**
5
5
  * Epoch abstraction with adjustable coarseness/precision. All date fields in
package/format.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FormatFn, MaybeDate, Precision } from "./api.js";
1
+ import { type FormatFn, type MaybeDate, type Precision } from "./api.js";
2
2
  export declare const FORMATTERS: Record<string, FormatFn>;
3
3
  /**
4
4
  * Returns a new date formatter for given array of format strings (or
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/date",
3
- "version": "2.4.9",
3
+ "version": "2.4.11",
4
4
  "description": "Datetime types, relative dates, math, iterators, composable formatters, locales",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,17 +34,17 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.7.4",
38
- "@thi.ng/checks": "^3.3.10",
39
- "@thi.ng/strings": "^3.4.2"
37
+ "@thi.ng/api": "^8.7.6",
38
+ "@thi.ng/checks": "^3.3.12",
39
+ "@thi.ng/strings": "^3.4.4"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@microsoft/api-extractor": "^7.34.4",
43
- "@thi.ng/testament": "^0.3.13",
44
- "rimraf": "^4.4.0",
43
+ "@thi.ng/testament": "^0.3.15",
44
+ "rimraf": "^4.4.1",
45
45
  "tools": "^0.0.1",
46
- "typedoc": "^0.23.26",
47
- "typescript": "^4.9.5"
46
+ "typedoc": "^0.23.28",
47
+ "typescript": "^5.0.4"
48
48
  },
49
49
  "keywords": [
50
50
  "datastructure",
@@ -132,5 +132,5 @@
132
132
  "thi.ng": {
133
133
  "year": 2020
134
134
  },
135
- "gitHead": "5b3d731c0e192c53f65efb4baed97be0e4029a33\n"
135
+ "gitHead": "abcedd9e4e06a4b631f363610eec572f79b571c1\n"
136
136
  }
package/relative.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { MaybeDate, Period } from "./api.js";
2
- import { DateTime } from "./datetime.js";
1
+ import { type MaybeDate, type Period } from "./api.js";
2
+ import { type DateTime } from "./datetime.js";
3
3
  /**
4
4
  * Takes a relative time `offset` string in plain english and an optional `base`
5
5
  * date (default: now). Parses `offset` and returns new date with relative
package/relative.js CHANGED
@@ -1,4 +1,4 @@
1
- import { DAY, HOUR, MINUTE, SECOND } from "./api.js";
1
+ import { DAY, HOUR, MINUTE, SECOND, } from "./api.js";
2
2
  import { ensureEpoch } from "./checks.js";
3
3
  import { dateTime, ensureDateTime } from "./datetime.js";
4
4
  import { EN_LONG, EN_SHORT } from "./i18n/en.js";
package/round.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { RoundingFn } from "./api.js";
1
+ import { type RoundingFn } from "./api.js";
2
2
  /**
3
3
  * Rounds down `epoch` to minute precision.
4
4
  *