4.0.0 (2023-05-05)
- 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)
- 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)
3.0.0 (2020-08-12)
- as const: allow to declare tokens as const (#27) (05435b7)
- dispose: dispose child injectors (#29) (3f0f3f5)
- maintanance: drop node 8 support (#28) (cdf3c30)
- dispose:
rootInjector
is removed in favor ofcreateInjector
.
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 useas const
or thetokens
helper function for it.
2.2.1 (2020-03-22)
- dist: distribute ts allongside dist js code (5d7dbf0)
2.2.0 (2020-03-21)
- deps: move typescript to devDependencies (17532cd)
- error handling: add a way to handle errors (dbe3bfd)
2.1.1 (2019-09-12)
2.1.0 (2019-05-03)
2.0.0 (2019-05-02)
- 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)
- 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 ofinjector.dispose()
.
1.0.0 (2019-02-12)
0.2.1 (2019-02-11)
0.2.0 (2019-02-05)
- covariant injector: Injector interface covariance (46058a8)
- covariant injector: It is no longer possible to resolve
TARGET_TOKEN
orINJECTOR_TOKEN
directly from anInjector
usingresolve
. I don't see a use case for that, so it's no big deal