Releases: ivandotv/pumpit
Releases · ivandotv/pumpit
v10.1.0
v10.0.0
v9.0.0
Major Changes
- f814cd6: Remove
beforeResolve
andafterResolve
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
v7.3.1
v7.3.0
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.
Thevalidate
method will throw an error if the tree is invalid, while thevalidateSafe
method will return an object indicating whether the tree is valid.