Skip to content

v2.0.0

@alco alco tagged this 10 Jun 15:22
  * `Hashids.new()` takes strings for the `:alphabet` and `:salt` options (instead of char lists).

  * `Hashids.encode()` returns iodata instead of a char list.

  * `Hashids.decode()` takes iodata instead of a char list and returns `{:ok, result}` or
    `{:error, :invalid_input_data}`.

  * `Hashids.decode!()` has been added. It returns the bare result or raises.
Assets 2
Loading