mqtt
5.16.1 · 14 Oct 2026MIT4.6M / weekRepositoryHomepagenpmAtom feed
Upgrading mqtt From 0.2.8 to 5.16.1
200 releases in betweennotes for 194
Reading releases, release notes and advisories…
Counted from 194 of 200 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking2.0.0
- Breaking2.0.0
- Deprecated1.0.0
- Deprecated1.0.0
Security
Fixes 1 advisory affecting 0.2.8
- Denial of Service in mqtthigh · GHSA-hg78-c92r-hvwr
- 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
141 other lines we could not sort, mostly version bumps
- 5.3.0
Create an util class
BufferedDuplexto replaceduplexifyonwsaliandwx - 5.3.0
Partially fixes #876 (will keep this for another PR)
- 5.3.0
Improve types in
ws. Usewindow.WebSocketfor Browser andwsmodule types for Node - 5.3.0
Significatly reduces bundle size by ~24% (90kB)
- 5.3.0
Improved browser tests to subscribe to different topics to prevent false positives when running concurrently
- 4.3.4
Migrate LruMap from collections to lru-cache.
- 4.3.3
Removed collections.js dependency from number-allocator.
- 4.3.2
Updated collections.js related package version.
- 4.3.0
Update README.md
- 4.3.0
Refined Topic Alias support. (Implement #1300)
33 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.