v5.0.0
In this release:
v4 never existed. I skipped it by mistake. Sorry for the confusion.
This release should be mostly backwards compatible with v3.1.0
, but there are a few accidental features that you may have breaking changes if you rely on them (see the breaking changes section below).
πͺ Improved APIs:
successValue
pipe: Added new optionaldefaultValue
argument. (docs)inProgressValue
pipe: Added new optionaldefaultValue
argument. (docs)- All
RemoteData
variants now expose areadonly tag
property.
π New APIs:
Check the API section for detailed information.
- Constructor functions:
notAsked()
inProgress()
failure()
success()
- Guard functions:
isNotAsked()
isInProgress()
isFailure()
isSuccess()
isRemoteData()
- Extract functions:
π Deprecations:
- Added deprecation messages to some APIs that will be removed in the next major release.
π Misc. Improvements
- Addressed various issues related to Ts strict mode and templates strict mode compliance.
- Improved documentation.
- Increased test coverage.
- Improved types.
- Internally, the library and example app are compiled with Angular 11 and strict mode / strict templates.
π BREAKING CHANGES:
- If you relied on pipes
transform()
function throwing exceptions (viatry{}catch()
), you should be aware that from v5 on,null
andundefined
don't throw anymore because they are valid values.
π Here be bugs
This release has touched a lot of stuff so, If you find any bugs, please consider opening an issue, I'll address it ASAP.
Thanks!