@thi.ng/date 2.3.17 → 2.3.19

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**: 2022-11-30T22:27:37Z
3
+ - **Last updated**: 2022-12-20T16:33:11Z
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/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
 
3
- # ![date](https://media.thi.ng/umbrella/banners-20220914/thing-date.svg?954b4ac2)
3
+ # ![@thi.ng/date](https://media.thi.ng/umbrella/banners-20220914/thing-date.svg?954b4ac2)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/date.svg)](https://www.npmjs.com/package/@thi.ng/date)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/date.svg)
7
- [![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella)
7
+ [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  This project is part of the
10
10
  [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
@@ -29,7 +29,7 @@ This project is part of the
29
29
 
30
30
  ## About
31
31
 
32
- Datetime types, relative dates, math, iterators, composable formatters, locales.
32
+ Datetime types, relative dates, math, iterators, composable formatters, locales
33
33
 
34
34
  ## Status
35
35
 
@@ -53,11 +53,8 @@ ES module import:
53
53
 
54
54
  For Node.js REPL:
55
55
 
56
- ```text
57
- # with flag only for < v16
58
- node --experimental-repl-await
59
-
60
- > const date = await import("@thi.ng/date");
56
+ ```js
57
+ const date = await import("@thi.ng/date");
61
58
  ```
62
59
 
63
60
  Package sizes (brotli'd, pre-treeshake): ESM: 5.07 KB
@@ -437,7 +434,7 @@ fmt(dateTime());
437
434
 
438
435
  ## Authors
439
436
 
440
- Karsten Schmidt
437
+ - [Karsten Schmidt](https://thi.ng)
441
438
 
442
439
  If this project contributes to an academic publication, please cite it as:
443
440
 
@@ -452,4 +449,4 @@ If this project contributes to an academic publication, please cite it as:
452
449
 
453
450
  ## License
454
451
 
455
- &copy; 2020 - 2022 Karsten Schmidt // Apache Software License 2.0
452
+ &copy; 2020 - 2022 Karsten Schmidt // Apache License 2.0
package/api.d.ts CHANGED
@@ -136,7 +136,7 @@ export interface LocaleUnit {
136
136
  * A partially optional version of {@link Locale}, for use with
137
137
  * {@link setLocale}.
138
138
  */
139
- export declare type LocaleSpec = Pick<Locale, "months" | "days"> & Partial<Omit<Locale, "months" | "days">>;
139
+ export type LocaleSpec = Pick<Locale, "months" | "days"> & Partial<Omit<Locale, "months" | "days">>;
140
140
  export interface IEpoch {
141
141
  getTime(): number;
142
142
  }
@@ -144,7 +144,7 @@ export interface EpochIteratorConstructor {
144
144
  ([from, to]: MaybeDate[]): EpochIterator;
145
145
  (from: MaybeDate, to: MaybeDate): EpochIterator;
146
146
  }
147
- export declare type EpochIterator = IterableIterator<number>;
147
+ export type EpochIterator = IterableIterator<number>;
148
148
  /**
149
149
  * DateTime precision/resolution IDs:
150
150
  *
@@ -156,12 +156,12 @@ export declare type EpochIterator = IterableIterator<number>;
156
156
  * - s : second
157
157
  * - t : millisecond
158
158
  */
159
- export declare type Precision = "y" | "M" | "d" | "h" | "m" | "s" | "t";
160
- export declare type Period = Precision | "w" | "q";
161
- export declare type FormatFn = Fn2<Date, boolean, string>;
162
- export declare type MaybeDate = DateTime | Date | number | string;
159
+ export type Precision = "y" | "M" | "d" | "h" | "m" | "s" | "t";
160
+ export type Period = Precision | "w" | "q";
161
+ export type FormatFn = Fn2<Date, boolean, string>;
162
+ export type MaybeDate = DateTime | Date | number | string;
163
163
  /**
164
164
  * Date rounding function for {@link MaybeDate} inputs.
165
165
  */
166
- export declare type RoundingFn = Fn<MaybeDate, number>;
166
+ export type RoundingFn = Fn<MaybeDate, number>;
167
167
  //# sourceMappingURL=api.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/date",
3
- "version": "2.3.17",
3
+ "version": "2.3.19",
4
4
  "description": "Datetime types, relative dates, math, iterators, composable formatters, locales",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/thi-ng/umbrella.git"
12
12
  },
13
- "homepage": "https://github.com/thi-ng/umbrella/tree/master/packages/date#readme",
13
+ "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/date#readme",
14
14
  "funding": [
15
15
  {
16
16
  "type": "github",
@@ -21,11 +21,11 @@
21
21
  "url": "https://patreon.com/thing_umbrella"
22
22
  }
23
23
  ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
24
+ "author": "Karsten Schmidt (https://thi.ng)",
25
25
  "license": "Apache-2.0",
26
26
  "scripts": {
27
27
  "build": "yarn clean && tsc --declaration",
28
- "clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
28
+ "clean": "rimraf '*.js' '*.d.ts' '*.map' doc internal i18n",
29
29
  "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
30
  "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
31
31
  "doc:readme": "yarn doc:stats && tools:readme",
@@ -34,17 +34,17 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.5.1",
38
- "@thi.ng/checks": "^3.3.4",
39
- "@thi.ng/strings": "^3.3.19"
37
+ "@thi.ng/api": "^8.6.1",
38
+ "@thi.ng/checks": "^3.3.5",
39
+ "@thi.ng/strings": "^3.3.21"
40
40
  },
41
41
  "devDependencies": {
42
- "@microsoft/api-extractor": "^7.33.5",
43
- "@thi.ng/testament": "^0.3.6",
42
+ "@microsoft/api-extractor": "^7.33.7",
43
+ "@thi.ng/testament": "^0.3.7",
44
44
  "rimraf": "^3.0.2",
45
45
  "tools": "^0.0.1",
46
- "typedoc": "^0.23.20",
47
- "typescript": "^4.8.4"
46
+ "typedoc": "^0.23.22",
47
+ "typescript": "^4.9.4"
48
48
  },
49
49
  "keywords": [
50
50
  "datastructure",
@@ -129,5 +129,5 @@
129
129
  "thi.ng": {
130
130
  "year": 2020
131
131
  },
132
- "gitHead": "1fe40da507070653f420156d91e6b27cf682004f\n"
132
+ "gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
133
133
  }
package/relative.d.ts CHANGED
@@ -60,7 +60,7 @@ export declare const difference: (a: MaybeDate, b: MaybeDate) => number;
60
60
  * Computes and decomposes difference between given dates. Returns tuple of:
61
61
  * `[sign, years, months, days, hours, mins, secs, millis]`. The `sign` is used
62
62
  * to indicate the relative order of `a` compared to `b`, i.e. same contract as
63
- * {@link @thi.ng/api#ICompare}.
63
+ * [`ICompare`](https://docs.thi.ng/umbrella/api/interfaces/ICompare.html).
64
64
  *
65
65
  * @param a -
66
66
  * @param b -
package/relative.js CHANGED
@@ -118,7 +118,7 @@ export const difference = (a, b) => ensureEpoch(a) - ensureEpoch(b);
118
118
  * Computes and decomposes difference between given dates. Returns tuple of:
119
119
  * `[sign, years, months, days, hours, mins, secs, millis]`. The `sign` is used
120
120
  * to indicate the relative order of `a` compared to `b`, i.e. same contract as
121
- * {@link @thi.ng/api#ICompare}.
121
+ * [`ICompare`](https://docs.thi.ng/umbrella/api/interfaces/ICompare.html).
122
122
  *
123
123
  * @param a -
124
124
  * @param b -