Skip to content

Add new versioned api (e.g. New → NewV4)#79

Draft
lithammer wants to merge 1 commit intomasterfrom
versioned-api
Draft

Add new versioned api (e.g. New → NewV4)#79
lithammer wants to merge 1 commit intomasterfrom
versioned-api

Conversation

@lithammer
Copy link
Copy Markdown
Owner

This also deprecates the old unversioned functions, but it will be kept indefinitely for backward compatibility.

The new api doesn't have anything like the old NewWithNamespace function, which had some heuristics to automatically pick a namespace for UUIDv5 and fell back to UUIDv4 when the name was empty. Instead, there are explicit NewV4 and NewV5 functions, and the user is expected to pick the right one. For v5, the namespace must be provided explicitly.

This also deprecates the old unversioned functions, but it will be kept
indefinitely for backward compatibility.

The new api doesn't have anything like the old `NewWithNamespace`
function, which had some heuristics to automatically pick a namespace
for UUIDv5 and fell back to UUIDv4 when the name was empty. Instead,
there are explicit `NewV4` and `NewV5` functions, and the user is
expected to pick the right one. For v5, the namespace must be provided
explicitly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant