@kubb/plugin-svelte-query 4.1.2 → 4.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +18 -86
  2. package/package.json +9 -9
package/README.md CHANGED
@@ -1,29 +1,29 @@
1
1
  <div align="center">
2
+ <h1>Plugin Svelte-Query</h1>
3
+ <a href="https://kubb.dev" target="_blank" rel="noopener noreferrer">
4
+ <img width="180" src="https://raw.githubusercontent.com/kubb-labs/kubb/main/assets/logo.png" alt="Kubb logo">
5
+ </a>
2
6
 
3
- <!-- <img src="assets/logo.png" alt="logo" width="200" height="auto" /> -->
4
- <h1>@kubb/plugin-svelte-query</h1>
5
-
6
- <p>
7
- Swagger integration for React-Query to generate all the different hooks based on an OpenAPI specification.
8
- </p>
9
- <img src="https://raw.githubusercontent.com/kubb-labs/kubb/main/assets/banner.png" alt="logo" height="auto" />
10
7
 
11
8
  [![npm version][npm-version-src]][npm-version-href]
12
9
  [![npm downloads][npm-downloads-src]][npm-downloads-href]
13
10
  [![Coverage][coverage-src]][coverage-href]
14
11
  [![License][license-src]][license-href]
15
-
12
+ [![Sponsors][sponsors-src]][sponsors-href]
16
13
  <h4>
17
- <a href="https://codesandbox.io/s/github/kubb-labs/kubb/tree/main//examples/typescript" target="_blank">View Demo</a>
18
- <span> · </span>
19
- <a href="https://kubb.dev/" target="_blank">Documentation</a>
20
- <span> · </span>
21
- <a href="https://github.com/kubb-labs/kubb/issues/" target="_blank">Report Bug</a>
22
- <span> · </span>
23
- <a href="https://github.com/kubb-labs/kubb/issues/" target="_blank">Request Feature</a>
24
- </h4>
14
+ <a href="https://codesandbox.io/s/github/kubb-labs/kubb/tree/main//examples/typescript" target="_blank">View Demo</a>
15
+ <span> · </span>
16
+ <a href="https://kubb.dev/" target="_blank">Documentation</a>
17
+ <span> · </span>
18
+ <a href="https://github.com/kubb-labs/kubb/issues/" target="_blank">Report Bug</a>
19
+ <span> · </span>
20
+ <a href="https://github.com/kubb-labs/kubb/issues/" target="_blank">Request Feature</a>
21
+ </h4>
25
22
  </div>
26
23
 
24
+ Swagger integration for React-Query to generate all the different hooks based on an OpenAPI specification.
25
+
26
+
27
27
  ## Supporting Kubb
28
28
 
29
29
  Kubb uses an MIT-licensed open source project with its ongoing development made possible entirely by the support of Sponsors. If you would like to become a sponsor, please consider:
@@ -51,73 +51,5 @@ Kubb uses an MIT-licensed open source project with its ongoing development made
51
51
  [minified-href]: https://www.npmjs.com/package/@kubb/plugin-svelte-query
52
52
  [coverage-src]: https://img.shields.io/codecov/c/github/kubb-labs/kubb?style=flat&colorA=18181B&colorB=f58517
53
53
  [coverage-href]: https://www.npmjs.com/package/@kubb/plugin-svelte-query
54
-
55
- ## options query
56
-
57
- ### v4
58
-
59
- UseBaseQueryOptions => react-query only
60
- UseQueryOptions => vue-query only
61
- CreateQueryOptions => solid-query only
62
- CreateQueryOptions => svelte-query only
63
-
64
- ### v5
65
-
66
- UseBaseQueryOptions => react-query only https://github.com/TanStack/query/blob/ce1305c27e7ac7988656d171d882a665a286cc6a/packages/react-query/src/types.ts#L18
67
- QueryObserverOptions => vue-query only https://github.com/TanStack/query/blob/main/packages/vue-query/src/useQuery.ts#L24
68
- UseQueryOptions => solid-query only
69
-
70
- ## result query
71
-
72
- ### v4
73
-
74
- UseQueryResult => react-query only
75
- UseQueryReturnType => vue-query only
76
- CreateQueryResult => solid-query only
77
- CreateQueryResult => svelte-query only
78
-
79
- ### v5
80
-
81
- UseQueryResult => react-query only
82
- UseQueryReturnType => vue-query only
83
-
84
- ## queryOptions() query
85
-
86
- ### v5
87
-
88
- queryOptions => react-query only
89
-
90
- ```typescript
91
- {
92
- query: {
93
- types: {
94
- options: 'UseBaseQueryOptions'
95
- result: 'UseQueryResult'
96
- }
97
- }
98
- }
99
- ```
100
-
101
- ## options mutation
102
-
103
- ### v4
104
-
105
- UseMutationOptions => react-query only
106
- VueMutationObserverOptions => vue-query only
107
-
108
- ### v5
109
-
110
- UseMutationOptions => react-query only
111
- MutationObserverOptions => vue-query only
112
-
113
- ## result mutation
114
-
115
- ### v4
116
-
117
- UseMutationResult => react-query only
118
- UseMutationReturnType => vue-query only
119
-
120
- ### v5
121
-
122
- UseMutationResult => react-query only
123
- UseMutationReturnType => vue-query only
54
+ [sponsors-src]: https://img.shields.io/github/sponsors/stijnvanhulle?style=flat&colorA=18181B&colorB=f58517
55
+ [sponsors-href]: https://github.com/sponsors/stijnvanhulle/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-svelte-query",
3
- "version": "4.1.2",
3
+ "version": "4.1.4",
4
4
  "description": "Svelte Query hooks generator plugin for Kubb, creating type-safe API client hooks from OpenAPI specifications for Svelte applications.",
5
5
  "keywords": [
6
6
  "svelte-query",
@@ -61,16 +61,16 @@
61
61
  ],
62
62
  "dependencies": {
63
63
  "remeda": "^2.32.0",
64
- "@kubb/core": "4.1.2",
65
- "@kubb/oas": "4.1.2",
66
- "@kubb/plugin-client": "4.1.2",
67
- "@kubb/plugin-oas": "4.1.2",
68
- "@kubb/plugin-ts": "4.1.2",
69
- "@kubb/plugin-zod": "4.1.2",
70
- "@kubb/react": "4.1.2"
64
+ "@kubb/core": "4.1.4",
65
+ "@kubb/oas": "4.1.4",
66
+ "@kubb/plugin-client": "4.1.4",
67
+ "@kubb/plugin-oas": "4.1.4",
68
+ "@kubb/plugin-ts": "4.1.4",
69
+ "@kubb/plugin-zod": "4.1.4",
70
+ "@kubb/react": "4.1.4"
71
71
  },
72
72
  "devDependencies": {
73
- "@types/react": "^18.3.25",
73
+ "@types/react": "^18.3.26",
74
74
  "react": "^18.3.1",
75
75
  "tsdown": "^0.14.2",
76
76
  "typescript": "^5.9.3"