@thi.ng/csv 2.5.7 → 2.5.11
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 +91 -91
- package/CHANGELOG.md +0 -75
package/package.json
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
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
|
-
}
|
|
2
|
+
"name": "@thi.ng/csv",
|
|
3
|
+
"version": "2.5.11",
|
|
4
|
+
"description": "Customizable, transducer-based CSV parser/object mapper and transformer",
|
|
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/csv",
|
|
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",
|
|
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.6",
|
|
43
|
+
"@thi.ng/checks": "^3.7.22",
|
|
44
|
+
"@thi.ng/errors": "^2.5.46",
|
|
45
|
+
"@thi.ng/strings": "^3.9.26",
|
|
46
|
+
"@thi.ng/transducers": "^9.6.14"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"esbuild": "^0.25.11",
|
|
50
|
+
"typedoc": "^0.28.14",
|
|
51
|
+
"typescript": "^5.9.3"
|
|
52
|
+
},
|
|
53
|
+
"keywords": [
|
|
54
|
+
"csv",
|
|
55
|
+
"fileformat",
|
|
56
|
+
"parser",
|
|
57
|
+
"string",
|
|
58
|
+
"transducer",
|
|
59
|
+
"typescript"
|
|
60
|
+
],
|
|
61
|
+
"publishConfig": {
|
|
62
|
+
"access": "public"
|
|
63
|
+
},
|
|
64
|
+
"engines": {
|
|
65
|
+
"node": ">=18"
|
|
66
|
+
},
|
|
67
|
+
"files": [
|
|
68
|
+
"./*.js",
|
|
69
|
+
"./*.d.ts"
|
|
70
|
+
],
|
|
71
|
+
"exports": {
|
|
72
|
+
".": {
|
|
73
|
+
"default": "./index.js"
|
|
74
|
+
},
|
|
75
|
+
"./api": {
|
|
76
|
+
"default": "./api.js"
|
|
77
|
+
},
|
|
78
|
+
"./format": {
|
|
79
|
+
"default": "./format.js"
|
|
80
|
+
},
|
|
81
|
+
"./parse": {
|
|
82
|
+
"default": "./parse.js"
|
|
83
|
+
},
|
|
84
|
+
"./transforms": {
|
|
85
|
+
"default": "./transforms.js"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"thi.ng": {
|
|
89
|
+
"year": 2014
|
|
90
|
+
},
|
|
91
|
+
"gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
|
|
92
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,75 +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.5.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/csv@2.5.2) (2025-08-06)
|
|
15
|
-
|
|
16
|
-
#### 🩹 Bug fixes
|
|
17
|
-
|
|
18
|
-
- update default handling (empty) ([b223719](https://github.com/thi-ng/umbrella/commit/b223719))
|
|
19
|
-
- include empty columns/cells for default eligibility
|
|
20
|
-
- update `ColumnSpec` docs (re: role of cell transforms)
|
|
21
|
-
- update tests
|
|
22
|
-
|
|
23
|
-
### [2.5.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/csv@2.5.1) (2025-08-06)
|
|
24
|
-
|
|
25
|
-
#### ♻️ Refactoring
|
|
26
|
-
|
|
27
|
-
- update default value handling (fn lookup) ([8d373bb](https://github.com/thi-ng/umbrella/commit/8d373bb))
|
|
28
|
-
- allow `ColumnSpec.default` to be functions
|
|
29
|
-
- update `parseCSV()`
|
|
30
|
-
- update tests
|
|
31
|
-
|
|
32
|
-
## [2.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/csv@2.5.0) (2025-08-06)
|
|
33
|
-
|
|
34
|
-
#### 🚀 Features
|
|
35
|
-
|
|
36
|
-
- add support for column default values ([e105548](https://github.com/thi-ng/umbrella/commit/e105548))
|
|
37
|
-
- update `ColumnSpec`
|
|
38
|
-
- update `parseCSV()` to support & validate column specs w/ default values
|
|
39
|
-
- add tests
|
|
40
|
-
|
|
41
|
-
## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/csv@2.4.0) (2025-07-12)
|
|
42
|
-
|
|
43
|
-
#### 🚀 Features
|
|
44
|
-
|
|
45
|
-
- add `json()` higher-order cell transform ([d8a95dd](https://github.com/thi-ng/umbrella/commit/d8a95dd))
|
|
46
|
-
|
|
47
|
-
### [2.3.87](https://github.com/thi-ng/umbrella/tree/@thi.ng/csv@2.3.87) (2024-06-21)
|
|
48
|
-
|
|
49
|
-
#### ♻️ Refactoring
|
|
50
|
-
|
|
51
|
-
- enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
|
|
52
|
-
|
|
53
|
-
### [2.3.81](https://github.com/thi-ng/umbrella/tree/@thi.ng/csv@2.3.81) (2024-04-08)
|
|
54
|
-
|
|
55
|
-
#### ♻️ Refactoring
|
|
56
|
-
|
|
57
|
-
- update reducer handling due to updates in [@thi.ng/transducers](https://github.com/thi-ng/umbrella/tree/main/packages/transducers) pkg ([99871a1](https://github.com/thi-ng/umbrella/commit/99871a1))
|
|
58
|
-
|
|
59
|
-
### [2.3.66](https://github.com/thi-ng/umbrella/tree/@thi.ng/csv@2.3.66) (2024-02-22)
|
|
60
|
-
|
|
61
|
-
#### ♻️ Refactoring
|
|
62
|
-
|
|
63
|
-
- update object destructuring in all pkgs & examples ([f36aeb0](https://github.com/thi-ng/umbrella/commit/f36aeb0))
|
|
64
|
-
|
|
65
|
-
### [2.3.26](https://github.com/thi-ng/umbrella/tree/@thi.ng/csv@2.3.26) (2023-08-28)
|
|
66
|
-
|
|
67
|
-
#### ♻️ Refactoring
|
|
68
|
-
|
|
69
|
-
- add ColumnSpecs alias ([217cb84](https://github.com/thi-ng/umbrella/commit/217cb84))
|
|
70
|
-
|
|
71
|
-
## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/csv@2.3.0) (2023-02-05)
|
|
72
|
-
|
|
73
|
-
#### 🚀 Features
|
|
74
|
-
|
|
75
|
-
- add oneOff() cell transform for enum like values ([7c297db](https://github.com/thi-ng/umbrella/commit/7c297db))
|