mqtt
5.16.1 · 14 Oct 2026MIT4.6M / weekRepositoryHomepagenpmAtom feed
5.16.1 is the newest release of 5.x.
In short
5 breaking3 new16 fixed1 internal
- Breaking
- Breaking
- Breaking
When creating an
MqttClientinstancenewis now required - Breaking
Dropped support for NodeJS 12-14
- Breaking
Completely rewritten in Typescript
Release note
Bug Fixes
Help message for client ID param for sub command is incorrect
types: better streamBuilder types
types: better types
Use explicit
connectpacket and infer types frommqtt-packetMake tests more reliable
Problem with publish callback invoked twice
types: subscribe definition
- Breaking
Remove unused deps, convert to ES2015 class (#1633) (d71b000), closes #1633
Browser tests not working
setImmediate polyfill
_storeProcessingstaying true after outStore got emptiedConsistency, used
thisinstead ofthatPrevent store message on store when it's restored
Add missing export of UniqueMessageIdProvider and DefaultMessageIdProvider
IS_BROWSER check is now safer and more agnostic about the bundler
topicAliasMaximum under must be under Connect properties
types: missing null declaration for error in subscription callback
types: topic alias controls and password
- Breaking
Features
Promises support
Option to disable
writeCacheand fix leak in subscriptions (#1622) (c8aa654), closes #1535 #1151
Breaking changes
- Breaking
When creating an
MqttClientinstancenewis now required - Breaking
Dropped support for NodeJS 12-14
- Breaking
Completely rewritten in Typescript
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.