Skip to content

Commit 877d7a2

Browse files
committed
chore(release): v1.0.3 optimizations
1 parent 4bc9a0b commit 877d7a2

30 files changed

Lines changed: 1517 additions & 10914 deletions

.changeset/config.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3-
"changelog": "@changesets/cli/changelog",
4-
"commit": false,
5-
"fixed": [],
6-
"linked": [],
7-
"access": "restricted",
8-
"baseBranch": "main",
9-
"updateInternalDependencies": "patch",
10-
"ignore": []
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
1111
}

.github/workflows/lint.yml

Lines changed: 52 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,72 @@
1-
name: Lint
2-
1+
name: Quality Assurance
32
on:
43
workflow_call:
54
push:
5+
pull_request:
66

77
jobs:
8-
lint:
8+
typecheck:
9+
name: typecheck
910
runs-on: ubuntu-latest
11+
1012
steps:
11-
- name: Checkout code
13+
- name: Checkout Repository
1214
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
1317

14-
- name: Cache node modules
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 22
22+
23+
- name: Setup Bun
24+
uses: oven-sh/setup-bun@v2
25+
26+
- name: Cache Bun Dependencies
1527
uses: actions/cache@v4
1628
with:
17-
path: ~/.npm
18-
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
29+
path: ~/.bun/install/cache
30+
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
1931
restore-keys: |
20-
${{ runner.os }}-node-
32+
${{ runner.os }}-bun-
33+
34+
- name: Install Dependencies
35+
run: bun install --frozen-lockfile
36+
37+
- name: Run Type Checker
38+
run: |
39+
bun run typecheck
2140
22-
- name: Set up Node.js
41+
lint:
42+
name: lint
43+
runs-on: ubuntu-latest
44+
45+
steps:
46+
- name: Checkout Repository
47+
uses: actions/checkout@v4
48+
with:
49+
fetch-depth: 0
50+
51+
- name: Setup Node.js
2352
uses: actions/setup-node@v4
2453
with:
2554
node-version: 22
2655

27-
- name: Install dependencies
28-
run: npm ci
56+
- name: Setup Bun
57+
uses: oven-sh/setup-bun@v2
2958

30-
- name: Run Prettier check
31-
run: npm run check
59+
- name: Cache Bun Dependencies
60+
uses: actions/cache@v4
61+
with:
62+
path: ~/.bun/install/cache
63+
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
64+
restore-keys: |
65+
${{ runner.os }}-bun-
3266
33-
- name: Run ESLint
34-
run: npm run lint:check
67+
- name: Install Dependencies
68+
run: bun install --frozen-lockfile
3569

36-
- name: Run TypeScript check
37-
run: npm run check-types
70+
- name: Run Linter
71+
run: |
72+
bun run lint

.github/workflows/publish.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
tags:
66
- '*.*.*' # Match semantic versioning tags like 1.0.0
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
812
concurrency: ${{ github.workflow }}-${{ github.ref }}
913

1014
jobs:
@@ -28,11 +32,22 @@ jobs:
2832
node-version: 22
2933
registry-url: https://registry.npmjs.org/
3034

31-
- name: Install dependencies
32-
run: npm ci
35+
- name: Setup Bun
36+
uses: oven-sh/setup-bun@v2
37+
38+
- name: Cache Bun Dependencies
39+
uses: actions/cache@v4
40+
with:
41+
path: ~/.bun/install/cache
42+
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
43+
restore-keys: |
44+
${{ runner.os }}-bun-
45+
46+
- name: Install Dependencies
47+
run: bun install --frozen-lockfile
3348

3449
- name: Publish to npm
35-
run: npm run release
50+
run: bun run release
3651
env:
3752
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3853
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,39 @@
11
name: Tests
2-
32
on:
43
workflow_call:
54
push:
5+
pull_request:
66

77
jobs:
88
test:
9+
name: test
910
runs-on: ubuntu-latest
11+
1012
steps:
11-
- name: Checkout code
13+
- name: Checkout Repository
1214
uses: actions/checkout@v4
13-
14-
- name: Cache node modules
15-
uses: actions/cache@v4
1615
with:
17-
path: ~/.npm
18-
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
19-
restore-keys: |
20-
${{ runner.os }}-node-
16+
fetch-depth: 0
2117

22-
- name: Set up Node.js
18+
- name: Setup Node.js
2319
uses: actions/setup-node@v4
2420
with:
2521
node-version: 22
2622

27-
- name: Install dependencies
28-
run: npm ci
23+
- name: Setup Bun
24+
uses: oven-sh/setup-bun@v2
25+
26+
- name: Cache Bun Dependencies
27+
uses: actions/cache@v4
28+
with:
29+
path: ~/.bun/install/cache
30+
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
31+
restore-keys: |
32+
${{ runner.os }}-bun-
33+
34+
- name: Install Dependencies
35+
run: bun install --frozen-lockfile
2936

30-
- name: Run tests
31-
run: npm run test
37+
- name: Run Tests
38+
run: |
39+
bun run test

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npm run check-types && npm run check && npm run lint:check && npm run test
1+
bun run typecheck && bun run lint && bun run test

.pretterignore

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

.prettierrc

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

biome.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.7/schema.json",
3+
"assist": {
4+
"actions": {
5+
"source": {
6+
"organizeImports": {
7+
"level": "on",
8+
"options": {
9+
"groups": [
10+
[":BUN:", ":NODE:"],
11+
":BLANK_LINE:",
12+
[":PACKAGE:", ":URL:", ":PACKAGE_WITH_PROTOCOL:"],
13+
":BLANK_LINE:",
14+
[":ALIAS:"],
15+
":BLANK_LINE:",
16+
[":PATH:"]
17+
],
18+
"identifierOrder": "lexicographic"
19+
}
20+
},
21+
"useSortedAttributes": "on",
22+
"useSortedKeys": "on",
23+
"useSortedProperties": "on"
24+
}
25+
},
26+
"enabled": true
27+
},
28+
"files": {
29+
"ignoreUnknown": true,
30+
"includes": ["src/**"]
31+
},
32+
"formatter": {
33+
"enabled": true,
34+
"indentStyle": "space",
35+
"indentWidth": 2,
36+
"lineEnding": "lf",
37+
"lineWidth": 100
38+
},
39+
"javascript": {
40+
"formatter": {
41+
"quoteStyle": "double"
42+
}
43+
},
44+
"linter": {
45+
"enabled": true,
46+
"rules": {
47+
"correctness": {
48+
"noUnusedImports": "on",
49+
"useImportExtensions": "off"
50+
},
51+
"recommended": true,
52+
"style": {
53+
"noNonNullAssertion": "off",
54+
"useImportType": "off"
55+
},
56+
"suspicious": {
57+
"noArrayIndexKey": "off",
58+
"noExplicitAny": "off"
59+
}
60+
}
61+
},
62+
"vcs": {
63+
"clientKind": "git",
64+
"enabled": true,
65+
"useIgnoreFile": true
66+
}
67+
}

0 commit comments

Comments
 (0)