Skip to content

32 files changed

+206
-58
lines changed

demo/browser/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.1.17](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.17) (2024-02-27)
7+
8+
**Note:** Version bump only for package csv-demo-browser
9+
10+
11+
12+
13+
614
## [0.1.16](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.16) (2023-12-08)
715

816
**Note:** Version bump only for package csv-demo-browser

demo/browser/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "csv-demo-browser",
3-
"version": "0.1.16",
3+
"version": "0.1.17",
44
"main": "index.js",
55
"license": "MIT",
66
"type": "module",
@@ -20,11 +20,11 @@
2020
"start": "node server.js"
2121
},
2222
"dependencies": {
23-
"csv": "^6.3.6",
24-
"csv-generate": "^4.3.1",
25-
"csv-parse": "^5.5.3",
26-
"csv-stringify": "^6.4.5",
23+
"csv": "^6.3.7",
24+
"csv-generate": "^4.4.0",
25+
"csv-parse": "^5.5.4",
26+
"csv-stringify": "^6.4.6",
2727
"express": "^4.18.2",
28-
"stream-transform": "^3.3.0"
28+
"stream-transform": "^3.3.1"
2929
}
3030
}

demo/cjs/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.2.15](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.15) (2024-02-27)
7+
8+
**Note:** Version bump only for package csv-demo-cjs
9+
10+
11+
12+
13+
614
## [0.2.14](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.14) (2023-12-08)
715

816
**Note:** Version bump only for package csv-demo-cjs

demo/cjs/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "csv-demo-cjs",
3-
"version": "0.2.14",
3+
"version": "0.2.15",
44
"main": "index.js",
55
"license": "MIT",
66
"type": "commonjs",
77
"private": true,
88
"dependencies": {
9-
"csv": "^6.3.6",
10-
"csv-parse": "^5.5.3",
11-
"csv-stringify": "^6.4.5"
9+
"csv": "^6.3.7",
10+
"csv-parse": "^5.5.4",
11+
"csv-stringify": "^6.4.6"
1212
},
1313
"devDependencies": {
1414
"@types/node": "^20.5.6",

demo/eslint/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.1.20](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.20) (2024-02-27)
7+
8+
**Note:** Version bump only for package csv-demo-eslint
9+
10+
11+
12+
13+
614
## [0.1.19](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.19) (2023-12-08)
715

816
**Note:** Version bump only for package csv-demo-eslint

