Skip to content

Commit e6a5356

Browse files
authored
chore: update deps, update Biome (#2442)
1 parent 0a2793a commit e6a5356

File tree

82 files changed

+1637
-1625
lines changed

Some content is hidden

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

82 files changed

+1637
-1625
lines changed

biome.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"organizeImports": {
4-
"enabled": false
5-
},
2+
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
3+
"root": true,
64
"files": {
7-
"ignore": ["**/dist/**", "**/package.json"]
5+
"includes": ["**", "!**/dist", "!**/package.json"]
6+
},
7+
"assist": {
8+
"enabled": true,
9+
"actions": {
10+
"source": {
11+
"organizeImports": "on"
12+
}
13+
}
814
},
915
"formatter": {
1016
"indentStyle": "space",
@@ -20,7 +26,7 @@
2026
"useArrowFunction": "off"
2127
},
2228
"suspicious": {
23-
"noConsoleLog": "error",
29+
"noConsole": "error",
2430
"noExplicitAny": "off"
2531
},
2632
"style": {

docs/data/contributors.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"update-contributors": "node scripts/update-contributors.js"
1010
},
1111
"devDependencies": {
12-
"@shikijs/vitepress-twoslash": "^3.3.0",
12+
"@shikijs/vitepress-twoslash": "^3.12.2",
1313
"openapi-metadata": "workspace:*",
14-
"vite": "^7.1.1",
14+
"vite": "catalog:",
1515
"vitepress": "^1.6.4"
1616
}
1717
}

docs/scripts/update-contributors.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import fs from "node:fs";
1+
import fs from "node:fs/promises";
22
import { URL } from "node:url";
33

