question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why would you ever want a UUID in the form of a number array?

See original GitHub issue

In the latest release: version 2.0.0, the type signature of the return parameter in the v4 UUID function changed from string to string | number[]. Why? I’m curious what use case would require the UUID to be represented as a number array? As the change in the return signature is breaking for typescript projects that depend on the typed return signature. (which could be interpreted from the major release bump)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:9
  • Comments:22 (9 by maintainers)

github_iconTop GitHub Comments

6reactions
yasirtrimulabscommented, May 20, 2022

Any update on this?

5reactions
robertn702commented, Aug 11, 2022

If anyone is still stuck on this, I just switched to using uuid, @types/uuid, and react-native-get-random-values polyfill which works as expected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is a UUID, and why should you care? - Cockroach Labs
A UUID – that's short for Universally Unique IDentifier, by the way – is a 36-character alphanumeric string that can be used to...
Read more >
How unique is UUID? - guid - Stack Overflow
"unique" means never collide. If it has any potential to collide, it's not unique. Therefore by definition, UUID is not unique, and safe...
Read more >
Using the UUID data type - Oracle Help Center
The UUID data type is best suited In situations where you need a globally unique identifier for the records in a table that...
Read more >
Generating Unique Identifiers in Your Programs (GUIDs/UUIDs)
As I read the man page, you shouldn't get duplicates from a single process calling uuid_generate_time() but it is possible to get duplicates ......
Read more >
Guide to UUID in Java - Baeldung
But most of the time, we use UUID to identify something and can assign a random value. Therefore, the UUID class provides three...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found