Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typedi

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typedi - npm Package Versions

23

0.10.0

Diff

Changelog

Source

0.10.0 [BREAKING] - 2021.01.15

BREAKING CHANGES

typestack-release-bot
published 0.9.1 •

Changelog

Source

0.9.1 - 2021.01.11

Fixed

  • correctly export error classes from package root
typestack-release-bot
published 0.9.0 •

Changelog

Source

0.9.0 - 2021.01.10

BREAKING CHANGES

Unregistered types are not resolved

Prior to this version when an unknown constructable type was requested from the default container it was added automatically to the container and returned. This behavior has changed and now a ServiceNotFoundError error is thrown.

Changed container reset behavior

Until now resetting a container removed all dependency declarations from the container. From now on the default behavior is to remove the created instances only but not the definitions. This means requesting a Service again from the container won't result in a ServiceNotFoundError but will create a new instance of the requested function again.

The old behavior can be restored with passing the { strategy: 'resetServices'} to the ContainerInstance.reset function.

Changed

  • [BREAKING] unknown values are not resolved anymore (ref #87)
  • [BREAKING] resetting a container doesn't remove the service definitions only the created instances by default
  • [BREAKING] container ID can be string only now
  • default container ID changed from undefined to default
  • stricter type definitions and assertions across the project
  • updated the wording of ServiceNotFoundError to better explain which service is missing (#138)
  • updated various dev-dependencies
  • various changes to project tooling

Fixed

  • fixed a bug where requesting service with circular dependencies from a scoped container would result in Maximum call stack size exceeded error (ref #112)
  • fixed a bug where @Inject-ed properties were not injected in inherited child classes (ref #102)
  • fixed a typing issue which prevented using abstract class as service identifier (ref #144)
  • fixed a bug which broke transient services when Container.reset() was called (ref #157)
  • fixed some typos in the getting started documentation
pleerock
published 0.8.0 •

Changelog

Source

0.8.0

  • added new type of dependency injection - function DI
  • now null can be stored in the container for values
pleerock
published 0.7.3 •

pleerock
published 0.7.2 •

Changelog

Source

0.7.2

  • fixed bug with inherited services
pleerock
published 0.7.1 •

Changelog

Source

0.7.1

  • fixed the way how global services work
pleerock
published 0.7.0 •

Changelog

Source

0.7.0

  • added javascript support
  • removed deprecated @Require decorator
  • added support for transient services
  • now service constructors cannot accept non-service arguments
  • added @InjectMany decorator to support injection of "many" values
  • fixed the way how global services work
pleerock
published 0.6.1 •

Changelog

Source

0.6.1

  • added Container.has method
pleerock
published 0.6.0 •

Changelog

Source

0.6.0

  • added multiple containers support
  • added grouped (tagged) containers support
  • removed provide method, use set method instead
  • deprecated Require decorator. Use es6 imports instead or named services
  • inherited classes don't need to be decorated with @Service decorator
  • other small api changes
  • now Handler's value accepts a container which requests the value
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc