Skip to content

Latest commit

 

History

History
130 lines (81 loc) · 3.38 KB

CHANGELOG.md

File metadata and controls

130 lines (81 loc) · 3.38 KB

1.2.0 (2021-11-22)

Features

  • Added Error.captureStackTrace() to clear internal error trace.
  • Migrating to TypeScript strict compilerOptions.

Performance Improvements

  • Migrating injectors from array search to object search should improve their performance (more than three times).

1.2.0-rc.3 (2021-11-17)

Breaking Changes

  • Removed support for injector's siblings, setting parent after create injector.

1.2.0-rc.2 (2021-11-12)

Features

  • Migrating to TypeScript strict compilerOptions.

1.2.0-rc.1 (2021-11-11)

Performance Improvements

  • Migrating injectors from array search to object search should improve their performance (more than three times).

1.2.0-beta.8 (2021-11-11)

Bug fixes

  • Fixed Error.captureStackTrace() location.

1.2.0-beta.7 (2021-11-11)

Features

  • Added Error.captureStackTrace() to clear internal error trace.

1.2.0-beta.6 (2021-11-10)

Features

  • Added injector.clearCache().

1.2.0-beta.5 (2021-11-10)

Breaking Changes

  • Removed injector.setSiblingsMap().

Features

  • Added the ability for the injector to set parent after child is created.

1.2.0-beta.4 (2021-11-10)

Features

  • 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)

Features

  • 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)

Bug fix

  • 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)

Features

  • 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)

Features

  • Removed src folder from .npmignore, so you can debug stack trace in src.