Skip to content

Commit

Permalink
0.0.10 (#258)
Browse files Browse the repository at this point in the history
* npm: bump @microsoft/api-documenter from 7.8.17 to 7.8.19

Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack) from 7.8.17 to 7.8.19.
- [Release notes](https://github.com/microsoft/rushstack/releases)
- [Commits](https://github.com/microsoft/rushstack/compare/@microsoft/api-documenter_v7.8.17...@microsoft/api-documenter_v7.8.19)

Signed-off-by: dependabot[bot] <support@github.com>

* npm: bump eslint-plugin-react from 7.20.0 to 7.20.1

Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.20.0 to 7.20.1.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](jsx-eslint/eslint-plugin-react@v7.20.0...v7.20.1)

Signed-off-by: dependabot[bot] <support@github.com>

* npm: bump @typescript-eslint/eslint-plugin from 3.4.0 to 3.5.0

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.5.0/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <support@github.com>

* npm: bump eslint-plugin-jest from 23.17.1 to 23.18.0

Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.17.1 to 23.18.0.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md)
- [Commits](jest-community/eslint-plugin-jest@v23.17.1...v23.18.0)

Signed-off-by: dependabot[bot] <support@github.com>

* npm: bump @microsoft/api-documenter from 7.8.19 to 7.8.21

Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack) from 7.8.19 to 7.8.21.
- [Release notes](https://github.com/microsoft/rushstack/releases)
- [Commits](https://github.com/microsoft/rushstack/compare/@microsoft/api-documenter_v7.8.19...@microsoft/api-documenter_v7.8.21)

Signed-off-by: dependabot[bot] <support@github.com>

* npm: bump eslint-plugin-react from 7.20.1 to 7.20.3

Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.20.1 to 7.20.3.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](jsx-eslint/eslint-plugin-react@v7.20.1...v7.20.3)

Signed-off-by: dependabot[bot] <support@github.com>

* npm: bump eslint-plugin-react-hooks from 4.0.4 to 4.0.5

Bumps [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks) from 4.0.4 to 4.0.5.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/eslint-plugin-react-hooks)

Signed-off-by: dependabot[bot] <support@github.com>

* chore(dependecies): update dev dependencies

* chore(dependencies): update dev dependencies

* chore(dependencies): update dependencies

* chore(dev dependencies): ⬆️ updates dependencies

* ci(dev dependencies): 🐛 runs ci on node 12, 16 and 17

* ci: 🐛 adds codacy config

* ci: 🐛 fixes executable bit on hooks

* chore: 🔖 bumps version

* docs(docs): ⬆️ bumps version

* ci(workflows): 👷 refactors GitHub workflows

* revert: ♻️ reverts auto fix

* ci(workflows): 👷 test previous node versions

* ci(workflows): 🐛 removes node 15.x

* ci(workflows): 🐛 removes node 10.x

* fix: 🐛 fixes json with comments issue

* refactor(dependencies): ⬆️ removes node 10 support

* fix(script): 🐛 fixes copy and paste issue

* chore(release): 🔖 0.0.9 release

* ci(workflows): 👷 adds node 13 and 14 to ci workflow

* chore(release): 🔖 bumps version

Prepares 0.0.10 release.

* docs(docs): 📝 bumps version

* build(dev dependencies): ⬆️ update dev dependencies

