-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v6.7.0 broke Node.js 14 compatibility #637
Comments
The transitive [email protected] dep breaks on Node.js versions before v14.18.0. (Actually uuid@10 is being used, which technically no longer supports Node.js v14, but still works with later minors.) Refs: googleapis/gaxios#637
Thanks for this; I'll create a revert PR in a sec. Recently we've recently enabled |
Thanks.
TIL. My naive guess is that this would not have caught this particular change, because the |
The transitive [email protected] dep breaks on Node.js versions before v14.18.0. (Actually uuid@10 is being used, which technically no longer supports Node.js v14, but still works with later minors.) Also: * fix the conditional for installing an npm that supports workspaces * while we are changing Node versions we test with, the IITM fix came a while back, so we can test with latest v18 now Refs: googleapis/gaxios#637
The upgrade of the
uuid
dependency to^10.0.0
in #629 means[email protected]
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 hence[email protected]
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 [email protected]:
The text was updated successfully, but these errors were encountered: