Releases: catberry/catberry-locator
Releases · catberry/catberry-locator
Updated dependencies and add new node versions to CI
Method `has`, updated dependencies, Node 6.0 build
Add .has('typeName')
method (thanks to @chetverikov, PR #3)
Update dependencies
Added a build for Node.js 6.0
Replaced Map data structure with bare object, remove redundant code
Drop injections, add ES2015 class support, rewrite in ES2015
Had to drop current DI feature. It causes a lot of problems when using new JS classes.
So, previously we were able to inject services like this:
function Module($uhr, $logger, someConfigSection) {
this._$uhr = $uhr;
this._$logger = $logger;
this._config = someConfigSection || {};
}
And since Service Locator 2.0:
function Module(locator) {
this._uhr = locator.resolve('uhr');
this._logger = locator.resolve('logger');
this._config = locator.resolve('config').someConfigSection;
}
Or with classes:
class Module {
consructor(locator) {
this._uhr = locator.resolve('uhr');
this._logger = locator.resolve('logger');
this._config = locator.resolve('config').someConfigSection;
}
}
Also, better performance and less bundle size is expected because of this.
Dropped node 0.10 support
1.1.10 1.1.10
Update dependencies and add CI build for new versions of Node
Fix license in package.json
1.0.9 1.0.9
Update Travis configuration
1.1.7 1.1.7
Update contribution guide and migrate from coveralls to codecov.io
Replace regular objects with bare objects
1.1.5 1.1.5