white-horse was completely rewritten with a more stream-lined approach and extensibility in mind.
injectorsremoved in favor of modules and the more generic$moduleservice- Requiring is more robust now. When constructing new
WhiteHorseinstances therequirefunction 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
*.jscan be loaded by using$loaders
init()removedget()is async now and requires a callbackregisterInjector()removed
usePackageJsonoptionautoRegisteroption$singletonannotation$factoryannotation- double-dollar dependencies for plugin development
use()looks inside modules to resolve$modulesand$loaders- Proper
Moduleclass that can be used to query module configuration +getModule()
Only improvements to documentation.