kubb 5.3.8 → 5.3.9
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/README.md +6 -0
- package/dist/index.cjs +12 -6
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +10 -2
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -0
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -54,6 +54,12 @@ npx kubb generate
|
|
|
54
54
|
|
|
55
55
|
See the [documentation](https://kubb.dev) for detailed usage and advanced features.
|
|
56
56
|
|
|
57
|
+
## Kubb Studio
|
|
58
|
+
|
|
59
|
+
[Kubb Studio](https://kubb.studio) is the visual companion for Kubb. Configure, run, and inspect generations in the browser while Kubb runs in your project or on an agent you control.
|
|
60
|
+
|
|
61
|
+
Try Studio's shared sandbox, [connect a local project](https://kubb.dev/docs/5.x/guide/integrations/studio), or [publish reviewable snapshots from CI](https://github.com/kubb-labs/action). Kubb remains MIT-licensed and works without Studio.
|
|
62
|
+
|
|
57
63
|
## Features
|
|
58
64
|
|
|
59
65
|
- Generate TypeScript types, type-safe clients, [TanStack Query](https://github.com/TanStack/query) and [SWR](https://github.com/vercel/swr) hooks, [Zod](https://github.com/colinhacks/zod) validators, [Faker](https://github.com/faker-js/faker) mocks, and [MSW](https://github.com/mswjs/msw) handlers from one schema.
|
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("./rolldown-runtime-qbf5tadS.cjs");
|
|
2
3
|
const require_defineConfig = require("./defineConfig-BNg7h8qE.cjs");
|
|
3
4
|
let _kubb_core = require("@kubb/core");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
//#region src/createKubb.ts
|
|
6
|
+
/**
|
|
7
|
+
* Creates a Kubb instance with the same defaults as `defineConfig`.
|
|
8
|
+
*/
|
|
9
|
+
function createKubb(userConfig, options) {
|
|
10
|
+
return (0, _kubb_core.createKubb)(require_defineConfig.defineConfig(userConfig), options);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.createKubb = createKubb;
|
|
10
14
|
exports.defineConfig = require_defineConfig.defineConfig;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["createCoreKubb","defineConfig"],"sources":["../src/createKubb.ts"],"sourcesContent":["import { createKubb as createCoreKubb, type CreateKubbOptions, type Kubb, type UserConfig } from '@kubb/core'\nimport { defineConfig } from './defineConfig.ts'\n\n/**\n * Creates a Kubb instance with the same defaults as `defineConfig`.\n */\nexport function createKubb(userConfig: UserConfig, options?: CreateKubbOptions): Kubb {\n return createCoreKubb(defineConfig(userConfig), options)\n}\n"],"mappings":";;;;;;;;AAMA,SAAgB,WAAW,YAAwB,SAAmC;CACpF,QAAA,GAAOA,WAAAA,WAAAA,CAAeC,qBAAAA,aAAa,UAAU,GAAG,OAAO;AACzD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
1
2
|
import { t as defineConfig } from "./defineConfig-D7bKDuZT.js";
|
|
2
|
-
import { BuildOutput, Config, CreateKubbOptions, Kubb, UserConfig,
|
|
3
|
+
import { BuildOutput, Config, CreateKubbOptions, CreateKubbOptions as CreateKubbOptions$1, Kubb, Kubb as Kubb$1, UserConfig, UserConfig as UserConfig$1 } from "@kubb/core";
|
|
3
4
|
import { BarrelType } from "@kubb/plugin-barrel";
|
|
4
|
-
|
|
5
|
+
//#region src/createKubb.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Creates a Kubb instance with the same defaults as `defineConfig`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createKubb(userConfig: UserConfig$1, options?: CreateKubbOptions$1): Kubb$1;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { type BarrelType, type BuildOutput, type Config, type CreateKubbOptions, type Kubb, type UserConfig, defineConfig };
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
import "./rolldown-runtime-C0LytTxp.js";
|
|
1
2
|
import { t as defineConfig } from "./defineConfig-D6VhWkUg.js";
|
|
2
|
-
import { createKubb } from "@kubb/core";
|
|
3
|
+
import { createKubb as createKubb$1 } from "@kubb/core";
|
|
4
|
+
//#region src/createKubb.ts
|
|
5
|
+
/**
|
|
6
|
+
* Creates a Kubb instance with the same defaults as `defineConfig`.
|
|
7
|
+
*/
|
|
8
|
+
function createKubb(userConfig, options) {
|
|
9
|
+
return createKubb$1(defineConfig(userConfig), options);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
3
12
|
export { createKubb, defineConfig };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["createCoreKubb"],"sources":["../src/createKubb.ts"],"sourcesContent":["import { createKubb as createCoreKubb, type CreateKubbOptions, type Kubb, type UserConfig } from '@kubb/core'\nimport { defineConfig } from './defineConfig.ts'\n\n/**\n * Creates a Kubb instance with the same defaults as `defineConfig`.\n */\nexport function createKubb(userConfig: UserConfig, options?: CreateKubbOptions): Kubb {\n return createCoreKubb(defineConfig(userConfig), options)\n}\n"],"mappings":";;;;;;;AAMA,SAAgB,WAAW,YAAwB,SAAmC;CACpF,OAAOA,aAAe,aAAa,UAAU,GAAG,OAAO;AACzD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kubb",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.9",
|
|
4
4
|
"description": "The meta framework for code generation. Point Kubb at a schema and it generates types, clients, hooks, validators, mocks, and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api-client",
|
|
@@ -140,17 +140,17 @@
|
|
|
140
140
|
"registry": "https://registry.npmjs.org/"
|
|
141
141
|
},
|
|
142
142
|
"dependencies": {
|
|
143
|
-
"@kubb/adapter-oas": "5.3.
|
|
144
|
-
"@kubb/cli": "5.3.
|
|
145
|
-
"@kubb/core": "5.3.
|
|
146
|
-
"@kubb/kit": "5.3.
|
|
147
|
-
"@kubb/mcp": "5.3.
|
|
148
|
-
"@kubb/parser-md": "5.3.
|
|
149
|
-
"@kubb/parser-ts": "5.3.
|
|
150
|
-
"@kubb/plugin-barrel": "5.3.
|
|
151
|
-
"@kubb/renderer-jsx": "5.3.
|
|
152
|
-
"@kubb/studio": "5.3.
|
|
153
|
-
"unplugin-kubb": "5.3.
|
|
143
|
+
"@kubb/adapter-oas": "5.3.9",
|
|
144
|
+
"@kubb/cli": "5.3.9",
|
|
145
|
+
"@kubb/core": "5.3.9",
|
|
146
|
+
"@kubb/kit": "5.3.9",
|
|
147
|
+
"@kubb/mcp": "5.3.9",
|
|
148
|
+
"@kubb/parser-md": "5.3.9",
|
|
149
|
+
"@kubb/parser-ts": "5.3.9",
|
|
150
|
+
"@kubb/plugin-barrel": "5.3.9",
|
|
151
|
+
"@kubb/renderer-jsx": "5.3.9",
|
|
152
|
+
"@kubb/studio": "5.3.9",
|
|
153
|
+
"unplugin-kubb": "5.3.9"
|
|
154
154
|
},
|
|
155
155
|
"devDependencies": {
|
|
156
156
|
"@farmfe/core": "^1.7.11",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"@nuxt/kit": "^4.5.2",
|
|
159
159
|
"@nuxt/schema": "^4.5.2",
|
|
160
160
|
"esbuild": "^0.28.2",
|
|
161
|
-
"rolldown": "^1.2.
|
|
161
|
+
"rolldown": "^1.2.9",
|
|
162
162
|
"rollup": "^4.63.3",
|
|
163
163
|
"typescript": "^6.0.3",
|
|
164
164
|
"vite": "^8.3.0",
|