Skip to content

Commit 266460f

Browse files
Release 2.0.5
1 parent 549a78a commit 266460f

File tree

184 files changed

+5148
-4997
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+5148
-4997
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@ jobs:
1313
- name: Set up node
1414
uses: actions/setup-node@v3
1515

16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
19+
- name: Install dependencies
20+
run: pnpm install
21+
1622
- name: Compile
17-
run: yarn && yarn build
23+
run: pnpm build
1824

1925
test:
2026
runs-on: ubuntu-latest
@@ -25,9 +31,15 @@ jobs:
2531

2632
- name: Set up node
2733
uses: actions/setup-node@v3
34+
35+
- name: Install pnpm
36+
uses: pnpm/action-setup@v4
2837

29-
- name: Compile
30-
run: yarn && yarn test
38+
- name: Install dependencies
39+
run: pnpm install
40+
41+
- name: Test
42+
run: pnpm test
3143

3244
publish:
3345
needs: [ compile, test ]
@@ -36,12 +48,18 @@ jobs:
3648
steps:
3749
- name: Checkout repo
3850
uses: actions/checkout@v4
51+
3952
- name: Set up node
4053
uses: actions/setup-node@v3
54+
55+
- name: Install pnpm
56+
uses: pnpm/action-setup@v4
57+
4158
- name: Install dependencies
42-
run: yarn install
59+
run: pnpm install
60+
4361
- name: Build
44-
run: yarn build
62+
run: pnpm build
4563

4664
- name: Publish to npm
4765
run: |

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ tests
44
.gitignore
55
.github
66
.fernignore
7-
.prettierrc.yml
7+
biome.json
88
tsconfig.json
99
yarn.lock
1010
pnpm-lock.yaml

.prettierrc.yml

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

biome.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
3+
"root": true,
4+
"vcs": {
5+
"enabled": false
6+
},
7+
"files": {
8+
"ignoreUnknown": true,
9+
"includes": [
10+
"./**",
11+
"!dist",
12+
"!lib",
13+
"!*.tsbuildinfo",
14+
"!_tmp_*",
15+
"!*.tmp",
16+
"!.tmp/",
17+
"!*.log",
18+
"!.DS_Store",
19+
"!Thumbs.db"
20+
]
21+
},
22+
"formatter": {
23+
"enabled": true,
24+
"indentStyle": "space",
25+
"indentWidth": 4,
26+
"lineWidth": 120
27+
},
28+
"javascript": {
29+
"formatter": {
30+
"quoteStyle": "double"
31+
}
32+
},
33+
"assist": {
34+
"enabled": true,
35+
"actions": {
36+
"source": {
37+
"organizeImports": "on"
38+
}
39+
}
40+
},
41+
"linter": {
42+
"rules": {
43+
"style": {
44+
"useNodejsImportProtocol": "off"
45+
},
46+
"suspicious": {
47+
"noAssignInExpressions": "warn",
48+
"noUselessEscapeInString": {
49+
"level": "warn",
50+
"fix": "none",
51+
"options": {}
52+
},
53+
"noThenProperty": "warn",
54+
"useIterableCallbackReturn": "warn",
55+
"noShadowRestrictedNames": "warn",
56+
"noTsIgnore": {
57+
"level": "warn",
58+
"fix": "none",
59+
"options": {}
60+
},
61+
"noConfusingVoidType": {
62+
"level": "warn",
63+
"fix": "none",
64+
"options": {}
65+
}
66+
}
67+
}
68+
}
69+
}

package.json

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@
2929
"LICENSE"
3030
],
3131
"scripts": {
32-
"format": "prettier . --write --ignore-unknown",
33-
"build": "yarn build:cjs && yarn build:esm",
32+
"format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
33+
"check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
34+
"check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
35+
"build": "pnpm build:cjs && pnpm build:esm",
3436
"build:cjs": "tsc --project ./tsconfig.cjs.json",
3537
"build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm",
36-
"test": "jest --config jest.config.mjs",
37-
"test:unit": "jest --selectProjects unit",
38-
"test:browser": "jest --selectProjects browser",
39-
"test:wire": "jest --selectProjects wire",
38+
"test": "vitest",
39+
"test:unit": "vitest --project unit",
40+
"test:wire": "vitest --project wire",
4041
"tsn": "ts-node -r tsconfig-paths/register"
4142
},
4243
"dependencies": {
@@ -49,14 +50,10 @@
4950
"devDependencies": {
5051
"webpack": "^5.97.1",
5152
"ts-loader": "^9.5.1",
52-
"jest": "^29.7.0",
53-
"@jest/globals": "^29.7.0",
54-
"@types/jest": "^29.5.14",
55-
"ts-jest": "^29.3.4",
56-
"jest-environment-jsdom": "^29.7.0",
57-
"msw": "^2.8.4",
53+
"vitest": "^3.2.4",
54+
"msw": "2.11.2",
5855
"@types/node": "^18.19.70",
59-
"prettier": "^3.4.2",
56+
"@biomejs/biome": "2.2.5",
6057
"typescript": "~5.7.2",
6158
"@dotenvx/dotenvx": "^1.49.0",
6259
"react": "^19.1.1",
@@ -71,7 +68,7 @@
7168
"path": false,
7269
"stream": false
7370
},
74-
"packageManager": "yarn@1.22.22",
71+
"packageManager": "pnpm@10.14.0",
7572
"engines": {
7673
"node": ">=18.0.0"
7774
},

0 commit comments

Comments
 (0)