bitwalker / uniq_compat

A compatibility shim for ::elixir_uuid when used with :uniq

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uniq_compat

This project provides a compatibility shim which allows you to replace all uses of :elixir_uuid in your project with :uniq without having to make any code changes to your existing code.

See the Uniq docs for more information on that project, as well as the migration process.

Installation

To use this package properly, you need to override :elixir_uuid with :uniq_compat, which looks like so:

def deps do
  [
    {:elixir_uuid, "~> 0.1", hex: :uniq_compat, override: true}
  ]
end

This overrides the use of :elixir_uuid in your dependency tree with :uniq_compat. Internally, :uniq_compat shims the UUID module to delegate to Uniq.UUID while preserving the original behaviour of things like UUID.info/1.

About

A compatibility shim for ::elixir_uuid when used with :uniq

License:Apache License 2.0


Languages

Language:Elixir 100.0%