Closed trentm closed 4 months ago
Thanks for this; I'll create a revert PR in a sec.
Recently we've recently enabled constraintsFiltering
in our renovate config to prevent this from happening in the future:
Thanks for this; I'll create a revert PR in a sec.
Thanks.
Recently we've recently enabled
constraintsFiltering
in our renovate config to prevent this from happening in the future:
TIL. My naive guess is that this would not have caught this particular change, because the uuid
package doesn't set "engines".
The upgrade of the
uuid
dependency to^10.0.0
in #629 meansgaxios@6.7.0
crashes on load in Node.js v14 versions before 14.18.0.uuid@10
dropped support for Node.js v14 -- https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md#1000-2024-06-07 -- so it could break with any version of Node.js 14.uuid@10
does still work with versions of Node.js 14.18.0 and later. This is the Node.js version where support fornode:
-prefixed core modules was added.uuid@10
is loadingnode:crypto
.uuid@10
, and hencegaxios@6.7.0
crashes on load with Node.js versions before v14.18.0.gaxios' package.json has:
which, granted, is advisory. Technically that range includes Node.js 14.0.0 and up. gaxios' CI is testing with version "14", which is just the latest Node.js v14 release, so this won't get caught by CI.
The reason I hit this, is because CI in a project I work on specifically tests with Node.js v14.17.0 as its lowest supported version. That project uses
@opentelemetry/resource-detector-gcp
(https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/detectors/node/opentelemetry-resource-detector-gcp/package.json#L60) which usesgcp-metadata
, which usesgaxios
.Options:
uuid@9
until there is a major rev of gaxios that drops Node v14 support."node": ">=14.18.0"
in package.json."engines": { "node": ">=14" }
is support for the latest release of Node.js 14, close this issue, and hope that auuid@10
minor release doesn't break Node.js v14.21.3. (I realize Node.js v14 is ancient. :)Thanks.
Environment details
gaxios
version: 6.7.0Steps to reproduce
Get a version of Node.js earlier than 14.18.0 somehow, e.g.:
Then attempt to use gaxios@6.7.0: