Skip to content

v0.2.0

Compare
Choose a tag to compare
@chasefleming chasefleming released this 17 Aug 03:03
· 9 commits to main since this release

New Features:

  • Introduced a unified Numeric function that allows users to specify a starting index. This provides more flexibility and reduces the need for multiple functions.
const { A, B, C, D } = Enum.Numeric(5); // Starts from 5

Deprecations:

  • NumericAt has been deprecated. Users are encouraged to use the Numeric function and provide a starting index if needed. This change simplifies the API and provides a more consistent experience.
  • StringLower has been deprecated. Future releases will introduce a more flexible approach for string transformations.

Enhancements:

  • Updated documentation to reflect the latest changes and provide clearer examples.

Fixes:

  • Fixed issue where numeric enums did not reset their index on separate declarations