Skip to content
This repository was archived by the owner on Sep 14, 2020. It is now read-only.

Releases: kirruss/compose

v1.1.0

18 Aug 16:26

Choose a tag to compare

1.1.0 (2020-08-18)

Bug Fixes

  • added a check for calling next multiple times when composing (aa9a76b)
  • added a check for empty middleware chains when composing (c52d778)

Features

  • refactored middleware composition to call next automatically (28e8e1e)

v1.0.0

17 Aug 20:55

Choose a tag to compare

1.0.0 (2020-08-17)

Bug Fixes

  • awaited execution of middleware when composing chain (a4aee28)
  • changed middleware type that gets exported (27f815d)
  • made middleware composition function call right context object (f92d777)
  • made middlewarecomposer getmiddleware method return a middleware function (c7dae51)
  • refactored middleware composition to mutate the initial context reference (2343e4e)

Features

  • added a basic middlewarecomposer class (2a09c1a)
  • added a function for unsafely composing middleware (d445d8c)
  • added a helper for normalising middleware (583bf2c)
  • added a type guard for imiddleware (6fbbc73)
  • added additional type definitions and castings for type safe middleware composition (ac8822a)
  • added context merging to middleware composition (fbc61f0)
  • added helper types and the base middleware types (647e078)
  • implemented getmiddleware method for middlewarecomposer (314b725)