white-horse
was completely rewritten with a more stream-lined approach and extensibility in mind.
injectors
removed in favor of modules and the more generic$module
service- Requiring is more robust now. When constructing new
WhiteHorse
instances therequire
function must be passed in which is used for resolving modules and$root
- No more
init()
. Modules are initialized lazily. - Everything is async now. Since extensions are just ordinary modules this also applies to injectors.
- Other modules than just
*.js
can be loaded by using$loaders
init()
removedget()
is async now and requires a callbackregisterInjector()
removed
usePackageJson
optionautoRegister
option$singleton
annotation$factory
annotation- double-dollar dependencies for plugin development
use()
looks inside modules to resolve$modules
and$loaders
- Proper
Module
class that can be used to query module configuration +getModule()
Only improvements to documentation.