Bug Fixes
- Casing Styles Missing - Fixed an oversight where lowercase and uppercase casing styles were mentioned in the documentation but were missing in the actual implementation. You can now use both lowercase and uppercase as valid casing styles for String Enums.
Usage
const { HELLO, WORLD } = Enum.String({ casing: 'lowercase' });
console.log(HELLO); // Outputs: "hello"
const { hello, world } = Enum.String({ casing: 'uppercase' });
console.log(hello); // Outputs: "HELLO"
- Build Issue Resolved - Addressed a problem that was causing build failures. This issue might have prevented some users from installing or building the library correctly. It's now resolved, and the library should build as expected.