Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: adaltas/node-csv
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: csv@6.2.1
Choose a base ref
...
head repository: adaltas/node-csv
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: csv@6.2.2
Choose a head ref
  • 5 commits
  • 77 files changed
  • 2 contributors

Commits on Oct 12, 2022

  1. chore: latest dependencies

    wdavidw committed Oct 12, 2022
    Copy the full SHA
    92e732e View commit details

Commits on Oct 22, 2022

  1. Copy the full SHA
    33921cb View commit details

Commits on Nov 8, 2022

  1. Copy the full SHA
    f4d7c97 View commit details
  2. chore: latest dependencies

    wdavidw committed Nov 8, 2022
    Copy the full SHA
    c9de637 View commit details
  3. chore(release): publish

     - csv-demo-browser@0.1.3
     - csv-demo-cjs@0.2.1
     - csv-demo-eslint@0.1.5
     - csv-demo-esm@0.0.11
     - csv-issues-cjs@0.1.2
     - csv-issues-esm@0.0.5
     - csv-demo-ts-module-node16@0.2.1
     - csv-demo-webpack-ts@0.1.3
     - csv-demo-webpack@0.1.5
     - csv-generate@4.2.1
     - csv-parse@5.3.2
     - csv-stringify@6.2.1
     - csv@6.2.2
     - stream-transform@3.2.1
    wdavidw committed Nov 8, 2022
    Copy the full SHA
    f5b1946 View commit details
Showing with 337 additions and 237 deletions.
  1. +8 −0 demo/browser/CHANGELOG.md
  2. +2 −2 demo/browser/package.json
  3. +8 −0 demo/cjs/CHANGELOG.md
  4. +5 −5 demo/cjs/package.json
  5. +8 −0 demo/eslint/CHANGELOG.md
  6. +3 −3 demo/eslint/package.json
  7. +8 −0 demo/esm/CHANGELOG.md
  8. +4 −4 demo/esm/package.json
  9. +8 −0 demo/issues-cjs/CHANGELOG.md
  10. +2 −2 demo/issues-cjs/package.json
  11. +8 −0 demo/issues-esm/CHANGELOG.md
  12. +74 −0 demo/issues-esm/lib/366.1.js
  13. +2 −2 demo/issues-esm/package.json
  14. +8 −0 demo/ts-module-node16/CHANGELOG.md
  15. +5 −5 demo/ts-module-node16/package.json
  16. +8 −0 demo/webpack-ts/CHANGELOG.md
  17. +5 −5 demo/webpack-ts/package.json
  18. +8 −0 demo/webpack/CHANGELOG.md
  19. +2 −2 demo/webpack/package.json
  20. +5 −5 package.json
  21. +9 −0 packages/csv-generate/CHANGELOG.md
  22. +2 −9 packages/csv-generate/dist/cjs/index.cjs
  23. +1 −1 packages/csv-generate/dist/cjs/stream.d.ts
  24. +2 −9 packages/csv-generate/dist/cjs/sync.cjs
  25. +1 −1 packages/csv-generate/dist/cjs/sync.d.ts
  26. +1 −1 packages/csv-generate/dist/esm/stream.d.ts
  27. +1 −1 packages/csv-generate/dist/esm/sync.d.ts
  28. +0 −2 packages/csv-generate/dist/iife/index.js
  29. +0 −2 packages/csv-generate/dist/iife/sync.js
  30. +0 −2 packages/csv-generate/dist/umd/index.js
  31. +0 −2 packages/csv-generate/dist/umd/sync.js
  32. +1 −1 packages/csv-generate/lib/stream.d.ts
  33. +1 −1 packages/csv-generate/lib/sync.d.ts
  34. +10 −10 packages/csv-generate/package.json
  35. +9 −0 packages/csv-parse/CHANGELOG.md
  36. +0 −2 packages/csv-parse/dist/cjs/index.cjs
  37. +0 −2 packages/csv-parse/dist/cjs/sync.cjs
  38. +2 −2 packages/csv-parse/dist/cjs/sync.d.ts
  39. +2 −2 packages/csv-parse/dist/esm/sync.d.ts
  40. +0 −2 packages/csv-parse/dist/iife/index.js
  41. +0 −2 packages/csv-parse/dist/iife/sync.js
  42. +0 −2 packages/csv-parse/dist/umd/index.js
  43. +0 −2 packages/csv-parse/dist/umd/sync.js
  44. +2 −2 packages/csv-parse/lib/sync.d.ts
  45. +12 −12 packages/csv-parse/package.json
  46. +9 −0 packages/csv-stringify/CHANGELOG.md
  47. +0 −2 packages/csv-stringify/dist/cjs/index.cjs
  48. +0 −2 packages/csv-stringify/dist/cjs/sync.cjs
  49. +2 −2 packages/csv-stringify/dist/cjs/sync.d.ts
  50. +2 −2 packages/csv-stringify/dist/esm/sync.d.ts
  51. +0 −2 packages/csv-stringify/dist/iife/index.js
  52. +0 −2 packages/csv-stringify/dist/iife/sync.js
  53. +0 −2 packages/csv-stringify/dist/umd/index.js
  54. +0 −2 packages/csv-stringify/dist/umd/sync.js
  55. +2 −2 packages/csv-stringify/lib/sync.d.ts
  56. +12 −12 packages/csv-stringify/package.json
  57. +8 −0 packages/csv/CHANGELOG.md
  58. +6 −13 packages/csv/dist/cjs/index.cjs
  59. +6 −13 packages/csv/dist/cjs/sync.cjs
  60. +2 −2 packages/csv/dist/esm/index.js
  61. +2 −2 packages/csv/dist/esm/sync.js
  62. +2 −4 packages/csv/dist/iife/index.js
  63. +2 −4 packages/csv/dist/iife/sync.js
  64. +2 −4 packages/csv/dist/umd/index.js
  65. +2 −4 packages/csv/dist/umd/sync.js
  66. +14 −14 packages/csv/package.json
  67. +9 −0 packages/stream-transform/CHANGELOG.md
  68. +2 −9 packages/stream-transform/dist/cjs/index.cjs
  69. +2 −9 packages/stream-transform/dist/cjs/sync.cjs
  70. +1 −1 packages/stream-transform/dist/cjs/sync.d.ts
  71. +1 −1 packages/stream-transform/dist/esm/sync.d.ts
  72. +0 −2 packages/stream-transform/dist/iife/index.js
  73. +0 −2 packages/stream-transform/dist/iife/sync.js
  74. +0 −2 packages/stream-transform/dist/umd/index.js
  75. +0 −2 packages/stream-transform/dist/umd/sync.js
  76. +1 −1 packages/stream-transform/lib/sync.d.ts
  77. +11 −11 packages/stream-transform/package.json
