Skip to content

30 files changed

+163
-57
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.18](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.18) (2024-02-28)
7+
8+
**Note:** Version bump only for package csv-demo-browser
9+
10+
11+
12+
13+
614
## [0.1.17](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.17) (2024-02-27)
715

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

demo/browser/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "csv-demo-browser",
3-
"version": "0.1.17",
3+
"version": "0.1.18",
44
"main": "index.js",
55
"license": "MIT",
66
"type": "module",
@@ -20,9 +20,9 @@
2020
"start": "node server.js"
2121
},
2222
"dependencies": {
23-
"csv": "^6.3.7",
23+
"csv": "^6.3.8",
2424
"csv-generate": "^4.4.0",
25-
"csv-parse": "^5.5.4",
25+
"csv-parse": "^5.5.5",
2626
"csv-stringify": "^6.4.6",
2727
"express": "^4.18.2",
2828
"stream-transform": "^3.3.1"

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.16](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.16) (2024-02-28)
7+
8+
**Note:** Version bump only for package csv-demo-cjs
9+
10+
11+
12+
13+
614
## [0.2.15](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.15) (2024-02-27)
715

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

demo/cjs/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "csv-demo-cjs",
3-
"version": "0.2.15",
3+
"version": "0.2.16",
44
"main": "index.js",
55
"license": "MIT",
66
"type": "commonjs",
77
"private": true,
88
"dependencies": {
9-
"csv": "^6.3.7",
10-
"csv-parse": "^5.5.4",
9+
"csv": "^6.3.8",
10+
"csv-parse": "^5.5.5",
1111
"csv-stringify": "^6.4.6"
1212
},
1313
"devDependencies": {

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.30](https://github.com/adaltas/node-csv/compare/[email protected]@0.0.30) (2024-02-28)
7+
8+
**Note:** Version bump only for package csv-demo-esm
9+
10+
11+
12+
13+
614
## [0.0.29](https://github.com/adaltas/node-csv/compare/[email protected]@0.0.29) (2024-02-27)
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.29",
3+
"version": "0.0.30",
44
"main": "index.js",
55
"license": "MIT",
66
"type": "module",
77
"private": true,
88
"dependencies": {
9-
"csv": "^6.3.7",
10-
"csv-parse": "^5.5.4"
9+
"csv": "^6.3.8",
10+
"csv-parse": "^5.5.5"
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.5](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.5) (2024-02-28)
7+
8+
**Note:** Version bump only for package csv-issues-cjs
9+
10+
11+
12+
13+
614
## [0.2.4](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.4) (2024-02-27)
715

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

demo/issues-cjs/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "csv-issues-cjs",
3-
"version": "0.2.4",
3+
"version": "0.2.5",
44
"main": "index.js",
55
"license": "MIT",
66
"private": true,
77
"dependencies": {
8-
"csv-parse": "^5.5.4",
8+
"csv-parse": "^5.5.5",
99
"csv-stringify": "^6.4.6"
1010
},
1111
"devDependencies": {

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.1](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.1) (2024-02-28)
7+
8+
9+
### Bug Fixes
10+
11+
* **csv-parse:** comment infix when comment first field char (fix [#415](https://github.com/adaltas/node-csv/issues/415)) ([8e0f8b8](https://github.com/adaltas/node-csv/commit/8e0f8b8e11736f1223b0bda4dd2a3b37506dd531))
12+
13+
14+
615
## [0.2.0](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.0) (2024-02-27)
716

817

demo/issues-esm/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "csv-issues-esm",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"main": "index.js",
55
"license": "MIT",
66
"type": "module",
@@ -27,7 +27,7 @@
2727
},
2828
"dependencies": {
2929
"csv-generate": "^4.4.0",
30-
"csv-parse": "^5.5.4",
30+
"csv-parse": "^5.5.5",
3131
"csv-stringify": "^6.4.6",
3232
"desm": "^1.3.0"
3333
}

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.16](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.16) (2024-02-28)
7+
8+
**Note:** Version bump only for package csv-demo-ts-cjs-node16
9+
10+
11+
12+
13+
614
## [0.2.15](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.15) (2024-02-27)
715

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

demo/ts-cjs-node16/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "csv-demo-ts-cjs-node16",
3-
"version": "0.2.15",
3+
"version": "0.2.16",
44
"dependencies": {
55
"csv-generate": "^4.4.0",
6-
"csv-parse": "^5.5.4",
6+
"csv-parse": "^5.5.5",
77
"csv-stringify": "^6.4.6",
88
"stream-transform": "^3.3.1"
99
},

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.16](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.16) (2024-02-28)
7+
8+
**Note:** Version bump only for package csv-demo-ts-module-node16
9+
10+
11+
12+
13+
614
## [0.2.15](https://github.com/adaltas/node-csv/compare/[email protected]@0.2.15) (2024-02-27)
715

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

