-
Previously I was using
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
What do you mean by this? 🤔 Are you trying to stringify a byte array that is not a uuid? |
Beta Was this translation helpful? Give feedback.
-
My rationale for why we shouldn't do this. tl;dr: it increases the maintenance burden.
I appreciate that |
Beta Was this translation helpful? Give feedback.
My rationale for why we shouldn't do this. tl;dr: it increases the maintenance burden.
I appreciate that
bytesToUuid()
used to take any 16-byte array, butuuid
is no longer in the business of generating or otherwise working with invalid UUIDs. That it complains loudly and early upon encountering a bad UUID is, to my mind, a good thing. It allows us to keep the code and public API focused, and helps users quickly identify issues with upstream code. (Instead of, for example, allowingstringify()
to generate invalid UUIDs that might propagate into DB tables, URLs, etc.)