Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"files": {
"ignore": [
".vscode",
".claude",
"dist",
"examples/react-app/openapi",
"coverage",
Expand Down
12 changes: 8 additions & 4 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ export default defineConfig({
integrations: [
starlight({
title: "OpenAPI React Query Codegen",
social: {
github: "https://github.com/7nohe/openapi-react-query-codegen",
},
social: [
{
icon: "github",
label: "GitHub",
href: "https://github.com/7nohe/openapi-react-query-codegen",
},
],
head: [
{
tag: "meta",
Expand All @@ -35,7 +39,7 @@ export default defineConfig({
},
{
label: "Examples",
autogenerate: { directory: "examples" },
items: [{ autogenerate: { directory: "examples" } }],
},
{
slug: "contributing",
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/starlight": "^0.28.3",
"astro": "^4.15.3",
"@astrojs/starlight": "^0.40.0",
"astro": "^6.4.6",
"sharp": "^0.32.5",
"@astrojs/check": "^0.9.4",
"typescript": "^5.6.3"
Expand Down
3 changes: 2 additions & 1 deletion docs/src/content/config.ts → docs/src/content.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineCollection } from "astro:content";
import { docsLoader } from "@astrojs/starlight/loaders";
import { docsSchema } from "@astrojs/starlight/schema";

export const collections = {
docs: defineCollection({ schema: docsSchema() }),
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
};
2 changes: 1 addition & 1 deletion examples/nextjs-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@hey-api/client-fetch": "^0.6.0",
"@tanstack/react-query": "^5.59.13",
"@tanstack/react-query-devtools": "^5.32.1",
"next": "^14.2.3",
"next": "^15.5.16",
"react": "^18",
"react-dom": "^18"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"@stoplight/prism-cli": "^5.5.2",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react": "^4.7.0",
"npm-run-all": "^4.1.5",
"typescript": "^5.4.5",
"vite": "^5.0.12"
"vite": "^6.4.3"
}
}
4 changes: 2 additions & 2 deletions examples/react-router-6-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"@stoplight/prism-cli": "^5.5.2",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react": "^4.7.0",
"npm-run-all": "^4.1.5",
"typescript": "^5.4.5",
"vite": "^5.0.12"
"vite": "^6.4.3"
}
}
2 changes: 1 addition & 1 deletion examples/react-router-7-app/app/routes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { RouteConfig } from "@react-router/dev/routes";
import { flatRoutes } from "@react-router/fs-routes";

export const routes: RouteConfig = flatRoutes();
export default flatRoutes() satisfies RouteConfig;
2 changes: 1 addition & 1 deletion examples/react-router-7-app/app/routes/_index/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "../../../openapi/queries";
import { prefetchUseFindPets } from "../../../openapi/queries/prefetch";
import "./App.css";
import type * as Route from "./+types.route";
import type { Route } from "./+types/route";

export async function loader({ params }: Route.LoaderArgs) {
const queryClient = new QueryClient();
Expand Down
18 changes: 9 additions & 9 deletions examples/react-router-7-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,30 @@
"typegen": "react-router typegen",
"typecheck": "pnpm typegen && tsc",
"generate:api": "rimraf ./openapi && node ../../dist/cli.mjs -i ../petstore.yaml --format=biome --lint=biome",
"test:generated": "tsc -p ./tsconfig.json --noEmit"
"test:generated": "pnpm typegen && tsc -p ./tsconfig.json --noEmit"
},
"dependencies": {
"@react-router/fs-routes": "^7.0.0-pre.2",
"@react-router/node": "^7.0.0-pre.2",
"@react-router/serve": "^7.0.0-pre.2",
"@react-router/fs-routes": "^7.18.1",
"@react-router/node": "^7.18.1",
"@react-router/serve": "^7.18.1",
"@tanstack/react-query": "^5.59.13",
"@tanstack/react-query-devtools": "^5.32.1",
"form-data": "~4.0.0",
"isbot": "^5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router": "^7.0.0-pre.2",
"react-router-dom": "^7.0.0-pre.2"
"react-router": "^7.18.1",
"react-router-dom": "^7.18.1"
},
"devDependencies": {
"@biomejs/biome": "^1.7.2",
"@react-router/dev": "^7.0.0-pre.2",
"@react-router/dev": "^7.18.1",
"@stoplight/prism-cli": "^5.5.2",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react": "^4.7.0",
"npm-run-all": "^4.1.5",
"typescript": "^5.4.5",
"vite": "^5.0.12"
"vite": "^6.4.3"
}
}
5 changes: 5 additions & 0 deletions examples/react-router-7-app/react-router.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import type { Config } from "@react-router/dev/config";

export default {
ssr: true,
} satisfies Config;
6 changes: 1 addition & 5 deletions examples/react-router-7-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,5 @@ import { defineConfig } from "vite";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
reactRouter({
ssr: true,
}),
],
plugins: [reactRouter()],
});
4 changes: 2 additions & 2 deletions examples/tanstack-router-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"@tanstack/router-plugin": "^1.58.4",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"@vitejs/plugin-react": "^4.7.0",
"npm-run-all": "^4.1.5",
"vite": "^5.4.4"
"vite": "^6.4.3"
},
"dependencies": {
"@hey-api/client-fetch": "^0.6.0",
Expand Down
55 changes: 53 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@
"@types/cross-spawn": "^6.0.6",
"@types/node": "^22.7.4",
"@types/semver": "^7.7.1",
"@vitest/coverage-v8": "^1.5.0",
"@vitest/coverage-v8": "^3.2.6",
"commander": "^12.0.0",
"lefthook": "^1.6.10",
"rimraf": "^5.0.5",
"ts-morph": "^28.0.0",
"typescript": "^6.0.3",
"vitest": "^1.5.0"
"vitest": "^3.2.6"
},
"peerDependencies": {
"commander": "12.x",
Expand All @@ -77,6 +77,57 @@
"patchedDependencies": {
"@hey-api/openapi-ts@0.99.0": "patches/@hey-api__openapi-ts@0.99.0.patch",
"@hey-api/shared@0.5.0": "patches/@hey-api__shared@0.5.0.patch"
},
"packageExtensions": {
"ofetch": {
"dependencies": {
"undici": "6.27.0"
}
}
},
"overrides": {
"@babel/core": "7.29.6",
"@babel/helpers": "7.26.10",
"@babel/runtime": "7.26.10",
"@remix-run/router": "1.23.2",
"@tootallnate/once": "2.0.1",
"ajv": "8.18.0",
"axios": "1.16.0",
"cross-spawn@6": "6.0.6",
"cross-spawn@7": "7.0.6",
"devalue": "5.6.4",
"diff@4": "4.0.4",
"diff@5": "5.2.2",
"fast-xml-parser": "5.7.0",
"follow-redirects": "1.16.0",
"form-data": "4.0.6",
"glob@10": "10.5.0",
"js-yaml@3": "3.15.0",
"js-yaml@4": "4.2.0",
"jsonpath-plus": "10.3.0",
"lodash": "4.18.0",
"mdast-util-to-hast": "13.2.1",
"micromatch": "4.0.8",
"minimatch@3": "3.1.3",
"minimatch@9": "9.0.7",
"minimatch@10": "10.2.3",
"morgan": "1.11.0",
"on-headers": "1.1.0",
"path-to-regexp": "0.1.13",
"picomatch@2": "2.3.2",
"picomatch@4": "4.0.4",
"postcss": "8.5.10",
"prismjs": "1.30.0",
"qs": "6.15.2",
"react-router@6": "6.30.4",
"rollup": "4.59.0",
"shell-quote": "1.8.4",
"tar-fs@2": "2.1.4",
"tar-fs@3": "3.1.1",
"undici": "6.27.0",
"uuid": "11.1.1",
"yaml@1": "1.10.3",
"yaml@2": "2.8.3"
}
}
}
Loading
Loading