@thi.ng/date 2.0.8 → 2.1.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 +230 -48
- package/package.json +132 -127
package/CHANGELOG.md
CHANGED
|
@@ -1,65 +1,247 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## [2.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/date@2.0.7...@thi.ng/date@2.0.8) (2021-11-10)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @thi.ng/date
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [2.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/date@2.0.6...@thi.ng/date@2.0.7) (2021-11-03)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @thi.ng/date
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
- **Last updated**: 2021-11-21T17:09:28Z
|
|
4
|
+
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
19
5
|
|
|
6
|
+
All notable changes to this project will be documented in this file.
|
|
7
|
+
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
8
|
+
|
|
9
|
+
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
|
+
and/or version bumps of transitive dependencies.
|
|
11
|
+
|
|
12
|
+
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@2.1.0) (2021-11-17)
|
|
13
|
+
|
|
14
|
+
#### 🚀 Features
|
|
15
|
+
|
|
16
|
+
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
17
|
+
Improving the overall build ergonomics
|
|
18
|
+
- introduced a tools workspaces
|
|
19
|
+
- imported it in all needed packages/examples
|
|
20
|
+
- inclusive project root
|
|
21
|
+
|
|
22
|
+
#### ♻️ Refactoring
|
|
23
|
+
|
|
24
|
+
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
25
|
+
this commit reverts (partly) changes made in:
|
|
26
|
+
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
27
|
+
overall purpose is better testament ergonomics:
|
|
28
|
+
instead of having to pass NODE_OPTIONS with every invocation
|
|
29
|
+
having a binary to handle this for us.
|
|
30
|
+
|
|
31
|
+
### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@2.0.1) (2021-10-13)
|
|
32
|
+
|
|
33
|
+
#### ♻️ Refactoring
|
|
34
|
+
|
|
35
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
36
|
+
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
37
|
+
- add .js suffix for all relative imports
|
|
38
|
+
|
|
39
|
+
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@2.0.0) (2021-10-12)
|
|
40
|
+
|
|
41
|
+
#### 🛑 Breaking changes
|
|
42
|
+
|
|
43
|
+
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
44
|
+
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
45
|
+
- only ESM modules will be published from now on
|
|
46
|
+
- CJS obsolete due to ESM support in recent versions of node:
|
|
47
|
+
- i.e. launch NodeJS via:
|
|
48
|
+
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
49
|
+
- in the node REPL use `await import(...)` instead of `require()`
|
|
50
|
+
- UMD obsolete due to widespread browser support for ESM
|
|
51
|
+
Also:
|
|
52
|
+
- normalize/restructure/reorg all package.json files
|
|
53
|
+
- cleanup all build scripts, remove obsolete
|
|
54
|
+
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
55
|
+
|
|
56
|
+
#### ♻️ Refactoring
|
|
57
|
+
|
|
58
|
+
- rename internals ([8ee94b1](https://github.com/thi-ng/umbrella/commit/8ee94b1))
|
|
59
|
+
- restructure source files ([fcb3f3d](https://github.com/thi-ng/umbrella/commit/fcb3f3d))
|
|
60
|
+
- update imports ([6d4be5a](https://github.com/thi-ng/umbrella/commit/6d4be5a))
|
|
61
|
+
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
62
|
+
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
63
|
+
|
|
64
|
+
### [1.0.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@1.0.4) (2021-08-09)
|
|
65
|
+
|
|
66
|
+
#### 🩹 Bug fixes
|
|
67
|
+
|
|
68
|
+
- update i18n init, withLocale() err handling ([9f68bdf](https://github.com/thi-ng/umbrella/commit/9f68bdf))
|
|
69
|
+
- add internal/pure prepLocale() helper due to init issue in ESM env
|
|
70
|
+
- add error handling for withLocale()
|
|
71
|
+
|
|
72
|
+
## [0.9.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@0.9.0) (2021-08-04)
|
|
73
|
+
|
|
74
|
+
#### 🚀 Features
|
|
75
|
+
|
|
76
|
+
- add/update i18n functions, rel. format ([144a02d](https://github.com/thi-ng/umbrella/commit/144a02d))
|
|
77
|
+
- add weekdayNames(), monthNames()
|
|
78
|
+
- add units(), unitsLessThan(), tense()
|
|
79
|
+
- fix/update locales, add support for dativ forms (singular/plural)
|
|
80
|
+
- add doc strings
|
|
81
|
+
- add tests
|
|
82
|
+
|
|
83
|
+
## [0.8.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@0.8.0) (2021-07-27)
|
|
84
|
+
|
|
85
|
+
#### 🚀 Features
|
|
86
|
+
|
|
87
|
+
- update DateTime, iterators, rounding ([7c0652a](https://github.com/thi-ng/umbrella/commit/7c0652a))
|
|
88
|
+
- add DateTime quarter & week readonly props & inc/decQuarter/Week()
|
|
89
|
+
- update defIterator(), add quarters() and weeks() iterators
|
|
90
|
+
- add quarter/week rounding fns
|
|
91
|
+
- add quarter-based rounding fns ([24a7a76](https://github.com/thi-ng/umbrella/commit/24a7a76))
|
|
92
|
+
- add/update formatters ([56d9b64](https://github.com/thi-ng/umbrella/commit/56d9b64))
|
|
93
|
+
- add `q` (quarter) formatter
|
|
94
|
+
- add `SS` formatter for zero-padded millis
|
|
95
|
+
- update Locale, DateTime.add() ([f20c129](https://github.com/thi-ng/umbrella/commit/f20c129))
|
|
96
|
+
- add Locale.dateTime, update setLocale()
|
|
97
|
+
- add DateTime.toLocaleString()
|
|
98
|
+
- update DateTime.add() to accept all Period units
|
|
99
|
+
- simplify relative()
|
|
100
|
+
- fix/refactor formatters
|
|
101
|
+
- add withLocale() helper ([8c9493e](https://github.com/thi-ng/umbrella/commit/8c9493e))
|
|
102
|
+
- add relative date calc & formatting ([3100814](https://github.com/thi-ng/umbrella/commit/3100814))
|
|
103
|
+
- add formatRelative(), formatRelativeParts() (w/ locale support)
|
|
104
|
+
- add decomposeDifference()
|
|
105
|
+
- add support for quarters in parseRelative()
|
|
106
|
+
- update Locale & presets ([50d889d](https://github.com/thi-ng/umbrella/commit/50d889d))
|
|
107
|
+
- add/update formatters & presets ([3f3d8d0](https://github.com/thi-ng/umbrella/commit/3f3d8d0))
|
|
108
|
+
- add week-in-year formatters
|
|
109
|
+
- update defFormat() to accept MaybeDate arg
|
|
110
|
+
- migrate defTimecode() to sep file
|
|
111
|
+
- add decomposeDuration()
|
|
112
|
+
- major update DateTime methods, fixes ([9268573](https://github.com/thi-ng/umbrella/commit/9268573))
|
|
113
|
+
- add/extend types (MaybeDate, Period, RoundingFn)
|
|
114
|
+
- update various fns & methods to accept MaybeDate args
|
|
115
|
+
- update all rounding fns
|
|
116
|
+
- add/update/fix DateTime methods:
|
|
117
|
+
- set()
|
|
118
|
+
- copy()
|
|
119
|
+
- withPrecision() / setPrecision()
|
|
120
|
+
- isBefore() / isAfter()
|
|
121
|
+
- add()
|
|
122
|
+
- toISOString()
|
|
123
|
+
- valueOf()
|
|
124
|
+
- update return value for inc/decWeek() methods (week number)
|
|
125
|
+
- add ensureDateTime(), ensureEpoch()
|
|
126
|
+
- add maybeIsDate()
|
|
127
|
+
- add/update constants ([2b28839](https://github.com/thi-ng/umbrella/commit/2b28839))
|
|
128
|
+
|
|
129
|
+
#### 🩹 Bug fixes
|
|
130
|
+
|
|
131
|
+
- minor update EN_LONG locale ([a9dcd47](https://github.com/thi-ng/umbrella/commit/a9dcd47))
|
|
132
|
+
|
|
133
|
+
## [0.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@0.7.0) (2021-07-01)
|
|
134
|
+
|
|
135
|
+
#### 🚀 Features
|
|
136
|
+
|
|
137
|
+
- add/update epoch rounding fns ([ec3033e](https://github.com/thi-ng/umbrella/commit/ec3033e))
|
|
138
|
+
- add versions for second/minute/hour precisions
|
|
139
|
+
- add new DateTime methods ([a0123cb](https://github.com/thi-ng/umbrella/commit/a0123cb))
|
|
140
|
+
- add .dayInYear()
|
|
141
|
+
- add .weekInYear()
|
|
142
|
+
- extract isLeapYear(), daysInMonth() standalone fns
|
|
143
|
+
- add/update tests
|
|
144
|
+
- update/extend locales, format prims ([089a9d4](https://github.com/thi-ng/umbrella/commit/089a9d4))
|
|
145
|
+
- add LocaleSpec type, update setLocale()
|
|
146
|
+
- add new formatters for unpadded/lowercase/separators
|
|
147
|
+
- update all locale presets
|
|
148
|
+
- add/update locales, add separators ([61f34e7](https://github.com/thi-ng/umbrella/commit/61f34e7))
|
|
149
|
+
- add DE_SHORT/LONG, ES_LONG, FR_LONG, IT_LONG locales
|
|
150
|
+
- update `Locale` interface, add separators
|
|
151
|
+
- add `~`/`~~` formatters for referring to locale seperators
|
|
152
|
+
|
|
153
|
+
#### 🩹 Bug fixes
|
|
154
|
+
|
|
155
|
+
- flip sign in TZ offset formatter (`Z`) ([dc536cb](https://github.com/thi-ng/umbrella/commit/dc536cb))
|
|
156
|
+
- fix UTC handling in formatters ([cab1434](https://github.com/thi-ng/umbrella/commit/cab1434))
|
|
157
|
+
- update tests
|
|
158
|
+
|
|
159
|
+
#### ⏱ Performance improvements
|
|
160
|
+
|
|
161
|
+
- refactor dayInYear() as O(1) ([2c2d684](https://github.com/thi-ng/umbrella/commit/2c2d684))
|
|
162
|
+
- add DAYS_IN_MONTH_OFFSET index
|
|
163
|
+
- add tests
|
|
164
|
+
|
|
165
|
+
## [0.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@0.6.0) (2021-06-08)
|
|
166
|
+
|
|
167
|
+
#### 🚀 Features
|
|
168
|
+
|
|
169
|
+
- extend parseRelative() ([5764ff3](https://github.com/thi-ng/umbrella/commit/5764ff3))
|
|
170
|
+
- add support for weekday names
|
|
171
|
+
- add tests
|
|
172
|
+
|
|
173
|
+
## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@0.5.0) (2021-04-20)
|
|
174
|
+
|
|
175
|
+
#### 🚀 Features
|
|
176
|
+
|
|
177
|
+
- update relative date parsing ([2491668](https://github.com/thi-ng/umbrella/commit/2491668))
|
|
178
|
+
- add support for signed offset strings
|
|
179
|
+
- add/refactor tests
|
|
180
|
+
- update docs/readme
|
|
181
|
+
|
|
182
|
+
## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@0.4.0) (2021-03-21)
|
|
183
|
+
|
|
184
|
+
#### 🚀 Features
|
|
185
|
+
|
|
186
|
+
- add weeks() iterator ([7ea9d1e](https://github.com/thi-ng/umbrella/commit/7ea9d1e))
|
|
187
|
+
- add interface impls to DateTime ([e3417dd](https://github.com/thi-ng/umbrella/commit/e3417dd))
|
|
188
|
+
- add impls for: `ICompare`, `IEquiv`, `IEqualsDelta`
|
|
189
|
+
- update relative date handling ([80d406c](https://github.com/thi-ng/umbrella/commit/80d406c))
|
|
190
|
+
- add `Period` type alias
|
|
191
|
+
- update `parseRelative()`/`relative()` to support milliseconds
|
|
192
|
+
- refactor `parseRelative()` (split up)
|
|
193
|
+
- add tests
|
|
194
|
+
- add relative date offset parsing/apply ([5329538](https://github.com/thi-ng/umbrella/commit/5329538))
|
|
195
|
+
- add parseRelative()
|
|
196
|
+
- add relative()
|
|
197
|
+
- add date decrement methods ([a52b89e](https://github.com/thi-ng/umbrella/commit/a52b89e))
|
|
198
|
+
|
|
199
|
+
## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@0.3.0) (2021-03-21)
|
|
200
|
+
|
|
201
|
+
#### 🚀 Features
|
|
202
|
+
|
|
203
|
+
- add/update formatters ([010e739](https://github.com/thi-ng/umbrella/commit/010e739))
|
|
204
|
+
- add `FMT_ISO_SHORT` preset
|
|
205
|
+
- add `ZZ` partial timezone formatter
|
|
206
|
+
- update `defFormatI()` to support escaping
|
|
207
|
+
- add tests
|
|
20
208
|
|
|
209
|
+
### [0.2.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@0.2.3) (2020-12-07)
|
|
21
210
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Build System
|
|
26
|
-
|
|
27
|
-
* major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
### BREAKING CHANGES
|
|
31
|
-
|
|
32
|
-
* discontinue CommonJS & UMD versions
|
|
33
|
-
|
|
34
|
-
- only ESM modules will be published from now on
|
|
35
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
36
|
-
- i.e. launch NodeJS via:
|
|
37
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
38
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
39
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
40
|
-
|
|
41
|
-
Also:
|
|
42
|
-
- normalize/restructure/reorg all package.json files
|
|
43
|
-
- cleanup all build scripts, remove obsolete
|
|
44
|
-
- switch from mocha to @thi.ng/testament for all tests
|
|
45
|
-
|
|
211
|
+
#### ♻️ Refactoring
|
|
46
212
|
|
|
213
|
+
- update type-only imports ([4b1eb35](https://github.com/thi-ng/umbrella/commit/4b1eb35))
|
|
47
214
|
|
|
215
|
+
### [0.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@0.2.1) (2020-11-24)
|
|
48
216
|
|
|
217
|
+
#### 🩹 Bug fixes
|
|
49
218
|
|
|
219
|
+
- isLeapYear(), add centennial exceptions, tests ([7de0cd8](https://github.com/thi-ng/umbrella/commit/7de0cd8))
|
|
50
220
|
|
|
51
|
-
##
|
|
221
|
+
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@0.2.0) (2020-09-22)
|
|
52
222
|
|
|
53
|
-
|
|
223
|
+
#### 🚀 Features
|
|
54
224
|
|
|
55
|
-
-
|
|
225
|
+
- add iterator arg coercions, refactor, add docs ([1256201](https://github.com/thi-ng/umbrella/commit/1256201))
|
|
226
|
+
- add defTimecode() formatter ([42753e1](https://github.com/thi-ng/umbrella/commit/42753e1))
|
|
227
|
+
- add/update formatters, add locale ([c8e84ad](https://github.com/thi-ng/umbrella/commit/c8e84ad))
|
|
228
|
+
- add LOCALE, setLocale()
|
|
229
|
+
- add EN_SHORT, EN_LONG locales
|
|
230
|
+
- update MMM and E formatters to use locale
|
|
231
|
+
- update defFormat() to accept format fns in addition to strings
|
|
232
|
+
- update/rename preset formatters
|
|
233
|
+
- update/fix DateTime ([27c8617](https://github.com/thi-ng/umbrella/commit/27c8617))
|
|
234
|
+
- add date/string/json conversions
|
|
235
|
+
- add/fix leap year handling
|
|
236
|
+
- add dateTime() factory
|
|
237
|
+
- add DateTime, defIterator, add/update iterators ([0e31c69](https://github.com/thi-ng/umbrella/commit/0e31c69))
|
|
56
238
|
|
|
57
|
-
|
|
239
|
+
#### 🩹 Bug fixes
|
|
58
240
|
|
|
59
|
-
|
|
241
|
+
- update ceilMonth(), add docstrings ([0c6c2cc](https://github.com/thi-ng/umbrella/commit/0c6c2cc))
|
|
60
242
|
|
|
61
|
-
|
|
243
|
+
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@0.1.0) (2020-09-13)
|
|
62
244
|
|
|
63
|
-
|
|
245
|
+
#### 🚀 Features
|
|
64
246
|
|
|
65
|
-
|
|
247
|
+
- import as new pkg ([bfe457f](https://github.com/thi-ng/umbrella/commit/bfe457f))
|
package/package.json
CHANGED
|
@@ -1,128 +1,133 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
2
|
+
"name": "@thi.ng/date",
|
|
3
|
+
"version": "2.1.3",
|
|
4
|
+
"description": "Datetime types, relative dates, math, iterators, composable formatters, locales",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"typings": "./index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/thi-ng/umbrella/tree/master/packages/date#readme",
|
|
14
|
+
"funding": [
|
|
15
|
+
{
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "patreon",
|
|
21
|
+
"url": "https://patreon.com/thing_umbrella"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"author": "Karsten Schmidt <k+npm@thi.ng>",
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "yarn clean && tsc --declaration",
|
|
28
|
+
"clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
|
|
29
|
+
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
30
|
+
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
31
|
+
"doc:readme": "yarn doc:stats && tools:readme",
|
|
32
|
+
"doc:stats": "tools:module-stats",
|
|
33
|
+
"pub": "yarn npm publish --access public",
|
|
34
|
+
"test": "testament test"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@thi.ng/api": "^8.3.2",
|
|
38
|
+
"@thi.ng/checks": "^3.1.2",
|
|
39
|
+
"@thi.ng/strings": "^3.3.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@microsoft/api-extractor": "^7.18.19",
|
|
43
|
+
"@thi.ng/testament": "^0.2.2",
|
|
44
|
+
"rimraf": "^3.0.2",
|
|
45
|
+
"tools": "^0.0.1",
|
|
46
|
+
"typedoc": "^0.22.9",
|
|
47
|
+
"typescript": "^4.5.2"
|
|
48
|
+
},
|
|
49
|
+
"keywords": [
|
|
50
|
+
"datastructure",
|
|
51
|
+
"date",
|
|
52
|
+
"format",
|
|
53
|
+
"i18n",
|
|
54
|
+
"interval",
|
|
55
|
+
"iterator",
|
|
56
|
+
"math",
|
|
57
|
+
"offset",
|
|
58
|
+
"parser",
|
|
59
|
+
"precision",
|
|
60
|
+
"relative",
|
|
61
|
+
"smpte",
|
|
62
|
+
"string",
|
|
63
|
+
"time",
|
|
64
|
+
"typescript",
|
|
65
|
+
"utc"
|
|
66
|
+
],
|
|
67
|
+
"publishConfig": {
|
|
68
|
+
"access": "public"
|
|
69
|
+
},
|
|
70
|
+
"engines": {
|
|
71
|
+
"node": ">=12.7"
|
|
72
|
+
},
|
|
73
|
+
"files": [
|
|
74
|
+
"*.js",
|
|
75
|
+
"*.d.ts",
|
|
76
|
+
"i18n",
|
|
77
|
+
"internal"
|
|
78
|
+
],
|
|
79
|
+
"exports": {
|
|
80
|
+
".": {
|
|
81
|
+
"import": "./index.js"
|
|
82
|
+
},
|
|
83
|
+
"./api": {
|
|
84
|
+
"import": "./api.js"
|
|
85
|
+
},
|
|
86
|
+
"./checks": {
|
|
87
|
+
"import": "./checks.js"
|
|
88
|
+
},
|
|
89
|
+
"./datetime": {
|
|
90
|
+
"import": "./datetime.js"
|
|
91
|
+
},
|
|
92
|
+
"./format": {
|
|
93
|
+
"import": "./format.js"
|
|
94
|
+
},
|
|
95
|
+
"./i18n/de": {
|
|
96
|
+
"import": "./i18n/de.js"
|
|
97
|
+
},
|
|
98
|
+
"./i18n/en": {
|
|
99
|
+
"import": "./i18n/en.js"
|
|
100
|
+
},
|
|
101
|
+
"./i18n/es": {
|
|
102
|
+
"import": "./i18n/es.js"
|
|
103
|
+
},
|
|
104
|
+
"./i18n/fr": {
|
|
105
|
+
"import": "./i18n/fr.js"
|
|
106
|
+
},
|
|
107
|
+
"./i18n/it": {
|
|
108
|
+
"import": "./i18n/it.js"
|
|
109
|
+
},
|
|
110
|
+
"./i18n": {
|
|
111
|
+
"import": "./i18n.js"
|
|
112
|
+
},
|
|
113
|
+
"./iterators": {
|
|
114
|
+
"import": "./iterators.js"
|
|
115
|
+
},
|
|
116
|
+
"./relative": {
|
|
117
|
+
"import": "./relative.js"
|
|
118
|
+
},
|
|
119
|
+
"./round": {
|
|
120
|
+
"import": "./round.js"
|
|
121
|
+
},
|
|
122
|
+
"./timecode": {
|
|
123
|
+
"import": "./timecode.js"
|
|
124
|
+
},
|
|
125
|
+
"./units": {
|
|
126
|
+
"import": "./units.js"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"thi.ng": {
|
|
130
|
+
"year": 2020
|
|
131
|
+
},
|
|
132
|
+
"gitHead": "32cf1a96854f9bb97aca65ffa05ca862ea377059\n"
|
|
133
|
+
}
|