Coder Social home page Coder Social logo

Support for long about hashids.net HOT 11 CLOSED

ullmark avatar ullmark commented on May 30, 2024
Support for long

from hashids.net.

Comments (11)

ullmark avatar ullmark commented on May 30, 2024

Hi, not at this point but should be possible to add. I will have a look.

On 21 nov 2014, at 11:33, nripendra [email protected] wrote:

Hi,

I was trying to generate hashid for long data type but it doesn't seem to have support?


Reply to this email directly or view it on GitHub.

from hashids.net.

cdebry avatar cdebry commented on May 30, 2024

+1

from hashids.net.

ullmark avatar ullmark commented on May 30, 2024

This is a bit tricky, I would either have to always return a long from the Decode function or provide a
DecodeInt64 to not make a breaking change, I say that the latter is needed.

from hashids.net.

nripendra avatar nripendra commented on May 30, 2024

Yes, I think it will be important to have backward compatibility. You can also create new class if you think that will be cleaner.

from hashids.net.

ullmark avatar ullmark commented on May 30, 2024

started implementing in https://github.com/ullmark/hashids.net/tree/long-support will close this issue when done.

from hashids.net.

RodH257 avatar RodH257 commented on May 30, 2024

@ullmark this is awesome! I was coming here to see if there was any plans for long support and it's already underway. Let me know if there's anything I can do to help finalising it

from hashids.net.

ullmark avatar ullmark commented on May 30, 2024

Hi guys, I just want to update the status.
I have updated the code to support long, and most of the tests are green, however I when randomly added VERY large numbers and trying them back and forth I get a red test. Trying to track down the culprit.

@RodH257 You are very welcome to help out, I'll shoot you a note when I've pushed everything I have locally for the long-support.

from hashids.net.

bchavez avatar bchavez commented on May 30, 2024

👍 for long support.

from hashids.net.

ullmark avatar ullmark commented on May 30, 2024

I have pushed my work in progress for the long support to my feature branch, some bug fixing to do, but we have the new functions EncodeLong and DecodeLong.

I also added an interface and some other bits.

from hashids.net.

ullmark avatar ullmark commented on May 30, 2024

found the issue where I threw away some data. The long support is good to go, will send out a new package on nuget during the day.

from hashids.net.

ullmark avatar ullmark commented on May 30, 2024

Pushed to nuget with version 1.1.0

from hashids.net.

Related Issues (20)

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.