@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.
- package/dist/async-utils.js +0 -4
- package/dist/createExtension.js +0 -4
- package/dist/createPipeline.js +0 -4
- package/dist/dependency-graph.js +0 -4
- package/dist/error-factory.js +0 -4
- package/dist/executor.js +0 -4
- package/dist/extensions/index.d.ts +2 -2
- package/dist/extensions/index.js +0 -4
- package/dist/extensions/official.js +0 -4
- package/dist/extensions.d.ts +2 -2
- package/dist/extensions.js +0 -4
- package/dist/helper.js +0 -4
- package/dist/index.d.ts +7 -7
- package/dist/index.js +0 -4
- package/dist/internal/diagnostic-manager.js +0 -4
- package/dist/internal/diagnostic-manager.types.d.ts +2 -2
- package/dist/internal/extension-coordinator.d.ts +2 -2
- package/dist/internal/extension-coordinator.js +0 -4
- package/dist/internal/helper-execution.js +0 -4
- package/dist/internal/pipeline-runner.js +0 -4
- package/dist/registration.js +0 -4
- package/package.json +1 -1
package/dist/async-utils.js
CHANGED
package/dist/createExtension.js
CHANGED
package/dist/createPipeline.js
CHANGED
|
@@ -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,
|
package/dist/dependency-graph.js
CHANGED
package/dist/error-factory.js
CHANGED
package/dist/executor.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { OFFICIAL_EXTENSION_BLUEPRINTS } from './official';
|
|
2
|
-
export
|
|
3
|
-
//# sourceMappingURL=index.d.ts.map
|
|
2
|
+
export { OfficialExtensionBlueprint, ExtensionBlueprint, ExtensionBehaviour, ExtensionFactorySignature, } from "./official";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/extensions/index.js
CHANGED
package/dist/extensions.d.ts
CHANGED
|
@@ -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
|
|
87
|
-
//# sourceMappingURL=extensions.d.ts.map
|
|
86
|
+
export { OfficialExtensionBlueprint, ExtensionBlueprint, ExtensionBehaviour, ExtensionFactorySignature, } from "./extensions/official.js";
|
|
87
|
+
//# sourceMappingURL=extensions.d.ts.map
|
package/dist/extensions.js
CHANGED
|
@@ -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
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
|
|
4
|
+
export { CreatePipelineExtensionOptions } from "./createExtension";
|
|
5
5
|
export { executeHelpers } from './executor';
|
|
6
|
-
export
|
|
6
|
+
export { ErrorFactory } from "./error-factory";
|
|
7
7
|
export { createDefaultError, createErrorFactory } from './error-factory';
|
|
8
8
|
export { registerHelper, registerExtensionHook, handleExtensionRegisterResult, } from './registration';
|
|
9
|
-
export
|
|
10
|
-
export
|
|
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
|
|
13
|
+
export { ExtensionHookEntry, ExtensionHookExecution, RollbackErrorArgs, } from "./extensions";
|
|
14
14
|
export { createRollbackErrorMetadata } from './extensions';
|
|
15
15
|
export { OFFICIAL_EXTENSION_BLUEPRINTS } from './extensions/official';
|
|
16
|
-
export
|
|
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,
|
|
@@ -66,5 +66,5 @@ export interface DiagnosticManagerInitConfig<TRunOptions, TBuildOptions, TContex
|
|
|
66
66
|
readonly fragmentKind: TFragmentKind;
|
|
67
67
|
readonly builderKind: TBuilderKind;
|
|
68
68
|
}
|
|
69
|
-
export
|
|
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
|
|
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 }) => {
|
|
@@ -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) => {
|
package/dist/registration.js
CHANGED