diff --git a/.changeset/happy-singers-fry.md b/.changeset/happy-singers-fry.md deleted file mode 100644 index 16d22fb3b..000000000 --- a/.changeset/happy-singers-fry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"openapi-fetch": minor ---- - -Allow specifying baseUrl per request diff --git a/.changeset/little-knives-design.md b/.changeset/little-knives-design.md deleted file mode 100644 index a53e70395..000000000 --- a/.changeset/little-knives-design.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"openapi-fetch": patch ---- - -fix: allow use of `PathBasedClient` with generated `paths` diff --git a/.github/workflows/issue-stale.yml b/.github/workflows/issue-stale.yml index 3d9f6558d..01258baa7 100644 --- a/.github/workflows/issue-stale.yml +++ b/.github/workflows/issue-stale.yml @@ -10,11 +10,11 @@ jobs: steps: - uses: actions/stale@v9 with: - stale-issue-message: "This issue is stale because it has been open for 90 days with no activity. If there is no activity in the next 7 days, the issue will be closed." + stale-issue-message: "This issue is stale because it has been open for 180 days with no activity. If there is no activity in the next 7 days, the issue will be closed." close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem." ascending: false operations-per-run: 300 - days-before-issue-stale: 90 + days-before-issue-stale: 180 days-before-issue-close: 7 days-before-pr-stale: -1 days-before-pr-close: -1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5592fe6b2..8170e293a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,7 @@ on: jobs: changelog: runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'openapi-ts' }} permissions: contents: write pull-requests: write @@ -28,5 +29,5 @@ jobs: commit: "[ci] release" title: "[ci] release" env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.OPENAPI_TS_BOT_GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.gitignore b/.gitignore index 07389397b..777a4ce87 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .DS_Store dist node_modules +coverage packages/openapi-typescript/test/fixtures/cli-outputs/out diff --git a/.vscode/settings.json b/.vscode/settings.json index 47555f79d..6c78a8f7c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,7 +8,7 @@ "[markdown]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, - "[typescript]": { + "[typescript][typescriptreact]": { "editor.defaultFormatter": "biomejs.biome" } } diff --git a/README.md b/README.md index d35dc2549..9f7be7fc9 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,10 @@ Ultra-fast fetching for TypeScript generated automatically from your OpenAPI sch ### 🥇 Gold Sponsors -
+ ### 🥈 Silver Sponsors @@ -24,8 +27,12 @@ Ultra-fast fetching for TypeScript generated automatically from your OpenAPI sch ### Backers - + Become a sponsor by supporting this project on [OpenCollective](https://opencollective.com/openapi-ts)! diff --git a/biome.json b/biome.json index 0593aef9c..eeac895c7 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.8.1/schema.json", + "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", "organizeImports": { "enabled": false }, diff --git a/docs/.vitepress/en.ts b/docs/.vitepress/en.ts index fd314c958..31a6ccaec 100644 --- a/docs/.vitepress/en.ts +++ b/docs/.vitepress/en.ts @@ -71,14 +71,48 @@ export default defineConfig({ }, { text: "openapi-react-query", + base: "/openapi-react-query", items: [ - { text: "Getting Started", link: "/openapi-react-query/" }, - { text: "useQuery", link: "/openapi-react-query/use-query" }, - { text: "useMutation", link: "/openapi-react-query/use-mutation" }, - { text: "useSuspenseQuery", link: "/openapi-react-query/use-suspense-query" }, + { text: "Getting Started", link: "/" }, + { text: "useQuery", link: "/use-query" }, + { text: "useMutation", link: "/use-mutation" }, + { + text: "useSuspenseQuery", + link: "/use-suspense-query", + }, + { + text: "queryOptions", + link: "/query-options", + }, { text: "About", link: "/openapi-react-query/about" }, ], }, + { + text: "swr-openapi", + base: "/swr-openapi", + items: [ + { text: "Getting Started", link: "/" }, + { text: "Hook Builders", link: "/hook-builders" }, + { text: "useQuery", link: "/use-query" }, + { text: "useImmutable", link: "/use-immutable" }, + { text: "useInfinite", link: "/use-infinite" }, + { text: "useMutate", link: "/use-mutate" }, + { text: "About", link: "/about" }, + ], + }, + { + text: "openapi-metadata", + base: "/openapi-metadata", + items: [ + { text: "Getting Started", link: "/" }, + { text: "Decorators", link: "/decorators" }, + { text: "Metadata", link: "/metadata" }, + { text: "Type loader", link: "/type-loader" }, + { text: "UI Integrations", link: "/ui" }, + { text: "Examples", link: "/examples" }, + { text: "About", link: "/about" }, + ], + }, ], }, search: { @@ -89,6 +123,12 @@ export default defineConfig({ indexName: "openapi-ts", }, }, + socialLinks: [ + { + icon: "github", + link: "https://github.com/openapi-ts/openapi-typescript", + }, + ], footer: { message: 'Released under the MIT License.', diff --git a/docs/.vitepress/shared.ts b/docs/.vitepress/shared.ts index 3d457933a..d531543f4 100644 --- a/docs/.vitepress/shared.ts +++ b/docs/.vitepress/shared.ts @@ -1,4 +1,4 @@ -import type { UserConfig } from "vitepress"; +import type { UserConfig, DefaultTheme } from "vitepress"; import { zhSearch } from "./zh"; import { jaSearch } from "./ja"; @@ -26,6 +26,7 @@ const shared: UserConfig = { themeConfig: { siteTitle: false, logo: "/assets/openapi-ts.svg", + outline: 'deep', search: { provider: "algolia", options: { @@ -44,7 +45,7 @@ const shared: UserConfig = { }, { icon: "github", link: "https://github.com/openapi-ts/openapi-typescript" }, ], - }, + } satisfies DefaultTheme.Config, transformPageData({ relativePath, frontmatter }) { frontmatter.head ??= []; frontmatter.head.push([ diff --git a/docs/.vitepress/theme/CustomLayout.vue b/docs/.vitepress/theme/CustomLayout.vue index 138e83fd0..0a71a2955 100644 --- a/docs/.vitepress/theme/CustomLayout.vue +++ b/docs/.vitepress/theme/CustomLayout.vue @@ -42,8 +42,16 @@ const { Layout } = DefaultTheme;