@wpkernel/pipeline 0.12.1-beta.3 → 0.12.3-beta.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.
@@ -1,7 +1,3 @@
1
- /**
2
- * @wpkernel/pipeline
3
- * @license EUPL-1.2
4
- */
5
1
  function c(t) {
6
2
  return (typeof t != "object" || t === null) && typeof t != "function" ? !1 : typeof t.then == "function";
7
3
  }
@@ -1,8 +1,4 @@
1
1
  import { isPromiseLike as f } from "./async-utils.js";
2
- /**
3
- * @wpkernel/pipeline
4
- * @license EUPL-1.2
5
- */
6
2
  function l(r) {
7
3
  if ("register" in r)
8
4
  return {
@@ -2,10 +2,6 @@ import { maybeThen as E, isPromiseLike as h } from "./async-utils.js";
2
2
  import { registerHelper as v, handleExtensionRegisterResult as w } from "./registration.js";
3
3
  import { initDiagnosticManager as V } from "./internal/diagnostic-manager.js";
4
4
  import { initPipelineRunner as $ } from "./internal/pipeline-runner.js";
5
- /**
6
- * @wpkernel/pipeline
7
- * @license EUPL-1.2
8
- */
9
5
  function L(r) {
10
6
  const i = r.fragmentKind ?? "fragment", s = r.builderKind ?? "builder", a = r.createError ?? ((e, n) => new Error(`[${e}] ${n}`)), l = [], d = [], f = [], o = [], u = V({
11
7
  options: r,
@@ -1,7 +1,3 @@
1
- /**
2
- * @wpkernel/pipeline
3
- * @license EUPL-1.2
4
- */
5
1
  function k(n, e) {
6
2
  return `${n.kind}:${n.key}#${e}`;
7
3
  }
@@ -1,7 +1,3 @@
1
- /**
2
- * @wpkernel/pipeline
3
- * @license EUPL-1.2
4
- */
5
1
  function o(r, t) {
6
2
  const e = new Error(`[${r}] ${t}`);
7
3
  return e.code = r, e;
package/dist/executor.js CHANGED
@@ -1,8 +1,4 @@
1
1
  import { isPromiseLike as u } from "./async-utils.js";
2
- /**
3
- * @wpkernel/pipeline
4
- * @license EUPL-1.2
5
- */
6
2
  function g(s, a, v, h) {
7
3
  const o = /* @__PURE__ */ new Set();
8
4
  function m(t) {
@@ -1,3 +1,3 @@
1
1
  export { OFFICIAL_EXTENSION_BLUEPRINTS } from './official';
2
- export type { OfficialExtensionBlueprint, ExtensionBlueprint, ExtensionBehaviour, ExtensionFactorySignature, } from './official';
3
- //# sourceMappingURL=index.d.ts.map
2
+ export { OfficialExtensionBlueprint, ExtensionBlueprint, ExtensionBehaviour, ExtensionFactorySignature, } from "./official";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,4 @@
1
1
  import { OFFICIAL_EXTENSION_BLUEPRINTS as N } from "./official.js";
2
- /**
3
- * @wpkernel/pipeline
4
- * @license EUPL-1.2
5
- */
6
2
  export {
7
3
  N as OFFICIAL_EXTENSION_BLUEPRINTS
8
4
  };
@@ -1,7 +1,3 @@
1
- /**
2
- * @wpkernel/pipeline
3
- * @license EUPL-1.2
4
- */
5
1
  const e = [
6
2
  {
7
3
  id: "live-runner",
@@ -83,5 +83,5 @@ export declare function commitExtensionResults<TContext, TOptions, TArtifact>(re
83
83
  */
84
84
  export declare function rollbackExtensionResults<TContext, TOptions, TArtifact>(results: readonly ExtensionHookExecution<TContext, TOptions, TArtifact>[], hooks: readonly ExtensionHookEntry<TContext, TOptions, TArtifact>[], onRollbackError: (args: RollbackErrorArgs) => void): MaybePromise<void>;
85
85
  export { OFFICIAL_EXTENSION_BLUEPRINTS } from './extensions/official.js';
86
- export type { OfficialExtensionBlueprint, ExtensionBlueprint, ExtensionBehaviour, ExtensionFactorySignature, } from './extensions/official.js';
87
- //# sourceMappingURL=extensions.d.ts.map
86
+ export { OfficialExtensionBlueprint, ExtensionBlueprint, ExtensionBehaviour, ExtensionFactorySignature, } from "./extensions/official.js";
87
+ //# sourceMappingURL=extensions.d.ts.map
@@ -1,8 +1,4 @@
1
1
  import { processSequentially as l, isPromiseLike as k, maybeTry as h, maybeThen as m } from "./async-utils.js";
2
- /**
3
- * @wpkernel/pipeline
4
- * @license EUPL-1.2
5
- */
6
2
  function x(t) {
7
3
  if (t instanceof Error) {
8
4
  const { name: n, message: o, stack: e } = t, r = t.cause;
package/dist/helper.js CHANGED
@@ -1,7 +1,3 @@
1
- /**
2
- * @wpkernel/pipeline
3
- * @license EUPL-1.2
4
- */
5
1
  function a(e) {
6
2
  const {
7
3
  key: r,
package/dist/index.d.ts CHANGED
@@ -1,17 +1,17 @@
1
1
  export { createHelper } from './helper';
2
2
  export { createPipeline } from './createPipeline';
3
3
  export { createPipelineExtension } from './createExtension';
4
- export type { CreatePipelineExtensionOptions } from './createExtension';
4
+ export { CreatePipelineExtensionOptions } from "./createExtension";
5
5
  export { executeHelpers } from './executor';
6
- export type { ErrorFactory } from './error-factory';
6
+ export { ErrorFactory } from "./error-factory";
7
7
  export { createDefaultError, createErrorFactory } from './error-factory';
8
8
  export { registerHelper, registerExtensionHook, handleExtensionRegisterResult, } from './registration';
9
- export type { Pipeline, CreatePipelineOptions, PipelineReporter, PipelineExtension, PipelineExtensionHook, PipelineExtensionHookOptions, PipelineExtensionHookResult, PipelineExtensionLifecycle, PipelineExtensionHookRegistration, PipelineExtensionRegisterOutput, PipelineDiagnostic, ConflictDiagnostic, MissingDependencyDiagnostic, UnusedHelperDiagnostic, Helper, HelperApplyFn, HelperDescriptor, HelperKind, HelperMode, CreateHelperOptions, HelperApplyOptions, MaybePromise, PipelineStep, PipelineRunState, HelperExecutionSnapshot, PipelineExecutionMetadata, FragmentFinalizationMetadata, PipelineExtensionRollbackErrorMetadata, } from './types';
10
- export type { RegisteredHelper, MissingDependencyIssue, } from './dependency-graph';
9
+ export { Pipeline, CreatePipelineOptions, PipelineReporter, PipelineExtension, PipelineExtensionHook, PipelineExtensionHookOptions, PipelineExtensionHookResult, PipelineExtensionLifecycle, PipelineExtensionHookRegistration, PipelineExtensionRegisterOutput, PipelineDiagnostic, ConflictDiagnostic, MissingDependencyDiagnostic, UnusedHelperDiagnostic, Helper, HelperApplyFn, HelperDescriptor, HelperKind, HelperMode, CreateHelperOptions, HelperApplyOptions, MaybePromise, PipelineStep, PipelineRunState, HelperExecutionSnapshot, PipelineExecutionMetadata, FragmentFinalizationMetadata, PipelineExtensionRollbackErrorMetadata, } from "./types";
10
+ export { RegisteredHelper, MissingDependencyIssue, } from "./dependency-graph";
11
11
  export { createHelperId, compareHelpers } from './dependency-graph';
12
12
  export { isPromiseLike, maybeThen, maybeTry, processSequentially, } from './async-utils';
13
- export type { ExtensionHookEntry, ExtensionHookExecution, RollbackErrorArgs, } from './extensions';
13
+ export { ExtensionHookEntry, ExtensionHookExecution, RollbackErrorArgs, } from "./extensions";
14
14
  export { createRollbackErrorMetadata } from './extensions';
15
15
  export { OFFICIAL_EXTENSION_BLUEPRINTS } from './extensions/official';
16
- export type { OfficialExtensionBlueprint } from './extensions/official';
17
- //# sourceMappingURL=index.d.ts.map
16
+ export { OfficialExtensionBlueprint } from "./extensions/official";
17
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -8,10 +8,6 @@ import { compareHelpers as I, createHelperId as u } from "./dependency-graph.js"
8
8
  import { isPromiseLike as R, maybeThen as T, maybeTry as b, processSequentially as d } from "./async-utils.js";
9
9
  import { createRollbackErrorMetadata as k } from "./extensions.js";
10
10
  import { OFFICIAL_EXTENSION_BLUEPRINTS as L } from "./extensions/official.js";
11
- /**
12
- * @wpkernel/pipeline
13
- * @license EUPL-1.2
14
- */
15
11
  export {
16
12
  L as OFFICIAL_EXTENSION_BLUEPRINTS,
17
13
  I as compareHelpers,
@@ -1,7 +1,3 @@
1
- /**
2
- * @wpkernel/pipeline
3
- * @license EUPL-1.2
4
- */
5
1
  function w(i) {
6
2
  const g = [], a = /* @__PURE__ */ new WeakMap();
7
3
  let s;
@@ -66,5 +66,5 @@ export interface DiagnosticManagerInitConfig<TRunOptions, TBuildOptions, TContex
66
66
  readonly fragmentKind: TFragmentKind;
67
67
  readonly builderKind: TBuilderKind;
68
68
  }
69
- export type { ErrorFactory } from '../error-factory';
70
- //# sourceMappingURL=diagnostic-manager.types.d.ts.map
69
+ export { ErrorFactory } from "../error-factory";
70
+ //# sourceMappingURL=diagnostic-manager.types.d.ts.map
@@ -17,5 +17,5 @@ import { ExtensionCoordinator, ExtensionRollbackEvent } from './extension-coordi
17
17
  * @internal
18
18
  */
19
19
  export declare function initExtensionCoordinator<TContext, TOptions, TArtifact>(onRollbackError: (event: ExtensionRollbackEvent<TContext, TOptions, TArtifact>) => void): ExtensionCoordinator<TContext, TOptions, TArtifact>;
20
- export type { ExtensionLifecycleState, ExtensionHookEntry, } from './extension-coordinator.types';
21
- //# sourceMappingURL=extension-coordinator.d.ts.map
20
+ export { ExtensionLifecycleState, ExtensionHookEntry, } from "./extension-coordinator.types";
21
+ //# sourceMappingURL=extension-coordinator.d.ts.map
@@ -1,9 +1,5 @@
1
1
  import { commitExtensionResults as m, rollbackExtensionResults as d, runExtensionHooks as f, createRollbackErrorMetadata as s } from "../extensions.js";
2
2
  import { maybeThen as i } from "../async-utils.js";
3
- /**
4
- * @wpkernel/pipeline
5
- * @license EUPL-1.2
6
- */
7
3
  function R(n) {
8
4
  return {
9
5
  runLifecycle: (t, { hooks: o, hookOptions: r }) => {
@@ -1,7 +1,3 @@
1
- /**
2
- * @wpkernel/pipeline
3
- * @license EUPL-1.2
4
- */
5
1
  function c(o, n, l) {
6
2
  const s = [], t = [], i = [];
7
3
  for (const r of o) {
@@ -3,10 +3,6 @@ import { createDependencyGraph as U } from "../dependency-graph.js";
3
3
  import { executeHelpers as C } from "../executor.js";
4
4
  import { buildExecutionSnapshot as v, assertAllHelpersExecuted as A } from "./helper-execution.js";
5
5
  import { initExtensionCoordinator as B } from "./extension-coordinator.js";
6
- /**
7
- * @wpkernel/pipeline
8
- * @license EUPL-1.2
9
- */
10
6
  function j(r) {
11
7
  return {
12
8
  prepareContext: (s) => {
@@ -1,8 +1,4 @@
1
1
  import { createHelperId as a } from "./dependency-graph.js";
2
- /**
3
- * @wpkernel/pipeline
4
- * @license EUPL-1.2
5
- */
6
2
  function p(e, i, o, t, r, d) {
7
3
  if (e.kind !== i)
8
4
  throw d(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wpkernel/pipeline",
3
- "version": "0.12.1-beta.3",
3
+ "version": "0.12.3-beta.0",
4
4
  "description": "Framework-agnostic pipeline orchestration primitives for WPKernel",
5
5
  "type": "module",
6
6
  "sideEffects": false,