@kubb/plugin-client 5.0.0-beta.42 → 5.0.0-beta.64

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 (39) hide show
  1. package/dist/clients/axios.cjs.map +1 -1
  2. package/dist/clients/axios.js.map +1 -1
  3. package/dist/clients/fetch.cjs.map +1 -1
  4. package/dist/clients/fetch.js.map +1 -1
  5. package/dist/index.cjs +439 -383
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.ts +60 -25
  8. package/dist/index.js +435 -383
  9. package/dist/index.js.map +1 -1
  10. package/dist/templates/clients/axios.source.cjs.map +1 -1
  11. package/dist/templates/clients/axios.source.js.map +1 -1
  12. package/dist/templates/clients/fetch.source.cjs.map +1 -1
  13. package/dist/templates/clients/fetch.source.js.map +1 -1
  14. package/dist/templates/config.source.cjs.map +1 -1
  15. package/dist/templates/config.source.js.map +1 -1
  16. package/package.json +10 -18
  17. package/extension.yaml +0 -1267
  18. package/src/clients/axios.ts +0 -113
  19. package/src/clients/fetch.ts +0 -201
  20. package/src/components/ClassClient.tsx +0 -137
  21. package/src/components/Client.tsx +0 -273
  22. package/src/components/Operations.tsx +0 -29
  23. package/src/components/StaticClassClient.tsx +0 -129
  24. package/src/components/Url.tsx +0 -91
  25. package/src/components/WrapperClient.tsx +0 -33
  26. package/src/functionParams.ts +0 -118
  27. package/src/generators/classClientGenerator.tsx +0 -253
  28. package/src/generators/clientGenerator.tsx +0 -127
  29. package/src/generators/groupedClientGenerator.tsx +0 -82
  30. package/src/generators/operationsGenerator.tsx +0 -34
  31. package/src/generators/staticClassClientGenerator.tsx +0 -232
  32. package/src/index.ts +0 -9
  33. package/src/plugin.ts +0 -160
  34. package/src/resolvers/resolverClient.ts +0 -45
  35. package/src/templates/clients/axios.source.ts +0 -4
  36. package/src/templates/clients/fetch.source.ts +0 -4
  37. package/src/templates/config.source.ts +0 -4
  38. package/src/types.ts +0 -268
  39. package/src/utils.ts +0 -159