demo/ts-esm-node16/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "csv-demo-ts-module-node16",
3-
"version": "0.2.15",
3+
"version": "0.2.16",
44
"main": "index.js",
55
"license": "MIT",
66
"type": "module",
77
"private": true,
88
"dependencies": {
99
"csv-generate": "^4.4.0",
10-
"csv-parse": "^5.5.4",
10+
"csv-parse": "^5.5.5",
1111
"csv-stringify": "^6.4.6",
1212
"stream-transform": "^3.3.1"
1313
},

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.18](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.18) (2024-02-28)
7+
8+
**Note:** Version bump only for package csv-demo-webpack-ts
9+
10+
11+
12+
13+
614
## [0.1.17](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.17) (2024-02-27)
715

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

demo/webpack-ts/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "csv-demo-webpack-ts",
3-
"version": "0.1.17",
3+
"version": "0.1.18",
44
"description": "",
55
"private": true,
66
"keywords": [],
77
"author": "",
88
"license": "ISC",
99
"dependencies": {
1010
"csv-generate": "^4.4.0",
11-
"csv-parse": "^5.5.4",
11+
"csv-parse": "^5.5.5",
1212
"csv-stringify": "^6.4.6",
1313
"http-server": "^14.1.1",
1414
"stream-transform": "^3.3.1"

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.20](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.20) (2024-02-28)
7+
8+
**Note:** Version bump only for package csv-demo-webpack
9+
10+
11+
12+
13+
614
## [0.1.19](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.19) (2024-02-27)
715

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

