Skip to content

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

License

Notifications You must be signed in to change notification settings

bitwalker/uniq_compat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages