Skip to content

Commit

Permalink
chore(deps): update dependency lerna to v8 (#841)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency lerna to v8

* Add npm workspaces

* Update to npm workspaces for lerna v8

* Move to npm for command running

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Zackery Griesinger <zgriesinger@gmail.com>
  • Loading branch information
renovate[bot] and zackerydev authored Dec 28, 2023
1 parent 0ea420d commit fef2092
Show file tree
Hide file tree
Showing 14 changed files with 30,130 additions and 25,238 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ jobs:
restore-keys: |
${{ runner.os }}-node-${{matrix.node-version}}-
- run: npm ci
- run: npm run bootstrap
- run: npm run build
- run: npm test
- run: npm run lint
- run: npm run jest
- run: npm run examples
- run: npm run benchmarks
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@master
with:
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
if-present=true
2 changes: 1 addition & 1 deletion documentation/docs/migration-guides/v2.x-to-v3.x.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title v0.2.x to v0.3.x
title: v0.2.x to v0.3.x
---

### Parsing Changed
Expand Down
9,604 changes: 0 additions & 9,604 deletions documentation/package-lock.json

This file was deleted.

2 changes: 1 addition & 1 deletion documentation/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "fast-csv-docs",
"name": "@fast-csv/docs",
"version": "0.0.0",
"private": true,
"scripts": {
Expand Down
17 changes: 12 additions & 5 deletions examples/benchmark/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
## Benchmark Results

### Usage

```
npm run benchmarks
```
|Type|Row Count|No. Runs|Avg|
|-|-|-|-|
|nonquoted|1000|5|6.2ms|
|nonquoted|10000|5|26.8ms|
|nonquoted|20000|5|47.4ms|
|nonquoted|50000|5|116.2ms|
|nonquoted|100000|5|226ms|
|quoted|1000|5|5ms|
|quoted|10000|5|34.4ms|
|quoted|20000|5|69.2ms|
|quoted|50000|5|172.8ms|
|quoted|100000|5|334.4ms|
4 changes: 2 additions & 2 deletions examples/example-runner/bin/run-examples
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const fs = require('fs');
const cp = require('child_process');
const path = require('path');
const globby = require('globby');
const diffDefault = require('jest-diff').default;
const { diff } = require('jest-diff');
const yargs = require('yargs');

const OUTPUT_REGEXP = new RegExp(`\\/\\/ Output: *${EOL}`);
Expand Down Expand Up @@ -44,7 +44,7 @@ const checkOutput = (exampleName, examples, exampleActualOutput) => {
throw new Error(`Example '${exampleName}' did not define expected output!`);
}
if (expected.trim() !== exampleActualOutput.trim()) {
throw new Error(`Example ${exampleName} failed!\n\n${diffDefault(expected, exampleActualOutput)}`);
throw new Error(`Example ${exampleName} failed!\n\n${diff(expected, exampleActualOutput)}`);
} else {
console.log(`Example ${exampleName} Output:\n\n${exampleActualOutput}\n\n`);
}
Expand Down
Loading

0 comments on commit fef2092

Please sign in to comment.