demo/webpack/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "csv-demo-webpack",
3-
"version": "0.1.19",
3+
"version": "0.1.20",
44
"description": "",
55
"private": true,
66
"scripts": {
@@ -16,9 +16,9 @@
1616
"webpack-cli": "^5.1.4"
1717
},
1818
"dependencies": {
19-
"csv": "^6.3.7",
19+
"csv": "^6.3.8",
2020
"csv-generate": "^4.4.0",
21-
"csv-parse": "^5.5.4",
21+
"csv-parse": "^5.5.5",
2222
"csv-stringify": "^6.4.6",
2323
"http-server": "^14.1.1",
2424
"stream-browserify": "^3.0.0",

packages/csv-parse/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+
## [5.5.5](https://github.com/adaltas/node-csv/compare/[email protected]@5.5.5) (2024-02-28)
7+
8+
9+
### Bug Fixes
10+
11+
* **csv-parse:** comment infix when comment first field char (fix [#415](https://github.com/adaltas/node-csv/issues/415)) ([8e0f8b8](https://github.com/adaltas/node-csv/commit/8e0f8b8e11736f1223b0bda4dd2a3b37506dd531))
12+
13+
14+
615
## [5.5.4](https://github.com/adaltas/node-csv/compare/[email protected]@5.5.4) (2024-02-27)
716

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

packages/csv-parse/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "5.5.4",
2+
"version": "5.5.5",
33
"name": "csv-parse",
44
"description": "CSV parsing implementing the Node.js `stream.Transform` API",
55
"keywords": [

packages/csv/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+
## [6.3.8](https://github.com/adaltas/node-csv/compare/[email protected]@6.3.8) (2024-02-28)
7+
8+
**Note:** Version bump only for package csv
9+
10+
11+
12+
13+
614
## [6.3.7](https://github.com/adaltas/node-csv/compare/[email protected]@6.3.7) (2024-02-27)
715

816
**Note:** Version bump only for package csv

packages/csv/dist/cjs/index.cjs

+6-4
Original file line numberDiff line numberDiff line change
@@ -1120,10 +1120,12 @@ const transform$1 = function(original_options = {}) {
11201120
if(this.state.commenting){
11211121
continue;
11221122
}
1123-
const commentCount = comment === null ? 0 : this.__compareBytes(comment, buf, pos, chr);
1124-
if(commentCount !== 0 && (comment_no_infix === false || this.state.field.length === 0)){
1125-
this.state.commenting = true;
1126-
continue;
1123+
if(comment !== null && (comment_no_infix === false || (this.state.record.length === 0 && this.state.field.length === 0))) {
1124+
const commentCount = this.__compareBytes(comment, buf, pos, chr);
1125+
if(commentCount !== 0){
1126+
this.state.commenting = true;
1127+
continue;
1128+
}
11271129
}
11281130
const delimiterLength = this.__isDelimiter(buf, pos, chr);
11291131
if(delimiterLength !== 0){

packages/csv/dist/cjs/sync.cjs

+6-4
Original file line numberDiff line numberDiff line change
@@ -1111,10 +1111,12 @@ const transform$1 = function(original_options = {}) {
11111111
if(this.state.commenting){
11121112
continue;
11131113
}
1114-
const commentCount = comment === null ? 0 : this.__compareBytes(comment, buf, pos, chr);
1115-
if(commentCount !== 0 && (comment_no_infix === false || this.state.field.length === 0)){
1116-
this.state.commenting = true;
1117-
continue;
1114+
if(comment !== null && (comment_no_infix === false || (this.state.record.length === 0 && this.state.field.length === 0))) {
1115+
const commentCount = this.__compareBytes(comment, buf, pos, chr);
1116+
if(commentCount !== 0){
1117+
this.state.commenting = true;
1118+
continue;
1119+
}
11181120
}
11191121
const delimiterLength = this.__isDelimiter(buf, pos, chr);
11201122
if(delimiterLength !== 0){

packages/csv/dist/esm/index.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -6311,10 +6311,12 @@ const transform$1 = function(original_options = {}) {
63116311
if(this.state.commenting){
63126312
continue;
63136313
}
6314-
const commentCount = comment === null ? 0 : this.__compareBytes(comment, buf, pos, chr);
6315-
if(commentCount !== 0 && (comment_no_infix === false || this.state.field.length === 0)){
6316-
this.state.commenting = true;
6317-
continue;
6314+
if(comment !== null && (comment_no_infix === false || (this.state.record.length === 0 && this.state.field.length === 0))) {
6315+
const commentCount = this.__compareBytes(comment, buf, pos, chr);
6316+
if(commentCount !== 0){
6317+
this.state.commenting = true;
6318+
continue;
6319+
}
63186320
}
63196321
const delimiterLength = this.__isDelimiter(buf, pos, chr);
63206322
if(delimiterLength !== 0){

packages/csv/dist/esm/sync.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -6302,10 +6302,12 @@ const transform$1 = function(original_options = {}) {
63026302
if(this.state.commenting){
63036303
continue;
63046304
}
6305-
const commentCount = comment === null ? 0 : this.__compareBytes(comment, buf, pos, chr);
6306-
if(commentCount !== 0 && (comment_no_infix === false || this.state.field.length === 0)){
6307-
this.state.commenting = true;
6308-
continue;
6305+
if(comment !== null && (comment_no_infix === false || (this.state.record.length === 0 && this.state.field.length === 0))) {
6306+
const commentCount = this.__compareBytes(comment, buf, pos, chr);
6307+
if(commentCount !== 0){
6308+
this.state.commenting = true;
6309+
continue;
6310+
}
63096311
}
63106312
const delimiterLength = this.__isDelimiter(buf, pos, chr);
63116313
if(delimiterLength !== 0){

0 commit comments

Comments
 (0)