Skip to content
This repository has been archived by the owner on Jan 11, 2025. It is now read-only.

Releases: ncor/context-resolver

v0.6.0-beta.1

31 Dec 13:16
Compare
Choose a tag to compare
v0.6.0-beta.1 Pre-release
Pre-release

Major changes

  • Cache, lifecycle and scopes are now deprecated features

New features

  • Implemented singleton and transient modes

API changes

  • Cache, lifecycle and scope API are removed
  • Added singleton/transient methods and isTransient property to Provider

v0.5.0-beta.1

30 Dec 19:55
Compare
Choose a tag to compare
v0.5.0-beta.1 Pre-release
Pre-release

New features

  • Provider scope
  • Interception of provider resolutions (onEach)

Major changes

  • Disposition callbacks are now deprecated
  • Cached resolution lifetime are now deprecated

API changes

  • API has been reworked, check the documentation

v0.4.0

27 Dec 18:50
Compare
Choose a tag to compare

API changes

  • Removed withDisposer method from Provider
  • dispose method in Provider and ProviderGroup now don't accept cache key parameter
  • cacheOpts parameter in (), complete and mount methods in Provider is removed and replaced with ttl
  • cacheOpts parameter in () in ProviderGroup is removed and replaced with ttl

Features and impovements

  • Implemented event system and hooks for lifecycle management, including onStart, onStop, start and stop methods for Provider and ProviderGroup

v0.3.0

27 Dec 11:26
Compare
Choose a tag to compare

API changes

  • Removed mockByIds and mockByInstance methods from Provider.
  • Removed isolateOne, isolateSome, mockByIds and mockByInstance methods from ProviderGroup.
  • mock in Provider and ProviderGroup now accepting any interface within an available context.
  • persisted in Provider is renamed to once.

Features and improvements

  • mock and isolate in Provider are now traversing entire provider's context.