@thi.ng/csv 2.3.25 → 2.3.27
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 +7 -1
- package/api.d.ts +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2023-08-
|
|
3
|
+
- **Last updated**: 2023-08-28T12:33:46Z
|
|
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.3.26](https://github.com/thi-ng/umbrella/tree/@thi.ng/csv@2.3.26) (2023-08-28)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- add ColumnSpecs alias ([217cb84](https://github.com/thi-ng/umbrella/commit/217cb84))
|
|
17
|
+
|
|
12
18
|
## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/csv@2.3.0) (2023-02-05)
|
|
13
19
|
|
|
14
20
|
#### 🚀 Features
|
package/api.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export interface ColumnSpec {
|
|
|
26
26
|
*/
|
|
27
27
|
tx?: CellTransform;
|
|
28
28
|
}
|
|
29
|
+
export type ColumnSpecs = Record<string, ColumnSpec>;
|
|
29
30
|
export interface CommonCSVOpts {
|
|
30
31
|
/**
|
|
31
32
|
* Field delimiter character.
|
|
@@ -96,7 +97,7 @@ export interface CSVOpts extends CommonCSVOpts {
|
|
|
96
97
|
* If given as object, each key must match an existing/original column name
|
|
97
98
|
* (either as per 1st data row or the `header` option).
|
|
98
99
|
*/
|
|
99
|
-
cols: Nullable<ColumnSpec>[] |
|
|
100
|
+
cols: Nullable<ColumnSpec>[] | ColumnSpecs;
|
|
100
101
|
}
|
|
101
102
|
export interface CSVFormatOpts {
|
|
102
103
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/csv",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.27",
|
|
4
4
|
"description": "Customizable, transducer-based CSV parser/object mapper and transformer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@thi.ng/api": "^8.9.5",
|
|
38
38
|
"@thi.ng/checks": "^3.4.5",
|
|
39
39
|
"@thi.ng/strings": "^3.4.13",
|
|
40
|
-
"@thi.ng/transducers": "^8.6.
|
|
40
|
+
"@thi.ng/transducers": "^8.6.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@microsoft/api-extractor": "^7.36.4",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"thi.ng": {
|
|
86
86
|
"year": 2014
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "9dec130cc636c1da0bc4f2baa0d995579d3b7629\n"
|
|
89
89
|
}
|