@kubb/plugin-fetch 5.1.0-canary.20260824T161549 → 5.1.0

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.1.0-canary.20260824T161549",
3
+ "version": "5.1.0",
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",
@@ -60,17 +60,17 @@
60
60
  "registry": "https://registry.npmjs.org/"
61
61
  },
62
62
  "dependencies": {
63
- "@kubb/plugin-ts": "^5.1.0-canary.20260824T161545",
64
- "@kubb/plugin-zod": "^5.1.0-canary.20260824T161545"
63
+ "@kubb/plugin-ts": "^5.0.0",
64
+ "@kubb/plugin-zod": "^5.1.0"
65
65
  },
66
66
  "devDependencies": {
67
- "kubb": "^5.0.0",
67
+ "kubb": "^5.0.1",
68
68
  "typescript": "^6.0.3",
69
- "@internals/client": "0.1.0-canary.20260824T161546",
70
- "@internals/shared": "0.1.0-canary.20260824T161544"
69
+ "@internals/shared": "0.0.0",
70
+ "@internals/client": "0.0.0"
71
71
  },
72
72
  "peerDependencies": {
73
- "kubb": "^5.0.0"
73
+ "kubb": "^5.0.1"
74
74
  },
75
75
  "engines": {
76
76
  "node": ">=22"
package/src/plugin.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import path from 'node:path'
2
- import { createSdkGenerator, defaultMacros, isValidatorEnabled, resolverClient } from '@internals/client'
2
+ import { createSdkGenerator, defaultMacros, resolverClient } 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'
@@ -68,9 +68,9 @@ export const pluginFetch = definePlugin<PluginFetch>((options) => {
68
68
  return {
69
69
  name: pluginFetchName,
70
70
  options,
71
- dependencies: [pluginTsName, isValidatorEnabled(resolved.validator) ? pluginZodName : null].filter((dependency): dependency is string =>
72
- Boolean(dependency),
73
- ),
71
+ // Both are ordering hints, dropped when the plugin is not in the pipeline. `plugin-ts` supplies
72
+ // the operation types unless it is absent, in which case `pluginZod({ inferred: true })` does.
73
+ dependencies: [pluginTsName, pluginZodName],
74
74
  hooks: {
75
75
  'kubb:plugin:setup'(ctx) {
76
76
  ctx.setOptions(resolved)