Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cuid standard is deprecated. #4

Closed
ericelliott opened this issue Dec 31, 2022 · 5 comments
Closed

Cuid standard is deprecated. #4

ericelliott opened this issue Dec 31, 2022 · 5 comments

Comments

@ericelliott
Copy link

Due to security concerns (which also exist in database auto-increment ids, uuid/guid, and most other id standrads), the Cuid standard is now deprecated in favor of Cuid2.

@mplanchard
Copy link
Owner

I'll add a cuid2() function to this library as soon as I can get to it, hopefully sometime this week, and mark cuid() as being deprecated. Thanks for reporting!

@ronlobo
Copy link

ronlobo commented Jan 21, 2023

Just throwing my 2 cents in for making this a new package with all the jazz and buzz.

Thoughts?

@ronlobo
Copy link

ronlobo commented Jan 21, 2023

Happy to take it

@mplanchard
Copy link
Owner

My plan is to publish a new package for cuid2, and then to add a cuid2 function in this package that calls that one (both set up as crates in this workspace).

I've got things mostly complete, but there were a few open questions about how to port some stuff from the JS implementation (see paralleldrive/cuid2#25 and paralleldrive/cuid2#27)

@mplanchard
Copy link
Owner

The cuid2 crate has been published to crates.io, at version 0.1.0 (not quite ready to commit to API stability yet, but will soon!)

All cuid v1 functions in the cuid crate have been marked as deprecated, and a new cuid2() function has been added.

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

No branches or pull requests

3 participants