demo/eslint/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "csv-demo-eslint",
3-
"version": "0.1.19",
3+
"version": "0.1.20",
44
"description": "",
55
"main": "index.js",
66
"private": true,
@@ -10,7 +10,7 @@
1010
},
1111
"license": "MIT",
1212
"dependencies": {
13-
"csv-stringify": "^6.4.5"
13+
"csv-stringify": "^6.4.6"
1414
},
1515
"devDependencies": {
1616
"eslint": "^8.47.0",

demo/esm/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.0.29](https://github.com/adaltas/node-csv/compare/[email protected]@0.0.29) (2024-02-27)
7+
8+
**Note:** Version bump only for package csv-demo-esm
9+
10+
11+
12+
13+
614
## [0.0.28](https://github.com/adaltas/node-csv/compare/[email protected]@0.0.28) (2023-12-08)
715

816
**Note:** Version bump only for package csv-demo-esm

demo/esm/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "csv-demo-esm",
3-
"version": "0.0.28",
3+
"version": "0.0.29",
44
"main": "index.js",
55
"license": "MIT",
66
"type": "module",
77
"private": true,
88
"dependencies": {
9-
"csv": "^6.3.6",
10-
"csv-parse": "^5.5.3"
9+
"csv": "^6.3.7",
10+
"csv-parse": "^5.5.4"
1111
},
1212
"devDependencies": {
1313
"coffeescript": "^2.7.0",

demo/issues-cjs/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.2.4](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.4) (2024-02-27)
7+
8+
**Note:** Version bump only for package csv-issues-cjs
9+
10+
11+
12+
13+
614
## [0.2.3](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.3) (2023-12-08)
715

816
**Note:** Version bump only for package csv-issues-cjs

demo/issues-cjs/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "csv-issues-cjs",
3-
"version": "0.2.3",
3+
"version": "0.2.4",
44
"main": "index.js",
55
"license": "MIT",
66
"private": true,
77
"dependencies": {
8-
"csv-parse": "^5.5.3",
9-
"csv-stringify": "^6.4.5"
8+
"csv-parse": "^5.5.4",
9+
"csv-stringify": "^6.4.6"
1010
},
1111
"devDependencies": {
1212
"coffeescript": "^2.7.0",

demo/issues-esm/CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.2.0](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.0) (2024-02-27)
7+
8+
9+
### Features
10+
11+
* **csv-issues-esm:** reproduce issue [#415](https://github.com/adaltas/node-csv/issues/415) ([28088bc](https://github.com/adaltas/node-csv/commit/28088bcfb72331fe6ba26046a0af283c8dc0c40d))
12+
13+
14+
615
## [0.1.0](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.0) (2023-12-08)
716

817

demo/issues-esm/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "csv-issues-esm",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"main": "index.js",
55
"license": "MIT",
66
"type": "module",
@@ -26,9 +26,9 @@
2626
"test": "mocha 'test/**/*.coffee'"
2727
},
2828
"dependencies": {
29-
"csv-generate": "^4.3.1",
30-
"csv-parse": "^5.5.3",
31-
"csv-stringify": "^6.4.5",
29+
"csv-generate": "^4.4.0",
30+
"csv-parse": "^5.5.4",
31+
"csv-stringify": "^6.4.6",
3232
"desm": "^1.3.0"
3333
}
3434
}

demo/ts-cjs-node16/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.2.15](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.15) (2024-02-27)
7+
8+
**Note:** Version bump only for package csv-demo-ts-cjs-node16
9+
10+
11+
12+
13+
614
## [0.2.14](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.14) (2023-12-08)
715

816
**Note:** Version bump only for package csv-demo-ts-cjs-node16

demo/ts-cjs-node16/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "csv-demo-ts-cjs-node16",
3-
"version": "0.2.14",
3+
"version": "0.2.15",
44
"dependencies": {
5-
"csv-generate": "^4.3.1",
6-
"csv-parse": "^5.5.3",
7-
"csv-stringify": "^6.4.5",
8-
"stream-transform": "^3.3.0"
5+
"csv-generate": "^4.4.0",
6+
"csv-parse": "^5.5.4",
7+
"csv-stringify": "^6.4.6",
8+
"stream-transform": "^3.3.1"
99
},
1010
"main": "index.js",
1111
"license": "MIT",

demo/ts-esm-node16/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.2.15](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.15) (2024-02-27)
7+
8+
**Note:** Version bump only for package csv-demo-ts-module-node16
9+
10+
11+
12+
13+
614
## [0.2.14](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.14) (2023-12-08)
715

816
**Note:** Version bump only for package csv-demo-ts-module-node16

demo/ts-esm-node16/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "csv-demo-ts-module-node16",
3-
"version": "0.2.14",
3+
"version": "0.2.15",
44
"main": "index.js",
55
"license": "MIT",
66
"type": "module",
77
"private": true,
88
"dependencies": {
9-
"csv-generate": "^4.3.1",
10-
"csv-parse": "^5.5.3",
11-
"csv-stringify": "^6.4.5",
12-
"stream-transform": "^3.3.0"
9+
"csv-generate": "^4.4.0",
10+
"csv-parse": "^5.5.4",
11+
"csv-stringify": "^6.4.6",
12+
"stream-transform": "^3.3.1"
1313
},
1414
"devDependencies": {
1515
"@types/node": "^20.5.6",

demo/webpack-ts/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.1.17](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.17) (2024-02-27)
7+
8+
**Note:** Version bump only for package csv-demo-webpack-ts
9+
10+
11+
12+
13+
614
## [0.1.16](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.16) (2023-12-08)
715