* github-actions: bump actions/setup-node from 2 to 3 (#136)

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2 to 3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* npm: bump eslint from 8.9.0 to 8.10.0 (#135)

Bumps [eslint](https://github.com/eslint/eslint) from 8.9.0 to 8.10.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.9.0...v8.10.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: 🐛 parse quoted header

Closes #207

* ci: ⬆️ update github actions

* ci: ⬆️ github checkout action

* build: ⬆️ update build dependencies

* docs: update generated api docs

* build: ⬇️ revert upgrade of ts-jest

* docs: update CHANGELOG

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
gregoranders and dependabot[bot] authored Dec 27, 2022
1 parent 1dcd56c commit 857c7ff
Show file tree
Hide file tree
Showing 17 changed files with 131 additions and 58 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: "CodeQL"
name: 'CodeQL'
on:
push:
branches: [ main, development, feature/* ]
branches: [main, development, feature/*]
pull_request:
branches: [ main, development, feature/* ]
branches: [main, development, feature/*]
schedule:
- cron: '43 7 * * 0'
jobs:
Expand All @@ -16,21 +16,21 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
language: ['javascript']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.2.0
with:
submodules: recursive
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Echo Node.js version
run: node --version
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
8 changes: 4 additions & 4 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
node-version: [12.x, 13.x, 14.x, 16.x, 17.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.2.0
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: nodejs project information
Expand All @@ -47,7 +47,7 @@ jobs:
path-to-lcov: ./test/coverage/lcov.info
- name: publish code coverage to code climate
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
uses: paambaati/codeclimate-action@v3.0.0
uses: paambaati/codeclimate-action@v3.2.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
Expand All @@ -61,7 +61,7 @@ jobs:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./test/coverage/lcov.info
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
uses: EnricoMi/publish-unit-test-result-action/composite@v2
with:
check_name: Unit Test Results node${{ matrix.node-version }}-${{ matrix.os }}
files: test/junit.xml
8 changes: 4 additions & 4 deletions .github/workflows/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
node-version: [12.x, 16.x, 17.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.2.0
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: nodejs project information
Expand All @@ -47,7 +47,7 @@ jobs:
path-to-lcov: ./test/coverage/lcov.info
- name: publish code coverage to code climate
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
uses: paambaati/codeclimate-action@v3.0.0
uses: paambaati/codeclimate-action@v3.2.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
Expand All @@ -61,7 +61,7 @@ jobs:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./test/coverage/lcov.info
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
uses: EnricoMi/publish-unit-test-result-action/composite@v2
with:
check_name: Unit Test Results node${{ matrix.node-version }}-${{ matrix.os }}
files: test/junit.xml
8 changes: 4 additions & 4 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
node-version: [12.x, 13.x, 14.x, 16.x, 17.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.2.0
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: nodejs project information
Expand All @@ -47,7 +47,7 @@ jobs:
path-to-lcov: ./test/coverage/lcov.info
- name: publish code coverage to code climate
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
uses: paambaati/codeclimate-action@v3.0.0
uses: paambaati/codeclimate-action@v3.2.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
Expand All @@ -61,7 +61,7 @@ jobs:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./test/coverage/lcov.info
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
uses: EnricoMi/publish-unit-test-result-action/composite@v2
with:
check_name: Unit Test Results node${{ matrix.node-version }}-${{ matrix.os }}
files: test/junit.xml
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.2.0
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org/'
Expand All @@ -45,7 +45,7 @@ jobs:
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
registry-url: 'https://npm.pkg.github.com'
- run: npm publish
Expand Down
65 changes: 65 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,68 @@
#### 0.0.10 (2022-12-27)

##### Build System / Dependencies

* **dev dependencies:** :arrow_up: update dev dependencies ([2cce9f31](https://github.com/gregoranders/ts-csv/commit/2cce9f31ae09dfa15130ddc38af6ad5548895f6e))

##### Chores

* **release:**
* :bookmark: bumps version ([df0c76c7](https://github.com/gregoranders/ts-csv/commit/df0c76c7116c5be00e33d281060d1c0a66acee67))
* :bookmark: 0.0.9 release ([96ddbc01](https://github.com/gregoranders/ts-csv/commit/96ddbc01ad43ca8f4e49395131863c696c14ace9))
* **dev dependencies:** :arrow_up: updates dependencies ([cd464fe2](https://github.com/gregoranders/ts-csv/commit/cd464fe2cd7fbbfbee611839037124b2f1f3cfdb))
* **dependencies:**
* update dependencies ([cf1d9dcc](https://github.com/gregoranders/ts-csv/commit/cf1d9dcc8af8ae822d6b97948d0a8d27052b5cc0))
* update dev dependencies ([e6a6b9fb](https://github.com/gregoranders/ts-csv/commit/e6a6b9fbe52c3fbc54607733eb64bd89caaaadfa))
* **dependecies:** update dev dependencies ([2451ec3a](https://github.com/gregoranders/ts-csv/commit/2451ec3abdb5b55837803971a0f8b541dc797741))

##### Continuous Integration

* **workflows:**
* :construction_worker: adds node 13 and 14 to ci workflow ([bc018d78](https://github.com/gregoranders/ts-csv/commit/bc018d78bae0f6b465e33828297e734be94f6b8f))
* :bug: removes node 10.x ([d36094b4](https://github.com/gregoranders/ts-csv/commit/d36094b498c5485bdd5a154cbc528c9df373409d))
* :bug: removes node 15.x ([29907820](https://github.com/gregoranders/ts-csv/commit/299078205dd8c2c5bf21ad7ab5bd47dff099a3a7))
* :construction_worker: test previous node versions ([7bc68779](https://github.com/gregoranders/ts-csv/commit/7bc687790fc7edc0061a456e64fe52d0cba5be8f))
* :construction_worker: refactors GitHub workflows ([8c82a593](https://github.com/gregoranders/ts-csv/commit/8c82a593694b321bc21a7acafa28fbf0e9095833))
* **dev dependencies:** :bug: runs ci on node 12, 16 and 17 ([cb47be59](https://github.com/gregoranders/ts-csv/commit/cb47be59398212f1a4e1d82a174fad3616d0c6bb))

##### Documentation Changes

* update generated api docs ([da32a2dd](https://github.com/gregoranders/ts-csv/commit/da32a2dd8efd591ae0e03193995b54597a1258bc))
* **docs:**
* :memo: bumps version ([e3eb77bb](https://github.com/gregoranders/ts-csv/commit/e3eb77bb0af12daa07909224f4334685b3ca0ea1))
* :arrow_up: bumps version ([a8c21802](https://github.com/gregoranders/ts-csv/commit/a8c218027672c0c4c9433776b6e140ebfd2fd9bb))

##### Bug Fixes

* **script:** :bug: fixes copy and paste issue ([f296579a](https://github.com/gregoranders/ts-csv/commit/f296579a1a80927db39f92d01bb29624b3167909))

##### Other Changes

* revert upgrade of ts-jest ([cbb50c3e](https://github.com/gregoranders/ts-csv/commit/cbb50c3e3c917447c1c1f444930c31c9e9c2ce37))
* update build dependencies ([29b3adca](https://github.com/gregoranders/ts-csv/commit/29b3adca739d9c714434c9d7dd0dfa01596a6c99))
* github checkout action ([f2243418](https://github.com/gregoranders/ts-csv/commit/f2243418d7ccd782f723db6852f2029d43623058))
* update github actions ([1d378092](https://github.com/gregoranders/ts-csv/commit/1d378092bd166a417ce000a5fd0eac3bf6c58889))
* parse quoted header ([fea98004](https://github.com/gregoranders/ts-csv/commit/fea9800470376e27276d5409d66e4fa394404685))
* bump eslint from 8.9.0 to 8.10.0 ([#135](https://github.com/gregoranders/ts-csv/pull/135)) ([50d5e2b1](https://github.com/gregoranders/ts-csv/commit/50d5e2b1f56be920ca8393ab94bb2da0a62923e2))
* bump actions/setup-node from 2 to 3 ([#136](https://github.com/gregoranders/ts-csv/pull/136)) ([2d1b499a](https://github.com/gregoranders/ts-csv/commit/2d1b499a0a0290a337ffefef1cbd5daf12578682))
* fixes json with comments issue ([01c7bf8f](https://github.com/gregoranders/ts-csv/commit/01c7bf8f88f2eeb36723da18057d45127ca3d444))
* reverts auto fix ([aa634805](https://github.com/gregoranders/ts-csv/commit/aa63480566429ced8f9e6fed72dc7ca3d10d806f))
* bumps version ([bb2abec5](https://github.com/gregoranders/ts-csv/commit/bb2abec5252e1ee158b6d31cce7c7888ddfa66c9))
* fixes executable bit on hooks ([38b0cf93](https://github.com/gregoranders/ts-csv/commit/38b0cf9328540d3df1647957fffc242a3d9e9a2b))
* adds codacy config ([3bb8e06a](https://github.com/gregoranders/ts-csv/commit/3bb8e06ab6467b706042eaaf4d737b98e3494fcf))
* gregoranders/ts-csv into development ([204e1d00](https://github.com/gregoranders/ts-csv/commit/204e1d005b7aba75628b3481fc51f209fd139b98))
* bump eslint-plugin-react-hooks from 4.0.4 to 4.0.5 ([822d7708](https://github.com/gregoranders/ts-csv/commit/822d77088164ee2a28b0fd91025aac8a45430e04))
* bump eslint-plugin-react from 7.20.1 to 7.20.3 ([a4bd2925](https://github.com/gregoranders/ts-csv/commit/a4bd2925376dc5809948698fe66a8f61186356d6))
* bump @microsoft/api-documenter from 7.8.19 to 7.8.21 ([8ea5e299](https://github.com/gregoranders/ts-csv/commit/8ea5e2992d90adce720cfe38eb12b27fc6053c3b))
* bump eslint-plugin-jest from 23.17.1 to 23.18.0 ([958c3147](https://github.com/gregoranders/ts-csv/commit/958c3147ebb5907463bc7b74e4920be477d57aac))
* bump @typescript-eslint/eslint-plugin from 3.4.0 to 3.5.0 ([38f461c9](https://github.com/gregoranders/ts-csv/commit/38f461c990fd5a354b4cb7aecdab71b09bfc9859))
* bump eslint-plugin-react from 7.20.0 to 7.20.1 ([e772636e](https://github.com/gregoranders/ts-csv/commit/e772636e6c1b6c34235a8c5978ed93c8f5d77ef5))
* bump @microsoft/api-documenter from 7.8.17 to 7.8.19 ([e61e2d24](https://github.com/gregoranders/ts-csv/commit/e61e2d241283cd44d3d2b7e152ffb5b6d244beab))

##### Refactors

* **dependencies:** :arrow_up: removes node 10 support ([995a7d9f](https://github.com/gregoranders/ts-csv/commit/995a7d9f1ca5ed4a9255ecb8e5294dd404acf8e6))

#### 0.0.9 (2022-02-02)

##### Chores
Expand Down
5 changes: 3 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

## Supported Versions

| Version | Supported |
| Version | Supported |
| ------- | ------------------ |
| 0.0.9 | :white_check_mark: |
| 0.0.10 | :white_check_mark: |
| 0.0.9 | :x: |
| 0.0.8 | :x: |
| 0.0.7 | :x: |
| 0.0.6 | :x: |
Expand Down
10 changes: 5 additions & 5 deletions docs/csv.configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export interface Configuration

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [fieldSeparator?](./csv.configuration.fieldseparator.md) | string | <i>(Optional)</i> field separator |
| [lineSeparator?](./csv.configuration.lineseparator.md) | string | <i>(Optional)</i> line separator |
| [quote?](./csv.configuration.quote.md) | string | <i>(Optional)</i> quote character |
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [fieldSeparator?](./csv.configuration.fieldseparator.md) | | string | <i>(Optional)</i> field separator |
| [lineSeparator?](./csv.configuration.lineseparator.md) | | string | <i>(Optional)</i> line separator |
| [quote?](./csv.configuration.quote.md) | | string | <i>(Optional)</i> quote character |

2 changes: 1 addition & 1 deletion docs/csv.field.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ csv field
<b>Signature:</b>

```typescript
export declare type Field = string;
export type Field = string;
```
2 changes: 1 addition & 1 deletion docs/csv.libversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ library version
<b>Signature:</b>

```typescript
libversion = "0.0.9"
libversion = "0.0.10"
```
2 changes: 1 addition & 1 deletion docs/csv.parser._constructor_.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ constructor(configuration?: Configuration);

| Parameter | Type | Description |
| --- | --- | --- |
| configuration | [Configuration](./csv.configuration.md) | optional configuration |
| configuration | [Configuration](./csv.configuration.md) | <i>(Optional)</i> optional configuration |

4 changes: 2 additions & 2 deletions docs/csv.parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const rows = parser.parse('a,b,c\n1,2,3\n4,5,6');

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [json](./csv.parser.json.md) | | readonly T\[\] | returns rows as JSON using the first row as property name provider |
| [rows](./csv.parser.rows.md) | | readonly [Row](./csv.row.md)<!-- -->\[\] | returns rows |
| [json](./csv.parser.json.md) | <code>readonly</code> | readonly T\[\] | returns rows as JSON using the first row as property name provider |
| [rows](./csv.parser.rows.md) | <code>readonly</code> | readonly [Row](./csv.row.md)<!-- -->\[\] | returns rows |

## Methods

Expand Down
2 changes: 1 addition & 1 deletion docs/csv.row.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ csv row
<b>Signature:</b>

```typescript
export declare type Row = Array<Field>;
export type Row = Array<Field>;
```
<b>References:</b> [Field](./csv.field.md)

2 changes: 1 addition & 1 deletion etc/csv.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const libname = "@gregoranders/csv";
export const liburl = "https://gregoranders.github.io/ts-csv/";

// @public
export const libversion = "0.0.9";
export const libversion = "0.0.10";

// @public
class Parser<T = Record<string, string>> {
Expand Down
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gregoranders/csv",
"version": "0.0.9",
"version": "0.0.10",
"description": "Simple CSV parser in TypeScript",
"scripts": {
"clear": "rimraf ./node_modules ./dist ./test ./package-lock.json ./temp ./docs-tmp",
Expand Down Expand Up @@ -97,30 +97,30 @@
},
"homepage": "https://gregoranders.github.io/ts-csv/",
"devDependencies": {
"@commitlint/cli": "16.1.0",
"@commitlint/config-conventional": "16.0.0",
"@microsoft/api-documenter": "7.15.1",
"@microsoft/api-extractor": "7.19.4",
"@typescript-eslint/eslint-plugin": "5.10.2",
"@typescript-eslint/parser": "5.10.2",
"@commitlint/cli": "17.3.0",
"@commitlint/config-conventional": "17.3.0",
"@microsoft/api-documenter": "7.19.27",
"@microsoft/api-extractor": "7.33.7",
"@typescript-eslint/eslint-plugin": "5.12.1",
"@typescript-eslint/parser": "5.12.1",
"cpx": "1.5.0",
"cross-env": "7.0.3",
"eslint": "8.8.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-jest": "26.0.0",
"eslint": "8.10.0",
"eslint-config-prettier": "8.4.0",
"eslint-plugin-jest": "26.1.1",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-unicorn": "40.1.0",
"eslint-plugin-unicorn": "41.0.0",
"generate-changelog": "1.8.0",
"husky": "7.0.4",
"jest": "27.4.7",
"jest-cli": "27.4.7",
"husky": "8.0.2",
"jest": "27.5.1",
"jest-cli": "27.5.1",
"jest-html-reporter": "3.4.2",
"jest-junit": "13.0.0",
"jest-spec-reporter": "1.0.17",
"lint-staged": "12.3.3",
"prettier": "2.5.1",
"lint-staged": "13.1.0",
"prettier": "2.8.1",
"rimraf": "3.0.2",
"ts-jest": "27.1.3",
"typescript": "4.5.5"
"typescript": "4.9.4"
}
}
9 changes: 8 additions & 1 deletion src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe(`${TestSubject.libname} ${TestSubject.libversion} - csv`, () => {
});

it('libversion', () => {
expect(TestSubject.libversion).toBe('0.0.9');
expect(TestSubject.libversion).toBe('0.0.10');
});

it('liburl', () => {
Expand Down Expand Up @@ -90,6 +90,13 @@ describe(`${TestSubject.libname} ${TestSubject.libversion} - csv`, () => {
['1', '2', ''],
],
},
{
text: '"a","b","c"\n"1","2",""',
expected: [
['a', 'b', 'c'],
['1', '2', ''],
],
},
].map(({ text, expected }) => {
it(`${text.replace(/\n/g, '<NL>')} = ${JSON.stringify(
expected,
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const libname = '@gregoranders/csv';
* @public
* @readonly
*/
export const libversion = '0.0.9';
export const libversion = '0.0.10';

/**
* library homepage
Expand Down Expand Up @@ -232,7 +232,7 @@ export class Parser<T = Record<string, string>> {
private handleQuote() {
if (this._current === this._options.quote) {
this._quoteState = { ...this._state };
if (this._index && this._previous !== '\\') {
if (this._previous !== '\\') {
this.handleQuoteNotEscaped();
} else {
this.handleQuoteEscaped();
Expand Down

0 comments on commit 857c7ff

Please sign in to comment.