@thi.ng/csv 2.0.7 → 2.1.2
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 +65 -33
- package/README.md +1 -1
- package/package.json +83 -78
package/CHANGELOG.md
CHANGED
|
@@ -1,62 +1,94 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## [2.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/csv@2.0.6...@thi.ng/csv@2.0.7) (2021-11-03)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @thi.ng/csv
|
|
9
|
-
|
|
3
|
+
- **Last updated**: 2021-11-21T17:09:28Z
|
|
4
|
+
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
10
5
|
|
|
6
|
+
All notable changes to this project will be documented in this file.
|
|
7
|
+
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
11
8
|
|
|
9
|
+
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
|
+
and/or version bumps of transitive dependencies.
|
|
12
11
|
|
|
12
|
+
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/csv@2.1.0) (2021-11-17)
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
#### 🚀 Features
|
|
15
15
|
|
|
16
|
+
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
17
|
+
Improving the overall build ergonomics
|
|
18
|
+
- introduced a tools workspaces
|
|
19
|
+
- imported it in all needed packages/examples
|
|
20
|
+
- inclusive project root
|
|
16
21
|
|
|
17
|
-
|
|
22
|
+
#### ♻️ Refactoring
|
|
18
23
|
|
|
19
|
-
|
|
24
|
+
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
25
|
+
this commit reverts (partly) changes made in:
|
|
26
|
+
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
27
|
+
overall purpose is better testament ergonomics:
|
|
28
|
+
instead of having to pass NODE_OPTIONS with every invocation
|
|
29
|
+
having a binary to handle this for us.
|
|
20
30
|
|
|
31
|
+
### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/csv@2.0.1) (2021-10-13)
|
|
21
32
|
|
|
22
|
-
|
|
33
|
+
#### ♻️ Refactoring
|
|
23
34
|
|
|
24
|
-
|
|
35
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
36
|
+
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
37
|
+
- add .js suffix for all relative imports
|
|
25
38
|
|
|
39
|
+
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/csv@2.0.0) (2021-10-12)
|
|
26
40
|
|
|
27
|
-
|
|
41
|
+
#### 🛑 Breaking changes
|
|
28
42
|
|
|
29
|
-
|
|
43
|
+
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
44
|
+
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
45
|
+
- only ESM modules will be published from now on
|
|
46
|
+
- CJS obsolete due to ESM support in recent versions of node:
|
|
47
|
+
- i.e. launch NodeJS via:
|
|
48
|
+
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
49
|
+
- in the node REPL use `await import(...)` instead of `require()`
|
|
50
|
+
- UMD obsolete due to widespread browser support for ESM
|
|
51
|
+
Also:
|
|
52
|
+
- normalize/restructure/reorg all package.json files
|
|
53
|
+
- cleanup all build scripts, remove obsolete
|
|
54
|
+
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
30
55
|
|
|
31
|
-
|
|
32
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
33
|
-
- i.e. launch NodeJS via:
|
|
34
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
35
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
36
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
56
|
+
#### 🚀 Features
|
|
37
57
|
|
|
38
|
-
|
|
39
|
-
- normalize/restructure/reorg all package.json files
|
|
40
|
-
- cleanup all build scripts, remove obsolete
|
|
41
|
-
- switch from mocha to @thi.ng/testament for all tests
|
|
58
|
+
- add formatCSV(), types, tests ([a2ca1b6](https://github.com/thi-ng/umbrella/commit/a2ca1b6))
|
|
42
59
|
|
|
60
|
+
#### ♻️ Refactoring
|
|
43
61
|
|
|
62
|
+
- update imports (transducers) ([4bdecc9](https://github.com/thi-ng/umbrella/commit/4bdecc9))
|
|
63
|
+
- update imports ([6b102d0](https://github.com/thi-ng/umbrella/commit/6b102d0))
|
|
64
|
+
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
65
|
+
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
44
66
|
|
|
67
|
+
### [0.1.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/csv@0.1.2) (2020-12-07)
|
|
45
68
|
|
|
69
|
+
#### ♻️ Refactoring
|
|
46
70
|
|
|
71
|
+
- update type-only imports ([32cfc25](https://github.com/thi-ng/umbrella/commit/32cfc25))
|
|
47
72
|
|
|
48
|
-
##
|
|
73
|
+
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/csv@0.1.0) (2020-11-24)
|
|
49
74
|
|
|
50
|
-
|
|
75
|
+
#### 🚀 Features
|
|
51
76
|
|
|
52
|
-
|
|
77
|
+
- add/update CSVOpts, cell transforms, docs ([282e85c](https://github.com/thi-ng/umbrella/commit/282e85c))
|
|
78
|
+
- allow arrays for `cols` option
|
|
79
|
+
- update initIndex(), add column autonaming fallback
|
|
80
|
+
- refactor parseCSV()
|
|
81
|
+
- rename CoercionFn => CellTransform
|
|
82
|
+
- add upper/lower() transforms
|
|
83
|
+
- add/update tests
|
|
84
|
+
- add coercions, restructure ([93d79ec](https://github.com/thi-ng/umbrella/commit/93d79ec))
|
|
85
|
+
- import as new package ([2b07100](https://github.com/thi-ng/umbrella/commit/2b07100))
|
|
53
86
|
|
|
54
|
-
|
|
87
|
+
#### 🩹 Bug fixes
|
|
55
88
|
|
|
56
|
-
-
|
|
89
|
+
- add quoting/newline support in header fields ([28cac18](https://github.com/thi-ng/umbrella/commit/28cac18))
|
|
90
|
+
- add tests
|
|
57
91
|
|
|
58
|
-
|
|
92
|
+
#### ♻️ Refactoring
|
|
59
93
|
|
|
60
|
-
-
|
|
61
|
-
- **csv:** add/update CSVOpts, cell transforms, docs ([282e85c](https://github.com/thi-ng/umbrella/commit/282e85cf9c1a9aae704d918218f8c143b51a88df))
|
|
62
|
-
- **csv:** import as new package ([2b07100](https://github.com/thi-ng/umbrella/commit/2b07100f27bb9fb1f934901aec7c9fc1fab67fbf))
|
|
94
|
+
- update parseLine() ([4ae49e6](https://github.com/thi-ng/umbrella/commit/4ae49e6))
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,84 +1,89 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"name": "@thi.ng/csv",
|
|
3
|
+
"version": "2.1.2",
|
|
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://github.com/thi-ng/umbrella/tree/master/packages/csv#readme",
|
|
14
|
+
"funding": [
|
|
15
|
+
{
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
12
18
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
{
|
|
20
|
+
"type": "patreon",
|
|
21
|
+
"url": "https://patreon.com/thing_umbrella"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"author": "Karsten Schmidt <k+npm@thi.ng>",
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "yarn clean && tsc --declaration",
|
|
28
|
+
"clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
|
|
29
|
+
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
30
|
+
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
31
|
+
"doc:readme": "yarn doc:stats && tools:readme",
|
|
32
|
+
"doc:stats": "tools:module-stats",
|
|
33
|
+
"pub": "yarn npm publish --access public",
|
|
34
|
+
"test": "testament test"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@thi.ng/api": "^8.3.2",
|
|
38
|
+
"@thi.ng/checks": "^3.1.2",
|
|
39
|
+
"@thi.ng/strings": "^3.2.2",
|
|
40
|
+
"@thi.ng/transducers": "^8.1.2"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@microsoft/api-extractor": "^7.18.19",
|
|
44
|
+
"@thi.ng/testament": "^0.2.2",
|
|
45
|
+
"rimraf": "^3.0.2",
|
|
46
|
+
"tools": "^0.0.1",
|
|
47
|
+
"typedoc": "^0.22.9",
|
|
48
|
+
"typescript": "^4.5.2"
|
|
49
|
+
},
|
|
50
|
+
"keywords": [
|
|
51
|
+
"csv",
|
|
52
|
+
"fileformat",
|
|
53
|
+
"parser",
|
|
54
|
+
"string",
|
|
55
|
+
"transducer",
|
|
56
|
+
"typescript"
|
|
57
|
+
],
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public"
|
|
60
|
+
},
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": ">=12.7"
|
|
63
|
+
},
|
|
64
|
+
"files": [
|
|
65
|
+
"*.js",
|
|
66
|
+
"*.d.ts"
|
|
67
|
+
],
|
|
68
|
+
"exports": {
|
|
69
|
+
".": {
|
|
70
|
+
"import": "./index.js"
|
|
35
71
|
},
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
"@thi.ng/checks": "^3.0.6",
|
|
39
|
-
"@thi.ng/strings": "^3.1.3",
|
|
40
|
-
"@thi.ng/transducers": "^8.0.7"
|
|
72
|
+
"./api": {
|
|
73
|
+
"import": "./api.js"
|
|
41
74
|
},
|
|
42
|
-
"
|
|
43
|
-
|
|
75
|
+
"./format": {
|
|
76
|
+
"import": "./format.js"
|
|
44
77
|
},
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
"fileformat",
|
|
48
|
-
"parser",
|
|
49
|
-
"string",
|
|
50
|
-
"transducer",
|
|
51
|
-
"typescript"
|
|
52
|
-
],
|
|
53
|
-
"publishConfig": {
|
|
54
|
-
"access": "public"
|
|
78
|
+
"./parse": {
|
|
79
|
+
"import": "./parse.js"
|
|
55
80
|
},
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"import": "./index.js"
|
|
66
|
-
},
|
|
67
|
-
"./api": {
|
|
68
|
-
"import": "./api.js"
|
|
69
|
-
},
|
|
70
|
-
"./format": {
|
|
71
|
-
"import": "./format.js"
|
|
72
|
-
},
|
|
73
|
-
"./parse": {
|
|
74
|
-
"import": "./parse.js"
|
|
75
|
-
},
|
|
76
|
-
"./transforms": {
|
|
77
|
-
"import": "./transforms.js"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"thi.ng": {
|
|
81
|
-
"year": 2014
|
|
82
|
-
},
|
|
83
|
-
"gitHead": "852cd2450617c86d15d18477dc634f17f04202eb"
|
|
84
|
-
}
|
|
81
|
+
"./transforms": {
|
|
82
|
+
"import": "./transforms.js"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"thi.ng": {
|
|
86
|
+
"year": 2014
|
|
87
|
+
},
|
|
88
|
+
"gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
|
|
89
|
+
}
|