Giter Club home page Giter Club logo

Comments (8)

ai avatar ai commented on June 19, 2024 3

@AndreyBelym nope, letโ€™s support <6.13.0. If somebody has a problem, we should take care of it.

I am going sleep right now. If you want to make it as quick as possible, make PR with node <6.13.0 to Travis CI and if case with both API.

from nanoid.

ai avatar ai commented on June 19, 2024

Could you please republish v1.2.3 as v1.2.5, and v1.2.4 as v2.0.0 to be more SemVer-friendly, or at least specify the correct engines field in the package.json?

Node.js 6 is still LTS. I care about my users and do not remove active LTS support.

We just need to add a check and use different API for different Node.js versions.

  1. Do you want to send PR?
  2. Do you want to check tests, why they didnโ€™t fall on Travis CI?

from nanoid.

ai avatar ai commented on June 19, 2024

I found a reason. Node.js 6 backported randomFill https://nodejs.org/en/blog/release/v6.13.0/

from nanoid.

ai avatar ai commented on June 19, 2024

Do we need to fix it in this way? Or we can just ask to update Node.js 6.x to latest minor version?

from nanoid.

AndreyBelym avatar AndreyBelym commented on June 19, 2024

I've created this issue because another issue was opened today in the TestCafe repository: DevExpress/testcafe#2905. So after some discussion with the TestCafe team, we've decided to keep support of older Node.js 6.x versions (<6.13.0), because it's easier to e.g. freeze the specific nanoid version than explain to the users that they have to upgrade to the latest minor version.

I can make a PR if you decide to support older LTS versions, but if you don't plan to do it, I can just use v1.2.3 until April 2019 ๐Ÿ˜„.

from nanoid.

victheone avatar victheone commented on June 19, 2024

Wanted to pipe in and let everyone know that this is also an issue in Node 7.9.0. Apparently crypto.randomFillSync is the problem here as well; it wasn't added until Node 7.10.X.

from nanoid.

danyfedorov avatar danyfedorov commented on June 19, 2024

Here, docs for node 10.x say it was added 7.10.0
https://nodejs.org/dist/latest-v10.x/docs/api/crypto.html#crypto_crypto_randomfillsync_buffer_offset_size

It is interesting because docs for node 6.x say it was added in 6.13
https://nodejs.org/docs/latest-v6.x/api/crypto.html#crypto_crypto_randomfillsync_buffer_offset_size

from nanoid.

ai avatar ai commented on June 19, 2024

Fixed in 1.2.5 by @AndreyBelym

from nanoid.

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.