5.17.0 (2026-11-30)
- add named exports to dist/mqtt.esm.js (#2082) (0ceae41), closes #2056 #2022 #2074 #2083
- check outgoing PUBLISH against the CONNACK limits of the server (#2119) (da07af2), closes #2103 #2104 #2092 #2097 #2098
- cli: make
mqtt sub -Hshow help (#2078) (a21e75d) - close the connection when a packet fails to parse (GHSA-c7vh-4qgc-w67h) (#2127) (e1d7472)
- give an aliased inbound PUBLISH its topic name for every QoS (#2115) (1a29beb), closes #2099
- never fall back to a transport without TLS for a secure protocol (GHSA-vp96-jq7h-5x6g) (#2126) (02cd5d0)
- never give a new packet an id that is still in flight (#2118) (e1a843c), closes #2095
- per-topic suback failures and MQTT 5 unsuback reason codes (#2117) (ded7109), closes #2100 #2106
- refuse a PUBLISH with Topic Alias 0 (#2114) (5b2db92), closes #2093
- resend with DUP 1, and drop the sent messages of a lost MQTT 5 session (#2120) (635ffce), closes #2094 #1651 #2086 #2086 #2113
- scope
forceNativeWebSocketto the client that sets it (#2116) (0d31e9c), closes #2050 - send DUP 0 in a QoS 0 PUBLISH (#2113) (7d08173), closes #2096 #2109
- split url auth at the first colon so a password can contain one (#2123) (9073c63), closes #1927
- strip the trailing colon from the protocol of an options object (#2079) (d46a365)
- tls: use the servername of each host of
serversafter a failover (#2108) (fa1694c), closes #2101 #2051 #2051
- skip the exact size count of a publish far below Maximum Packet Size (#2128) (61d7b34), closes #2119 #2119 #2119 #2119 #2119
5.16.1 (2026-10-14)
- reconnect instead of ending a client whose stream is already destroyed (#2068) (569bb31)
- schedule browser process.nextTick with queueMicrotask (#2056) (648b79c), closes #2074
5.16.0 (2026-09-16)
- a refused CONNACK now always closes the connection, and the client only retries when
reconnectOnConnackErroristrue. Before, with the defaultfalse, the socket was left open and the client usually retried anyway once the broker closed it. SetreconnectOnConnackError: trueto keep retrying after a refusal (GHSA-8phv-jwjm-93rr, #2064, #2072)
- bounds-check the suback granted array against subscriptions sent (GHSA-rj8f-4655-cgg2) (#2061) (46ee23f), closes #2060
- enforce MQTT 5 Receive Maximum for inbound QoS 2 messages (GHSA-h8jm-hm87-fqw3) (#2065) (ec5bf3e), closes #2064 #2063 #2062 #2061 #2060
- keep broker CONNACK properties out of the user options object (GHSA-gfxc-3w7m-8ch4) (#2062) (3db16f5), closes #2061 #2060 #2060 #2060
- reject a duplicate CONNACK instead of re-running connection setup (GHSA-8phv-jwjm-93rr) (#2064) (7108ea5), closes #2063 #2062 #2061 #2060
- reject an unsolicited AUTH instead of crashing the process (GHSA-fwrw-4mhv-wxvm) (#2063) (b511e7b), closes #2062 #2061 #2060 #2060
- reject unsolicited MQTT 5 topic alias instead of crashing (GHSA-c8jq-r765-cq7g) (#2060) (7d07757)
5.15.2 (2026-07-06)
- connect/tls: don't overwrite an explicit servername (SNI) (#2051) (cd1d780)
- support relative WebSocket URLs (#2049) (c4be563), closes #2035
5.15.1 (2026-03-24)
5.15.0 (2026-02-02)
- exported topic validation functions for external use (#2036) 396e02a, closes #2036
5.14.1 (2025-09-04)
- connect/ws: ensure proxy stream is writable (#2024) (fe45405), closes #1914
- isWebWorkerEnv check for Deno environment (#2023) (a6e74ad)
5.14.0 (2025-07-30)
5.13.3 (2025-07-18)
5.13.2 (2025-07-07)
5.13.1 (2025-06-03)
5.13.0 (2025-05-09)
5.12.1 (2025-05-06)
- add
@typescript-eslint/consistent-type-importsrule and normalised all imports (640cd3b)
5.12.0 (2025-04-28)
5.11.1 (2025-04-23)
- deps: removed unused 'reinterval' dependency and move two @type/ dependencies to devDependencies. (bb8c694)
5.11.0 (2025-04-10)
5.10.4 (2025-02-26)
- browser: bump readable-stream@4.7.0 to fix BigInt issues (#1963) (9749891)
- browser: prevent error stream.push() after EOF (#1932) (df2e8fe)
- electron-test: webdriver session not created (#1972) (57691cf)
- move protocol "clean" after merge of parsedOptions (#1965) (1c19ca0)
5.10.3 (2024-11-26)
5.10.2 (2024-11-13)
5.10.1 (2024-08-28)
5.10.0 (2024-08-14)
- test: close all open connections in abstract_client test (#1917) (661c30a)
- types: unsubscribe options type (#1921) (18a357c)
- add
subackpacket to subscribe callback (#1923) (93f4482) - add unsubscribe ack packet to the unsubscribe callback (#1922) (8bcf304)
5.9.1 (2024-08-01)
- browser: ensure proxy is defined (ffc9805)
- browser: prevent error
stream.push() after EOF(#1915) (b5cc835), closes #1914 - test: close open connections (#1911) (053a7be)
5.9.0 (2024-07-26)
- tets hang up (#1906) (c462530)
- types: add connectAsync overload signature with allowRetries (#1909) (6b278dc)
5.8.1 (2024-07-18)
5.8.0 (2024-07-05)
- add compatibility with txiki.js (#1895) (37b08c9)
- allow to pass custom timer for keepalive manager (#1896) (ee81184)
5.7.3 (2024-06-26)
5.7.2 (2024-06-19)
5.7.1 (2024-06-18)
5.7.0 (2024-05-28)
5.6.2 (2024-05-23)
5.6.1 (2024-05-17)
- update is-browser.ts to account
undefinednavigator (#1868) (0111a7a), closes /github.com/mqttjs/MQTT.js/commit/6a03d29b86dc4fe8eae04eaf0f9fc661f1c3d1ea#commitcomment-142114121 /github.com/mqttjs/MQTT.js/pull/1868#pullrequestreview-2062507553
5.6.0 (2024-05-13)
5.5.6 (2024-05-13)
- do not shift pings on 'publish' packets (#1866) (e4d4663), closes #1863 #1861
- electron: detect electron context (#1856) (6a03d29)
- ws: ignored
hostoption and default hostname in browser (c6580a6), closes #1730
5.5.5 (2024-04-30)
5.5.4 (2024-04-26)
- allow to use unix sockets in connect (#1852) (22c97b5), closes #1040
- react-native: process.nextTick is not a function error (#1849) (f62e207)
5.5.3 (2024-04-19)
- possible race condition in ping timer (#1848) (0b7d687), closes #1845
- wrong mqttjs version printed (#1847) (a24cf14)
5.5.2 (2024-04-12)
5.5.1 (2024-04-10)
5.5.0 (2024-03-18)
- browser: force closing client doesn't destroy websocket correctly (#1820) (f9b1204), closes #1817
- expose mqttjs version on
MqttClient.VERSION(#1821) (50776a7)
5.4.0 (2024-03-13)
- add keepalive test in webworker (#1807) (8697b06)
- improve some flaky tests (#1801) (78e8f13)
- print MQTTjs version and environment on constructor (#1816) (c0a6668)
- some others flaky tests (#1808) (f988058)
- update worker-timers from 7.0.78 to 7.1.4 (#1813) (2b75186), closes #1802
- wrong default export for browser (#1800) (6237f45)
5.3.6 (2024-02-26)
- browser: add
navigatorpolifilly for wechat mini (#1796) (c26908a), closes #1789 - emit
errorevent on connack timeout (#1781) (56e6e23)
5.3.5 (2024-01-23)
- bump help-me version to fix vulnerability in glob/inflight (#1773) (72f99dc)
- keepalive causes a reconnect loop when connection is lost (#1779) (3da5e84), closes #1778
5.3.4 (2023-12-22)
- leaked
closelistener instartStreamProcessloop (#1759) (0c10ef6) - typo in
client.ts(#1763) (e3528ac)
5.3.3 (2023-12-05)
- don't use worker timers in worker and add web worker tests (#1755) (38fb6ae)
- improve worker tests (#1757) (4facb18)
5.3.2 (2023-12-04)
- browser: use worker timers to prevent unexpected client close (#1753) (35448f3)
- catch all socket errors (#1752) (a50e85c)
- prop
windowis not defined in web worker (#1749) (6591404)
5.3.1 (2023-11-28)
- improve environment detection in is-browser utility (#1744) (b094142)
- typescript compile error (2655feb), closes #1746
5.3.0 (2023-11-18)
5.2.2 (2023-11-14)
5.2.1 (2023-11-10)
5.2.0 (2023-11-09)
5.1.4 (2023-10-30)
5.1.3 (2023-10-20)
5.1.2 (2023-10-10)
5.1.1 (2023-10-09)
5.1.0 (2023-10-04)
5.0.5 (2023-09-08)
5.0.4 (2023-08-31)
- export js file in dist folder (#1596) (#1677) (cbe0dc6)
- move exported types out of dev dependencies (#1676) (844e4ff)
- set default value false for reconnecting in constructor (#1674) (#1678) (312b57b)
5.0.3 (2023-08-16)
- browser detection (183b35a), closes #1671
- close and end callbacks not executed in the WeChat mini program (#1664) (15ff607)
5.0.2 (2023-08-03)
- cli: cli commands not working (#1660) (1bea132)
- import mqtt correctly in test (8f15557)
- tests: abstract store test types (0ddd097)
5.0.1 (2023-07-31)
- resubscribe when no session present (#895) (#1650) (37acda6)
- types: wrong
incomingStoreandoutgoingStore(8133eba)
5.0.0 (2023-07-25)
- help message for client ID param for sub command is incorrect (#1643) (8521888)
- types: better streamBuilder types (247e187)
- types: better types (#1645) (0f29bff)
- use explicit
connectpacket and infer types frommqtt-packet(#1646) (2a49ed3)
5.0.0-beta.4 (2023-07-21)
5.0.0-beta.3 (2023-07-19)
-
problem with publish callback invoked twice (#1635) (79b23a8)
-
chore!: remove unused deps, convert to ES2015 class (#1633) (d71b000), closes #1633
- when creating an
MqttClientinstancenewis now required
5.0.0-beta.2 (2023-07-03)
5.0.0-beta.1 (2023-06-29)
_storeProcessingstaying true after outStore got emptied (#1492) (f3f7be7)- consistency, used
thisinstead ofthat(#1618) (800825b) - prevent store message on store when it's restored (#1255) (8d68c8c)
5.0.0-beta.0 (2023-06-27)
-
add missing export of UniqueMessageIdProvider and DefaultMessageIdProvider (#1572) (aa2e0ad)
-
IS_BROWSER check is now safer and more agnostic about the bundler (#1571) (b48b4b4)
-
topicAliasMaximum under must be under Connect properties (#1519) (3b2e1cb)
-
types: missing null declaration for error in subscription callback (#1589) (afc067b)
-
chore!: drop support for node 12-14 (#1615) (a2cbf61), closes #1615
- Dropped support for NodeJS 12-14
5.0.0-beta.4 (2023-07-21)
5.0.0-beta.3 (2023-07-19)
-
problem with publish callback invoked twice (#1635) (79b23a8)
-
chore!: remove unused deps, convert to ES2015 class (#1633) (d71b000), closes #1633
- when creating an
MqttClientinstancenewis now required
5.0.0-beta.2 (2023-07-03)
5.0.0-beta.1 (2023-06-29)
_storeProcessingstaying true after outStore got emptied (#1492) (f3f7be7)- consistency, used
thisinstead ofthat(#1618) (800825b) - prevent store message on store when it's restored (#1255) (8d68c8c)
5.0.0-beta.0 (2023-06-27)
-
add missing export of UniqueMessageIdProvider and DefaultMessageIdProvider (#1572) (aa2e0ad)
-
IS_BROWSER check is now safer and more agnostic about the bundler (#1571) (b48b4b4)
-
topicAliasMaximum under must be under Connect properties (#1519) (3b2e1cb)
-
types: missing null declaration for error in subscription callback (#1589) (afc067b)
-
chore!: drop support for node 12-14 (#1615) (a2cbf61), closes #1615
- Dropped support for NodeJS 12-14
5.0.0-beta.3 (2023-07-19)
-
problem with publish callback invoked twice (#1635) (79b23a8)
-
chore!: remove unused deps, convert to ES2015 class (#1633) (d71b000), closes #1633
- when creating an
MqttClientinstancenewis now required
5.0.0-beta.2 (2023-07-03)
5.0.0-beta.1 (2023-06-29)
_storeProcessingstaying true after outStore got emptied (#1492) (f3f7be7)- consistency, used
thisinstead ofthat(#1618) (800825b) - prevent store message on store when it's restored (#1255) (8d68c8c)
5.0.0-beta.0 (2023-06-27)
-
add missing export of UniqueMessageIdProvider and DefaultMessageIdProvider (#1572) (aa2e0ad)
-
IS_BROWSER check is now safer and more agnostic about the bundler (#1571) (b48b4b4)
-
topicAliasMaximum under must be under Connect properties (#1519) (3b2e1cb)
-
types: missing null declaration for error in subscription callback (#1589) (afc067b)
-
chore!: drop support for node 12-14 (#1615) (a2cbf61), closes #1615
- Dropped support for NodeJS 12-14
5.0.0-beta.2 (2023-07-03)
5.0.0-beta.1 (2023-06-29)
_storeProcessingstaying true after outStore got emptied (#1492) (f3f7be7)- consistency, used
thisinstead ofthat(#1618) (800825b) - prevent store message on store when it's restored (#1255) (8d68c8c)
5.0.0-beta.0 (2023-06-27)
-
add missing export of UniqueMessageIdProvider and DefaultMessageIdProvider (#1572) (aa2e0ad)
-
IS_BROWSER check is now safer and more agnostic about the bundler (#1571) (b48b4b4)
-
topicAliasMaximum under must be under Connect properties (#1519) (3b2e1cb)
-
types: missing null declaration for error in subscription callback (#1589) (afc067b)
-
chore!: drop support for node 12-14 (#1615) (a2cbf61), closes #1615
- Dropped support for NodeJS 12-14
5.0.0-beta.1 (2023-06-29)
_storeProcessingstaying true after outStore got emptied (#1492) (f3f7be7)- consistency, used
thisinstead ofthat(#1618) (800825b) - prevent store message on store when it's restored (#1255) (8d68c8c)
5.0.0-beta.0 (2023-06-27)
-
add missing export of UniqueMessageIdProvider and DefaultMessageIdProvider (#1572) (aa2e0ad)
-
IS_BROWSER check is now safer and more agnostic about the bundler (#1571) (b48b4b4)
-
topicAliasMaximum under must be under Connect properties (#1519) (3b2e1cb)
-
types: missing null declaration for error in subscription callback (#1589) (afc067b)
-
chore!: drop support for node 12-14 (#1615) (a2cbf61), closes #1615
- Dropped support for NodeJS 12-14
4.3.7 (2022-03-14)
4.3.6 (2022-02-17)
- buffer is not defined in browser (#1420) (f5ab1b5)
- types: connect function proper overloads for its parameters (#1416) (28c4040)
4.3.5 (2022-02-07)
4.3.4 (2022-01-06)
4.3.3 (2022-01-05)
4.3.2 (2021-12-29)
4.3.1 (2021-12-24)
4.3.0 (2021-12-22)
- client: Refined Topic Alias support. (Implement #1300) (#1301) (c92b877)
- README: typo Support (#1353) (c424426)
- resubscribe: message id allocate twice (#1337) (7466819)
- tls: Skip TLS SNI if host is IP address (#1311) (2679952)
- type: add properties type for IClientSubscribeOptions (#1378) (8de9394)
- type: fix push properties types (#1359) (cb6bdcb)
- types (#1341) (59fab36)
- typescript: OnConnectCallback with specs expecting Connack packet (#1333) (e3e15c3)
- typescript: Use correct version of @types/ws (#1358) (6581d33)
- websocket and typescript (9979443)
- websockets: revert URL WHATWG changes (a3dd38e)
- add support for ALPN TLS extension (#1332) (06f2fd2)
- client: auth handler for enhanced auth (#1380) (d5850b7)
4.2.5 (2020-11-12)
4.2.4 (2020-10-29)
4.2.3 (2020-10-27)
4.2.2 (2020-10-27)
- check if client connected when reconnecting (#1162) (541f201), closes #1152
- replace url.parse by WHATWG URL API (#1147) (70a247c), closes #1130
- use 'readable-stream' instead of 'stream' (#1170) (04184e1)
4.2.1 (2020-08-24)
4.2.0 (2020-08-12)
- browser support: correct browser detection for webpack (#1135) (eedc2b2)
- browser support: do not use process.nextTick without check that it exists (#1136) (963e554)
- mqtt stores: improve error handling and tests (#1133) (9c61419)
- path for bin files (#1107) (43cc1d1)
- typescript: fix payloadFormatIndicator to boolean type (#1115) (5adb12a)
- mqtt5: add properties object to publish options (e8326ce)
- websockets: websocket-streams to ws (#1108) (b2c1215)
4.1.0 (2020-05-19)
4.0.1 (2020-05-07)
- Revert "docs: adding client flowchart" (ef2d590)
4.0.0 (2020-04-27)
- client: error handling and test resilience (#1076) (2e46e08)
- connection error handler (#1053) (3cea393)
- support SNI on TLS (#1055) (f6534c2)
3.0.0 (2019-05-27)
2.18.8 (2018-08-30)
2.18.7 (2018-08-26)
2.18.6 (2018-08-25)
2.18.5 (2018-08-23)
2.18.4 (2018-08-22)
2.18.3 (2018-07-19)
2.18.2 (2018-06-28)
2.18.1 (2018-06-12)
2.18.0 (2018-05-12)
2.17.0 (2018-03-25)
2.16.0 (2018-03-01)
2.15.3 (2018-02-16)
2.15.2 (2018-02-08)
2.15.1 (2018-01-09)
2.15.0 (2017-12-09)
2.14.0 (2017-11-04)
2.13.1 (2017-10-16)
2.13.0 (2017-09-12)
2.12.1 (2017-09-08)
2.12.0 (2017-08-18)
2.11.0 (2017-08-03)
2.10.0 (2017-07-31)
2.9.3 (2017-07-25)
2.9.2 (2017-07-21)
2.9.1 (2017-07-06)
2.9.0 (2017-06-16)
2.8.2 (2017-06-06)
2.8.1 (2017-06-03)
2.8.0 (2017-05-26)
2.7.2 (2017-05-15)
2.7.0 (2017-05-01)
2.6.2 (2017-04-10)
2.6.1 (2017-04-09)
2.6.0 (2017-04-07)
2.5.2 (2017-04-03)
2.5.1 (2017-04-01)
2.5.0 (2017-03-18)
2.4.0 (2017-02-14)
2.3.1 (2017-01-30)
2.3.0 (2017-01-23)
2.2.1 (2017-01-07)
2.2.0 (2017-01-04)
2.1.3 (2016-11-17)
2.1.2 (2016-11-17)
2.1.1 (2016-11-13)
2.1.0 (2016-11-13)
2.0.1 (2016-09-26)
2.0.0 (2016-09-15)
1.14.1 (2016-08-25)
1.14.0 (2016-08-17)
1.13.0 (2016-07-25)
1.12.0 (2016-06-25)
1.11.2 (2016-06-17)
1.11.1 (2016-06-16)
1.11.0 (2016-06-04)
1.10.0 (2016-04-27)
1.9.0 (2016-04-25)
1.8.0 (2016-04-10)
1.7.5 (2016-03-18)
0.17.4 (2016-03-18)
1.7.3 (2016-02-27)
1.7.2 (2016-02-18)
1.7.1 (2016-02-09)
1.7.0 (2016-01-22)
1.6.3 (2015-12-23)
1.6.2 (2015-12-20)
1.6.1 (2015-12-10)
1.6.0 (2015-11-28)
1.5.0 (2015-10-26)
1.4.3 (2015-10-02)
1.4.2 (2015-10-02)
1.4.1 (2015-09-15)
1.4.0 (2015-09-02)
1.3.5 (2015-07-12)
1.3.4 (2015-07-07)
1.3.3 (2015-07-03)
1.3.2 (2015-06-26)
1.3.1 (2015-06-22)
1.3.0 (2015-06-11)
1.2.1 (2015-06-08)
1.2.0 (2015-05-21)
1.1.5 (2015-05-15)
1.1.4 (2015-05-10)
1.1.3 (2015-04-06)
1.1.2 (2015-03-16)
1.1.1 (2015-03-12)
1.1.0 (2015-02-28)
1.0.11 (2015-02-28)
1.0.10 (2015-02-15)
- Revert "Use port for protocol when none is provided" (ed01032)
1.0.9 (2015-02-13)
1.0.8 (2015-02-06)
1.0.7 (2015-02-01)
1.0.6 (2015-01-29)
1.0.5 (2015-01-22)
1.0.4 (2015-01-22)
1.0.3 (2015-01-21)
1.0.2 (2015-01-19)
1.0.1 (2015-01-13)
1.0.0 (2015-01-13)
0.3.13 (2014-11-11)
0.3.12 (2014-08-31)
0.3.11 (2014-07-11)
0.3.10 (2014-06-21)
0.3.9 (2014-05-27)
0.3.8 (2014-03-19)
0.3.7 (2013-11-28)
0.3.6 (2013-11-28)
0.3.5 (2013-11-27)
0.3.3 (2013-09-30)
0.3.2 (2013-09-19)
0.3.1 (2013-08-22)
0.3.0 (2013-08-21)
- Revert "Adding a little buffer to cope with slow connections." (ff1e3ed)