Skip to content

Releases: ivandotv/pumpit

v10.1.0

23 Oct 19:49
a1b0601
Compare
Choose a tag to compare

Minor Changes

  • 545de07: add setParent method.
    Child container can set parent container connection

v10.0.0

07 Aug 13:01
f5d01c5
Compare
Choose a tag to compare

Major Changes

  • c9b67ea: remove resolve method second parameter (options - context)

v9.0.0

01 Jul 19:59
a930ae5
Compare
Choose a tag to compare

Major Changes

  • f814cd6: Remove beforeResolve and afterResolve callbacks. After some time I figured that these hooks are an antipattern when it comes to the dependency injection (and are rarely used), therefore they are being removed.
  • 634db4a: remove unbind hook. After some time I have found that the unbind hook is an antipattern and I do not want to support it anymore.
  • 867d760: remove transform utility function. Another anti-pattern.

v8.0.0

01 Jul 10:56
bea2bc5
Compare
Choose a tag to compare

Major Changes

  • 076812a: remove clearInstance and clearAllInstances methods.

Minor Changes

  • 9390bf1: create registerInjections helper function for an easier way to register dependencies for a class or a function
  • 03e55af: Add container lock method.

Patch Changes

  • 6ba17d1: add comments to public methods

v7.3.1

14 Jun 18:10
82ca335
Compare
Choose a tag to compare

Patch Changes

  • 509c64d: Add documentation for the validate and validateSafe methods.

v7.3.0

13 Jun 19:15
8371633
Compare
Choose a tag to compare

Minor Changes

  • c72533b: This PR implements two new methods on the pumpit class validate and validateSafe. These methods check if dependency keys that are used for injection are present in the container. It will not instantiate any classes or run factory functions.
    The validate method will throw an error if the tree is invalid, while the validateSafe method will return an object indicating whether the tree is valid.

v7.2.0

22 Mar 14:32
dd99fd8
Compare
Choose a tag to compare

Minor Changes

  • 4cfbc46: Implement using special "INJECT_KEY" symbol instead of "inject" key property

v7.1.1

18 Mar 18:55
5d72e0b
Compare
Choose a tag to compare

Patch Changes

  • 61a361f: instances created via "child" method can also have a name

v7.1.0

18 Mar 18:41
99aaca2
Compare
Choose a tag to compare

Minor Changes

  • c470983: Optionally give instances custom names.

v7.0.2

05 Mar 21:36
9764238
Compare
Choose a tag to compare

Patch Changes