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

typed-inject

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-inject - npm Package Versions

2

4.0.0

Diff

nicojs
published 3.0.1 •

Changelog

Source

3.0.1 (2021-10-11)

Bug Fixes

  • dispose: Remove injector from parent on dispose (#38) (2b17195)
nicojs
published 3.0.0 •

Changelog

Source

3.0.0 (2020-08-12)

Bug Fixes

  • dist: distribute ts alongside dist js code (#21) (0b178b5)

Features

  • as const: allow to declare tokens as const (#27) (05435b7)
  • dispose: dispose child injectors (#29) (3f0f3f5)
  • maintanance: drop node 8 support (#28) (cdf3c30)

BREAKING CHANGES

  • dispose: rootInjector is removed in favor of createInjector.

This:

import { rootInjector } from 'typed-inject';

Becomes:

import { createInjector } from 'typed-inject';
const rootInjector = createInjector();

Injector's created from createInjector are no longer stateless. They keep track of their child injectors.

  • dispose: dispose no longer disposes parent injector, disposes the child injectors instead. See readme for more details.
  • maintanance: Node 8 is no longer supported.
  • as const: The typed-inject is now expecting tokens to be provided in a readonly array. You can either use as const or the tokens helper function for it.
nicojs
published 2.2.1 •

Changelog

Source

2.2.1 (2020-03-22)

Bug Fixes

  • dist: distribute ts allongside dist js code (5d7dbf0)
nicojs
published 2.2.0 •

Changelog

Source

2.2.0 (2020-03-21)

Bug Fixes

  • deps: move typescript to devDependencies (17532cd)

Features

  • error handling: add a way to handle errors (dbe3bfd)
nicojs
published 2.1.1 •

Changelog

Source

2.1.1 (2019-09-12)

Bug Fixes

  • tslib: remove implicit dependency on tslib (#8) (7fe01aa)
nicojs
published 2.1.0 •

Changelog

Source

2.1.0 (2019-05-03)

Features

  • decorator: add decorator functionality (#6) (1508107)
nicojs
published 2.0.0 •

Changelog

Source

2.0.0 (2019-05-02)

Features

  • async dispose: allow asynchronous dispose (#4) (c1167ae)
  • dispose-order: change dispose order to a stack (#3) (257df91)
  • node 6: drop support for node 6 (#5) (d3e4e85)

BREAKING CHANGES

  • node 6: Node 6 is no longer supported.
  • async dispose: Dependencies are now disposed of asynchronously (while still honoring the order of "child first"). You should now await the result of injector.dispose().
nicojs
published 1.0.0 •

Changelog

Source

1.0.0 (2019-02-12)

nicojs
published 0.2.1 •

Changelog

Source

0.2.1 (2019-02-11)

Features

  • dispose: Add functionality to explicit disposing of dependencies (#1) (02b4946)
2
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