validator.js icon indicating copy to clipboard operation
validator.js copied to clipboard

Add support uuid v7 for `isUUID`

Open ruscon opened this issue 1 year ago • 3 comments

Describe the bug uuid v7 - is one of the most anticipated versions, I would like to use it already

Examples uuid v7 format: https://github.com/LiosK/uuidv7

Validate UUIDv7 and parse the timestamp example: https://gist.github.com/robinpokorny/3e1ef5eebce096824d3c2054202e4217

ruscon avatar Dec 08 '23 23:12 ruscon

I don't think we'll support it soon. We do not have regular updates and the implementation is not set in stone so I think it's not in scope for this project right now. But I'll keep it open so we can add support for it once the implementation is definitive

WikiRik avatar Dec 09 '23 02:12 WikiRik

@WikiRik I don’t think that such changes are difficult to add and that they break something. The format of uuid v7 is the same as that of uuid v4

ruscon avatar Dec 09 '23 13:12 ruscon

If the format remains the same, and I now see that it should, then it's not an issue with adding indeed. Thanks for opening a PR for it!

WikiRik avatar Dec 11 '23 13:12 WikiRik