1.2.0 (2021-11-22)
- Added
Error.captureStackTrace()
to clear internal error trace. - Migrating to TypeScript strict
compilerOptions
.
- Migrating injectors from array search to object search should improve their performance (more than three times).
1.2.0-rc.3 (2021-11-17)
- Removed support for injector's siblings, setting parent after create injector.
1.2.0-rc.2 (2021-11-12)
- Migrating to TypeScript strict
compilerOptions
.
1.2.0-rc.1 (2021-11-11)
- Migrating injectors from array search to object search should improve their performance (more than three times).
1.2.0-beta.8 (2021-11-11)
- Fixed
Error.captureStackTrace()
location.
1.2.0-beta.7 (2021-11-11)
- Added
Error.captureStackTrace()
to clear internal error trace.
1.2.0-beta.6 (2021-11-10)
- Added
injector.clearCache()
.
1.2.0-beta.5 (2021-11-10)
- Removed
injector.setSiblingsMap()
.
- Added the ability for the injector to set parent after child is created.
1.2.0-beta.4 (2021-11-10)
- Added
injector.setSiblingsMap()
. Usage:
const map = new Map<any, ReflectiveInjector>();
map.set(token1, externalInjector1);
map.set(token2, externalInjector1);
map.set(token3, externalInjector1);
map.set(token4, externalInjector2);
map.set(token5, externalInjector2);
//...
injector.setSiblingsMap(map);
1.2.0-beta.3 (2021-11-09)
- Added the ability for the injector to search tokens first in siblings and only then proceed to search in the parent injectors.
1.2.0-beta.2 (2021-11-08)
- Fixed
injector.addSibling()
call signature.
Before:
addSibling(externalInjector: ReflectiveInjector, providers: Providers[]): void;
Now:
addSibling(externalInjector: ReflectiveInjector, tokens: any[]): void;
1.2.0-beta.1 (2021-11-07)
- Introduce injector's siblings. Now you can use it like this:
injector.get(ExternalProvider); // Error
injector.addSibling(externalInjector, [ExternalProvider]);
injector.get(ExternalProvider); // OK
1.1.0 (2020-09-18)
- Removed
src
folder from.npmignore
, so you can debug stack trace insrc
.