Skip to content

Latest commit

 

History

History
164 lines (72 loc) · 5.89 KB

CHANGELOG.md

File metadata and controls

164 lines (72 loc) · 5.89 KB

4.0.0 (2023-05-05)

Features

  • esm: migrate to native esm (#53) (b8efb26)
  • Node version: set minimal node version to v16 (#62) (585c99e)
  • node: drop support for node 10 and 12 (#54) (c9f63bb)

BREAKING CHANGES

  • Node version: Node 14 is no longer officially supported (although it might still work).
  • node: Node v10 and v12 are no longer supported.
  • esm: typed-inject is now a pure ESM. Please read this

3.0.1 (2021-10-11)

Bug Fixes

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

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.

2.2.1 (2020-03-22)

Bug Fixes

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

2.2.0 (2020-03-21)

Bug Fixes

  • deps: move typescript to devDependencies (17532cd)

Features

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

2.1.1 (2019-09-12)

Bug Fixes

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

2.1.0 (2019-05-03)

Features

  • decorator: add decorator functionality (#6) (1508107)

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().

1.0.0 (2019-02-12)

0.2.1 (2019-02-11)

Features

  • dispose: Add functionality to explicit disposing of dependencies (#1) (02b4946)

0.2.0 (2019-02-05)

Features

  • covariant injector: Injector interface covariance (46058a8)

BREAKING CHANGES

  • covariant injector: It is no longer possible to resolve TARGET_TOKEN or INJECTOR_TOKEN directly from an Injector using resolve. I don't see a use case for that, so it's no big deal

0.1.1 (2019-01-26)

0.1.0 (2019-01-25)