Skip to content

Commit ee7dee3

Browse files
committed
Remove @napi-rs/uuid to fix CI
1 parent defe20f commit ee7dee3

File tree

4 files changed

+2
-136
lines changed

4 files changed

+2
-136
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ jobs:
9393
- name: Install dependencies
9494
run: pnpm install --frozen-lockfile --ignore-scripts
9595
- name: Run benchmark
96-
run: pnpm run benchmark
96+
run: node ./test/benchmark.js

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"clean": "rm -R coverage",
1313
"unit": "uvu . .test.js$",
1414
"test": "c8 pnpm unit && eslint . && pnpm clean && size-limit",
15-
"start": "vite test/demo/ --open",
16-
"benchmark": "node ./test/benchmark.js"
15+
"start": "vite test/demo/ --open"
1716
},
1817
"engines": {
1918
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
@@ -36,7 +35,6 @@
3635
"@babel/core": "^7.17.2",
3736
"@logux/eslint-config": "^46.1.1",
3837
"@lukeed/uuid": "^2.0.0",
39-
"@napi-rs/uuid": "^0.2.0",
4038
"@originjs/vite-plugin-commonjs": "^1.0.2",
4139
"@size-limit/dual-publish": "^7.0.8",
4240
"@size-limit/file": "^7.0.8",

pnpm-lock.yaml

-128
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/benchmark.js

-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
let { uid: uidSecure } = require('uid/secure')
44
let { v4: lukeed4 } = require('@lukeed/uuid')
5-
let { v4: napiv4 } = require('@napi-rs/uuid')
65
let { v4: uuid4 } = require('uuid')
76
let benchmark = require('benchmark')
87
let shortid = require('shortid')
@@ -33,9 +32,6 @@ suite
3332
.add('crypto.randomUUID', () => {
3433
crypto.randomUUID()
3534
})
36-
.add('@napi-rs/uuid', () => {
37-
napiv4()
38-
})
3935
.add('uid/secure', () => {
4036
uidSecure(32)
4137
})

0 commit comments

Comments
 (0)