44
const MAINTAINERS = {
@@ -199,7 +199,7 @@ const ONE_WEEK = 1000 * 60 * 60 * 24;
199199

200200
const CONTRIBUTORS_JSON = new URL("../data/contributors.json", import.meta.url);
201201

202-
const data = JSON.parse(fs.readFileSync(CONTRIBUTORS_JSON, "utf8"));
202+
const data = JSON.parse(await fs.readFile(CONTRIBUTORS_JSON, "utf8"));
203203

204204
class UserFetchError extends Error {
205205
/**
@@ -252,7 +252,7 @@ async function main() {
252252
// skip profiles that have been updated within the past week
253253
const { lastFetch } = data[group]?.find((u) => u.username === username) ?? { lastFetch: 0 };
254254
if (Date.now() - lastFetch < ONE_WEEK) {
255-
// biome-ignore lint/suspicious/noConsoleLog: this is a script
255+
// biome-ignore lint/suspicious/noConsole: this is a script
256256
console.log(`[${i}/${CONTRIBUTORS.size}] (Skipped ${username})`);
257257
continue;
258258
}
@@ -267,11 +267,13 @@ async function main() {
267267
lastFetch: new Date().getTime(),
268268
};
269269
upsert(data[group], userData);
270-
// biome-ignore lint/suspicious/noConsoleLog: this is a script
270+
// biome-ignore lint/suspicious/noConsole: this is a script
271271
console.log(`[${i}/${CONTRIBUTORS.size}] Updated for ${username}`);
272-
fs.writeFileSync(new URL("../data/contributors.json", import.meta.url), JSON.stringify(data)); // update file while fetching (sync happens safely in between fetches)
272+
await fs.writeFile(new URL("../data/contributors.json", import.meta.url), JSON.stringify(data)); // update file while fetching (sync happens safely in between fetches)
273+
await new Promise((resolve) => setTimeout(resolve, 1_000)); // GitHub 403s with too many rapid requests.
273274
} catch (err) {
274275
if (err instanceof UserFetchError && err.notFound) {
276+
// biome-ignore lint/suspicious/noConsole: this is a script
275277
console.warn(`[${i}/${total}] (Skipped ${username}, not found)`);
276278
continue;
277279
}

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"name": "Drew Powers",
88
"email": "[email protected]"
99
},
10-
"packageManager": "pnpm@10.14.0",
10+
"packageManager": "pnpm@10.16.1",
1111
"scripts": {
1212
"build": "turbo run build",
1313
"lint": "turbo run lint",
@@ -20,17 +20,17 @@
2020
},
2121
"devDependencies": {
2222
"@arethetypeswrong/cli": "^0.18.2",
23-
"@biomejs/biome": "^1.9.4",
23+
"@biomejs/biome": "^2.2.4",
2424
"@changesets/changelog-github": "^0.5.1",
25-
"@changesets/cli": "^2.29.5",
26-
"@playwright/test": "^1.54.2",
25+
"@changesets/cli": "^2.29.7",
26+
"@playwright/test": "^1.55.0",
2727
"@size-limit/preset-small-lib": "^11.2.0",
28-
"@types/node": "^22.17.1",
28+
"@types/node": "^22.18.3",
2929
"prettier": "^3.6.2",
3030
"size-limit": "^11.2.0",
31-
"turbo": "^2.5.5",
32-
"typescript": "^5.9.2",
33-
"unbuild": "^3.6.0",
31+
"turbo": "^2.5.6",
32+
"typescript": "catalog:",
33+
"unbuild": "^3.6.1",
3434
"vitest": "^3.2.4"
3535
},
3636
"size-limit": [

packages/openapi-fetch/biome.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"extends": ["../../biome.json"],
2+
"root": false,
3+
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
4+
"extends": "//",
45
"files": {
5-
"include": ["./src/", "./test/"],
6-
"ignore": ["./test/**/schemas/**", "./test/bench/*.min.js"]
6+
"includes": ["src/**", "test/**", "!**/examples/**", "!test/**/schemas/**", "!test/bench/**/*.min.js"]
77
},
88
"linter": {
99
"rules": {

packages/openapi-fetch/examples/nextjs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
"dev": "next dev"
77
},
88
"dependencies": {
9-
"next": "^15.3.1",
9+
"next": "^15.5.3",
1010
"openapi-fetch": "workspace:^",
1111
"react": "^18.3.1",
1212
"react-dom": "^18.3.1"
1313
},
1414
"devDependencies": {
15-
"@types/react": "^18.3.20",
15+
"@types/react": "^18.3.24",
1616
"@types/react-dom": "^18.3.7",
1717
"openapi-typescript": "workspace:^",
18-
"typescript": "^5.9.2"
18+
"typescript": "catalog:"
1919
}
2020
}

packages/openapi-fetch/examples/sveltekit/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
99
},
1010
"devDependencies": {
11-
"@sveltejs/adapter-auto": "^6.0.1",
12-
"@sveltejs/kit": "^2.22.2",
13-
"@sveltejs/vite-plugin-svelte": "^5.1.0",
11+
"@sveltejs/adapter-auto": "^6.1.0",
12+
"@sveltejs/kit": "^2.39.1",
13+
"@sveltejs/vite-plugin-svelte": "^5.1.1",
1414
"openapi-fetch": "workspace:^",
1515
"openapi-typescript": "workspace:^",
16-
"svelte": "^5.34.9",
17-
"svelte-check": "^4.2.2",
18-
"typescript": "^5.9.2",
19-
"vite": "^7.1.1"
16+
"svelte": "^5.38.10",
17+
"svelte-check": "^4.3.1",
18+
"typescript": "catalog:",
19+
"vite": "catalog:"
2020
},
2121
"pnpm": {
2222
"onlyBuiltDependencies": [

packages/openapi-fetch/examples/vue-3/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
},
1313
"dependencies": {
1414
"openapi-fetch": "workspace:^",
15-
"vue": "^3.5.13"
15+
"vue": "^3.5.21"
1616
},
1717
"devDependencies": {
18-
"@tsconfig/node20": "^20.1.5",
19-
"@vitejs/plugin-vue": "^5.2.3",
18+
"@tsconfig/node20": "^20.1.6",
19+
"@vitejs/plugin-vue": "^5.2.4",
2020
"@vue/tsconfig": "^0.5.1",
2121
"openapi-typescript": "workspace:^",
22-
"typescript": "^5.9.2",
23-
"vite": "^7.1.1",
24-
"vue-tsc": "^2.2.10"
22+
"typescript": "catalog:",
23+
"vite": "catalog:",
24+
"vue-tsc": "^2.2.12"
2525
}
2626
}

packages/openapi-fetch/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@
6262
"openapi-typescript-helpers": "workspace:^"
6363
},
6464
"devDependencies": {
65-
"axios": "^1.11.0",
66-
"execa": "^9.6.0",
65+
"axios": "^1.12.2",
66+
"execa": "catalog:",
6767
"express": "^5.1.0",
6868
"feature-fetch": "^0.0.43",
6969
"node-forge": "^1.3.1",
7070
"openapi-typescript": "workspace:^",
7171
"openapi-typescript-codegen": "^0.29.0",
7272
"openapi-typescript-fetch": "^2.2.1",
7373
"superagent": "^10.2.3",
74-
"typescript": "^5.9.2",
75-
"undici": "^7.13.0",
76-
"vite": "^7.1.1"
74+
"typescript": "catalog:",
75+
"undici": "^7.16.0",
76+
"vite": "catalog:"
7777
}
7878
}

0 commit comments

Comments
 (0)