Skip to content

v0.4.0

Choose a tag to compare

@brandongregoryscott brandongregoryscott released this 05 Dec 01:08
· 146 commits to main since this release

v0.4.0 Release

Release notes

Adds various type guards for ease of developer use.

Notable features:

  • CollectionUtils.isEmpty will now return collection is undefined, signifying that the collection should not be trusted to pull values out of.
  • CollectionUtils.hasValues and CollectionUtils.isNotEmpty return collection is any[] | Immutable.List<any>, signifying that the collection is both non-null and contains at least one value. This should alleviate the need to force the TS compiler with ! after calling it on a collection.
  • StringUtils.isEmpty and StringUtils.hasValue now return value is string

Known issues

#73 Identify and add Type Guards to methods that return a boolean

Contributors

@dtnhinh