8 changes: 8 additions & 0 deletions demo/browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.1.3](https://github.com/adaltas/node-csv/compare/csv-demo-browser@0.1.2...csv-demo-browser@0.1.3) (2022-11-08)

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





### [0.1.2](https://github.com/adaltas/node-csv/compare/csv-demo-browser@0.1.1...csv-demo-browser@0.1.2) (2022-05-24)

**Note:** Version bump only for package csv-demo-browser
4 changes: 2 additions & 2 deletions demo/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "csv-demo-browser",
"version": "0.1.2",
"version": "0.1.3",
"main": "index.js",
"license": "MIT",
"type": "module",
@@ -20,6 +20,6 @@
"start": "node server.js"
},
"dependencies": {
"express": "^4.18.1"
"express": "^4.18.2"
}
}
8 changes: 8 additions & 0 deletions demo/cjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.2.1](https://github.com/adaltas/node-csv/compare/csv-demo-cjs@0.2.0...csv-demo-cjs@0.2.1) (2022-11-08)

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





## [0.2.0](https://github.com/adaltas/node-csv/compare/csv-demo-cjs@0.1.2...csv-demo-cjs@0.2.0) (2022-07-10)


10 changes: 5 additions & 5 deletions demo/cjs/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "csv-demo-cjs",
"version": "0.2.0",
"version": "0.2.1",
"main": "index.js",
"license": "MIT",
"type": "commonjs",
"private": true,
"devDependencies": {
"@types/node": "^18.0.3",
"@types/node": "^18.8.4",
"coffeescript": "^2.7.0",
"mocha": "^10.0.0",
"mocha": "^10.1.0",
"should": "^13.2.3",
"ts-node": "^10.8.2",
"typescript": "^4.7.4"
"ts-node": "^10.9.1",
"typescript": "^4.8.4"
},
"mocha": {
"inline-diffs": true,
8 changes: 8 additions & 0 deletions demo/eslint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.1.5](https://github.com/adaltas/node-csv/compare/csv-demo-eslint@0.1.4...csv-demo-eslint@0.1.5) (2022-11-08)

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





### [0.1.4](https://github.com/adaltas/node-csv/compare/csv-demo-eslint@0.1.3...csv-demo-eslint@0.1.4) (2022-07-10)

**Note:** Version bump only for package csv-demo-eslint
6 changes: 3 additions & 3 deletions demo/eslint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "csv-demo-eslint",
"version": "0.1.4",
"version": "0.1.5",
"description": "",
"main": "index.js",
"private": true,
@@ -10,10 +10,10 @@
},
"license": "MIT",
"dependencies": {
"csv-stringify": "^6.2.0"
"csv-stringify": "^6.2.1"
},
"devDependencies": {
"eslint": "^8.19.0",
"eslint": "^8.27.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.26.0"
}
8 changes: 8 additions & 0 deletions demo/esm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.11](https://github.com/adaltas/node-csv/compare/csv-demo-esm@0.0.10...csv-demo-esm@0.0.11) (2022-11-08)

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





### [0.0.10](https://github.com/adaltas/node-csv/compare/csv-demo-esm@0.0.9...csv-demo-esm@0.0.10) (2022-10-12)

**Note:** Version bump only for package csv-demo-esm
8 changes: 4 additions & 4 deletions demo/esm/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "csv-demo-esm",
"version": "0.0.10",
"version": "0.0.11",
"main": "index.js",
"license": "MIT",
"type": "module",
"private": true,
"dependencies": {
"csv": "^6.2.1",
"csv-parse": "^5.3.1"
"csv": "^6.2.2",
"csv-parse": "^5.3.2"
},
"devDependencies": {
"coffeescript": "^2.7.0",
"mocha": "^10.0.0",
"mocha": "^10.1.0",
"should": "^13.2.3"
},
"mocha": {
8 changes: 8 additions & 0 deletions demo/issues-cjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.1.2](https://github.com/adaltas/node-csv/compare/csv-issues-cjs@0.1.1...csv-issues-cjs@0.1.2) (2022-11-08)

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





### [0.1.1](https://github.com/adaltas/node-csv/compare/csv-issues-cjs@0.1.0...csv-issues-cjs@0.1.1) (2022-07-10)

**Note:** Version bump only for package csv-issues-cjs
4 changes: 2 additions & 2 deletions demo/issues-cjs/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "csv-issues-cjs",
"version": "0.1.1",
"version": "0.1.2",
"main": "index.js",
"license": "MIT",
"private": true,
"devDependencies": {
"coffeescript": "^2.7.0",
"mocha": "^10.0.0",
"mocha": "^10.1.0",
"should": "^13.2.3"
},
"mocha": {
8 changes: 8 additions & 0 deletions demo/issues-esm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.5](https://github.com/adaltas/node-csv/compare/csv-issues-esm@0.0.4...csv-issues-esm@0.0.5) (2022-11-08)

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





### [0.0.4](https://github.com/adaltas/node-csv/compare/csv-issues-esm@0.0.3...csv-issues-esm@0.0.4) (2022-10-12)


74 changes: 74 additions & 0 deletions demo/issues-esm/lib/366.1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@

import assert from 'assert'
import { parse } from 'csv-parse'
import { generate } from 'csv-generate'

// Expected data
let headers = null
const third_column = []
// Fake readable stream
const parser = generate({
high_water_mark: 64 * 64,
length: 100,
seed: 1
}).pipe(
parse()
);
// Intialise count
let count = 0;
// Iterate through each records
for await (const record of parser) {
if(count++ === 0){
// 1. Extract the columns names from the first line
headers = record
} else {
// 2. Keep in memory only one column out of the all dataset
third_column.push(record[2])
}
}
// Validation
assert.deepStrictEqual(headers, [
'OMH',
'ONKCHhJmjadoA',
'D',
'GeACHiN',
'nnmiN',
'CGfDKB',
'NIl',
'JnnmjadnmiNL'
])
assert.deepStrictEqual(third_column, [
'fENL', 'gGeBFaeAC', 'jPbhKCHhJn',
'DKCHjONKCHi', 'LEPPbgI', 'dmkeACHgG',
'BDLDLF', 'C', 'kdnmiLENJo',
'A', 'PPaeACGfCIkcj', 'oABFaepBFbgGeBFb',
'ENJnmj', 'dlhKAABGdlhJnn', 'OPPPbfDK',
'PbgGeoACJmjPa', 'LD', 'lfDKBFbhKp',
'LE', 'lhIkepCIkdmjbhI', 'jPPadnlhIl',
'Ge', 'ONKACJnlhJnnm', 'NLF',
'clfCGepBFaeBDL', 'kdmiN', 'AACIlf',
'jPbfE', 'gHiN', 'GclgHgG',
'CJnmjPbhJoA', 'nlhKCGeABFcjPbh', 'afCJnmiMIleBE',
'fDMHgHhJnlhKBF', 'keAADJopDL', 'mjaclgFciO',
'LE', 'EONKCH', 'gFckdnnnooABEN',
'pCIlgGfCHhKAABDM', 'clgFaeBGdmjPbh', 'jPbgGdnnmjbgGfE',
'MGdmkepE', 'GfDLEPa', 'JopEOMGfEOON',
'jbfEPPbiMG', 'CHgGeACJnmkclfDK', 'bhJ',
'gIjP', 'pDKACIjPaep', 'fDMG',
'Kp', 'gFcj', 'DJpBFbgFaeA',
'iLFbgGdnl', 'Jn', 'ADJopC',
'eACGfCJnmjONLF', 'Ge', 'NKAADJnn',
'iMHh', 'PadnlgHgHiMGd', 'ABDJpCIjaclfEMHi',
'nlgGf', 'Ge', 'B',
'kclgFbgFbhIlgGf', 'jbhIlgHgGf', 'MIjPadnmkclfD',
'Hg', 'mjbgH', 'GfDLDKB',
'ENLFafCGfEN', 'Gf', 'hKCHiMHgFbiMIl',
'biLEPPPafCIkdm', 'hKpD', 'keoBE',
'Hg', 'D', 'KACHhKAABDLF',
'NKA', 'HiMIkep', 'C',
'biMGdmkdnnlgFc', 'CGeAACJnlgG', 'FbgGfCIkdnnl',
'PafCHgFbiMIkb', 'LD', 'gGfENLEOP',
'IjOPPPa', 'eBFbhJpCIkdlhK', 'IjPbhIlfDMGf',
'dnmlfCGepCHhIm', 'nmjPaeoACIkepEM', 'oBDLEOONIlh',
'A', 'NKB', 'EOMHhIlhIkd'
])
4 changes: 2 additions & 2 deletions demo/issues-esm/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "csv-issues-esm",
"version": "0.0.4",
"version": "0.0.5",
"main": "index.js",
"license": "MIT",
"type": "module",
"private": true,
"devDependencies": {
"coffeescript": "^2.7.0",
"dirname-filename-esm": "^1.1.1",
"mocha": "^10.0.0",
"mocha": "^10.1.0",
"should": "^13.2.3"
},
"mocha": {
8 changes: 8 additions & 0 deletions demo/ts-module-node16/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.2.1](https://github.com/adaltas/node-csv/compare/csv-demo-ts-module-node16@0.2.0...csv-demo-ts-module-node16@0.2.1) (2022-11-08)

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





## 0.2.0 (2022-10-12)


10 changes: 5 additions & 5 deletions demo/ts-module-node16/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "csv-demo-ts-module-node16",
"version": "0.2.0",
"version": "0.2.1",
"main": "index.js",
"license": "MIT",
"type": "module",
"private": true,
"devDependencies": {
"@types/node": "^18.0.3",
"@types/node": "^18.11.9",
"coffeescript": "^2.7.0",
"mocha": "^10.0.0",
"mocha": "^10.1.0",
"should": "^13.2.3",
"ts-node": "^10.8.2",
"typescript": "^4.7.4"
"ts-node": "^10.9.1",
"typescript": "^4.8.4"
},
"mocha": {
"inline-diffs": true,
8 changes: 8 additions & 0 deletions demo/webpack-ts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.1.3](https://github.com/adaltas/node-csv/compare/csv-demo-webpack-ts@0.1.2...csv-demo-webpack-ts@0.1.3) (2022-11-08)

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





### [0.1.2](https://github.com/adaltas/node-csv/compare/csv-demo-webpack-ts@0.1.1...csv-demo-webpack-ts@0.1.2) (2022-07-10)

**Note:** Version bump only for package csv-demo-webpack-ts
10 changes: 5 additions & 5 deletions demo/webpack-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "csv-demo-webpack-ts",
"version": "0.1.2",
"version": "0.1.3",
"description": "",
"private": true,
"scripts": {
@@ -13,11 +13,11 @@
"license": "ISC",
"devDependencies": {
"buffer-browserify": "^0.2.5",
"node-polyfill-webpack-plugin": "^2.0.0",
"node-polyfill-webpack-plugin": "^2.0.1",
"stream-browserify": "^3.0.0",
"ts-loader": "^9.3.1",
"typescript": "^4.7.4",
"webpack": "^5.73.0",
"ts-loader": "^9.4.1",
"typescript": "^4.8.4",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
},
"dependencies": {
8 changes: 8 additions & 0 deletions demo/webpack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.1.5](https://github.com/adaltas/node-csv/compare/csv-demo-webpack@0.1.4...csv-demo-webpack@0.1.5) (2022-11-08)

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





### [0.1.4](https://github.com/adaltas/node-csv/compare/csv-demo-webpack@0.1.3...csv-demo-webpack@0.1.4) (2022-07-10)

**Note:** Version bump only for package csv-demo-webpack
4 changes: 2 additions & 2 deletions demo/webpack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "csv-demo-webpack",
"version": "0.1.4",
"version": "0.1.5",
"description": "",
"private": true,
"scripts": {
@@ -12,7 +12,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"webpack": "^5.73.0",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
},
"dependencies": {
Loading