Skip to content

Commit

Permalink
feat: switch from buffer to uint8array
Browse files Browse the repository at this point in the history
BREAKING CHANGE: remove use of buffers, see https://sindresorhus.com/blog/goodbye-nodejs-buffer
  • Loading branch information
scttcper committed Mar 4, 2024
1 parent fb2cff6 commit 73d20e6
Show file tree
Hide file tree
Showing 12 changed files with 2,366 additions and 3,735 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"env": {
"node": true
},
"extends": ["@ctrl/eslint-config"]
"extends": ["@ctrl/eslint-config-biome"]
}
43 changes: 30 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,32 @@ jobs:
PGID: 1000
TZ: Etc/UTC
ports:
- "8112:8112"
- "6881:6881"
- "6881:6881/udp"
- '8112:8112'
- '6881:6881'
- '6881:6881/udp'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3

- uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: install dependencies
run: npm ci
cache: "pnpm"

- name: install
run: pnpm install

- name: lint
run: npm run lint
run: pnpm run lint

- name: test
run: npm run test:ci
run: pnpm run test:ci

- name: coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
publish:
Expand All @@ -49,11 +58,19 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3

- uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
cache: "pnpm"

- name: install
run: pnpm install

- name: release
run: npx semantic-release
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jspm_packages
.node_repl_history
.vscode/*
!.vscode/launch.json
!.vscode/settings.json

# build
build
Expand Down
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"editor.defaultFormatter": "biomejs.biome",
"[javascript][typescript][javascriptreact][typescriptreact]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.fixAll.eslint": "explicit"
}
}
}
8 changes: 8 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"ignoreUnknown": true,
"ignore": ["dist/*", "public/*"]
},
"extends": ["./node_modules/@ctrl/eslint-config-biome/biome.json"]
}
Loading

0 comments on commit 73d20e6

Please sign in to comment.