@@ -1 +1 @@
1
- {"version":3,"file":"axios.source.cjs","names":[],"sources":["../../../src/templates/clients/axios.source.ts"],"sourcesContent":["// @ts-expect-error - import attributes are handled at build time by importAttributeTextPlugin\nimport content from '../../../templates/clients/axios.ts' with { type: 'text' }\n\nexport const source = content as string\n"],"mappings":";;AAAA,MAAa,SAAS"}
1
+ {"version":3,"file":"axios.source.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"axios.source.js","names":[],"sources":["../../../src/templates/clients/axios.source.ts"],"sourcesContent":["// @ts-expect-error - import attributes are handled at build time by importAttributeTextPlugin\nimport content from '../../../templates/clients/axios.ts' with { type: 'text' }\n\nexport const source = content as string\n"],"mappings":";AAAA,MAAa,SAAS"}
1
+ {"version":3,"file":"axios.source.js","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"fetch.source.cjs","names":[],"sources":["../../../src/templates/clients/fetch.source.ts"],"sourcesContent":["// @ts-expect-error - import attributes are handled at build time by importAttributeTextPlugin\nimport content from '../../../templates/clients/fetch.ts' with { type: 'text' }\n\nexport const source = content as string\n"],"mappings":";;AAAA,MAAa,SAAS"}
1
+ {"version":3,"file":"fetch.source.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"fetch.source.js","names":[],"sources":["../../../src/templates/clients/fetch.source.ts"],"sourcesContent":["// @ts-expect-error - import attributes are handled at build time by importAttributeTextPlugin\nimport content from '../../../templates/clients/fetch.ts' with { type: 'text' }\n\nexport const source = content as string\n"],"mappings":";AAAA,MAAa,SAAS"}
1
+ {"version":3,"file":"fetch.source.js","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"config.source.cjs","names":[],"sources":["../../src/templates/config.source.ts"],"sourcesContent":["// @ts-expect-error - import attributes are handled at build time by importAttributeTextPlugin\nimport content from '../../templates/config.ts' with { type: 'text' }\n\nexport const source = content as string\n"],"mappings":";;AAAA,MAAa,SAAS"}
1
+ {"version":3,"file":"config.source.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"config.source.js","names":[],"sources":["../../src/templates/config.source.ts"],"sourcesContent":["// @ts-expect-error - import attributes are handled at build time by importAttributeTextPlugin\nimport content from '../../templates/config.ts' with { type: 'text' }\n\nexport const source = content as string\n"],"mappings":";AAAA,MAAa,SAAS"}
1
+ {"version":3,"file":"config.source.js","names":[],"sources":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-client",
3
- "version": "5.0.0-beta.42",
3
+ "version": "5.0.0-beta.64",
4
4
  "description": "Generate type-safe HTTP clients from your OpenAPI specification. Supports Axios, Fetch, and custom client adapters with full TypeScript inference and zero boilerplate.",
5
5
  "keywords": [
6
6
  "api-client",
@@ -22,9 +22,7 @@
22
22
  "directory": "packages/plugin-client"
23
23
  },
24
24
  "files": [
25
- "src",
26
25
  "dist",
27
- "extension.yaml",
28
26
  "*.d.ts",
29
27
  "*.d.cts",
30
28
  "!/**/**.test.**",
@@ -87,18 +85,19 @@
87
85
  "registry": "https://registry.npmjs.org/"
88
86
  },
89
87
  "dependencies": {
90
- "@kubb/core": "5.0.0-beta.42",
91
- "@kubb/renderer-jsx": "5.0.0-beta.42",
92
- "@kubb/plugin-ts": "5.0.0-beta.42",
93
- "@kubb/plugin-zod": "5.0.0-beta.42"
88
+ "@kubb/ast": "5.0.0-beta.63",
89
+ "@kubb/core": "5.0.0-beta.63",
90
+ "@kubb/renderer-jsx": "5.0.0-beta.63",
91
+ "@kubb/plugin-ts": "5.0.0-beta.64",
92
+ "@kubb/plugin-zod": "5.0.0-beta.64"
94
93
  },
95
94
  "devDependencies": {
96
- "axios": "^1.16.1",
95
+ "axios": "^1.17.0",
97
96
  "@internals/shared": "0.0.0",
98
97
  "@internals/utils": "0.0.0"
99
98
  },
100
99
  "peerDependencies": {
101
- "@kubb/renderer-jsx": "5.0.0-beta.42",
100
+ "@kubb/renderer-jsx": "5.0.0-beta.63",
102
101
  "axios": "^1.7.2"
103
102
  },
104
103
  "peerDependenciesMeta": {
@@ -106,19 +105,12 @@
106
105
  "optional": true
107
106
  }
108
107
  },
109
- "size-limit": [
110
- {
111
- "path": "./dist/*.js",
112
- "limit": "510 KiB",
113
- "gzip": true
114
- }
115
- ],
116
108
  "engines": {
117
109
  "node": ">=22"
118
110
  },
119
111
  "scripts": {
120
- "build": "tsdown && size-limit",
121
- "clean": "npx rimraf ./dist",
112
+ "build": "tsdown",
113
+ "clean": "node -e \"require('node:fs').rmSync('./dist', {recursive:true,force:true})\"",
122
114
  "lint": "oxlint .",
123
115
  "lint:fix": "oxlint --fix .",
124
116
  "release": "pnpm publish --no-git-check",