@thi.ng/csv 2.3.25 → 2.3.26

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**: 2023-08-27T11:20:59Z
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>[] | Record<string, 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.25",
3
+ "version": "2.3.26",
4
4
  "description": "Customizable, transducer-based CSV parser/object mapper and transformer",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -85,5 +85,5 @@
85
85
  "thi.ng": {
86
86
  "year": 2014
87
87
  },
88
- "gitHead": "5929dd20497668496af13415cdf784a4d6f69aa3\n"
88
+ "gitHead": "2cd09fbbf9b2c879fb1b85e21d361306c9fbef56\n"
89
89
  }