Skip to content

Releases: Fieldguide/pipeline

v1.2.1

01 Nov 13:29
11602b8
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.2.1

v1.2.0

21 Oct 18:28
b7d3074
Compare
Choose a tag to compare

What's Changed

Added Features

Other Improvements

Full Changelog: v1.1.1...v1.2.0

v1.1.1

08 Oct 20:53
7b6f58d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.0...v1.1.1

v1.1.0

04 Oct 17:37
d7dd60c
Compare
Choose a tag to compare

What's Changed

Added Features

Other Improvements

New Contributors

Full Changelog: v1.0.2...v1.1.0

v1.0.2

29 Apr 21:46
b583852
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.1...v1.0.2

v1.0.1

01 Apr 13:15
4c797f2
Compare
Choose a tag to compare

What's Changed

This release updates several package dependencies to their latest versions.

Full Changelog: v1.0.0...v1.0.1

v1.0.0

13 Feb 16:26
c3aef7d
Compare
Choose a tag to compare

Breaking Changes

  • PipelineMiddleware is now an async function that is passed an Express-like next function. The next() function returns a promise that resolves with the stage result which the middleware is expected to return. For example:

    Before

    const logStageMiddleware: PipelineMiddleware = {
      onStageStart: ({ metadata, currentStage }) => {
        console.log(`[${metadata.name}] starting ${currentStage}...`);
      },
      onStageComplete: ({ metadata, currentStage }) => {
        console.log(`[${metadata.name}] ${currentStage} completed`);
      },
    };

    After

    const logStageMiddleware: PipelineMiddleware = async ({
      metadata,
      currentStage,
      next,
    }) => {
      try {
        console.log(`[${metadata.name}] starting ${currentStage}...`);
    
        return await next();
      } finally {
        console.log(`[${metadata.name}] ${currentStage} completed`);
      }
    };
  • PipelineResultValidator type now takes a Readonly argument, and its return type is a type predicate:

    type PipelineResultValidator<R extends object> = (
      results: Readonly<Partial<R>>,
    ) => results is R;

What's Changed

Full Changelog: v0.1.1...v1.0.0

v0.1.1

01 Feb 00:02
e5d270a
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.0...v0.1.1

v0.1.0

31 Jan 22:53
4a58eb8
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/Fieldguide/pipeline/commits/v0.1.0