@kubb/agent 5.0.0-alpha.70 → 5.0.0-alpha.72

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 (38) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/server/chunks/nitro/nitro.mjs +98 -16
  3. package/.output/server/chunks/routes/api/health.get.mjs +1 -1
  4. package/.output/server/index.mjs +1 -1
  5. package/.output/server/node_modules/@rolldown/binding-linux-x64-gnu/package.json +40 -0
  6. package/.output/server/node_modules/@rolldown/binding-linux-x64-gnu/rolldown-binding.linux-x64-gnu.node +0 -0
  7. package/.output/server/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +256 -0
  8. package/.output/server/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +75 -0
  9. package/.output/server/node_modules/@rolldown/pluginutils/dist/filter/index.js +3 -0
  10. package/.output/server/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +70 -0
  11. package/.output/server/node_modules/@rolldown/pluginutils/dist/index.js +1 -0
  12. package/.output/server/node_modules/@rolldown/pluginutils/dist/utils.js +17 -0
  13. package/.output/server/node_modules/@rolldown/pluginutils/package.json +37 -0
  14. package/.output/server/node_modules/remeda/dist/isDeepEqual.js +1 -1
  15. package/.output/server/node_modules/remeda/package.json +14 -14
  16. package/.output/server/node_modules/rolldown/dist/index.mjs +50 -0
  17. package/.output/server/node_modules/rolldown/dist/parse-ast-index.mjs +60 -0
  18. package/.output/server/node_modules/rolldown/dist/shared/binding-BeU_1iEk.mjs +582 -0
  19. package/.output/server/node_modules/rolldown/dist/shared/bindingify-input-options-DbbBhzky.mjs +2211 -0
  20. package/.output/server/node_modules/rolldown/dist/shared/define-config-DJOr6Iwt.mjs +6 -0
  21. package/.output/server/node_modules/rolldown/dist/shared/error-DL-e8-oE.mjs +85 -0
  22. package/.output/server/node_modules/rolldown/dist/shared/logs-D80CXhvg.mjs +180 -0
  23. package/.output/server/node_modules/rolldown/dist/shared/misc-DJYbNKZX.mjs +21 -0
  24. package/.output/server/node_modules/rolldown/dist/shared/normalize-string-or-regex-CbQQ69gT.mjs +66 -0
  25. package/.output/server/node_modules/rolldown/dist/shared/parse-B_ZnWxLZ.mjs +74 -0
  26. package/.output/server/node_modules/rolldown/dist/shared/prompt-U5ajztzG.mjs +847 -0
  27. package/.output/server/node_modules/rolldown/dist/shared/rolldown-D3JZ9rMt.mjs +40 -0
  28. package/.output/server/node_modules/rolldown/dist/shared/rolldown-build-DSxL8qiP.mjs +3325 -0
  29. package/.output/server/node_modules/rolldown/dist/shared/watch-Bd8v9ewv.mjs +374 -0
  30. package/.output/server/node_modules/rolldown/package.json +153 -0
  31. package/.output/server/node_modules/unrun/dist/index.mjs +2 -0
  32. package/.output/server/node_modules/unrun/dist/src-GU5PtktT.mjs +887 -0
  33. package/.output/server/node_modules/unrun/package.json +125 -0
  34. package/.output/server/package.json +6 -3
  35. package/package.json +7 -7
  36. package/.output/server/node_modules/jiti/dist/jiti.cjs +0 -1
  37. package/.output/server/node_modules/jiti/lib/jiti.mjs +0 -29
  38. package/.output/server/node_modules/jiti/package.json +0 -133
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remeda",
3
- "version": "2.33.7",
3
+ "version": "2.34.0",
4
4
  "type": "module",
5
5
  "description": "A utility library for JavaScript and Typescript.",
6
6
  "repository": {
@@ -50,7 +50,7 @@
50
50
  "check": "tsc --project tsconfig.source.json",
51
51
  "check:dist": "tsc --project tsconfig.dist.json",
52
52
  "format": "prettier . --write",
53
- "lint": "eslint --fix --max-warnings 0 --cache --cache-location ./node_modules/.cache/eslint/",
53
+ "lint": "eslint --fix --max-warnings 0",
54
54
  "publish:jsr": "jsr publish",
55
55
  "publish:preview": "pkg-pr-new publish --compact --template ../stackblitz-template/",
56
56
  "test": "vitest",
@@ -62,29 +62,29 @@
62
62
  "devDependencies": {
63
63
  "@arethetypeswrong/core": "^0.18.2",
64
64
  "@eslint/js": "^10.0.1",
65
- "@fast-check/vitest": "^0.3.0",
65
+ "@fast-check/vitest": "^0.4.0",
66
66
  "@types/eslint-config-prettier": "^6.11.3",
67
- "@types/node": "^25.5.0",
68
- "@vitest/coverage-v8": "~4.1.0",
69
- "@vitest/eslint-plugin": "^1.6.13",
70
- "eslint": "~10.1.0",
67
+ "@types/node": "^25.5.2",
68
+ "@vitest/coverage-v8": "^4.1.2",
69
+ "@vitest/eslint-plugin": "^1.6.14",
70
+ "eslint": "~10.2.0",
71
71
  "eslint-config-prettier": "^10.1.8",
72
- "eslint-plugin-jsdoc": "^62.8.0",
73
- "eslint-plugin-unicorn": "^63.0.0",
72
+ "eslint-plugin-jsdoc": "^62.9.0",
73
+ "eslint-plugin-unicorn": "^64.0.0",
74
74
  "jiti": "^2.6.1",
75
75
  "jsr": "^0.14.3",
76
76
  "lint-staged": "^16.4.0",
77
77
  "pkg-pr-new": "^0.0.66",
78
78
  "prettier": "^3.8.1",
79
- "prettier-plugin-pkg": "^0.22.0",
79
+ "prettier-plugin-pkg": "^0.22.1",
80
80
  "prettier-plugin-sh": "^0.18.0",
81
81
  "publint": "^0.3.18",
82
82
  "semantic-release": "^25.0.3",
83
- "tsdown": "^0.21.4",
83
+ "tsdown": "^0.21.7",
84
84
  "type-fest": "^5.5.0",
85
- "typescript": "^5.9.3",
86
- "typescript-eslint": "^8.57.1",
87
- "vitest": "~4.1.0"
85
+ "typescript": "^6.0.2",
86
+ "typescript-eslint": "^8.58.0",
87
+ "vitest": "^4.1.2"
88
88
  },
89
89
  "sideEffects": false
90
90
  }
