chore(binding-opcua): upgrade node-opcua family to 2.179.0 - #1553
chore(binding-opcua): upgrade node-opcua family to 2.179.0#1553erossignon wants to merge 1 commit into
Conversation
The node-opcua-* packages must be bumped as one set, which dependabot cannot do. Use `npm run ncu:opcua` at the root instead. node-opcua-crypto 5 drops the sync readPrivateKey, so the x509 identity now uses clientCertificateManager.getPrivateKey(). Its ESM-only asn1-schema typings need skipLibCheck in the examples tsconfig.
| "outDir": "dist", | ||
| "module": "Node16", | ||
| "rootDir": "src", | ||
| "skipLibCheck": true, |
There was a problem hiding this comment.
This setting is a bit unfortunate, but since it is for examples only, I am fine with it.
|
Agreed it's unfortunate. Some context, as I maintain node-opcua. Removing
The diagnostic is spurious.
I looked for a narrower fix within tsconfig and could not find one. A The proper fix belongs upstream, so I have raised PeculiarVentures/pvtsutils#23 proposing per-condition |
Bumps all node-opcua-* packages to 2.179.0 (node-opcua-crypto to 5.9.0).
These packages release together and must be upgraded as a set, so per-package dependabot PRs can't build. Replaces #1549 and #1551 — both can be closed.
Needed by crypto 5: x509 identity uses clientCertificateManager.getPrivateKey(), and skipLibCheck in the examples tsconfig for the transitive asn1-schema ESM typings.
npm run ncu:opcua is the upgrade procedure, now documented in the binding README.
All 73 binding-opcua tests pass.