Skip to content

v1.9.0

Choose a tag to compare

@sagikazarmark sagikazarmark released this 01 Jun 11:34
· 46 commits to master since this release
v1.9.0
a79ffed

Notable new features 🎉

  • Casting from type aliases is now supported for basic types
  • Added generic functions: To/ToE, Must, ToNumber/ToNumberE
  • Increased test coverage
  • Converting float numbers from string is now supported

Warning

Since cast now supports converting float values from strings, a related edge case behaves differently:

In previous versions, attempting to convert an empty string to a float resulted in an error.

Starting with this version, the same operation no longer raises an error.

To maintain consistency with the rest of the library, an empty string now converts to the float value 0.0.

What's Changed

New Contributors

Full Changelog: v1.8.0...v1.9.0