Skip to content

Releases: UselessPickles/ts-enum-util

API Cleanup (breaking changes!)

20 Feb 04:14
Compare
Choose a tag to compare

I talked myself into cleaning up the API to improve clarity.

Removed the following methods:

  • EnumWrapper.prototype.has - Use isKey instead
  • EnumWrapper.prototype.get - Use getValueOrDefault (or getValueOrThrow) instead

Renamed the following methods:

  • EnumWrapper.prototype.asKey -> asKeyOrThrow
  • EnumWrapper.prototype.getKey -> getKeyOrThrow
  • EnumWrapper.prototype.asValue -> asValueOrThrow
  • EnumWrapper.prototype.getValue -> getValueOrThrow

Read the conversation I had with myself here: https://www.reddit.com/r/typescript/comments/7ykp3j/typescript_enum_utils_strictly_typed_wrapper/duhrqq5/

Initial Semi-Stable Release

19 Feb 05:37
Compare
Choose a tag to compare

The overall design and API of this project seems to have stabilized, and the README has reached the point of being useful. Time to release this into the wild and see what kind of feedback I get.