@fgv/ts-utils 3.0.1-alpha.6 → 4.0.0
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.json +33 -0
- package/CHANGELOG.md +15 -1
- package/README.md +0 -21
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +12 -12
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fgv/ts-utils",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "4.0.0",
|
|
6
|
+
"tag": "@fgv/ts-utils_v4.0.0",
|
|
7
|
+
"date": "Tue, 14 May 2024 03:09:27 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"none": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "rework validation/converter compatibility a bit"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"comment": "QoL improvement to simplify error aggregation"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"comment": "factor optional converters out to ts-extras package to eliminate large dependencies"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"comment": "update generated api docs"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"comment": "add convalidate helper"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"comment": "add defaulting converter"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"comment": "extend conversion to accept validators"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"comment": "export StringConverter at top level"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
4
37
|
{
|
|
5
38
|
"version": "3.0.0",
|
|
6
39
|
"tag": "@fgv/ts-utils_v3.0.0",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
# Change Log - @fgv/ts-utils
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 14 May 2024 03:09:27 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 4.0.0
|
|
6
|
+
Tue, 14 May 2024 03:09:27 GMT
|
|
7
|
+
|
|
8
|
+
### Updates
|
|
9
|
+
|
|
10
|
+
- rework validation/converter compatibility a bit
|
|
11
|
+
- QoL improvement to simplify error aggregation
|
|
12
|
+
- factor optional converters out to ts-extras package to eliminate large dependencies
|
|
13
|
+
- update generated api docs
|
|
14
|
+
- add convalidate helper
|
|
15
|
+
- add defaulting converter
|
|
16
|
+
- extend conversion to accept validators
|
|
17
|
+
- export StringConverter at top level
|
|
4
18
|
|
|
5
19
|
## 3.0.0
|
|
6
20
|
Mon, 22 Jan 2024 07:00:18 GMT
|
package/README.md
CHANGED
|
@@ -11,12 +11,6 @@ Assorted typescript utilities that I'm tired of copying from project to project.
|
|
|
11
11
|
* Result\<T\> - Easily combine inline and exception-based error handling
|
|
12
12
|
* Converter\<T\> - Conversion framework especially useful for type-safe processing of JSON
|
|
13
13
|
|
|
14
|
-
Also includes a few other much less-developed odds-and-ends borrowed from one project or another - much less polished and more likely change or disappear:
|
|
15
|
-
* ExtendedArray\<T\> - adds a few useful operations to the built-in Array
|
|
16
|
-
* Formattable\<T\> - simple helpers to create mustache wrappers for objects and make them easily printable
|
|
17
|
-
* Logger - A very basic logger suitable for hobby projects
|
|
18
|
-
* RangeOf\<T\> - Generic open or closed ranges of orderable items (numbers, dates, etc)
|
|
19
|
-
|
|
20
14
|
---
|
|
21
15
|
|
|
22
16
|
- [Summary](#summary)
|
|
@@ -28,11 +22,6 @@ Also includes a few other much less-developed odds-and-ends borrowed from one pr
|
|
|
28
22
|
- [API](#api)
|
|
29
23
|
- [Result\<T\>](#resultt)
|
|
30
24
|
- [Converter\<T\>](#convertert)
|
|
31
|
-
- [Additional APIs](#additional-apis)
|
|
32
|
-
- [ExtendedArray\<T\>](#extendedarrayt)
|
|
33
|
-
- [Formattable\<T\>](#formattablet)
|
|
34
|
-
- [Logger](#logger)
|
|
35
|
-
- [RangeOf\<T\>](#rangeoft)
|
|
36
25
|
|
|
37
26
|
## Installation
|
|
38
27
|
|
|
@@ -139,15 +128,5 @@ Other helpers and methods enable optional values or fields, chaining of results
|
|
|
139
128
|
|
|
140
129
|
### Result\<T\>
|
|
141
130
|
|
|
142
|
-
|
|
143
131
|
### Converter\<T\>
|
|
144
132
|
|
|
145
|
-
## Additional APIs
|
|
146
|
-
|
|
147
|
-
### ExtendedArray\<T\>
|
|
148
|
-
|
|
149
|
-
### Formattable\<T\>
|
|
150
|
-
|
|
151
|
-
### Logger
|
|
152
|
-
|
|
153
|
-
### RangeOf\<T\>
|
package/dist/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fgv/ts-utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Assorted Typescript Utilities",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "dist/ts-utils.d.ts",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"homepage": "https://github.com/ErikFortune/fgv/tree/main/libraries/ts-utils#readme",
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@jest/expect-utils": "^29.7.0",
|
|
32
|
-
"@microsoft/api-documenter": "^7.
|
|
33
|
-
"@microsoft/api-extractor": "^7.
|
|
32
|
+
"@microsoft/api-documenter": "^7.24.5",
|
|
33
|
+
"@microsoft/api-extractor": "^7.43.4",
|
|
34
34
|
"@types/jest": "^29.5.12",
|
|
35
35
|
"@types/luxon": "^3.4.2",
|
|
36
36
|
"@types/mustache": "^4.2.5",
|
|
37
|
-
"@types/node": "^20.11
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
39
|
-
"@typescript-eslint/parser": "^7.
|
|
37
|
+
"@types/node": "^20.12.11",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^7.9.0",
|
|
39
|
+
"@typescript-eslint/parser": "^7.9.0",
|
|
40
40
|
"eslint": "^8.57.0",
|
|
41
41
|
"eslint-config-standard": "^17.1.0",
|
|
42
42
|
"eslint-plugin-import": "^2.29.1",
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
"jest": "^29.7.0",
|
|
46
46
|
"jest-extended": "^4.0.2",
|
|
47
47
|
"jest-matcher-utils": "^29.7.0",
|
|
48
|
-
"rimraf": "^5.0.
|
|
48
|
+
"rimraf": "^5.0.7",
|
|
49
49
|
"ts-jest": "^29.1.2",
|
|
50
50
|
"ts-node": "^10.9.2",
|
|
51
|
-
"typescript": "^5.
|
|
51
|
+
"typescript": "^5.4.5",
|
|
52
52
|
"eslint-plugin-n": "^16.6.2",
|
|
53
53
|
"jest-snapshot": "~29.7.0",
|
|
54
|
-
"@rushstack/heft": "~0.
|
|
55
|
-
"@rushstack/heft-node-rig": "~2.
|
|
56
|
-
"@rushstack/eslint-config": "~3.6.
|
|
54
|
+
"@rushstack/heft": "~0.66.6",
|
|
55
|
+
"@rushstack/heft-node-rig": "~2.6.3",
|
|
56
|
+
"@rushstack/eslint-config": "~3.6.9",
|
|
57
57
|
"@types/heft-jest": "1.0.6",
|
|
58
|
-
"@rushstack/heft-jest-plugin": "~0.11.
|
|
58
|
+
"@rushstack/heft-jest-plugin": "~0.11.27",
|
|
59
59
|
"eslint-plugin-tsdoc": "~0.2.17"
|
|
60
60
|
}
|
|
61
61
|
}
|