mqtt
5.16.1 · 14 Oct 2026MIT4.6M / weekRepositoryHomepagenpmAtom feed
Upgrading mqtt From 5.3.1 to 5.16.1
44 releases in betweenevery note read
Security
- 5.16.0
optionsis no longer mutated by a CONNACK. Code that read negotiated values back offoptions.properties.maximumPacketSizeoroptions.keepalivemust use the newclient.serverProperties/client.keepalivegetters instead. - 5.16.0
A refused CONNACK now always closes the socket. With
reconnectOnConnackError: false(the default) the client previously sat on an open connection and kept deliveringmessageevents after telling the application the connection was refused. - 5.16.0
Protocol violations now drop the connection: a SUBACK reason-code count mismatch, an invalid Topic Alias, an unsolicited or out-of-spec AUTH, and a broker exceeding
receiveMaximumon inbound QoS 2 (reason code0x93). Reconnect stays armed in all cases. - 5.16.0
An ack that does not answer the command pending on that message id is dropped and reported via
error, instead of running the wrong completion path. - 5.16.0
The unregistered-alias case now emits reason code
0x82(Protocol Error) instead of0x94. - 5.16.0
AUTH reason code 0 ends the exchange successfully; previously it produced an error with an empty reason string.
- 5.16.0
properties.receiveMaximumoutside 1..65535, or not an integer, is ignored and 65535 is enforced and advertised instead. - 5.16.0
The inbound packet-size cap now measures total wire size rather than Remaining Length, so it triggers on packets a few bytes smaller than before.
- 5.16.0
New exports:
PacketPump(src/lib/shared.ts),PendingCommandfrom the entry point. - 5.16.0
Release by release
- Security
optionsis no longer mutated by a CONNACK. Code that read negotiated values back offoptions.properties.maximumPacketSizeoroptions.keepalivemust use the newclient.serverProperties/client.keepalivegetters instead. - Security
A refused CONNACK now always closes the socket. With
reconnectOnConnackError: false(the default) the client previously sat on an open connection and kept deliveringmessageevents after telling the application the connection was refused. - Security
Protocol violations now drop the connection: a SUBACK reason-code count mismatch, an invalid Topic Alias, an unsolicited or out-of-spec AUTH, and a broker exceeding
receiveMaximumon inbound QoS 2 (reason code0x93). Reconnect stays armed in all cases. - Security
An ack that does not answer the command pending on that message id is dropped and reported via
error, instead of running the wrong completion path.
- Security
5.15.1nothing new or fixed in the note
- New
Exported topic validation functions for external use (#2036) 396e02a, closes #2036
- New
5.13.3 – 5.14.02 releases, nothing new or fixed in the notes
7 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.