Comments (8)
@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.
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.
- Do you want to send PR?
- Do you want to check tests, why they didnโt fall on Travis CI?
from nanoid.
I found a reason. Node.js 6 backported randomFill
https://nodejs.org/en/blog/release/v6.13.0/
from nanoid.
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.
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.
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.
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.
Fixed in 1.2.5 by @AndreyBelym
from nanoid.
Related Issues (20)
- Why did you remove CJS support? HOT 1
- Challenges using nanoid under jest with jsdom environment? HOT 5
- Unverified input breaks nanoid HOT 1
- Can't use nanoid@4 with typescript HOT 1
- More intuitive calculator? HOT 1
- Docs: Unnecessary use of --save flag HOT 1
- ulid format preset HOT 1
- Doesn't work with AWS Lambdas
- Question: about the usage of a bitmask
- Error while importing in node js
- Issue while running in Firebase Emulator (Cloud Functions) HOT 1
- Errors with nanoid v3 when using jest and jsdom HOT 9
- Error on nanoid HOT 1
- ERR_REQUIRE_ESM' const { nanoid } = require("nanoid"); HOT 1
- Not working with expo HOT 22
- strange error HOT 2
- Error when calling nanoid in browser (from 5.0.5) HOT 6
- Nothing
- Undefined in Server Side Nextjs / Node HOT 1
- Cannot read properties of undefined (reading 'length') HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nanoid.