816
**Note:** Version bump only for package csv-demo-webpack-ts

demo/webpack-ts/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "csv-demo-webpack-ts",
3-
"version": "0.1.16",
3+
"version": "0.1.17",
44
"description": "",
55
"private": true,
66
"keywords": [],
77
"author": "",
88
"license": "ISC",
99
"dependencies": {
10-
"csv-generate": "^4.3.1",
11-
"csv-parse": "^5.5.3",
12-
"csv-stringify": "^6.4.5",
10+
"csv-generate": "^4.4.0",
11+
"csv-parse": "^5.5.4",
12+
"csv-stringify": "^6.4.6",
1313
"http-server": "^14.1.1",
14-
"stream-transform": "^3.3.0"
14+
"stream-transform": "^3.3.1"
1515
},
1616
"devDependencies": {
1717
"buffer-browserify": "^0.2.5",

demo/webpack/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.1.19](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.19) (2024-02-27)
7+
8+
**Note:** Version bump only for package csv-demo-webpack
9+
10+
11+
12+
13+
614
## [0.1.18](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.18) (2023-12-08)
715

816
**Note:** Version bump only for package csv-demo-webpack

demo/webpack/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "csv-demo-webpack",
3-
"version": "0.1.18",
3+
"version": "0.1.19",
44
"description": "",
55
"private": true,
66
"scripts": {
@@ -16,12 +16,12 @@
1616
"webpack-cli": "^5.1.4"
1717
},
1818
"dependencies": {
19-
"csv": "^6.3.6",
20-
"csv-generate": "^4.3.1",
21-
"csv-parse": "^5.5.3",
22-
"csv-stringify": "^6.4.5",
19+
"csv": "^6.3.7",
20+
"csv-generate": "^4.4.0",
21+
"csv-parse": "^5.5.4",
22+
"csv-stringify": "^6.4.6",
2323
"http-server": "^14.1.1",
2424
"stream-browserify": "^3.0.0",
25-
"stream-transform": "^3.3.0"
25+
"stream-transform": "^3.3.1"
2626
}
2727
}

packages/csv-generate/CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [4.4.0](https://github.com/adaltas/node-csv/compare/[email protected]@4.4.0) (2024-02-27)
7+
8+
9+
### Features
10+
11+
* **csv-generate:** types column option defined as an udf (fix [#417](https://github.com/adaltas/node-csv/issues/417)) ([65f1ace](https://github.com/adaltas/node-csv/commit/65f1aceede14e9136b347e8ef9e2019a81a51010))
12+
13+
14+
615
## [4.3.1](https://github.com/adaltas/node-csv/compare/[email protected]@4.3.1) (2023-12-08)
716

817
**Note:** Version bump only for package csv-generate

packages/csv-generate/dist/cjs/index.d.cts

+14-1
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,24 @@ export class Generator extends stream.Readable {
1111
readonly options: Options;
1212
}
1313

14+
export type ColumnsFunctionArgs = {
15+
options: Options;
16+
state: State;
17+
};
18+
export type ColumnsFunction = (args: ColumnsFunctionArgs) => string;
19+
20+
export type State = {
21+
start_time: number,
22+
fixed_size_buffer: number,
23+
count_written: number,
24+
count_created: number,
25+
}
26+
1427
export interface Options extends stream.ReadableOptions {
1528
/**
1629
* Define the number of generated fields and the generation method.
1730
*/
18-
columns?: number | string[];
31+
columns?: number | (string | ColumnsFunction)[];
1932
/**
2033
* Set the field delimiter.
2134
*/

0 commit comments

Comments
 (0)