Repository navigation
v1.0.3
Maintenance release: the native addon moves to current versions of its two main Rust libraries. Nothing changes for flows.
Highlights
- Node-API layer on napi-rs 3. The bridge between Node.js and the Rust clients uses the new napi-rs 3 API. The JavaScript API, the values and the error messages are the same: the output of every call was compared byte for byte with 1.0.2.
- AES library 0.9 for the S7CommPlus password login (legitimation), checked against the official NIST test vectors.
- Checked against a real S7-1200 (read only) over S7comm and S7CommPlus.
Upgrade notes
None.
Details (CHANGELOG)
Changed
- Node-API layer on
napi3 /napi-derive3 (native API, no compat mode): results are built byToNapiValuetypes, callbacks are weak thread-safe functions,statusis converted with theserde-jsonfeature instead ofJSON.parse. The JS API and the values are the same (byte-identical output against the fake PLCs). aes0.9 (cipher0.5) for the S7CommPlus legitimation.
Added
- Tests: NIST SP 800-38A known-answer test for AES-256-CBC;
test/addon.test.jsfor the shapes and value conversions at the Node-API boundary.
Full diff: v1.0.2...v1.0.3