@kubb/core 5.15.2 → 5.15.4

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/dist/index.cjs CHANGED
@@ -45,7 +45,7 @@ let node_readline = require("node:readline");
45
45
  let node_url = require("node:url");
46
46
  let node_module = require("node:module");
47
47
  // package.json
48
- var version = "5.15.2";
48
+ var version = "5.15.4";
49
49
  // ../../internals/utils/src/casing.ts
50
50
  /**
51
51
  * Shared implementation for camelCase and PascalCase conversion.
@@ -2481,6 +2481,7 @@ var FileManager = class {
2481
2481
  * memory rather than holding every source, while still overlapping each file's write with the
2482
2482
  * next file's parse. Files finish in whatever order they parse, so each finished file flushes the
2483
2483
  * run of finished files ahead of it as one `kubb:files:processing:update`, keeping rows in input order.
2484
+ * Each parsed source goes out once on `kubb:file:processed`, so listeners read it without the pool holding it.
2484
2485
  *
2485
2486
  * A file the storage already holds is skipped, so a rebuild that generates identical output
2486
2487
  * writes nothing and leaves every mtime where it was. `kubb:files:processing:end` lists the
@@ -2497,14 +2498,20 @@ var FileManager = class {
2497
2498
  run: async (file, index) => {
2498
2499
  signal?.throwIfAborted();
2499
2500
  const source = await this.parse(file, { parsers });
2500
- if (source && !await writeChanged({
2501
- storage,
2502
- manifest,
2503
- file,
2504
- source,
2505
- signal,
2506
- cleaned
2507
- })) unchanged.push(file.path);
2501
+ if (source) {
2502
+ if (!await writeChanged({
2503
+ storage,
2504
+ manifest,
2505
+ file,
2506
+ source,
2507
+ signal,
2508
+ cleaned
2509
+ })) unchanged.push(file.path);
2510
+ await hooks?.callHook("kubb:file:processed", {
2511
+ file,
2512
+ source
2513
+ });
2514
+ }
2508
2515
  await progress?.(index);
2509
2516
  }
2510
2517
  });
@@ -4579,6 +4586,7 @@ exports.definePlugin = definePlugin;
4579
4586
  exports.fileReporter = fileReporter;
4580
4587
  exports.fsStorage = fsStorage;
4581
4588
  exports.getInputKind = getInputKind;
4589
+ exports.hasOutputPasses = hasOutputPasses;
4582
4590
  exports.htmlReporter = htmlReporter;
4583
4591
  exports.injectFile = injectFile;
4584
4592
  exports.isExtensionManifest = isExtensionManifest;