Skip to content

URL version 2.0.0

Choose a tag to compare

@kipcole9 kipcole9 released this 04 Aug 06:27
· 5 commits to master since this release

Breaking Change

  • URL.new/1 now always returns a tuple of the form {:ok, t:URL.t/0} or {:error, {module(), String.t()}}. The previous versions embedded error tuples in the return structure making is too complex to determine if there was a parsing error on the path data. This approach also makes it more straight forward to implement tests that return errors.

Deprecations

  • Hard deprecates URL.parse/1

Bug Fixes

  • Remove warnings for unused variables when neither ex_phone_number or ex_cldr are configured (these are both optional dependencies). Thanks to @shahryarjb for the report. Closes #5.