Releases: guibber/barista
Releases · guibber/barista
Support Object Properties Injected By Value
Injecting functions already existed, but all objects were previously only able to be injected as new instances. This release exposes the _definition which can be registered using the withValueParam() as seen below. The object will be injected directly without augmentation.
registrations.ns.InjectionReceiver.register(function(entries, registered) {
entries
.withEntry()
.withValueParam(registered.ns.someFunc._default)
.withValueParam(registered.ns.someObject._definition);
});
performance enhancements
added some performance comparison tests, and tuned Factory by elimina… …ting ArgsWrapper, and only resolving non-overriden params
Initial Release of barista
renamed GeneralBuilder to OutputBuilder and PropBuilder to OutputProp… …Builder