This repository has been archived by the owner on Jan 11, 2025. It is now read-only.
Releases: ncor/context-resolver
Releases · ncor/context-resolver
v0.6.0-beta.1
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 andisTransient
property toProvider
v0.5.0-beta.1
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
API changes
- Removed
withDisposer
method fromProvider
dispose
method inProvider
andProviderGroup
now don't accept cache key parametercacheOpts
parameter in()
,complete
andmount
methods inProvider
is removed and replaced withttl
cacheOpts
parameter in()
inProviderGroup
is removed and replaced withttl
Features and impovements
- Implemented event system and hooks for lifecycle management, including
onStart
,onStop
,start
andstop
methods forProvider
andProviderGroup
v0.3.0
API changes
- Removed
mockByIds
andmockByInstance
methods fromProvider
. - Removed
isolateOne
,isolateSome
,mockByIds
andmockByInstance
methods fromProviderGroup
. mock
inProvider
andProviderGroup
now accepting any interface within an available context.persisted
inProvider
is renamed toonce
.
Features and improvements
mock
andisolate
inProvider
are now traversing entire provider's context.