Releases: aws/aws-iot-device-sdk-js-v2
Releases · aws/aws-iot-device-sdk-js-v2
Bug fixes for tls and mqtt
- On Windows, perform a full verification of SNI/server cert chain even when using an overridden root CA
- Mqtt received messages to use the received topic and not the original subscription topic when calling into javascript
Fixes #147
Updating CRT to v1.7.0
- Updating aws-crt-nodejs to v1.7.0:
- Backwards Incompatible API Change: verify_peer in TlsContextOptions now defaults to true instead of false.
- WebsocketConfig now has an optional member (tls_ctx_options) for specifying TlsContextOptions.
Improved proxy support
- Direct mqtt connections can now use http proxies
- Update proxy-aware samples to use preferred proxy configuration
- CRT update
-
- Fix tls context initialization failures due to pem sanitization bug
Audit updates
- Dependency security updates
- A number of fixes for the ECS credentials provider
Mqtt, Http, Windows, and S3 bug fixes
- BUGFIX: Fix several MQTT race conditions.
- BUGFIX: More validation of HTTP/1.1 messages.
- BUGFIX: High resolution clock fix on Windows.
- BUGFIX: Non-ascii file open fix on Windows.
- BUGFIX: Support non-desktop Windows.
- BUGFIX: Fixing sending of S3 abort-multipart-upload message
Crt and package lock update
- Update to latest CRT and manually pin several packages
Updating CRT to 1.6.2
BUG FIX
- The authentication of proxy option will propagate correctly now
- Building issues related to aws-lc is solved on some ARM machine.
API updates from aws-crt
- Deprecated with_timeout_ms method as it's out of date. The with_timeout_ms will be moved to with_ping_timeout_ms to configures the PINGREQ response timeout
- Add new with_protocol_operation_timeout_ms to configure the protocol operation timeout.
Updating CRT to 1.5.5
- Updating CRT to 1.5.5:
- Integration with aws-lc for crypto
- CRT Related BUG FIXES:
- Memory was being incorrectly released in MQTT connection finalize.
- Pub-sub samples from iot-device-sdk-js-v2 were exiting with a non-zero code.
- MQTT on_publish callback was not being cleaned up.
- Async callbacks invoked with invalid env, leading to a crash.
- The event-loop-group created for node was not getting cleaned up.
- Async write operation for a Buffer Array based on a C managed buffer would crash, as the C buffer get cleaned up after the callback, before the async operation finishes.
- Other BUG FIXES:
- Adding disconnects to samples to prevent connection related hang.
aws-crt 1.5.2
aws-crt 1.5.2 (#137) fixes aws-c-cal submodule
MQTT on-message callbacks carry more info + Bugfixes
- IMPROVEMENT: The MQTT
on_message
event, and the topic-specific callback passed tosubscribe()
, have addeddup
,qos
, andretain
params. - IMPROVEMENT: Outgoing MQTT
Payload
type now acceptsArrayBuffer
and anyArrayBufferView
(ex:Uint8Array
) type. - BUGFIX:
on_message
payload typescript signature changed fromBuffer
toArrayBuffer
.- This is a semi-breaking change. There were two callback passing payloads, one signature claimed to pass
ArrayBuffer
payloads and the other claimed to passBuffer
payloads. In reality the node implementation always passedArrayBuffer
and the browser implementation always passedBuffer
. Now, both callbacks share a signature, they both claim to passArrayBuffer
and both the node and browser implementations actually do passArrayBuffer
- This is a semi-breaking change. There were two callback passing payloads, one signature claimed to pass
- BUGFIX: browser MQTT
publish()
no longer tries to turn everything to strings.ArrayBuffer
andArrayBufferView
types will pass their bytes straight through. - BUGFIX: browser MQTT
unsubscribe()