Skip to content

Conversation

nikeee
Copy link

@nikeee nikeee commented Apr 30, 2025

crypto.randomUUID is supported since Node.js 14.17.0.: https://nodejs.org/api/crypto.html#cryptorandomuuidoptions

The CI pipeline suggests that this library supports Node from 14 onwards (even though v18 will run out of support tomorrow):

node-version: [14.x, 16.x, 18.x, 20.x, 22.x]

This might be a breaking change if someone uses Node.js < 14.17. CI pulls in 14.21.3 as it is specified to use 14.x.

The package.json has "engine": "node > 8", so I'm not entirely sure which Node.js versions are officially supported. If this project aims to support only the currently supported Node.js versions, this PR is not a breaking change.

The motivation for this change is to reduce download size in general. Dockerode is downloaded 1265386 times a week, so about 68,330,844 times a year. [email protected] is 29328 bytes. So this dependency causes traffic of about 1866 GiB per year (about 1.8TB).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant