Skip to content
Closed
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
2 changes: 2 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"client-templates-copy-real-files",
"consolidate-jsx-renderer",
"consolidate-tanstack-query-clones",
"consolidate-url-template-into-kubb-kit",
"consume-ast-utils",
"curly-areas-sit",
"cypress-quote-non-identifier-query-params",
Expand Down Expand Up @@ -164,6 +165,7 @@
"rare-birds-beg",
"react-query-suspense-no-enabled",
"react-query-value-or-getter-params",
"react-query-vue-query-hookless-variant-files",
"redoc-template-options-unknown",
"reduce-generator-type-casts",
"refresh-package-descriptions",
Expand Down
6 changes: 6 additions & 0 deletions packages/plugin-cypress/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @kubb/plugin-cypress

## 5.0.0-beta.100

### Patch Changes

- [#692](https://github.com/kubb-labs/plugins/pull/692) [`3d6f94b`](https://github.com/kubb-labs/plugins/commit/3d6f94b08174be0f39175bd6f641bea00c9459b0) Thanks [@stijnvanhulle](https://github.com/stijnvanhulle)! - Consume the `Url` path-template helper from `kubb/kit` instead of a locally duplicated copy in `@internals/utils`, now that kubb core exposes `Url.toSafeTemplate` and `Url.toGroupedTemplateString` alongside its existing `toPath`/`toTemplateString`/`toObject`. Requires `kubb`/`@kubb/kit` 5.0.0-beta.98 or later.

## 5.0.0-beta.99

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-cypress/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kubb/plugin-cypress",
"version": "5.0.0-beta.99",
"version": "5.0.0-beta.100",
"description": "Generate Cypress request commands and e2e test fixtures with Kubb for automated API testing.",
"keywords": [
"code-generation",
Expand Down
6 changes: 6 additions & 0 deletions packages/plugin-msw/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @kubb/plugin-msw

## 5.0.0-beta.100

### Patch Changes

- [#692](https://github.com/kubb-labs/plugins/pull/692) [`3d6f94b`](https://github.com/kubb-labs/plugins/commit/3d6f94b08174be0f39175bd6f641bea00c9459b0) Thanks [@stijnvanhulle](https://github.com/stijnvanhulle)! - Consume the `Url` path-template helper from `kubb/kit` instead of a locally duplicated copy in `@internals/utils`, now that kubb core exposes `Url.toSafeTemplate` and `Url.toGroupedTemplateString` alongside its existing `toPath`/`toTemplateString`/`toObject`. Requires `kubb`/`@kubb/kit` 5.0.0-beta.98 or later.

## 5.0.0-beta.99

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-msw/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kubb/plugin-msw",
"version": "5.0.0-beta.99",
"version": "5.0.0-beta.100",
"description": "Generate Mock Service Worker (MSW) request handlers with Kubb. Intercept HTTP requests in the browser or Node.js for frontend development and testing.",
"keywords": [
"api-mocking",
Expand Down
15 changes: 15 additions & 0 deletions packages/plugin-react-query/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @kubb/plugin-react-query

## 5.0.0-beta.100

### Major Changes

- [#697](https://github.com/kubb-labs/plugins/pull/697) [`21e9408`](https://github.com/kubb-labs/plugins/commit/21e9408b20b69bfb9db099bc6d40b710d724e05c) Thanks [@stijnvanhulle](https://github.com/stijnvanhulle)! - Skip suspense and infinite query files entirely when `hooks` is `false`, and default `pluginReactQuery`'s `suspense` option to `false`.

With `hooks: false` (the default), the suspense and infinite generators still resolved and wrote a file. They only skipped the `use*` hook body, so every query operation got a `Suspense`/`Infinite`-suffixed `queryOptions`/`queryKey` pair with no way to call the hook it was named for. The generators now check `hooks` before resolving a file at all, the same guard `hookOptionsGenerator` already used, so those files stop generating unless you opt into hooks.

`pluginReactQuery`'s `suspense` option now defaults to `false` instead of `{}`, matching `infinite`'s existing off-by-default convention. Combined with the fix above, this also clears the suspense boilerplate for anyone who left `suspense` unset.

**Breaking change:**

- `pluginReactQuery({ suspense: {} })` is required to opt back into suspense query generation; unset `suspense` no longer generates anything.
- Any config with `suspense`, `infinite`, or both set while leaving `hooks` at its default (`false`) stops emitting `<op>SuspenseQueryOptions`, `<op>SuspenseInfiniteQueryOptions`, and `<op>InfiniteQueryOptions` (and their matching query key exports). Set `hooks: true` to keep generating them.

## 5.0.0-beta.99

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-react-query/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kubb/plugin-react-query",
"version": "5.0.0-beta.99",
"version": "5.0.0-beta.100",
"description": "Generate type-safe TanStack Query (React Query) hooks with Kubb. Covers useQuery, useMutation, useInfiniteQuery, and queryOptions with full TypeScript support.",
"keywords": [
"code-generation",
Expand Down
15 changes: 15 additions & 0 deletions packages/plugin-vue-query/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @kubb/plugin-vue-query

## 5.0.0-beta.100

### Major Changes

- [#697](https://github.com/kubb-labs/plugins/pull/697) [`21e9408`](https://github.com/kubb-labs/plugins/commit/21e9408b20b69bfb9db099bc6d40b710d724e05c) Thanks [@stijnvanhulle](https://github.com/stijnvanhulle)! - Skip suspense and infinite query files entirely when `hooks` is `false`, and default `pluginReactQuery`'s `suspense` option to `false`.

With `hooks: false` (the default), the suspense and infinite generators still resolved and wrote a file. They only skipped the `use*` hook body, so every query operation got a `Suspense`/`Infinite`-suffixed `queryOptions`/`queryKey` pair with no way to call the hook it was named for. The generators now check `hooks` before resolving a file at all, the same guard `hookOptionsGenerator` already used, so those files stop generating unless you opt into hooks.

`pluginReactQuery`'s `suspense` option now defaults to `false` instead of `{}`, matching `infinite`'s existing off-by-default convention. Combined with the fix above, this also clears the suspense boilerplate for anyone who left `suspense` unset.

**Breaking change:**

- `pluginReactQuery({ suspense: {} })` is required to opt back into suspense query generation; unset `suspense` no longer generates anything.
- Any config with `suspense`, `infinite`, or both set while leaving `hooks` at its default (`false`) stops emitting `<op>SuspenseQueryOptions`, `<op>SuspenseInfiniteQueryOptions`, and `<op>InfiniteQueryOptions` (and their matching query key exports). Set `hooks: true` to keep generating them.

## 5.0.0-beta.99

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-vue-query/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kubb/plugin-vue-query",
"version": "5.0.0-beta.99",
"version": "5.0.0-beta.100",
"description": "Generate type-safe TanStack Query (Vue Query) composables with Kubb. Covers useQuery, useMutation, useInfiniteQuery, and queryOptions with Vue 3 Composition API support.",
"keywords": [
"code-generation",
Expand Down
10 changes: 10 additions & 0 deletions tests/3.0.x/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# tests-3.0.x

## 0.0.1-beta.41

### Patch Changes

- Updated dependencies [[`3d6f94b`](https://github.com/kubb-labs/plugins/commit/3d6f94b08174be0f39175bd6f641bea00c9459b0), [`21e9408`](https://github.com/kubb-labs/plugins/commit/21e9408b20b69bfb9db099bc6d40b710d724e05c)]:
- @kubb/plugin-cypress@5.0.0-beta.100
- @kubb/plugin-msw@5.0.0-beta.100
- @kubb/plugin-react-query@5.0.0-beta.100
- @kubb/plugin-vue-query@5.0.0-beta.100

## 0.0.1-beta.40

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion tests/3.0.x/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tests-3.0.x",
"version": "0.0.1-beta.40",
"version": "0.0.1-beta.41",
"private": true,
"description": "Integration tests for OpenAPI 3.0.x",
"license": "MIT",
Expand Down
9 changes: 9 additions & 0 deletions tests/e2e/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# e2e

## 0.0.1-beta.34

### Patch Changes

- Updated dependencies [[`3d6f94b`](https://github.com/kubb-labs/plugins/commit/3d6f94b08174be0f39175bd6f641bea00c9459b0), [`21e9408`](https://github.com/kubb-labs/plugins/commit/21e9408b20b69bfb9db099bc6d40b710d724e05c)]:
- @kubb/plugin-cypress@5.0.0-beta.100
- @kubb/plugin-msw@5.0.0-beta.100
- @kubb/plugin-react-query@5.0.0-beta.100

## 0.0.1-beta.33

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "e2e",
"version": "0.0.1-beta.33",
"version": "0.0.1-beta.34",
"private": true,
"description": "",
"license": "MIT",
Expand Down