@kubb/plugin-swr 5.1.0 → 5.1.2
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.
- package/dist/index.d.ts +4 -4
- package/package.json +15 -4
package/dist/index.d.ts
CHANGED
|
@@ -249,7 +249,7 @@ declare global {
|
|
|
249
249
|
* Canonical plugin name for `@kubb/plugin-swr`. Used for driver lookups and cross-plugin
|
|
250
250
|
* dependency references.
|
|
251
251
|
*/
|
|
252
|
-
declare const pluginSwrName = "plugin-swr";
|
|
252
|
+
export declare const pluginSwrName = "plugin-swr";
|
|
253
253
|
/**
|
|
254
254
|
* Generates SWR hooks from OpenAPI operations. Read operations become `useFoo` hooks built on
|
|
255
255
|
* `useSWR` and write operations become `useFoo` hooks built on `useSWRMutation`, wrapping the
|
|
@@ -271,7 +271,7 @@ declare const pluginSwrName = "plugin-swr";
|
|
|
271
271
|
* })
|
|
272
272
|
* ```
|
|
273
273
|
*/
|
|
274
|
-
declare const pluginSwr: (options?: Options | undefined) => import("kubb/kit").Plugin<PluginSwr>;
|
|
274
|
+
export declare const pluginSwr: (options?: Options | undefined) => import("kubb/kit").Plugin<PluginSwr>;
|
|
275
275
|
//#endregion
|
|
276
276
|
//#region src/resolvers/resolverSwr.d.ts
|
|
277
277
|
/**
|
|
@@ -290,7 +290,7 @@ declare const pluginSwr: (options?: Options | undefined) => import("kubb/kit").P
|
|
|
290
290
|
* resolverSwr.mutation.name(operationNode) // 'useUpdatePet'
|
|
291
291
|
* ```
|
|
292
292
|
*/
|
|
293
|
-
declare const resolverSwr: ResolverSwr;
|
|
293
|
+
export declare const resolverSwr: ResolverSwr;
|
|
294
294
|
//#endregion
|
|
295
|
-
export { type PluginSwr, type ResolverSwr, type Transformer, pluginSwr as default
|
|
295
|
+
export { type PluginSwr, type ResolverSwr, type Transformer, pluginSwr as default };
|
|
296
296
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-swr",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.2",
|
|
4
4
|
"description": "Generate type-safe SWR hooks with Kubb. Covers useSWR and useSWRMutation with full TypeScript support.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"code-generation",
|
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
{
|
|
32
32
|
"type": "opencollective",
|
|
33
33
|
"url": "https://opencollective.com/kubb"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "custom",
|
|
37
|
+
"url": "https://kubb.dev/sponsors"
|
|
34
38
|
}
|
|
35
39
|
],
|
|
36
40
|
"files": [
|
|
@@ -67,17 +71,24 @@
|
|
|
67
71
|
"registry": "https://registry.npmjs.org/"
|
|
68
72
|
},
|
|
69
73
|
"dependencies": {
|
|
70
|
-
"@kubb/plugin-ts": "^5.0.
|
|
74
|
+
"@kubb/plugin-ts": "^5.0.2"
|
|
71
75
|
},
|
|
72
76
|
"devDependencies": {
|
|
73
77
|
"@internals/client": "0.0.0",
|
|
74
78
|
"@internals/shared": "0.0.0",
|
|
75
79
|
"@internals/tanstack-query": "0.0.0",
|
|
76
80
|
"@internals/utils": "0.0.0",
|
|
77
|
-
"kubb": "^5.
|
|
81
|
+
"kubb": "^5.2.3",
|
|
82
|
+
"swr": "^2.5.1"
|
|
78
83
|
},
|
|
79
84
|
"peerDependencies": {
|
|
80
|
-
"kubb": "^5.
|
|
85
|
+
"kubb": "^5.2.3",
|
|
86
|
+
"swr": "^2.0.0"
|
|
87
|
+
},
|
|
88
|
+
"peerDependenciesMeta": {
|
|
89
|
+
"swr": {
|
|
90
|
+
"optional": true
|
|
91
|
+
}
|
|
81
92
|
},
|
|
82
93
|
"engines": {
|
|
83
94
|
"node": ">=22"
|