std/uuid
Liam Tait b808ee6de6
feat(uuid/unstable): @std/uuid/v7 (#5887)
* feat(uuid): add uuid v7 generation and validation

* remove as string

* fmt

* update mod-exports check

* mark more items experimental

* fix test name

* call getRandomValues once

* add checks for user provided timestamp

* fmt

* consolidate checks

* fix missing options.timestamp

* consolidate error check

* use pre-shifted variant and version

* add extractTimestamp function for UUIDv7

* remove random option from uuid v7 generate

* fix import statements for extractTimestamp function in uuid/v7.ts

* remove bad comment

* tweaks

* add uuid v7 module doc

* fmt

* align extractTimestamp invalid uuid error message with style guide

* fmt

* add experimental tags

* use timestamp argument instead of options generate v7 uuid

* fmt

* tweak

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-04 02:57:49 +00:00
..
_common.ts perf(uuid): make uuidToBytes() up to 2.5x faster (#5670) 2024-08-10 08:48:05 +02:00
common_test.ts test(uuid): assert error message of version() (#5819) 2024-08-26 13:45:37 +09:00
common.ts refactor(uuid): align additional error messages (#5803) 2024-08-26 13:36:01 +09:00
constants_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
constants.ts docs(uuid): update module docs (#4790) 2024-05-29 15:47:42 +10:00
deno.json feat(uuid/unstable): @std/uuid/v7 (#5887) 2024-09-04 02:57:49 +00:00
mod.ts feat(uuid/unstable): @std/uuid/v7 (#5887) 2024-09-04 02:57:49 +00:00
v1_test.ts refactor(uuid): align additional error messages (#5803) 2024-08-26 13:36:01 +09:00
v1.ts refactor(uuid): align additional error messages (#5803) 2024-08-26 13:36:01 +09:00
v3_test.ts refactor(uuid): align additional error messages (#5803) 2024-08-26 13:36:01 +09:00
v3.ts refactor(uuid): align additional error messages (#5803) 2024-08-26 13:36:01 +09:00
v4_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
v4.ts docs(uuid): update module docs (#4790) 2024-05-29 15:47:42 +10:00
v5_test.ts refactor(uuid): align additional error messages (#5803) 2024-08-26 13:36:01 +09:00
v5.ts refactor(uuid): align additional error messages (#5803) 2024-08-26 13:36:01 +09:00
v7_test.ts feat(uuid/unstable): @std/uuid/v7 (#5887) 2024-09-04 02:57:49 +00:00
v7.ts feat(uuid/unstable): @std/uuid/v7 (#5887) 2024-09-04 02:57:49 +00:00