Skip to content

v5.0.0

Compare
Choose a tag to compare
@joanllenas joanllenas released this 05 Mar 16:07
· 36 commits to master since this release

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 optional defaultValue argument. (docs)
  • inProgressValue pipe: Added new optional defaultValue argument. (docs)
  • All RemoteData variants now expose a readonly 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 (via try{}catch()), you should be aware that from v5 on, null and undefined 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!