Skip to content

Commit bb74ad8

Browse files
authored
feat: switch from buffer to uint8array (#112)
BREAKING CHANGE: remove use of buffers, see https://sindresorhus.com/blog/goodbye-nodejs-buffer
1 parent fb2cff6 commit bb74ad8

12 files changed

+2366
-3735
lines changed

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"env": {
44
"node": true
55
},
6-
"extends": ["@ctrl/eslint-config"]
6+
"extends": ["@ctrl/eslint-config-biome"]
77
}

.github/workflows/ci.yml

+30-13
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,32 @@ jobs:
1717
PGID: 1000
1818
TZ: Etc/UTC
1919
ports:
20-
- "8112:8112"
21-
- "6881:6881"
22-
- "6881:6881/udp"
20+
- '8112:8112'
21+
- '6881:6881'
22+
- '6881:6881/udp'
2323
steps:
2424
- uses: actions/checkout@v4
25-
- uses: actions/setup-node@v3
25+
26+
- uses: pnpm/action-setup@v3
27+
with:
28+
version: 8
29+
30+
- uses: actions/setup-node@v4
2631
with:
2732
node-version: 20
28-
cache: 'npm'
29-
- name: install dependencies
30-
run: npm ci
33+
cache: "pnpm"
34+
35+
- name: install
36+
run: pnpm install
37+
3138
- name: lint
32-
run: npm run lint
39+
run: pnpm run lint
40+
3341
- name: test
34-
run: npm run test:ci
42+
run: pnpm run test:ci
43+
3544
- name: coverage
36-
uses: codecov/codecov-action@v3
45+
uses: codecov/codecov-action@v4
3746
with:
3847
token: ${{ secrets.CODECOV_TOKEN }}
3948
publish:
@@ -49,11 +58,19 @@ jobs:
4958
- uses: actions/checkout@v4
5059
with:
5160
fetch-depth: 0
52-
- uses: actions/setup-node@v3
61+
62+
- uses: pnpm/action-setup@v3
63+
with:
64+
version: 8
65+
66+
- uses: actions/setup-node@v4
5367
with:
5468
node-version: 20
55-
cache: 'npm'
56-
- run: npm ci
69+
cache: "pnpm"
70+
71+
- name: install
72+
run: pnpm install
73+
5774
- name: release
5875
run: npx semantic-release
5976
env:

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jspm_packages
2929
.node_repl_history
3030
.vscode/*
3131
!.vscode/launch.json
32+
!.vscode/settings.json
3233

3334
# build
3435
build

.prettierrc

-7
This file was deleted.

.vscode/settings.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"editor.defaultFormatter": "biomejs.biome",
3+
"[javascript][typescript][javascriptreact][typescriptreact]": {
4+
"editor.formatOnSave": true,
5+
"editor.defaultFormatter": "biomejs.biome",
6+
"editor.codeActionsOnSave": {
7+
"quickfix.biome": "explicit",
8+
"source.fixAll.eslint": "explicit"
9+
}
10+
}
11+
}

biome.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"files": {
4+
"ignoreUnknown": true,
5+
"ignore": ["dist/*", "public/*"]
6+
},
7+
"extends": ["./node_modules/@ctrl/eslint-config-biome/biome.json"]
8+
}

0 commit comments

Comments
 (0)