@kubb/plugin-fetch 5.5.1 → 5.6.0-canary.20260924T112635

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-fetch",
3
- "version": "5.5.1",
3
+ "version": "5.6.0-canary.20260924T112635",
4
4
  "description": "Generate a slim, type-safe HTTP client with Kubb based on the native Fetch api.",
5
5
  "keywords": [
6
6
  "api-client",
@@ -65,17 +65,17 @@
65
65
  "registry": "https://registry.npmjs.org/"
66
66
  },
67
67
  "dependencies": {
68
- "@kubb/plugin-ts": "^5.0.2",
69
- "@kubb/plugin-zod": "^5.2.2"
68
+ "@kubb/plugin-ts": "^5.1.0-canary.20260924T112635",
69
+ "@kubb/plugin-zod": "^5.3.0-canary.20260924T112635"
70
70
  },
71
71
  "devDependencies": {
72
- "@internals/client": "0.0.0",
73
- "@internals/shared": "0.0.0",
74
- "kubb": "^5.3.15",
72
+ "@internals/client": "0.1.0-canary.20260924T112635",
73
+ "@internals/shared": "0.1.0-canary.20260924T112635",
74
+ "kubb": "^5.3.14",
75
75
  "typescript": "^6.0.3"
76
76
  },
77
77
  "peerDependencies": {
78
- "kubb": "^5.3.15"
78
+ "kubb": "^5.3.14"
79
79
  },
80
80
  "engines": {
81
81
  "node": ">=22"
package/src/plugin.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import path from 'node:path'
2
- import { createSdkGenerator, defaultMacros, resolverClient } from '@internals/client'
2
+ import { createSdkGenerator, defaultMacros, resolverClient, runtimeTemplate } from '@internals/client'
3
3
  import { createGroupConfig } from '@internals/shared'
4
4
  import { definePlugin, Resolver } from 'kubb/kit'
5
5
  import { pluginTsName } from '@kubb/plugin-ts'
@@ -95,7 +95,8 @@ export const pluginFetch = definePlugin<PluginFetch>((options) => {
95
95
  ctx.injectFile({
96
96
  baseName: 'client.ts',
97
97
  path: path.resolve(root, '.kubb/client.ts'),
98
- copy: fetchClientTemplatePath,
98
+ // Keep sources empty so the barrel exports the whole runtime module.
99
+ banner: runtimeTemplate(fetchClientTemplatePath, ctx.config),
99
100
  footer: baseURLExpression ? `client.setConfig({ baseURL: ${baseURLExpression} })` : undefined,
100
101
  })
101
102