@kubb/agent 4.36.1 → 5.0.0-alpha.1

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-03-16T23:52:29.930Z",
2
+ "date": "2026-03-17T00:33:52.350Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -5821,7 +5821,7 @@ const fsStorage = defineStorage(() => ({
5821
5821
  await clean(resolve(base));
5822
5822
  }
5823
5823
  }));
5824
- var version$1 = "4.36.1";
5824
+ var version$1 = "5.0.0-alpha.1";
5825
5825
  function getDiagnosticInfo() {
5826
5826
  return {
5827
5827
  nodeVersion: version$2,
@@ -6555,7 +6555,7 @@ async function detectLinter() {
6555
6555
  ]) if (await isLinterAvailable(linter)) return linter;
6556
6556
  }
6557
6557
 
6558
- var version = "4.36.1";
6558
+ var version = "5.0.0-alpha.1";
6559
6559
 
6560
6560
  function isCommandMessage(msg) {
6561
6561
  return msg.type === "command";
@@ -289,7 +289,7 @@ const groupByFiles = (problems) => {
289
289
  }
290
290
  return fileGroups;
291
291
  };
292
- function xmlEscape(s) {
292
+ export function xmlEscape(s) {
293
293
  // eslint-disable-next-line no-control-regex
294
294
  return s.replace(/[<>&"'\x00-\x1F\x7F\u0080-\uFFFF]/gu, (char) => {
295
295
  switch (char) {
@@ -37,7 +37,7 @@ export { getMajorSpecVersion } from './detect-spec.js';
37
37
  export { normalizeVisitors, } from './visitors.js';
38
38
  export { walkDocument, } from './walk.js';
39
39
  export { getAstNodeByPointer, getLineColLocation, getCodeframe } from './format/codeframes.js';
40
- export { formatProblems, getTotals } from './format/format.js';
40
+ export { formatProblems, getTotals, xmlEscape, } from './format/format.js';
41
41
  export { lint, lint as validate, lintDocument, lintFromString, lintConfig } from './lint.js';
42
42
  export { lintEntityFile, lintEntityWithScorecardLevel, lintSchema } from './lint-entity.js';
43
43
  export { bundle, bundleFromString } from './bundle/bundle.js';
@@ -132,7 +132,10 @@ export const asserts = {
132
132
  }
133
133
  },
134
134
  nonEmpty: (value, condition = true, { baseLocation }) => {
135
- const isEmpty = typeof value === 'undefined' || value === null || value === '';
135
+ const isEmpty = typeof value === 'undefined' ||
136
+ value === null ||
137
+ value === '' ||
138
+ (Array.isArray(value) && value.length === 0);
136
139
  const isValid = condition ? !isEmpty : isEmpty;
137
140
  return isValid
138
141
  ? []
@@ -296,7 +296,7 @@ const Operation = {
296
296
  externalDocs: 'ExternalDocs',
297
297
  operationId: {
298
298
  type: 'string',
299
- description: 'The operationId is path segment or path fragment in deep links to a specific operation.',
299
+ description: 'Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.',
300
300
  documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid',
301
301
  },
302
302
  parameters: 'ParameterList',
@@ -69,7 +69,7 @@ const Operation = {
69
69
  externalDocs: 'ExternalDocs',
70
70
  operationId: {
71
71
  type: 'string',
72
- description: 'The operationId is path segment or path fragment in deep links to a specific operation.',
72
+ description: 'Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.',
73
73
  documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid',
74
74
  },
75
75
  parameters: 'ParameterList',
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/openapi-core",
3
- "version": "2.21.1",
3
+ "version": "2.22.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "types": "lib/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent-prod",
3
- "version": "4.36.1",
3
+ "version": "5.0.0-alpha.1",
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "dependencies": {
@@ -25,7 +25,7 @@
25
25
  "@readme/postman-to-openapi": "4.1.0",
26
26
  "@redocly/ajv": "8.18.0",
27
27
  "@redocly/config": "0.44.1",
28
- "@redocly/openapi-core": "2.21.1",
28
+ "@redocly/openapi-core": "2.22.1",
29
29
  "@stoplight/ordered-object-literal": "1.0.5",
30
30
  "@stoplight/types": "14.1.1",
31
31
  "@stoplight/yaml": "4.3.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent",
3
- "version": "4.36.1",
3
+ "version": "5.0.0-alpha.1",
4
4
  "description": "Agent server for Kubb, enabling HTTP-based access to code generation capabilities.",
5
5
  "keywords": [
6
6
  "agent",
@@ -40,21 +40,21 @@
40
40
  "tinyexec": "^1.0.4",
41
41
  "unstorage": "^1.17.4",
42
42
  "ws": "^8.19.0",
43
- "@kubb/core": "4.36.1",
44
- "@kubb/plugin-client": "4.36.1",
45
- "@kubb/plugin-cypress": "4.36.1",
46
- "@kubb/plugin-faker": "4.36.1",
47
- "@kubb/plugin-mcp": "4.36.1",
48
- "@kubb/plugin-msw": "4.36.1",
49
- "@kubb/plugin-oas": "4.36.1",
50
- "@kubb/plugin-react-query": "4.36.1",
51
- "@kubb/plugin-redoc": "4.36.1",
52
- "@kubb/plugin-solid-query": "4.36.1",
53
- "@kubb/plugin-svelte-query": "4.36.1",
54
- "@kubb/plugin-swr": "4.36.1",
55
- "@kubb/plugin-ts": "4.36.1",
56
- "@kubb/plugin-vue-query": "4.36.1",
57
- "@kubb/plugin-zod": "4.36.1"
43
+ "@kubb/core": "5.0.0-alpha.1",
44
+ "@kubb/plugin-client": "5.0.0-alpha.1",
45
+ "@kubb/plugin-cypress": "5.0.0-alpha.1",
46
+ "@kubb/plugin-faker": "5.0.0-alpha.1",
47
+ "@kubb/plugin-mcp": "5.0.0-alpha.1",
48
+ "@kubb/plugin-msw": "5.0.0-alpha.1",
49
+ "@kubb/plugin-oas": "5.0.0-alpha.1",
50
+ "@kubb/plugin-react-query": "5.0.0-alpha.1",
51
+ "@kubb/plugin-redoc": "5.0.0-alpha.1",
52
+ "@kubb/plugin-solid-query": "5.0.0-alpha.1",
53
+ "@kubb/plugin-svelte-query": "5.0.0-alpha.1",
54
+ "@kubb/plugin-swr": "5.0.0-alpha.1",
55
+ "@kubb/plugin-ts": "5.0.0-alpha.1",
56
+ "@kubb/plugin-vue-query": "5.0.0-alpha.1",
57
+ "@kubb/plugin-zod": "5.0.0-alpha.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/ws": "^8.18.1",
@@ -64,7 +64,7 @@
64
64
  "@internals/utils": "0.0.0"
65
65
  },
66
66
  "engines": {
67
- "node": ">=20"
67
+ "node": ">=22"
68
68
  },
69
69
  "publishConfig": {
70
70
  "access": "public",