Bottlejs Versions Save

A powerful dependency injection micro container for JavaScript applications

v2.0.0

3 years ago

v2.0.0 This version updates several dev dependencies to resolve security vulnerabilities, (thanks @dependabot-bot !)

It also adds a new ES module build, available in the /dist directory. This is a possible breaking change for some webpack users, so the major version has been bumped to 2. Most users can migrate to bottlejs 2.0.0 without any backwards compatibility problems. Thanks, @blikblum !

v1.7.2

5 years ago

This release updates the dev dependencies to resolve security vulnerabilities in the testing pipeline. It also updates the typescript file to support limiting / type checking entry names: https://github.com/young-steveo/bottlejs/pull/115 (thanks @ethanresnick )

v1.7.1

6 years ago

Security Patch

Bottle does not have any dependencies.

However, a security vulnerability was discovered in one of Bottle's build and testing tools. This version of BottleJS updates all of Bottle's dev tools to their latest versions and recompiles the minified source to alleviate any security concerns.

The only noticeable change is an improved file size from the minification library that BotteJS uses (the minified file is about 30 bytes smaller. 🤣)

v1.7.0

6 years ago

New Feature

Minor improvements

  • Internal uglification optimizations. #101
  • Improved TypeScript container support #102

v1.6.3

6 years ago

Fixes a bug with resetProviders when using nested containers. Nested containers will no longer break when they have multiple children.

v1.6.2

6 years ago

This patch release adds better support for classes in the typescript definition file, and fixes a bug with registering new services on an already-instantiated nested container ( thanks to @aretmy and @TimWolla ).

v1.6.1

7 years ago

v1.6.0

7 years ago

What's New

  • Providers can now be reset on a bottle instance by calling bottle.resetProviders(). This is primarily useful for unit testing. @cjsaylor
  • Containers now have a $decorator function that will only add decorators to that container's services. This is useful for nested bottles. @iMoses
  • Bottle.pop and Bottle.clear have been updated to allow empty strings to name and clear a bottle. Any string value is now valid. @Coburn37

Other stuff

  • Updated jasmine to the latest version. @cjsaylor
  • Added a fix for jshint bug introduced in node 6. @cjsaylor
  • TypeScript definition file was missing a few things. It should now be fully up to date.

v1.5.0

7 years ago

What's New

  • Refactored internals to reduce memory footprint when many nested bottles are created by allowing for better garbage collection. This exposes a few new properties on the bottle instances. See the Readme API section for more details.
  • Added a new method to unset named bottle references Bottle.clear. - thanks, @emilong
  • Updated the documentation to better explain isolated containers when using dot notation.

Bugs Fixed

  • Deeply nested decorators and middleware were not firing.
  • TypeScript definition file was missing the container $list method definition.

v1.4.0

7 years ago
  • Added a new method instanceFactory - thanks @nzack
  • Fixed a bug in the TypeScript definition file - thanks @pferdone
  • Updated the TypeScript definition file with some missing methods.