✨ Unique IDs for Gleam
The library is available on Hex so it can be added to your Gleam project by simply running:
gleam add ids
✨ Unique IDs for Gleam
Home Page: https://hexdocs.pm/ids/
License: Apache License 2.0
✨ Unique IDs for Gleam
The library is available on Hex so it can be added to your Gleam project by simply running:
gleam add ids
After updating for the last Gleam version (let assert
mainly) it wasn't pushed to Hex, could you upgrade the version (I guess it's 0.7.0) and publish it? Thanks in advance.
Hello!
The Gleam OTP library has been updated and unfortunately this library does not compile with it any more. Could we get this updated? It is largely swapping channels for Subject
s
Thanks
Hello, the following two sites don't seem to like the emoji in the description. A (
is rendered instead of it. Would you perhaps consider removing the emoji from the description?
Hello!
Could the latest changes on the main branch get released please? 🙏
Thanks,
Louis
My project fails to build after adding ids
to the dependencies list. This seems to be due to list.at
being removed from the standard library - https://github.com/gleam-lang/stdlib/blob/main/CHANGELOG.md#v0380---2024-05-24
I believe the alternative is to use iterator.at
error: Unknown module field
┌─ /Users/gogo/Development/zeus/build/packages/ids/src/ids/ulid.gleam:151:14
│
151 │ |> list.at(index)
│ ^^^ Did you mean `last`?
Just a friendly reminder to maybe create a new release and update docs :-)
When implementing the NanoID generation functionality I noticed that the generation of an UUIDv4 or cuid use function calls such as v4()
or gen()
, respectively.
Would it make sense to streamline the API by pre-pending or just using generate
as the function name?
For example, to generate a UUIDv4 the function call would then be uuid.generate_v4()
, while to generate a cuid the function call would be cuid.generate()
?
I image the secure and non-secure generation of NanoIDs would use functions with names nanoid.generate()
and nanoid.generate_non_secure()
, respectively.
Or how do you imagine the API should be designed to align the functions in the different modules?
Forgive the horrible title but I was just curious why you have chosen to go with
""
|> Error
instead of
Error("")
I've added ids
to my recent project and this is triggering this error when I run gleam build
:
Compiling ids
error: Syntax error
┌─ /Users/manuel/Projects/Mediussa/ream/build/packages/ids/src/ids/nanoid.gleam:126:3
│
126 │ assert Ok(alphabet_string) = bit_string.to_string(alphabet)
│ ^^^^^^ I was not expecting this.
Expected one of:
"}"
Maybe assert
is required? BTW, I'm using glacier but looks like it's even failing with gleeunit.
HashIDs: https://hashids.org/ could be another cool and useful ID generation method to implement :-)
Hello!
It looks like there is no way for the user to incorrectly use the nanoid.generate
function. It always succeeds but the programmer is forced to handle the impossible error case.
Could it instead return a string? I think this will improve the user experience.
Thanks,
Louis
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.