Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
drwpow committed Oct 25, 2024
1 parent 06163a2 commit baabe7f
Show file tree
Hide file tree
Showing 15 changed files with 1,156 additions and 1,016 deletions.
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"organizeImports": {
"enabled": false
},
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
"version": "pnpm run build && changeset version && pnpm i"
},
"devDependencies": {
"@biomejs/biome": "^1.9.2",
"@biomejs/biome": "^1.9.4",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.8",
"@playwright/test": "^1.47.1",
"@size-limit/preset-small-lib": "^11.1.5",
"@types/node": "^22.5.5",
"@changesets/cli": "^2.27.9",
"@playwright/test": "^1.48.1",
"@size-limit/preset-small-lib": "^11.1.6",
"@types/node": "^22.8.0",
"del-cli": "^5.1.0",
"prettier": "^3.3.3",
"size-limit": "^11.1.5",
"typescript": "^5.6.2",
"vitest": "^2.1.1"
"size-limit": "^11.1.6",
"typescript": "^5.6.3",
"vitest": "^2.1.3"
},
"size-limit": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-fetch/biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": ["../../biome.json"],
"files": {
"include": ["./src/", "./test/"],
Expand Down
4 changes: 2 additions & 2 deletions packages/openapi-fetch/examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/react": "^18.3.8",
"@types/react-dom": "^18.3.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"openapi-typescript": "workspace:^",
"typescript": "5.4.5"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/openapi-fetch/examples/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "vite dev"
},
"dependencies": {
"@tanstack/react-query": "^5.56.2",
"@tanstack/react-query": "^5.59.16",
"openapi-fetch": "workspace:^",
"openapi-typescript": "workspace:^",
"react": "^18.3.1",
Expand All @@ -15,8 +15,8 @@
"devDependencies": {
"@types/react": "18.3.1",
"@types/react-dom": "18.3.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"typescript": "^5.6.2",
"vite": "^5.4.6"
"@vitejs/plugin-react-swc": "^3.7.1",
"typescript": "^5.6.3",
"vite": "^5.4.10"
}
}
10 changes: 5 additions & 5 deletions packages/openapi-fetch/examples/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"openapi-fetch": "workspace:^"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.2.5",
"@sveltejs/kit": "^2.5.28",
"@sveltejs/adapter-auto": "^3.3.1",
"@sveltejs/kit": "^2.7.3",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"openapi-typescript": "workspace:^",
"svelte": "^4.2.19",
"svelte-check": "^3.8.6",
"tslib": "^2.7.0",
"typescript": "^5.6.2",
"vite": "^5.4.6"
"tslib": "^2.8.0",
"typescript": "^5.6.3",
"vite": "^5.4.10"
}
}
6 changes: 3 additions & 3 deletions packages/openapi-fetch/examples/vue-3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
},
"dependencies": {
"openapi-fetch": "workspace:^",
"vue": "^3.5.6"
"vue": "^3.5.12"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.4",
"@vitejs/plugin-vue": "^5.1.4",
"@vue/tsconfig": "^0.5.1",
"openapi-typescript": "workspace:^",
"typescript": "^5.6.2",
"vite": "^5.4.6",
"typescript": "^5.6.3",
"vite": "^5.4.10",
"vue-tsc": "^2.1.6"
}
}
6 changes: 3 additions & 3 deletions packages/openapi-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
"openapi-typescript": "workspace:^",
"openapi-typescript-codegen": "^0.25.0",
"openapi-typescript-fetch": "^2.0.0",
"superagent": "^10.1.0",
"typescript": "^5.6.2",
"vite": "^5.4.6"
"superagent": "^10.1.1",
"typescript": "^5.6.3",
"vite": "^5.4.10"
}
}
2 changes: 1 addition & 1 deletion packages/openapi-react-query/biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": ["../../biome.json"],
"files": {
"ignore": ["./test/fixtures/"]
Expand Down
7 changes: 4 additions & 3 deletions packages/openapi-react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,18 @@
"openapi-typescript-helpers": "workspace:^"
},
"devDependencies": {
"@tanstack/react-query": "^5.59.16",
"@testing-library/react": "^16.0.1",
"@types/react": "18.3.1",
"@vitejs/plugin-react": "^4.3.1",
"@vitejs/plugin-react": "^4.3.3",
"del-cli": "^5.1.0",
"esbuild": "^0.20.2",
"execa": "^8.0.1",
"msw": "^2.4.1",
"msw": "^2.5.1",
"openapi-fetch": "workspace:^",
"openapi-typescript": "workspace:^",
"react": "^18.3.1",
"react-error-boundary": "^4.0.13"
"react-error-boundary": "^4.1.2"
},
"peerDependencies": {
"@tanstack/react-query": "^5.0.0",
Expand Down
6 changes: 5 additions & 1 deletion packages/openapi-react-query/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ export default function createClient<Paths extends {}, Media extends MediaType =
useQuery: (method, path, ...[init, options, queryClient]) =>
useQuery(queryOptions(method, path, init as InitWithUnknowns<typeof init>, options), queryClient),
useSuspenseQuery: (method, path, ...[init, options, queryClient]) =>
useSuspenseQuery(queryOptions(method, path, init as InitWithUnknowns<typeof init>, options), queryClient),
useSuspenseQuery(
// @ts-expect-error TODO: fix minor type mismatch between useQuery and useSuspenseQuery
queryOptions(method, path, init as InitWithUnknowns<typeof init>, options),
queryClient,
),
useMutation: (method, path, options, queryClient) =>
useMutation(
{
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-typescript/biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": ["../../biome.json"],
"files": {
"include": ["./bin/", "./src/", "./test/"],
Expand Down
6 changes: 3 additions & 3 deletions packages/openapi-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"typescript": "^5.x"
},
"dependencies": {
"@redocly/openapi-core": "^1.25.3",
"@redocly/openapi-core": "^1.25.9",
"ansi-colors": "^4.1.3",
"change-case": "^5.4.4",
"parse-json": "^8.1.0",
Expand All @@ -75,7 +75,7 @@
"esbuild": "^0.20.2",
"execa": "^8.0.1",
"strip-ansi": "^7.1.0",
"typescript": "^5.6.2",
"vite-node": "^2.1.1"
"typescript": "^5.6.3",
"vite-node": "^2.1.3"
}
}
4 changes: 3 additions & 1 deletion packages/openapi-typescript/test/lib/ts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ describe("tsEnum", () => {
});

test("name from path", () => {
expect(astToString(tsEnum("#/paths/url/get/parameters/query/status", ["active", "inactive"])).trim()).toBe(`enum PathsUrlGetParametersQueryStatus {
expect(
astToString(tsEnum("#/paths/url/get/parameters/query/status", ["active", "inactive"])).trim(),
).toBe(`enum PathsUrlGetParametersQueryStatus {
active = "active",
inactive = "inactive"
}`);
Expand Down
Loading

0 comments on commit baabe7f

Please sign in to comment.