Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
9ee980e
fix: use correct version number
gregoranders Dec 28, 2022
6694eb4
docs: update changelog
gregoranders Dec 28, 2022
297bbd9
Merge branch 'master' into development
gregoranders Dec 28, 2022
5c626a8
chore: bump version
gregoranders Dec 28, 2022
6638c03
npm: bump eslint-plugin-jest from 27.1.7 to 27.2.0 (#263)
dependabot[bot] Jan 6, 2023
6df7ab6
npm: bump eslint from 8.30.0 to 8.31.0 (#261)
dependabot[bot] Jan 6, 2023
e06fe07
npm: bump @types/jest from 29.2.4 to 29.2.5 (#262)
dependabot[bot] Jan 6, 2023
9b5412a
npm: bump husky from 8.0.2 to 8.0.3 (#264)
dependabot[bot] Jan 9, 2023
2f7c786
npm: bump eslint-config-prettier from 8.5.0 to 8.6.0 (#265)
dependabot[bot] Jan 9, 2023
40e1f67
npm: bump eslint-plugin-jest from 27.2.0 to 27.2.1 (#266)
dependabot[bot] Jan 9, 2023
8ddb692
npm: bump @typescript-eslint/eslint-plugin from 5.47.1 to 5.48.0 (#267)
dependabot[bot] Jan 10, 2023
9aa550f
github-actions: bump actions/checkout from 3.2.0 to 3.3.0 (#269)
dependabot[bot] Jan 10, 2023
72821c0
npm: bump prettier from 2.8.1 to 2.8.2 (#268)
dependabot[bot] Jan 10, 2023
3c0446e
github-actions: bump actions/setup-node from 3.5.1 to 3.6.0 (#270)
dependabot[bot] Jan 10, 2023
f059298
npm: bump rimraf from 3.0.2 to 5.0.0 (#301)
dependabot[bot] May 13, 2023
71becd7
npm: bump @typescript-eslint/parser from 5.47.1 to 5.57.1 (#300)
dependabot[bot] May 13, 2023
8dfee5d
npm: bump @commitlint/cli from 17.3.0 to 17.5.1 (#299)
dependabot[bot] May 13, 2023
053355f
npm: bump prettier from 2.8.2 to 2.8.7 (#297)
dependabot[bot] May 13, 2023
f21d7f2
github-actions: bump actions/checkout from 3.3.0 to 3.5.0 (#294)
dependabot[bot] May 13, 2023
703b3ef
npm: bump @commitlint/config-conventional from 17.3.0 to 17.4.4 (#283)
dependabot[bot] May 13, 2023
0497a69
npm: bump eslint-config-prettier from 8.6.0 to 8.8.0
dependabot[bot] May 15, 2023
6afd1ca
npm: bump eslint-plugin-unicorn from 45.0.2 to 46.0.1
dependabot[bot] May 15, 2023
02bfb5d
npm: bump @commitlint/cli from 17.5.1 to 17.6.3
dependabot[bot] May 15, 2023
3f19901
github-actions: bump actions/checkout from 3.5.0 to 3.5.2
dependabot[bot] May 15, 2023
0ca5666
github-actions: bump paambaati/codeclimate-action from 3.2.0 to 4.0.0
dependabot[bot] May 15, 2023
1c1c59b
npm: bump @typescript-eslint/eslint-plugin from 5.48.0 to 5.59.7
dependabot[bot] May 29, 2023
26f275a
Merge pull request #310 from gregoranders/dependabot/npm_and_yarn/dev…
gregoranders Jun 4, 2023
fda17e6
Merge pull request #307 from gregoranders/dependabot/github_actions/d…
gregoranders Jun 4, 2023
00ae43d
Merge pull request #302 from gregoranders/dependabot/npm_and_yarn/dev…
gregoranders Jun 4, 2023
1797602
Merge pull request #303 from gregoranders/dependabot/npm_and_yarn/dev…
gregoranders Jun 4, 2023
a1c5e2f
Merge pull request #304 from gregoranders/dependabot/npm_and_yarn/dev…
gregoranders Jun 4, 2023
dcf7971
npm: bump @types/jest from 29.2.5 to 29.5.2
dependabot[bot] Jun 4, 2023
7008adb
Merge pull request #308 from gregoranders/dependabot/github_actions/d…
gregoranders Jun 4, 2023
e5a4b6e
Merge pull request #311 from gregoranders/dependabot/npm_and_yarn/dev…
gregoranders Jun 4, 2023
fd95b34
chore: update dependencies
gregoranders Oct 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ updates:
schedule:
interval: 'weekly'
labels:
- 'npm dependencies'
- 'github dependencies'
commit-message:
prefix: 'github-actions'
assignees:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
matrix:
language: ['javascript']
steps:
- uses: actions/checkout@v3.2.0
- uses: actions/checkout@v4.1.1
with:
submodules: recursive
- uses: actions/setup-node@v3.5.1
- uses: actions/setup-node@v4.0.0
with:
node-version: 16.x
- name: Echo Node.js version
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [16.x, 18.x, 19.x]
node-version: [16.x, 18.x, 19.x, 20.x]

steps:
- uses: actions/checkout@v3.2.0
- uses: actions/checkout@v4.1.1
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v3.5.1
uses: actions/setup-node@v4.0.0
with:
node-version: ${{ matrix.node-version }}
- name: nodejs project information
Expand All @@ -40,22 +40,22 @@ jobs:
run: |
npm run build
- name: code coverage
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
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.2.0
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
uses: paambaati/codeclimate-action@v4.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm test
coverageLocations: |
./test/coverage/lcov.info:lcov
- name: run codacy-coverage-reporter
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [16.x, 18.x, 19.x]
node-version: [16.x, 18.x, 19.x, 20.x]

steps:
- uses: actions/checkout@v3.2.0
- uses: actions/checkout@v4.1.1
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v3.5.1
uses: actions/setup-node@v4.0.0
with:
node-version: ${{ matrix.node-version }}
- name: nodejs project information
Expand All @@ -40,22 +40,22 @@ jobs:
run: |
npm run build
- name: code coverage
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
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.2.0
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
uses: paambaati/codeclimate-action@v4.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm test
coverageLocations: |
./test/coverage/lcov.info:lcov
- name: run codacy-coverage-reporter
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [16.x, 18.x, 19.x]
node-version: [16.x, 18.x, 19.x, 20.x]

steps:
- uses: actions/checkout@v3.2.0
- uses: actions/checkout@v4.1.1
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v3.5.1
uses: actions/setup-node@v4.0.0
with:
node-version: ${{ matrix.node-version }}
- name: nodejs project information
Expand All @@ -40,22 +40,22 @@ jobs:
run: |
npm run build
- name: code coverage
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
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.2.0
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
uses: paambaati/codeclimate-action@v4.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm test
coverageLocations: |
./test/coverage/lcov.info:lcov
- name: run codacy-coverage-reporter
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
Expand All @@ -66,7 +66,7 @@ jobs:
check_name: Unit Test Results node${{ matrix.node-version }}-${{ matrix.os }}
files: test/junit.xml
- name: create release
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
id: createrelease
uses: gregoranders/nodejs-create-release@master
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v3.2.0
- uses: actions/checkout@v4.1.1
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v3.5.1
uses: actions/setup-node@v4.0.0
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@v3.5.1
- uses: actions/setup-node@v4.0.0
with:
registry-url: 'https://npm.pkg.github.com'
- run: npm publish
Expand Down
4 changes: 3 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

lint-staged && npm test && npm run build
npx lint-staged
npm test
npm run build
6 changes: 5 additions & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run clear && npm install && lint-staged && npm test && npm run build && npm run codeclimate
npm run clear
npm install
npm test
npm run build
npm run codeclimate
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.19.0
20
6 changes: 2 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
},
"eslint.validate": ["javascript", "typescript"],
"typescript.tsdk": "node_modules/typescript/lib",
"files.associations": {
"*.json": "jsonc"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"files.associations": { "api-extractor.json": "jsonc" }
}
3 changes: 2 additions & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

| Version | Supported |
| ------- | ------------------ |
| 0.0.12 | :white_check_mark: |
| 0.0.13 | :white_check_mark: |
| 0.0.12 | :x: |
| 0.0.11 | :x: |
| 0.0.10 | :x: |
| 0.0.9 | :x: |
Expand Down
2 changes: 1 addition & 1 deletion docs/csv.configuration.fieldseparator.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

field separator

<b>Signature:</b>
**Signature:**

```typescript
fieldSeparator?: string;
Expand Down
2 changes: 1 addition & 1 deletion docs/csv.configuration.lineseparator.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

line separator

<b>Signature:</b>
**Signature:**

```typescript
lineSeparator?: string;
Expand Down
8 changes: 4 additions & 4 deletions docs/csv.configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

parser configuration

<b>Signature:</b>
**Signature:**

```typescript
export interface Configuration
Expand All @@ -16,7 +16,7 @@ export interface Configuration

| 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 |
| [fieldSeparator?](./csv.configuration.fieldseparator.md) | | string | _(Optional)_ field separator |
| [lineSeparator?](./csv.configuration.lineseparator.md) | | string | _(Optional)_ line separator |
| [quote?](./csv.configuration.quote.md) | | string | _(Optional)_ quote character |

2 changes: 1 addition & 1 deletion docs/csv.configuration.quote.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

quote character

<b>Signature:</b>
**Signature:**

```typescript
quote?: string;
Expand Down
2 changes: 1 addition & 1 deletion docs/csv.field.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

csv field

<b>Signature:</b>
**Signature:**

```typescript
export type Field = string;
Expand Down
2 changes: 1 addition & 1 deletion docs/csv.libname.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

library name

<b>Signature:</b>
**Signature:**

```typescript
libname = "@gregoranders/csv"
Expand Down
2 changes: 1 addition & 1 deletion docs/csv.liburl.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

library homepage

<b>Signature:</b>
**Signature:**

```typescript
liburl = "https://gregoranders.github.io/ts-csv/"
Expand Down
4 changes: 2 additions & 2 deletions docs/csv.libversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

library version

<b>Signature:</b>
**Signature:**

```typescript
libversion = "0.0.12"
libversion = "0.0.13"
```
4 changes: 2 additions & 2 deletions docs/csv.parser._constructor_.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

constructor

<b>Signature:</b>
**Signature:**

```typescript
constructor(configuration?: Configuration);
Expand All @@ -16,5 +16,5 @@ constructor(configuration?: Configuration);

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

2 changes: 1 addition & 1 deletion docs/csv.parser.json.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

returns rows as JSON using the first row as property name provider

<b>Signature:</b>
**Signature:**

```typescript
/** @virtual */
Expand Down
2 changes: 1 addition & 1 deletion docs/csv.parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

csv parser

<b>Signature:</b>
**Signature:**

```typescript
export declare class Parser<T = Record<string, string>>
Expand Down
4 changes: 2 additions & 2 deletions docs/csv.parser.parse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

parse csv

<b>Signature:</b>
**Signature:**

```typescript
parse(text: string): readonly Row[];
Expand All @@ -18,7 +18,7 @@ parse(text: string): readonly Row[];
| --- | --- | --- |
| text | string | CSV text |

<b>Returns:</b>
**Returns:**

readonly [Row](./csv.row.md)<!-- -->\[\]

Expand Down
2 changes: 1 addition & 1 deletion docs/csv.parser.rows.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

returns rows

<b>Signature:</b>
**Signature:**

```typescript
/** @virtual */
Expand Down
4 changes: 2 additions & 2 deletions docs/csv.row.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

csv row

<b>Signature:</b>
**Signature:**

```typescript
export type Row = Array<Field>;
```
<b>References:</b> [Field](./csv.field.md)
**References:** [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.12";
export const libversion = "0.0.13";

// @public
class Parser<T = Record<string, string>> {
Expand Down
Loading