Coder Social home page Coder Social logo

ids's People

Contributors

lpil avatar manuel-rubio avatar nicklasxyz avatar okkdev avatar rvcas avatar vstreame avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ids's Issues

is assert not valid anymore?

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.

Update for latest Gleam OTP

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 Subjects

Thanks

Maybe streamline the API?

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?

Consider returning String not Result(String, _) for nanoid.generate

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

Create new release

Just a friendly reminder to maybe create a new release and update docs :-)

Bump up 0.7 version

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.

Release latest fixes

Hello!

Could the latest changes on the main branch get released please? 🙏

Thanks,
Louis

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.