Skip to content

Commit ffd539f

Browse files
committed
feat!: rewrite
1 parent 6b2c5fb commit ffd539f

34 files changed

Lines changed: 6125 additions & 1658 deletions

.editorconfig

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,6 @@
11
root = true
22

33
[*]
4-
indent_style = tab
5-
indent_size = 4
6-
tab_width = 4
4+
indent_size = 2
75
end_of_line = lf
8-
charset = utf-8
9-
trim_trailing_whitespace = true
106
insert_final_newline = true
11-
12-
[{*.json,*.json.example,*.gyp,*.yml,*.yaml}]
13-
indent_style = space
14-
indent_size = 2
15-
16-
[{*.py,*.asm}]
17-
indent_style = space
18-
19-
[*.py]
20-
indent_size = 4
21-
22-
[*.asm]
23-
indent_size = 8
24-
25-
[*.md]
26-
trim_trailing_whitespace = false
27-
28-
# Ideal settings - some plugins might support these.
29-
[*.js]
30-
quote_type = single
31-
32-
[{*.c,*.cc,*.h,*.hh,*.cpp,*.hpp,*.m,*.mm,*.mpp,*.js,*.java,*.go,*.rs,*.php,*.ng,*.jsx,*.ts,*.d,*.cs,*.swift}]
33-
curly_bracket_next_line = false
34-
spaces_around_operators = true
35-
spaces_around_brackets = outside
36-
# close enough to 1TB
37-
indent_brace_style = K&R

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: [sxzz]
2+
open_collective: debug
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Publish Any Commit
2+
on: [push, pull_request]
3+
4+
permissions: {}
5+
6+
jobs:
7+
release:
8+
uses: sxzz/workflows/.github/workflows/release-commit.yml@v1
9+
with:
10+
compact: true

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
uses: sxzz/workflows/.github/workflows/release.yml@v1
11+
with:
12+
publish: true
13+
permissions:
14+
contents: write
15+
id-token: write

.github/workflows/unit-test.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Unit Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions: {}
10+
11+
jobs:
12+
unit-test:
13+
uses: sxzz/workflows/.github/workflows/unit-test.yml@v1
14+
with:
15+
test: 'pnpm playwright install --with-deps && pnpm run test'
16+
17+
coverage:
18+
uses: sxzz/workflows/.github/workflows/coverage.yml@v1
19+
needs: unit-test
20+
with:
21+
test: 'pnpm vitest --project node --coverage'
22+
permissions:
23+
id-token: write

.gitignore

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
.DS_Store
2-
node_modules/
3-
*.sock
4-
/build/
5-
npm-debug.log
6-
yarn-error.log
7-
/dist/
8-
/coverage/
1+
node_modules
2+
dist
3+
coverage
94

10-
# lockfiles
11-
yarn.lock
12-
package-lock.json
5+
*.log
6+
.DS_Store
7+
.eslintcache

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"editor.formatOnSave": true
3+
}

LICENSE

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
(The MIT License)
1+
The MIT License (MIT)
22

3-
Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
4-
Copyright (c) 2018-2021 Josh Junon
3+
Copyright © 2025-PRESENT Kevin Deng (https://github.com/sxzz)
54

6-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
7-
and associated documentation files (the 'Software'), to deal in the Software without restriction,
8-
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
9-
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
10-
subject to the following conditions:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
1111

12-
The above copyright notice and this permission notice shall be included in all copies or substantial
13-
portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
16-
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
2014

15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)