@@ -0,0 +1,50 @@
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-BeU_1iEk.mjs";
2
+ import { n as onExit, t as watch } from "./shared/watch-Bd8v9ewv.mjs";
3
+ import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-DbbBhzky.mjs";
4
+ import { t as rolldown } from "./shared/rolldown-D3JZ9rMt.mjs";
5
+ import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
6
+ import { isMainThread } from "node:worker_threads";
7
+ //#region src/setup.ts
8
+ var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
9
+ if (isMainThread) {
10
+ const subscriberGuard = (0, import_binding.initTraceSubscriber)();
11
+ onExit(() => {
12
+ subscriberGuard?.close();
13
+ });
14
+ }
15
+ //#endregion
16
+ //#region src/api/build.ts
17
+ /**
18
+ * The API similar to esbuild's `build` function.
19
+ *
20
+ * @example
21
+ * ```js
22
+ * import { build } from 'rolldown';
23
+ *
24
+ * const result = await build({
25
+ * input: 'src/main.js',
26
+ * output: {
27
+ * file: 'bundle.js',
28
+ * },
29
+ * });
30
+ * console.log(result);
31
+ * ```
32
+ *
33
+ * @experimental
34
+ * @category Programmatic APIs
35
+ */
36
+ async function build(options) {
37
+ if (Array.isArray(options)) return Promise.all(options.map((opts) => build(opts)));
38
+ else {
39
+ const { output, write = true, ...inputOptions } = options;
40
+ const build = await rolldown(inputOptions);
41
+ try {
42
+ if (write) return await build.write(output);
43
+ else return await build.generate(output);
44
+ } finally {
45
+ await build.close();
46
+ }
47
+ }
48
+ }
49
+ //#endregion
50
+ export { RUNTIME_MODULE_ID, RolldownMagicString, VERSION, build, defineConfig, rolldown, watch };
@@ -0,0 +1,60 @@
1
+ import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-D80CXhvg.mjs";
2
+ import { n as parseSync, t as parse } from "./shared/parse-B_ZnWxLZ.mjs";
3
+ //#region src/parse-ast-index.ts
4
+ function wrap(result, filename, sourceText) {
5
+ if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
6
+ return result.program;
7
+ }
8
+ function normalizeParseError(filename, sourceText, errors) {
9
+ let message = `Parse failed with ${errors.length} error${errors.length < 2 ? "" : "s"}:\n`;
10
+ const pos = errors[0]?.labels?.[0]?.start;
11
+ for (let i = 0; i < errors.length; i++) {
12
+ if (i >= 5) {
13
+ message += "\n...";
14
+ break;
15
+ }
16
+ const e = errors[i];
17
+ message += e.message + "\n" + e.labels.map((label) => {
18
+ const location = locate(sourceText, label.start, { offsetLine: 1 });
19
+ if (!location) return;
20
+ return getCodeFrame(sourceText, location.line, location.column);
21
+ }).filter(Boolean).join("\n");
22
+ }
23
+ const log = logParseError(message, filename, pos);
24
+ if (pos !== void 0 && filename) augmentCodeLocation(log, pos, sourceText, filename);
25
+ return error(log);
26
+ }
27
+ const defaultParserOptions = {
28
+ lang: "js",
29
+ preserveParens: false
30
+ };
31
+ /**
32
+ * Parse code synchronously and return the AST.
33
+ *
34
+ * This function is similar to Rollup's `parseAst` function.
35
+ * Prefer using {@linkcode parseSync} instead of this function as it has more information in the return value.
36
+ *
37
+ * @category Utilities
38
+ */
39
+ function parseAst(sourceText, options, filename) {
40
+ return wrap(parseSync(filename ?? "file.js", sourceText, {
41
+ ...defaultParserOptions,
42
+ ...options
43
+ }), filename, sourceText);
44
+ }
45
+ /**
46
+ * Parse code asynchronously and return the AST.
47
+ *
48
+ * This function is similar to Rollup's `parseAstAsync` function.
49
+ * Prefer using {@linkcode parseAsync} instead of this function as it has more information in the return value.
50
+ *
51
+ * @category Utilities
52
+ */
53
+ async function parseAstAsync(sourceText, options, filename) {
54
+ return wrap(await parse(filename ?? "file.js", sourceText, {
55
+ ...defaultParserOptions,
56
+ ...options
57
+ }), filename, sourceText);
58
+ }
59
+ //#endregion
60
+ export { parseAst, parseAstAsync };