Upgrading to v2.0.0
In major version 2, nothing changed directly in Once itself.
However, it depends on NoNoncense 2.0 which introduces breaking changes in its bootstrapping procedure,
because it now offers proper machine ID lease management and monitoring.
Follow its migration guide to set up your NoNoncense instance and you are good to go.
Upgrading to v1.0.0
Version 1.0.0 introduces breaking changes that follow from NoNoncense 1.0.0 breaking changes. Be sure to read its migration guide.
You only have to change anything if you are using encrypted IDs.
In order to migrate to NoNoncense 1.x encrypted nonces without breaking its uniqueness guarantees, you MUST NOT change your key or cipher:
- pass your existing encryption key to
NoNoncense.init/1new:key64option - pass
:des3toNoNoncense.init/1new:cipher64option
# in application.ex (probably)
NoNoncense.init(
name: Once,
machine_id: NoNoncense.MachineId.id!(opts),
cipher64: :des3,
key64: System.get_env("ONCE_KEY")
)