Skip to content

Commit 78a8792

Browse files
committed
1 parent 5b8a6b2 commit 78a8792

File tree

14 files changed

+63
-22
lines changed

14 files changed

+63
-22
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.8](https://github.com/adaltas/node-csv/compare/[email protected]@0.0.8) (2022-07-01)
7+
8+
**Note:** Version bump only for package csv-demo-esm
9+
10+
11+
12+
13+
614
### [0.0.7](https://github.com/adaltas/node-csv/compare/[email protected]@0.0.7) (2022-06-29)
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.7",
3+
"version": "0.0.8",
44
"main": "index.js",
55
"license": "MIT",
66
"type": "module",
77
"private": true,
88
"dependencies": {
9-
"csv": "^6.1.4",
10-
"csv-parse": "^5.2.1"
9+
"csv": "^6.1.5",
10+
"csv-parse": "^5.2.2"
1111
},
1212
"devDependencies": {
1313
"coffeescript": "^2.7.0",

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.2.2](https://github.com/adaltas/node-csv/compare/[email protected]@5.2.2) (2022-07-01)
7+
8+
9+
### Bug Fixes
10+
11+
* **csv-parse:** encoding detection with bom ([#350](https://github.com/adaltas/node-csv/issues/350)) ([fd75e66](https://github.com/adaltas/node-csv/commit/fd75e6626c1c549936bf35a2247ebefa0f3d5ec3))
12+
13+
14+
615
### [5.2.1](https://github.com/adaltas/node-csv/compare/[email protected]@5.2.1) (2022-06-29)
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.2.1",
2+
"version": "5.2.2",
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.1.5](https://github.com/adaltas/node-csv/compare/[email protected]@6.1.5) (2022-07-01)
7+
8+
**Note:** Version bump only for package csv
9+
10+
11+
12+
13+
614
### [6.1.4](https://github.com/adaltas/node-csv/compare/[email protected]@6.1.4) (2022-06-29)
715

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

packages/csv/dist/cjs/index.cjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -896,8 +896,8 @@ const transform$1 = function(original_options = {}) {
896896
},
897897
// Central parser implementation
898898
parse: function(nextBuf, end, push, close){
899-
const {bom, comment, escape, from_line, ltrim, max_record_size, quote, raw, relax_quotes, rtrim, skip_empty_lines, to, to_line} = this.options;
900-
let {record_delimiter} = this.options;
899+
const {bom, from_line, ltrim, max_record_size,raw, relax_quotes, rtrim, skip_empty_lines, to, to_line} = this.options;
900+
let {comment, escape, quote, record_delimiter} = this.options;
901901
const {bomSkipped, previousBuf, rawBuffer, escapeIsQuote} = this.state;
902902
let buf;
903903
if(previousBuf === undefined){
@@ -933,6 +933,8 @@ const transform$1 = function(original_options = {}) {
933933
buf = buf.slice(bomLength);
934934
// Renormalize original options with the new encoding
935935
this.options = normalize_options$1({...this.original_options, encoding: encoding});
936+
// Options will re-evaluate the Buffer with the new encoding
937+
({comment, escape, quote } = this.options);
936938
break;
937939
}
938940
}

packages/csv/dist/cjs/sync.cjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,8 +893,8 @@ const transform$1 = function(original_options = {}) {
893893
},
894894
// Central parser implementation
895895
parse: function(nextBuf, end, push, close){
896-
const {bom, comment, escape, from_line, ltrim, max_record_size, quote, raw, relax_quotes, rtrim, skip_empty_lines, to, to_line} = this.options;
897-
let {record_delimiter} = this.options;
896+
const {bom, from_line, ltrim, max_record_size,raw, relax_quotes, rtrim, skip_empty_lines, to, to_line} = this.options;
897+
let {comment, escape, quote, record_delimiter} = this.options;
898898
const {bomSkipped, previousBuf, rawBuffer, escapeIsQuote} = this.state;
899899
let buf;
900900
if(previousBuf === undefined){
@@ -930,6 +930,8 @@ const transform$1 = function(original_options = {}) {
930930
buf = buf.slice(bomLength);
931931
// Renormalize original options with the new encoding
932932
this.options = normalize_options$1({...this.original_options, encoding: encoding});
933+
// Options will re-evaluate the Buffer with the new encoding
934+
({comment, escape, quote } = this.options);
933935
break;
934936
}
935937
}

packages/csv/dist/esm/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6016,8 +6016,8 @@ const transform$1 = function(original_options = {}) {
60166016
},
60176017
// Central parser implementation
60186018
parse: function(nextBuf, end, push, close){
6019-
const {bom, comment, escape, from_line, ltrim, max_record_size, quote, raw, relax_quotes, rtrim, skip_empty_lines, to, to_line} = this.options;
6020-
let {record_delimiter} = this.options;
6019+
const {bom, from_line, ltrim, max_record_size,raw, relax_quotes, rtrim, skip_empty_lines, to, to_line} = this.options;
6020+
let {comment, escape, quote, record_delimiter} = this.options;
60216021
const {bomSkipped, previousBuf, rawBuffer, escapeIsQuote} = this.state;
60226022
let buf;
60236023
if(previousBuf === undefined){
@@ -6053,6 +6053,8 @@ const transform$1 = function(original_options = {}) {
60536053
buf = buf.slice(bomLength);
60546054
// Renormalize original options with the new encoding
60556055
this.options = normalize_options$1({...this.original_options, encoding: encoding});
6056+
// Options will re-evaluate the Buffer with the new encoding
6057+
({comment, escape, quote } = this.options);
60566058
break;
60576059
}
60586060
}

packages/csv/dist/esm/sync.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6013,8 +6013,8 @@ const transform$1 = function(original_options = {}) {
60136013
},
60146014
// Central parser implementation
60156015
parse: function(nextBuf, end, push, close){
6016-
const {bom, comment, escape, from_line, ltrim, max_record_size, quote, raw, relax_quotes, rtrim, skip_empty_lines, to, to_line} = this.options;
6017-
let {record_delimiter} = this.options;
6016+
const {bom, from_line, ltrim, max_record_size,raw, relax_quotes, rtrim, skip_empty_lines, to, to_line} = this.options;
6017+
let {comment, escape, quote, record_delimiter} = this.options;
60186018
const {bomSkipped, previousBuf, rawBuffer, escapeIsQuote} = this.state;
60196019
let buf;
60206020
if(previousBuf === undefined){
@@ -6050,6 +6050,8 @@ const transform$1 = function(original_options = {}) {
60506050
buf = buf.slice(bomLength);
60516051
// Renormalize original options with the new encoding
60526052
this.options = normalize_options$1({...this.original_options, encoding: encoding});
6053+
// Options will re-evaluate the Buffer with the new encoding
6054+
({comment, escape, quote } = this.options);
60536055
break;
60546056
}
60556057
}

packages/csv/dist/iife/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6019,8 +6019,8 @@ var csv = (function (exports) {
60196019
},
60206020
// Central parser implementation
60216021
parse: function(nextBuf, end, push, close){
6022-
const {bom, comment, escape, from_line, ltrim, max_record_size, quote, raw, relax_quotes, rtrim, skip_empty_lines, to, to_line} = this.options;
6023-
let {record_delimiter} = this.options;
6022+
const {bom, from_line, ltrim, max_record_size,raw, relax_quotes, rtrim, skip_empty_lines, to, to_line} = this.options;
6023+
let {comment, escape, quote, record_delimiter} = this.options;
60246024
const {bomSkipped, previousBuf, rawBuffer, escapeIsQuote} = this.state;
60256025
let buf;
60266026
if(previousBuf === undefined){
@@ -6056,6 +6056,8 @@ var csv = (function (exports) {
60566056
buf = buf.slice(bomLength);
60576057
// Renormalize original options with the new encoding
60586058
this.options = normalize_options$1({...this.original_options, encoding: encoding});
6059+
// Options will re-evaluate the Buffer with the new encoding
6060+
({comment, escape, quote } = this.options);
60596061
break;
60606062
}
60616063
}

packages/csv/dist/iife/sync.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6016,8 +6016,8 @@ var csv_sync = (function (exports) {
60166016
},
60176017
// Central parser implementation
60186018
parse: function(nextBuf, end, push, close){
6019-
const {bom, comment, escape, from_line, ltrim, max_record_size, quote, raw, relax_quotes, rtrim, skip_empty_lines, to, to_line} = this.options;
6020-
let {record_delimiter} = this.options;
6019+
const {bom, from_line, ltrim, max_record_size,raw, relax_quotes, rtrim, skip_empty_lines, to, to_line} = this.options;
6020+
let {comment, escape, quote, record_delimiter} = this.options;
60216021
const {bomSkipped, previousBuf, rawBuffer, escapeIsQuote} = this.state;
60226022
let buf;
60236023
if(previousBuf === undefined){
@@ -6053,6 +6053,8 @@ var csv_sync = (function (exports) {
60536053
buf = buf.slice(bomLength);
60546054
// Renormalize original options with the new encoding
60556055
this.options = normalize_options$1({...this.original_options, encoding: encoding});
6056+
// Options will re-evaluate the Buffer with the new encoding
6057+
({comment, escape, quote } = this.options);
60566058
break;
60576059
}
60586060
}

packages/csv/dist/umd/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6022,8 +6022,8 @@
60226022
},
60236023
// Central parser implementation
60246024
parse: function(nextBuf, end, push, close){
6025-
const {bom, comment, escape, from_line, ltrim, max_record_size, quote, raw, relax_quotes, rtrim, skip_empty_lines, to, to_line} = this.options;
6026-
let {record_delimiter} = this.options;
6025+
const {bom, from_line, ltrim, max_record_size,raw, relax_quotes, rtrim, skip_empty_lines, to, to_line} = this.options;
6026+
let {comment, escape, quote, record_delimiter} = this.options;
60276027
const {bomSkipped, previousBuf, rawBuffer, escapeIsQuote} = this.state;
60286028
let buf;
60296029
if(previousBuf === undefined){
@@ -6059,6 +6059,8 @@
60596059
buf = buf.slice(bomLength);
60606060
// Renormalize original options with the new encoding
60616061
this.options = normalize_options$1({...this.original_options, encoding: encoding});
6062+
// Options will re-evaluate the Buffer with the new encoding
6063+
({comment, escape, quote } = this.options);
60626064
break;
60636065
}
60646066
}

packages/csv/dist/umd/sync.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6019,8 +6019,8 @@
60196019
},
60206020
// Central parser implementation
60216021
parse: function(nextBuf, end, push, close){
6022-
const {bom, comment, escape, from_line, ltrim, max_record_size, quote, raw, relax_quotes, rtrim, skip_empty_lines, to, to_line} = this.options;
6023-
let {record_delimiter} = this.options;
6022+
const {bom, from_line, ltrim, max_record_size,raw, relax_quotes, rtrim, skip_empty_lines, to, to_line} = this.options;
6023+
let {comment, escape, quote, record_delimiter} = this.options;
60246024
const {bomSkipped, previousBuf, rawBuffer, escapeIsQuote} = this.state;
60256025
let buf;
60266026
if(previousBuf === undefined){
@@ -6056,6 +6056,8 @@
60566056
buf = buf.slice(bomLength);
60576057
// Renormalize original options with the new encoding
60586058
this.options = normalize_options$1({...this.original_options, encoding: encoding});
6059+
// Options will re-evaluate the Buffer with the new encoding
6060+
({comment, escape, quote } = this.options);
60596061
break;
60606062
}
60616063
}

packages/csv/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "csv",
3-
"version": "6.1.4",
3+
"version": "6.1.5",
44
"description": "A mature CSV toolset with simple api, full of options and tested against large datasets.",
55
"keywords": [
66
"node",
@@ -22,7 +22,7 @@
2222
],
2323
"dependencies": {
2424
"csv-generate": "^4.1.0",
25-
"csv-parse": "^5.2.1",
25+
"csv-parse": "^5.2.2",
2626
"csv-stringify": "^6.1.3",
2727
"stream-transform": "^3.1.0"
2828
},

0 commit comments

Comments
 (0)