Skip to content

Commit 466e752

Browse files
committed
1 parent ca3f55b commit 466e752

File tree

12 files changed

+64
-23
lines changed

12 files changed

+64
-23
lines changed

demo/esm/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
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.15](https://github.com/adaltas/node-csv/compare/[email protected]@0.0.15) (2023-01-31)
7+
8+
**Note:** Version bump only for package csv-demo-esm
9+
10+
11+
12+
13+
614
## [0.0.14](https://github.com/adaltas/node-csv/compare/[email protected]@0.0.14) (2022-11-30)
715

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

demo/esm/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "csv-demo-esm",
3-
"version": "0.0.14",
3+
"version": "0.0.15",
44
"main": "index.js",
55
"license": "MIT",
66
"type": "module",
77
"private": true,
88
"dependencies": {
9-
"csv": "^6.2.5",
10-
"csv-parse": "^5.3.3"
9+
"csv": "^6.2.6",
10+
"csv-parse": "^5.3.4"
1111
},
1212
"devDependencies": {
1313
"coffeescript": "^2.7.0",

demo/issues-esm/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
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.6](https://github.com/adaltas/node-csv/compare/[email protected]@0.0.6) (2023-01-31)
7+
8+
**Note:** Version bump only for package csv-issues-esm
9+
10+
11+
12+
13+
614
## [0.0.5](https://github.com/adaltas/node-csv/compare/[email protected]@0.0.5) (2022-11-08)
715

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

demo/issues-esm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "csv-issues-esm",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"main": "index.js",
55
"license": "MIT",
66
"type": "module",

packages/csv-parse/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
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.3.4](https://github.com/adaltas/node-csv/compare/[email protected]@5.3.4) (2023-01-31)
7+
8+
9+
### Bug Fixes
10+
11+
* **csv-parse:** destroy on end and call close event (fix [#333](https://github.com/adaltas/node-csv/issues/333)) ([ca3f55b](https://github.com/adaltas/node-csv/commit/ca3f55b7cf556b45377677428783608a2d9ebbb2))
12+
13+
14+
615
## [5.3.3](https://github.com/adaltas/node-csv/compare/[email protected]@5.3.3) (2022-11-28)
716

817

packages/csv-parse/package.json

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

packages/csv/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
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.2.6](https://github.com/adaltas/node-csv/compare/[email protected]@6.2.6) (2023-01-31)
7+
8+
**Note:** Version bump only for package csv
9+
10+
11+
12+
13+
614
## [6.2.5](https://github.com/adaltas/node-csv/compare/[email protected]@6.2.5) (2022-11-30)
715

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

packages/csv/dist/cjs/index.cjs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,9 +1575,10 @@ class Parser extends stream.Transform {
15751575
return;
15761576
}
15771577
const err = this.api.parse(buf, false, (record) => {
1578-
this.push.call(this, record);
1578+
this.push(record);
15791579
}, () => {
1580-
this.push.call(this, null);
1580+
this.push(null);
1581+
this.on('end', this.destroy);
15811582
});
15821583
if(err !== undefined){
15831584
this.state.stop = true;
@@ -1590,9 +1591,10 @@ class Parser extends stream.Transform {
15901591
return;
15911592
}
15921593
const err = this.api.parse(undefined, true, (record) => {
1593-
this.push.call(this, record);
1594+
this.push(record);
15941595
}, () => {
1595-
this.push.call(this, null);
1596+
this.push(null);
1597+
this.on('end', this.destroy);
15961598
});
15971599
callback(err);
15981600
}

packages/csv/dist/esm/index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6702,9 +6702,10 @@ class Parser extends Transform {
67026702
return;
67036703
}
67046704
const err = this.api.parse(buf, false, (record) => {
6705-
this.push.call(this, record);
6705+
this.push(record);
67066706
}, () => {
6707-
this.push.call(this, null);
6707+
this.push(null);
6708+
this.on('end', this.destroy);
67086709
});
67096710
if(err !== undefined){
67106711
this.state.stop = true;
@@ -6717,9 +6718,10 @@ class Parser extends Transform {
67176718
return;
67186719
}
67196720
const err = this.api.parse(undefined, true, (record) => {
6720-
this.push.call(this, record);
6721+
this.push(record);
67216722
}, () => {
6722-
this.push.call(this, null);
6723+
this.push(null);
6724+
this.on('end', this.destroy);
67236725
});
67246726
callback(err);
67256727
}

packages/csv/dist/iife/index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6705,9 +6705,10 @@ var csv = (function (exports) {
67056705
return;
67066706
}
67076707
const err = this.api.parse(buf, false, (record) => {
6708-
this.push.call(this, record);
6708+
this.push(record);
67096709
}, () => {
6710-
this.push.call(this, null);
6710+
this.push(null);
6711+
this.on('end', this.destroy);
67116712
});
67126713
if(err !== undefined){
67136714
this.state.stop = true;
@@ -6720,9 +6721,10 @@ var csv = (function (exports) {
67206721
return;
67216722
}
67226723
const err = this.api.parse(undefined, true, (record) => {
6723-
this.push.call(this, record);
6724+
this.push(record);
67246725
}, () => {
6725-
this.push.call(this, null);
6726+
this.push(null);
6727+
this.on('end', this.destroy);
67266728
});
67276729
callback(err);
67286730
}

0 commit comments

Comments
 (0)