@kubb/plugin-faker 5.2.1 → 5.2.3
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.cjs +176 -119
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -13
- package/dist/index.d.ts +2 -13
- package/dist/index.js +173 -116
- package/dist/index.js.map +1 -1
- package/docs/options.md +2 -0
- package/kubb-extension.json +1 -1
- package/package.json +4 -4
package/docs/options.md
CHANGED
|
@@ -36,6 +36,8 @@ Controls the input and return types of object and intersection factories. Both m
|
|
|
36
36
|
|
|
37
37
|
:::field{name="'inferred'"}
|
|
38
38
|
Default value. Derives return types from generated values and supplied overrides. Optional and nullable fields retain their concrete value types, and overrides preserve literal types.
|
|
39
|
+
|
|
40
|
+
Factories in a schema cycle use the declared model as their base return type to avoid circular TypeScript inference. Supplied overrides still preserve their types.
|
|
39
41
|
:::
|
|
40
42
|
|
|
41
43
|
:::field{name="'schema'"}
|
package/kubb-extension.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-faker",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.3",
|
|
4
4
|
"description": "Generate Faker.js mock data factories with Kubb. Produces realistic seed data and fixtures for development and testing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"code-generation",
|
|
@@ -79,17 +79,17 @@
|
|
|
79
79
|
"registry": "https://registry.npmjs.org/"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@kubb/plugin-ts": "^5.
|
|
82
|
+
"@kubb/plugin-ts": "^5.3.3"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@faker-js/faker": "^10.6.0",
|
|
86
86
|
"@internals/shared": "0.0.0",
|
|
87
87
|
"@internals/utils": "0.0.0",
|
|
88
|
-
"kubb": "^5.
|
|
88
|
+
"kubb": "^5.15.0"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"@faker-js/faker": "^10.0.0",
|
|
92
|
-
"kubb": "^5.
|
|
92
|
+
"kubb": "^5.15.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependenciesMeta": {
|
|
95
95
|
"@faker-js/faker": {
|