Skip to content

v0.52.0

Choose a tag to compare

@mlms13 mlms13 released this 13 Jan 23:40

🚨 Breaking

  • Float.top and Float.bottom now use min_float and max_float as determined by Bucklescript. Previously this was based on JS-specific bindings to Number.MIN_VALUE.

✨ New

  • String.charAtOrEmpty works like charAt but gives you "" if the provided index is out of range (instead of having to worry about option)
  • String.charCodeAt works similarly to the Js.String equivalent from Bucklescript, but it returns an option(int) instead of a float that could be NaN
  • Float.isNaN lets you determine if a floating point value is the nan value
  • Float.nan, Float.infinity, and Float.negativeInfinity values, so you don't have to rely on the globally-available values from Pervasives