Skip to content

Commit efb21af

Browse files
juanri0sCopilot
andauthored
vulns + prettier format (#1176)
* vulns + prettier format * remove fast csv 18 as part of test and set engine version * Update documentation/docs/parsing/events.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * try 22, 24 * revert prettier format so it can be its own commit * couple more reverts * add format check + format write script + run check in CI * use prettier ignore file * pnpm format --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 987d451 commit efb21af

37 files changed

Lines changed: 36173 additions & 35404 deletions

.commitlintrc.json

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
11
{
2-
"extends": ["@commitlint/config-angular"],
3-
"rules": {
4-
"subject-case": [
5-
2,
6-
"always",
7-
["sentence-case", "start-case", "pascal-case", "upper-case", "lower-case"]
8-
],
9-
"type-enum": [
10-
2,
11-
"always",
12-
[
13-
"build",
14-
"chore",
15-
"ci",
16-
"docs",
17-
"feat",
18-
"fix",
19-
"perf",
20-
"refactor",
21-
"revert",
22-
"style",
23-
"test",
24-
"example"
25-
]
26-
]
27-
}
2+
"extends": ["@commitlint/config-angular"],
3+
"rules": {
4+
"subject-case": [2, "always", ["sentence-case", "start-case", "pascal-case", "upper-case", "lower-case"]],
5+
"type-enum": [
6+
2,
7+
"always",
8+
["build", "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test", "example"]
9+
]
10+
}
2811
}
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: "[BUG]"
4+
title: '[BUG]'
55
labels: bug
66
assignees: doug-martin, dustinsmith1024
7-
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**Parsing or Formatting?**
1413

15-
- [ ] Formatting
16-
- [ ] Parsing
14+
- [ ] Formatting
15+
- [ ] Parsing
1716

1817
**To Reproduce**
1918
Steps to reproduce the behavior:
19+
2020
1. Example file contents if applicable
2121
2. Example code to reproduce the issue.
2222

@@ -27,9 +27,10 @@ A clear and concise description of what you expected to happen.
2727
If applicable, add screenshots to help explain your problem.
2828

2929
**Desktop (please complete the following information):**
30-
- OS: [e.g. MacOS]
31-
- OS Version [e.g. Mojave]
32-
- Node Version [e.g. 10.16.0]
30+
31+
- OS: [e.g. MacOS]
32+
- OS Version [e.g. Mojave]
33+
- Node Version [e.g. 10.16.0]
3334

3435
**Additional context**
35-
Add any other context about the problem here.
36+
Add any other context about the problem here.
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: "[FEATURE]"
4+
title: '[FEATURE]'
55
labels: enhancement
66
assignees: doug-martin, dustinsmith1024
7-
87
---
98

109
**Parsing or Formatting?**
1110

12-
- [ ] Formatting
13-
- [ ] Parsing
11+
- [ ] Formatting
12+
- [ ] Parsing
1413

1514
**Is your feature request related to a problem? Please describe.**
1615
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
@@ -22,4 +21,4 @@ A clear and concise description of what you want to happen.
2221
A clear and concise description of any alternative solutions or features you've considered.
2322

2423
**Additional context**
25-
Add any other context or screenshots about the feature request here.
24+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### All Submissions:
22

3-
* [ ] Have you followed the guidelines in our Contributing document?
4-
* [ ] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/c2fo/fast-csv/pulls) for the same update/change?
3+
- [ ] Have you followed the guidelines in our Contributing document?
4+
- [ ] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/c2fo/fast-csv/pulls) for the same update/change?
55

66
<!-- You can erase any parts of this template not applicable to your Pull Request. -->
77

@@ -11,11 +11,11 @@
1111
2. [ ] Does your submission pass tests?
1212
3. [ ] Have you lint your code locally prior to submission?
1313
4. [ ] Have you updated the docs?
14-
* [ ] If you added new parsing or formatting options have you added them to the docs?
15-
* [ ] If applicable have you added an example to the parsing or formatting docs?
14+
- [ ] If you added new parsing or formatting options have you added them to the docs?
15+
- [ ] If applicable have you added an example to the parsing or formatting docs?
1616

1717
### Changes to Core Features:
1818

19-
* [ ] Have you added an explanation of what your changes do and why you'd like us to include them?
20-
* [ ] Have you written new tests for your core changes, as applicable?
21-
* [ ] Have you successfully ran tests with your changes locally?
19+
- [ ] Have you added an explanation of what your changes do and why you'd like us to include them?
20+
- [ ] Have you written new tests for your core changes, as applicable?
21+
- [ ] Have you successfully ran tests with your changes locally?

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
node-version: [18.x, 20.x, 21.x]
21+
node-version: [20.x, 21.x, 22.x, 24.x]
2222
steps:
2323
- uses: actions/checkout@v4
2424
- name: Use Node.js ${{ matrix.node-version }}
@@ -34,6 +34,7 @@ jobs:
3434
${{ runner.os }}-node-${{matrix.node-version}}-
3535
- run: npm ci
3636
- run: npm run build
37+
- run: npm run format:check
3738
- run: npm run lint
3839
- run: npm run jest
3940
- run: npm run examples

.prettierignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Dependencies
2+
node_modules
3+
4+
# Build outputs
5+
build
6+
**/*.tsbuildinfo
7+
coverage
8+
.nyc_output
9+
10+
# Docusaurus generated files
11+
documentation/.docusaurus
12+
documentation/build
13+
14+
# IDE
15+
.idea
16+
*.iml
17+
.DS_Store
18+
19+
# Logs
20+
lerna-debug.log
21+
22+
# Test artifacts
23+
benchmark/results
24+
**/*.tmp.csv
25+

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
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.0.6](https://github.com/C2FO/fast-csv/compare/v5.0.5...v5.0.6) (2025-12-22)
7+
8+
### Security
9+
10+
- **deps:** update @docusaurus/core and @docusaurus/preset-classic to v3.9.2 to resolve security vulnerabilities
11+
612
## [5.0.5](https://github.com/C2FO/fast-csv/compare/v5.0.2...v5.0.5) (2025-08-04)
713

814
### Bug Fixes

README.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,29 @@ Fast-csv is library for parsing and formatting CSVs or any other delimited value
1212

1313
## Features
1414

15-
* CSV Formatting
16-
* CSV Parsing
17-
* Built using typescript.
18-
* Flexible [formatting](https://c2fo.github.io/fast-csv/docs/formatting/options) and [parsing](https://c2fo.github.io/fast-csv/docs/parsing/options) options, to fit almost any scenario.
19-
* Built with streams first to avoid creating large memory footprint when parsing large files.
20-
* Battle tested in production, parsing and formatting millions of records every day.
15+
- CSV Formatting
16+
- CSV Parsing
17+
- Built using typescript.
18+
- Flexible [formatting](https://c2fo.github.io/fast-csv/docs/formatting/options) and [parsing](https://c2fo.github.io/fast-csv/docs/parsing/options) options, to fit almost any scenario.
19+
- Built with streams first to avoid creating large memory footprint when parsing large files.
20+
- Battle tested in production, parsing and formatting millions of records every day.
2121

22-
## Install
22+
## Install
2323

2424
See [installation docs](https://c2fo.github.io/fast-csv/docs/introduction/install)
2525

2626
## Packages
2727

28-
29-
* `fast-csv` - One-stop shop for all methods and options from `@fast-csv/format` and `@fast-csv/parse`. [Get Started!](https://c2fo.github.io/fast-csv/docs/introduction/getting-started)
30-
* `@fast-csv/parse` - Parsing package, use this if you only need to parse files. [Get Started!](https://c2fo.github.io/fast-csv/docs/parsing/getting-started)
31-
* `@fast-csv/format` - Formatting package, use this if you only need to format files. [Get Started!](https://c2fo.github.io/fast-csv/docs/formatting/getting-started)
28+
- `fast-csv` - One-stop shop for all methods and options from `@fast-csv/format` and `@fast-csv/parse`. [Get Started!](https://c2fo.github.io/fast-csv/docs/introduction/getting-started)
29+
- `@fast-csv/parse` - Parsing package, use this if you only need to parse files. [Get Started!](https://c2fo.github.io/fast-csv/docs/parsing/getting-started)
30+
- `@fast-csv/format` - Formatting package, use this if you only need to format files. [Get Started!](https://c2fo.github.io/fast-csv/docs/formatting/getting-started)
3231

3332
## License
3433

3534
MIT <https://github.com/C2FO/fast-csv/raw/main/LICENSE>
3635

3736
## Meta
38-
* Code: `git clone git://github.com/C2FO/fast-csv.git`
39-
* Website: <http://c2fo.com>
40-
* X: [http://x.com/c2fo](http://x.com/c2fo) - 877.465.4045
41-
42-
4337

38+
- Code: `git clone git://github.com/C2FO/fast-csv.git`
39+
- Website: <http://c2fo.com>
40+
- X: [http://x.com/c2fo](http://x.com/c2fo) - 877.465.4045

contributing.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ First of all **thank you** for considering contributing to this open source proj
44

55
I am always welcoming contributions of any type. Please open an issue or create a PR if you find an issue with any of the following.
66

7-
* An issue with Documentation (typo, incorrect code example)
8-
* You found the documentation lacking in some way
7+
- An issue with Documentation (typo, incorrect code example)
8+
- You found the documentation lacking in some way
99

1010
If you have an issue with the library please include the following
1111

12-
* A description of the problem
13-
* Does this issue occur while formatting or parsing a csv.
14-
* A short example of how to reproduce (if applicable)
15-
* A sample csv
16-
* Sample code to reproduce the issue
12+
- A description of the problem
13+
- Does this issue occur while formatting or parsing a csv.
14+
- A short example of how to reproduce (if applicable)
15+
- A sample csv
16+
- Sample code to reproduce the issue
1717

1818
Without those basics it can be difficult to reproduce your issue locally. You may be asked for more information but that is a good starting point.
1919

@@ -32,4 +32,4 @@ If you are issuing a PR also also include the following
3232

3333
If you find an issue you want to work on please comment on it letting other people know you are looking at it and I will assign the issue to you.
3434

35-
If want to work on an issue but dont know where to start just leave a comment and I'll be more than happy to point you in the right direction.
35+
If want to work on an issue but dont know where to start just leave a comment and I'll be more than happy to point you in the right direction.

documentation/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
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.0.6](https://github.com/juanri0s/fast-csv/compare/v5.0.5...v5.0.6) (2025-12-22)
7+
8+
### Security
9+
10+
- **deps:** update @docusaurus/core and @docusaurus/preset-classic to v3.9.2 to resolve security vulnerabilities
11+
612
## [5.0.5](https://github.com/juanri0s/fast-csv/compare/v5.0.2...v5.0.5) (2025-08-04)
713

814
### Bug Fixes

0 commit comments

Comments
 (0)