Skip to content

Releases: guibber/barista

Support Object Properties Injected By Value

24 Jul 20:35
Compare
Choose a tag to compare

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

06 May 21:51
Compare
Choose a tag to compare
added some performance comparison tests, and tuned Factory by elimina…

…ting ArgsWrapper, and only resolving non-overriden params

Initial Release of barista

05 May 17:26
Compare
Choose a tag to compare
renamed GeneralBuilder to OutputBuilder and PropBuilder to OutputProp…

…Builder