Releases: michaelbe812/angular-kit-effects
Releases · michaelbe812/angular-kit-effects
Release list
rx-effects-1.4.0
Reworked rxEffect lifecycle handling, plus corrected package metadata.
Fixes
- Source errors are no longer swallowed silently. When
rxEffectis used with only adestroyRef(no injection context), no AngularErrorHandleris available. Errors from a source observable previously disappeared without a trace — the effect just died. They are now reported viaconsole.error. Other effects on the same instance keep running, and the host app is unaffected. - Cleanup ordering reworked:
onCleanUpnow runs exactly once, whether triggered by a manualcleanUp()or by instance destroy — whichever comes first. - Effects registered before a throwing
setupFnno longer leak; they are cleaned up before the error is rethrown. - After the instance is destroyed,
run()is a reliable no-op and a passedSubscriptionis unsubscribed immediately.
Package metadata
peerDependenciesnow declarerxjs: ^7.4.0. This was previously undeclared. The library importstap/catchErrorfrom therxjsroot, which only exists in RxJS 7+ — so this documents an already-existing requirement rather than introducing a new one. If you are on RxJS 6, you will now see a peer warning; the library never worked on RxJS 6.@angular/commonremoved frompeerDependencies— it was never used by the library.@angular/corepeer range narrowed to>=16.0.0 <23.0.0.
Other
- All public types (
EffectCleanUpRef,RunOptions,RxEffect,EffectsSetupFn) are exported from the package root. - Error handling and cleanup semantics documented in the README.
- Demo app now uses
rxEffectfor real, with an e2e smoke spec.
Full changelog: rx-effects-1.3.0...rx-effects-1.4.0