@thi.ng/date 2.7.64 → 2.7.69
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/package.json +137 -137
- package/CHANGELOG.md +0 -81
package/package.json
CHANGED
|
@@ -1,138 +1,138 @@
|
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
2
|
+
"name": "@thi.ng/date",
|
|
3
|
+
"version": "2.7.69",
|
|
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://thi.ng/date",
|
|
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
|
+
"type": "liberapay",
|
|
25
|
+
"url": "https://liberapay.com/thi.ng"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "yarn build:esbuild && yarn build:decl",
|
|
32
|
+
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
33
|
+
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
34
|
+
"clean": "bun ../../tools/src/clean-package.ts i18n",
|
|
35
|
+
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
|
|
36
|
+
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
37
|
+
"pub": "npm publish --access public",
|
|
38
|
+
"test": "bun test",
|
|
39
|
+
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@thi.ng/api": "^8.12.7",
|
|
43
|
+
"@thi.ng/checks": "^3.7.23",
|
|
44
|
+
"@thi.ng/strings": "^3.9.27"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"esbuild": "^0.25.11",
|
|
48
|
+
"typedoc": "^0.28.14",
|
|
49
|
+
"typescript": "^5.9.3"
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"datastructure",
|
|
53
|
+
"date",
|
|
54
|
+
"format",
|
|
55
|
+
"i18n",
|
|
56
|
+
"interval",
|
|
57
|
+
"iterator",
|
|
58
|
+
"math",
|
|
59
|
+
"offset",
|
|
60
|
+
"parser",
|
|
61
|
+
"precision",
|
|
62
|
+
"relative",
|
|
63
|
+
"smpte",
|
|
64
|
+
"string",
|
|
65
|
+
"time",
|
|
66
|
+
"typescript",
|
|
67
|
+
"utc"
|
|
68
|
+
],
|
|
69
|
+
"publishConfig": {
|
|
70
|
+
"access": "public"
|
|
71
|
+
},
|
|
72
|
+
"engines": {
|
|
73
|
+
"node": ">=18"
|
|
74
|
+
},
|
|
75
|
+
"files": [
|
|
76
|
+
"./*.js",
|
|
77
|
+
"./*.d.ts",
|
|
78
|
+
"i18n",
|
|
79
|
+
"internal"
|
|
80
|
+
],
|
|
81
|
+
"exports": {
|
|
82
|
+
".": {
|
|
83
|
+
"default": "./index.js"
|
|
84
|
+
},
|
|
85
|
+
"./api": {
|
|
86
|
+
"default": "./api.js"
|
|
87
|
+
},
|
|
88
|
+
"./checks": {
|
|
89
|
+
"default": "./checks.js"
|
|
90
|
+
},
|
|
91
|
+
"./datetime": {
|
|
92
|
+
"default": "./datetime.js"
|
|
93
|
+
},
|
|
94
|
+
"./duration": {
|
|
95
|
+
"default": "./duration.js"
|
|
96
|
+
},
|
|
97
|
+
"./format": {
|
|
98
|
+
"default": "./format.js"
|
|
99
|
+
},
|
|
100
|
+
"./i18n/de": {
|
|
101
|
+
"default": "./i18n/de.js"
|
|
102
|
+
},
|
|
103
|
+
"./i18n/en": {
|
|
104
|
+
"default": "./i18n/en.js"
|
|
105
|
+
},
|
|
106
|
+
"./i18n/es": {
|
|
107
|
+
"default": "./i18n/es.js"
|
|
108
|
+
},
|
|
109
|
+
"./i18n/fr": {
|
|
110
|
+
"default": "./i18n/fr.js"
|
|
111
|
+
},
|
|
112
|
+
"./i18n/it": {
|
|
113
|
+
"default": "./i18n/it.js"
|
|
114
|
+
},
|
|
115
|
+
"./i18n": {
|
|
116
|
+
"default": "./i18n.js"
|
|
117
|
+
},
|
|
118
|
+
"./iterators": {
|
|
119
|
+
"default": "./iterators.js"
|
|
120
|
+
},
|
|
121
|
+
"./relative": {
|
|
122
|
+
"default": "./relative.js"
|
|
123
|
+
},
|
|
124
|
+
"./round": {
|
|
125
|
+
"default": "./round.js"
|
|
126
|
+
},
|
|
127
|
+
"./timecode": {
|
|
128
|
+
"default": "./timecode.js"
|
|
129
|
+
},
|
|
130
|
+
"./units": {
|
|
131
|
+
"default": "./units.js"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"thi.ng": {
|
|
135
|
+
"year": 2020
|
|
136
|
+
},
|
|
137
|
+
"gitHead": "d977f819bcafdcb2b24c45f8d01a167fe29fc85a\n"
|
|
138
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
- **Last updated**: 2025-09-01T16:38:35Z
|
|
4
|
-
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
|
-
|
|
6
|
-
All notable changes to this project will be documented in this file.
|
|
7
|
-
Only versions published since **2022-01-01** are listed here.
|
|
8
|
-
Please consult the Git history for older version information.
|
|
9
|
-
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
10
|
-
|
|
11
|
-
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
|
-
and/or version bumps of transitive dependencies.
|
|
13
|
-
|
|
14
|
-
### [2.7.19](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@2.7.19) (2024-06-21)
|
|
15
|
-
|
|
16
|
-
#### ♻️ Refactoring
|
|
17
|
-
|
|
18
|
-
- rename various rest args to be more semantically meaningful ([8088a56](https://github.com/thi-ng/umbrella/commit/8088a56))
|
|
19
|
-
- enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
|
|
20
|
-
|
|
21
|
-
### [2.7.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@2.7.9) (2024-03-18)
|
|
22
|
-
|
|
23
|
-
#### ♻️ Refactoring
|
|
24
|
-
|
|
25
|
-
- update defFormat() internals ([cf5890c](https://github.com/thi-ng/umbrella/commit/cf5890c))
|
|
26
|
-
|
|
27
|
-
## [2.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@2.7.0) (2024-02-22)
|
|
28
|
-
|
|
29
|
-
#### 🚀 Features
|
|
30
|
-
|
|
31
|
-
- add single component formatter presets ([661a4b7](https://github.com/thi-ng/umbrella/commit/661a4b7))
|
|
32
|
-
|
|
33
|
-
## [2.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@2.6.0) (2024-02-22)
|
|
34
|
-
|
|
35
|
-
#### 🚀 Features
|
|
36
|
-
|
|
37
|
-
- add FMT_yyyyMMdd_ALT and FMT_HHmmss_ALT formatters ([658bcf9](https://github.com/thi-ng/umbrella/commit/658bcf9))
|
|
38
|
-
|
|
39
|
-
## [2.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@2.5.0) (2023-11-04)
|
|
40
|
-
|
|
41
|
-
#### 🚀 Features
|
|
42
|
-
|
|
43
|
-
- add durationAs() & asXXX() duration helpers ([ad17cee](https://github.com/thi-ng/umbrella/commit/ad17cee))
|
|
44
|
-
- add absDifference(), add/update docs ([9b54f6c](https://github.com/thi-ng/umbrella/commit/9b54f6c))
|
|
45
|
-
|
|
46
|
-
### [2.4.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@2.4.10) (2023-03-27)
|
|
47
|
-
|
|
48
|
-
#### ♻️ Refactoring
|
|
49
|
-
|
|
50
|
-
- update imports (TS5.0) ([9ad7746](https://github.com/thi-ng/umbrella/commit/9ad7746))
|
|
51
|
-
|
|
52
|
-
## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@2.4.0) (2022-12-29)
|
|
53
|
-
|
|
54
|
-
#### 🚀 Features
|
|
55
|
-
|
|
56
|
-
- add formatDuration(), internal restructure ([d610a8a](https://github.com/thi-ng/umbrella/commit/d610a8a))
|
|
57
|
-
- add formatDuration() & formatDurationParts()
|
|
58
|
-
- add composeDuration()
|
|
59
|
-
- refactor formatRelativeParts()
|
|
60
|
-
- move all formatting fns to format.ts
|
|
61
|
-
- move decomposeDuration() to duration.ts
|
|
62
|
-
- add tests
|
|
63
|
-
|
|
64
|
-
## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@2.3.0) (2022-06-15)
|
|
65
|
-
|
|
66
|
-
#### 🚀 Features
|
|
67
|
-
|
|
68
|
-
- update parseRelative() ([0f7ecfc](https://github.com/thi-ng/umbrella/commit/0f7ecfc))
|
|
69
|
-
- add "mo" shorthand for months
|
|
70
|
-
|
|
71
|
-
## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@2.2.0) (2022-05-18)
|
|
72
|
-
|
|
73
|
-
#### 🚀 Features
|
|
74
|
-
|
|
75
|
-
- use current time as default for all formatters ([ee536db](https://github.com/thi-ng/umbrella/commit/ee536db))
|
|
76
|
-
|
|
77
|
-
### [2.1.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/date@2.1.6) (2022-04-07)
|
|
78
|
-
|
|
79
|
-
#### ♻️ Refactoring
|
|
80
|
-
|
|
81
|
-
- replace deprecated .substr() w/ .substring() ([0710509](https://github.com/thi-ng/umbrella/commit/0710509))
|