Skip to content

Releases: catberry/catberry-locator

Updated dependencies and add new node versions to CI

18 Mar 16:51
Compare
Choose a tag to compare
Merge pull request #6 from catberry/develop

Release 2.2.1

Method `has`, updated dependencies, Node 6.0 build

23 Aug 18:12
Compare
Choose a tag to compare

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

04 Mar 20:13
Compare
Choose a tag to compare

Drop injections, add ES2015 class support, rewrite in ES2015

20 Feb 14:16
Compare
Choose a tag to compare

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

12 Dec 22:24
Compare
Choose a tag to compare

Update dependencies and add CI build for new versions of Node

11 Nov 05:45
Compare
Choose a tag to compare

Fix license in package.json

11 Nov 14:14
Compare
Choose a tag to compare

Update Travis configuration

16 Aug 07:11
Compare
Choose a tag to compare

Update contribution guide and migrate from coveralls to codecov.io

14 Jun 08:03
Compare
Choose a tag to compare

Replace regular objects with bare objects

10 Jun 04:36
Compare
Choose a tag to compare