Comparing version 1.5.2 to 1.6.0
@@ -5,2 +5,3 @@ { | ||
"./lib", | ||
"./package.json", | ||
"./README.md", | ||
@@ -7,0 +8,0 @@ "./node_modules/sack/lib" |
# Change History | ||
## v1.6.0 (2014-10-01) | ||
* Deprecate `Application.config` -- will be removing all `ConfigStore` stuff in v2 | ||
## v1.5.2 (2014-09-22) | ||
@@ -4,0 +8,0 @@ |
@@ -57,2 +57,3 @@ module.exports = Application; | ||
* @type {function} | ||
* @deprecated | ||
*/ | ||
@@ -59,0 +60,0 @@ this.config = new ConfigStore().getStore(); |
{ | ||
"name": "billy", | ||
"version": "1.5.2", | ||
"version": "1.6.0", | ||
"description": "A minimal application harness that stays out of your way and out of your code.", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -29,6 +29,10 @@ # billy | ||
## Links | ||
* [Billy services on npm](https://www.npmjs.org/browse/keyword/billy-service) | ||
* [API documentation](http://docs.billy.technology) | ||
## Features | ||
* [Dependency injection / inversion-of-control container](https://github.com/bvalosek/sack) | ||
* Generic configuration store | ||
* Asynchronous promise-based service stack | ||
@@ -148,55 +152,2 @@ * Extremely minimal | ||
## Application Methods | ||
### app.service(TService) | ||
Registers a new dependency-injected service `TService` to be started with the | ||
application. See *Services* above. | ||
### var pStarted = app.start() | ||
Starts the application by first by instantiating all the services | ||
synchronously, and then attempting to start the services asynchronously. See | ||
*Services* above. | ||
Returns a `Promise` that either resolves when all services have started, or | ||
fails with any error / rejected promise during service startup. | ||
### var pStopped = app.stop() | ||
Stop the application by trying to asynchronously stop all services in the | ||
reverse order they started. See *Services* above. | ||
Returns a `Promise` that either resolves when all services have stopped, or | ||
fails with any error / rejected promise during service tear down. | ||
### var thing = app.make(tag) | ||
Will resolve / create an object instance out of the container based on what was | ||
registered with the string `tag`. | ||
See [sack](https://github.com/bvalosek/sack) for more details. | ||
### var thing = app.make(T) | ||
Create a new object instance via the object constructor `T` (e.g, `new T()`). | ||
Also resolve any constructor parameters out of the container. See | ||
[sack](https://github.com/bvalosek/sack) for more info on how creating | ||
IoC-injected objects works. | ||
### var binding = app.register(tag, thing) | ||
Registers a new dependency `thing` with name `tag` and returns an `IoCBinding`. | ||
`thing` could be an object instance, an object constructor function, or a | ||
closure. See [sack](https://github.com/bvalosek/sack) for more details on | ||
registering objects with the container.. | ||
## Billy Services | ||
Billy-compatible services can be found with the `billy-service` tag on npm: | ||
[Billy services on npm](https://www.npmjs.org/browse/keyword/billy-service) | ||
## Testing | ||
@@ -203,0 +154,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
622
30672
168