chore: updated npm to v11.7.0 #2296
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
refs https://jsw.ibm.com/browse/INSTA-59159
Updated npm to v11.7.0 and cleaned up the package-lock.json.
Background & Reasoning
There was a TLS error with ibmdb 3.3.0.
ibmdb/node-ibm_db#1009 (comment)
As a result, we are forcing clidriver v11 for now. (current workflow)
Future Resolution Options
Once IBM Cloud DB2 starts supporting clidriver v12, we can check and revisit this.
Alternatively, we could disable hostname validation using:
SSLClientHostnameValidation=OFF
(see discussion:
https://instana.slack.com/archives/G0118PFNN20/p1768981998684419?thread_ts=1768906923.430649&cid=G0118PFNN20
)
npm v11 Compatibility Notes
npm was upgraded to v11.7.0.
npm v11 requires Node.js ≥ 20.17
(release notes: https://github.com/npm/cli/releases/tag/v11.0.0
)
NPM warning about clidriver: "Unknown user/project config" warnings starting in npm 11.2.0 npm/cli#8153
Because of this:
We can configure npm v11 in all pipelines except those running on Node.js 18, once this PR is merged.
Known Warning in npm v11
npm v11 emits the following warning:
npm warn Unknown project config "clidriver".
This will stop working in the next major version of npm.
We currently rely on this configuration in
.npmrcfor ibmdb compatibility:ibmdb/node-ibm_db#1009 (comment)
Notes
The current version of ibmdb depends on this clidriver configuration.
When upgrading to a future major npm version, this will need to be revisited.
Once IBM Cloud DB2 supports clidriver v12 (currently v11), this setup should be re-evaluated.
References
ibmdb package:
https://www.npmjs.com/package/ibm_db
Checklist
ibmdb/node-ibm_db#1009 (comment)