Changelog
v7.0.0
Symbol.toStringTag
. This should fix es5-shim/480.inspect
representation changedThe Awilix Cradle's string representation when used by util.inspect
, .toJSON()
and others returned [AwilixContainer.cradle]
. This has been
changed to [object AwilixContainerCradle]
to align with other common string representations in JavaScript.
Changelog
v6.0.0
Please see the list of breaking changes below.
rollUpRegistrations
in the resolve
path. As a trade-off, performance
for iterating the cradle
proxy has degraded in order to guarantee accuracy. We consider this acceptable as iterating
the cradle
is not something one should be doing for anything besides debugging. Thanks to @code-ape
for the diagnosis and for coming up with a fix!container.registrations
getter on a scoped container no longer rolls up registrations from its' parent.CLASSIC
mode, when parsing the constructor of a derived class, Awilix will no longer parse the base class' constructor in
case the derived class' defined constructor does not define any arguments. However, if the derived class does not define a constructor,
then Awilix will parse the base class' constructor. Please keep in mind that this only works for native classes, as Awilix works on the
toString
representation of the class/function in order to determine when a class with no defined constructor is encountered.container.has
to container.hasRegistration
to avoid ambiguity. Does it have a registration? Does it have a cached module? Who knows? Let's gooo!Changelog
v5.0.1
uniq
function performance by using a Set
(#253, Anderson Leite)Changelog
v5.0.0
Dropped Node 10 support. Minimum supported Node version is now 12.
Changelog
v4.3.2
loadModules
with ESM, fixes #225. (#227, Jamie Corkhill)