Skip to content

Commit 48c85b9

Browse files
authored
Merge branch 'openapi-ts:main' into support-custom-path-serializer
2 parents db03f7d + 5cdcca0 commit 48c85b9

File tree

84 files changed

+1639
-1627
lines changed

Some content is hidden

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

84 files changed

+1639
-1627
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/openapi-fetch/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ const { data, error } = await client.POST("/tokens", {
205205
clientSecret: "someClientSecret",
206206
},
207207
headers: {
208-
"Content-Type": "application/x-www-form-encoded",
208+
"Content-Type": "application/x-www-form-urlencoded",
209209
},
210210
});
211211
```

docs/openapi-fetch/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ test("my request", async () => {
4545
import { http, HttpResponse } from "msw";
4646
import { setupServer } from "msw/node";
4747
import createClient from "openapi-fetch";
48-
import { afterEach, beforeAll, expect, test } from "vitest";
48+
import { afterEach, beforeAll, afterAll, expect, test } from "vitest";
4949
import type { paths } from "./my-openapi-3-schema"; // generated by openapi-typescript
5050

5151
const server = setupServer();

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": [

0 commit comments

Comments
 (0)