Skip to content

Latest commit

 

History

History
1501 lines (594 loc) · 73.9 KB

CHANGELOG.md

File metadata and controls

1501 lines (594 loc) · 73.9 KB

Changelog

5.17.0 (2026-11-30)

Bug Fixes

Performance Improvements

5.16.1 (2026-10-14)

Bug Fixes

  • 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)

⚠ Behaviour change

  • a refused CONNACK now always closes the connection, and the client only retries when reconnectOnConnackError is true. Before, with the default false, the socket was left open and the client usually retried anyway once the broker closed it. Set reconnectOnConnackError: true to keep retrying after a refusal (GHSA-8phv-jwjm-93rr, #2064, #2072)

Bug Fixes

5.15.2 (2026-07-06)

Bug Fixes

5.15.1 (2026-03-24)

5.15.0 (2026-02-02)

Features

  • exported topic validation functions for external use (#2036) 396e02a, closes #2036

5.14.1 (2025-09-04)

Bug Fixes

5.14.0 (2025-07-30)

5.13.3 (2025-07-18)

5.13.2 (2025-07-07)

Bug Fixes

5.13.1 (2025-06-03)

5.13.0 (2025-05-09)

Features

  • add subscribeBatchSize option to split subscribe packets for AWS IoT Core (#1995) (6b719c8)

5.12.1 (2025-05-06)

Bug Fixes

  • add @typescript-eslint/consistent-type-imports rule and normalised all imports (640cd3b)

5.12.0 (2025-04-28)

Features

  • exports: add react-native entry point to package.json (#1988) (622d3d8)

5.11.1 (2025-04-23)

Bug Fixes

  • deps: removed unused 'reinterval' dependency and move two @type/ dependencies to devDependencies. (bb8c694)

5.11.0 (2025-04-10)

Bug Fixes

  • correct return type of validateTopis to include null (#1979) (935784a)

Features

5.10.4 (2025-02-26)

Bug Fixes

  • 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)

Bug Fixes

  • add option to reconnect if connack has an error code (#1948) (fa19586)

5.10.2 (2024-11-13)

Features

  • electron-test: move third hosted broker to self hosted broker (#1926) (1ca3f9e)

5.10.1 (2024-08-28)

Bug Fixes

5.10.0 (2024-08-14)

Bug Fixes

  • test: close all open connections in abstract_client test (#1917) (661c30a)
  • types: unsubscribe options type (#1921) (18a357c)

Features

  • add suback packet to subscribe callback (#1923) (93f4482)
  • add unsubscribe ack packet to the unsubscribe callback (#1922) (8bcf304)

5.9.1 (2024-08-01)

Bug Fixes

5.9.0 (2024-07-26)

Bug Fixes

Features

5.8.1 (2024-07-18)

Bug Fixes

5.8.0 (2024-07-05)

Features

5.7.3 (2024-06-26)

Bug Fixes

5.7.2 (2024-06-19)

Bug Fixes

  • security: bump ws@8.17.1 and other audit issues (#1891) (096baaa)

5.7.1 (2024-06-18)

Bug Fixes

5.7.0 (2024-05-28)

Features

  • add unixSocket option and +unix suffix support to protocol (#1874) (1004c78)

5.6.2 (2024-05-23)

Bug Fixes

5.6.1 (2024-05-17)

Bug Fixes

5.6.0 (2024-05-13)

Features

5.5.6 (2024-05-13)

Bug Fixes

5.5.5 (2024-04-30)

Bug Fixes

5.5.4 (2024-04-26)

Bug Fixes

5.5.3 (2024-04-19)

Bug Fixes

5.5.2 (2024-04-12)

Bug Fixes

  • react-native: error Cannot create URL for blob (#1840) (fc8fafb)

5.5.1 (2024-04-10)

Bug Fixes

  • browser: uncaught error when stream is destroyed with error (380f286), closes #1839

5.5.0 (2024-03-18)

Bug Fixes

  • browser: force closing client doesn't destroy websocket correctly (#1820) (f9b1204), closes #1817
  • expose mqttjs version on MqttClient.VERSION (#1821) (50776a7)

Features

  • timerVariant option to choose between native and worker timers (#1818) (547519d)

5.4.0 (2024-03-13)

Bug Fixes

Features

  • emit Keepalive timeout error and speed up tests using fake timers (#1798) (5d9bf10)

5.3.6 (2024-02-26)

Bug Fixes

5.3.5 (2024-01-23)

Bug Fixes

  • 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)

Bug Fixes

5.3.3 (2023-12-05)

Bug Fixes

5.3.2 (2023-12-04)

Bug Fixes

  • browser: use worker timers to prevent unexpected client close (#1753) (35448f3)
  • catch all socket errors (#1752) (a50e85c)
  • prop window is not defined in web worker (#1749) (6591404)

5.3.1 (2023-11-28)

Bug Fixes

  • improve environment detection in is-browser utility (#1744) (b094142)
  • typescript compile error (2655feb), closes #1746

5.3.0 (2023-11-18)

Features

  • browser: websockets improvements and bundle optimizations (#1732) (0928f85)

5.2.2 (2023-11-14)

Bug Fixes

5.2.1 (2023-11-10)

Bug Fixes

  • make import mqtt from 'mqtt' work in browsers (#1734) (80e29a9)

5.2.0 (2023-11-09)

Features

  • esm version dist/mqtt.esm.js and replace browserify with esbuild (#1731) (3d6c3be)

5.1.4 (2023-10-30)

Bug Fixes

5.1.3 (2023-10-20)

Bug Fixes

  • add all EventListener methods to TypedEventEmitter interface (#1718) (b96882a)

5.1.2 (2023-10-10)

Bug Fixes

5.1.1 (2023-10-09)

Bug Fixes

5.1.0 (2023-10-04)

Bug Fixes

Features

5.0.5 (2023-09-08)

Bug Fixes

  • publish/subscribe/unsubscribe types and missing types exports (#1688) (2df6af7)

5.0.4 (2023-08-31)

Bug Fixes

5.0.3 (2023-08-16)

Bug Fixes

  • browser detection (183b35a), closes #1671
  • close and end callbacks not executed in the WeChat mini program (#1664) (15ff607)

5.0.2 (2023-08-03)

Bug Fixes

  • 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)

Bug Fixes

  • resubscribe when no session present (#895) (#1650) (37acda6)
  • types: wrong incomingStore and outgoingStore (8133eba)

5.0.0 (2023-07-25)

Bug Fixes

  • 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 connect packet and infer types from mqtt-packet (#1646) (2a49ed3)

Features

5.0.0-beta.4 (2023-07-21)

5.0.0-beta.3 (2023-07-19)

Bug Fixes

BREAKING CHANGES

  • when creating an MqttClient instance new is now required

5.0.0-beta.2 (2023-07-03)

Bug Fixes

Features

5.0.0-beta.1 (2023-06-29)

Bug Fixes

  • _storeProcessing staying true after outStore got emptied (#1492) (f3f7be7)
  • consistency, used this instead of that (#1618) (800825b)
  • prevent store message on store when it's restored (#1255) (8d68c8c)

5.0.0-beta.0 (2023-06-27)

Bug Fixes

  • add missing export of UniqueMessageIdProvider and DefaultMessageIdProvider (#1572) (aa2e0ad)

  • IS_BROWSER check is now safer and more agnostic about the bundler (#1571) (b48b4b4)

  • test: topicAliasMaximum tests (#1612) (f1e5518)

  • topicAliasMaximum under must be under Connect properties (#1519) (3b2e1cb)

  • types: missing null declaration for error in subscription callback (#1589) (afc067b)

  • types: topic alias controls and password (#1509) (85c9341)

  • chore!: drop support for node 12-14 (#1615) (a2cbf61), closes #1615

BREAKING CHANGES

  • Dropped support for NodeJS 12-14

5.0.0-beta.4 (2023-07-21)

5.0.0-beta.3 (2023-07-19)

Bug Fixes

BREAKING CHANGES

  • when creating an MqttClient instance new is now required

5.0.0-beta.2 (2023-07-03)

Bug Fixes

Features

5.0.0-beta.1 (2023-06-29)

Bug Fixes

  • _storeProcessing staying true after outStore got emptied (#1492) (f3f7be7)
  • consistency, used this instead of that (#1618) (800825b)
  • prevent store message on store when it's restored (#1255) (8d68c8c)

5.0.0-beta.0 (2023-06-27)

Bug Fixes

  • add missing export of UniqueMessageIdProvider and DefaultMessageIdProvider (#1572) (aa2e0ad)

  • IS_BROWSER check is now safer and more agnostic about the bundler (#1571) (b48b4b4)

  • test: topicAliasMaximum tests (#1612) (f1e5518)

  • topicAliasMaximum under must be under Connect properties (#1519) (3b2e1cb)

  • types: missing null declaration for error in subscription callback (#1589) (afc067b)

  • types: topic alias controls and password (#1509) (85c9341)

  • chore!: drop support for node 12-14 (#1615) (a2cbf61), closes #1615

BREAKING CHANGES

  • Dropped support for NodeJS 12-14

5.0.0-beta.3 (2023-07-19)

Bug Fixes

BREAKING CHANGES

  • when creating an MqttClient instance new is now required

5.0.0-beta.2 (2023-07-03)

Bug Fixes

Features

5.0.0-beta.1 (2023-06-29)

Bug Fixes

  • _storeProcessing staying true after outStore got emptied (#1492) (f3f7be7)
  • consistency, used this instead of that (#1618) (800825b)
  • prevent store message on store when it's restored (#1255) (8d68c8c)

5.0.0-beta.0 (2023-06-27)

Bug Fixes

  • add missing export of UniqueMessageIdProvider and DefaultMessageIdProvider (#1572) (aa2e0ad)

  • IS_BROWSER check is now safer and more agnostic about the bundler (#1571) (b48b4b4)

  • test: topicAliasMaximum tests (#1612) (f1e5518)

  • topicAliasMaximum under must be under Connect properties (#1519) (3b2e1cb)

  • types: missing null declaration for error in subscription callback (#1589) (afc067b)

  • types: topic alias controls and password (#1509) (85c9341)

  • chore!: drop support for node 12-14 (#1615) (a2cbf61), closes #1615

BREAKING CHANGES

  • Dropped support for NodeJS 12-14

5.0.0-beta.2 (2023-07-03)

Bug Fixes

Features

5.0.0-beta.1 (2023-06-29)

Bug Fixes

  • _storeProcessing staying true after outStore got emptied (#1492) (f3f7be7)
  • consistency, used this instead of that (#1618) (800825b)
  • prevent store message on store when it's restored (#1255) (8d68c8c)

5.0.0-beta.0 (2023-06-27)

Bug Fixes

  • add missing export of UniqueMessageIdProvider and DefaultMessageIdProvider (#1572) (aa2e0ad)

  • IS_BROWSER check is now safer and more agnostic about the bundler (#1571) (b48b4b4)

  • test: topicAliasMaximum tests (#1612) (f1e5518)

  • topicAliasMaximum under must be under Connect properties (#1519) (3b2e1cb)

  • types: missing null declaration for error in subscription callback (#1589) (afc067b)

  • types: topic alias controls and password (#1509) (85c9341)

  • chore!: drop support for node 12-14 (#1615) (a2cbf61), closes #1615

BREAKING CHANGES

  • Dropped support for NodeJS 12-14

5.0.0-beta.1 (2023-06-29)

Bug Fixes

  • _storeProcessing staying true after outStore got emptied (#1492) (f3f7be7)
  • consistency, used this instead of that (#1618) (800825b)
  • prevent store message on store when it's restored (#1255) (8d68c8c)

5.0.0-beta.0 (2023-06-27)

Bug Fixes

  • add missing export of UniqueMessageIdProvider and DefaultMessageIdProvider (#1572) (aa2e0ad)

  • IS_BROWSER check is now safer and more agnostic about the bundler (#1571) (b48b4b4)

  • test: topicAliasMaximum tests (#1612) (f1e5518)

  • topicAliasMaximum under must be under Connect properties (#1519) (3b2e1cb)

  • types: missing null declaration for error in subscription callback (#1589) (afc067b)

  • types: topic alias controls and password (#1509) (85c9341)

  • chore!: drop support for node 12-14 (#1615) (a2cbf61), closes #1615

BREAKING CHANGES

  • Dropped support for NodeJS 12-14

4.3.7 (2022-03-14)

Bug Fixes

  • fix regression from #1401 and allow CI test failures to break gitthub workflow (#1443) (accd78e)

4.3.6 (2022-02-17)

Bug Fixes

  • buffer is not defined in browser (#1420) (f5ab1b5)
  • types: connect function proper overloads for its parameters (#1416) (28c4040)

4.3.5 (2022-02-07)

Bug Fixes

4.3.4 (2022-01-06)

Bug Fixes

  • migrate LruMap from collections to lru-cache. (#1396) (5c67037)

4.3.3 (2022-01-05)

Bug Fixes

  • remove collections.js dependency from number-allocator. (#1394) (ee75c32), closes #1392

4.3.2 (2021-12-29)

Bug Fixes

  • dependency: Updated collections.js related package version. (#1386) (df89a2e)

4.3.1 (2021-12-24)

Bug Fixes

  • dependencies: remove babel-eslint and update snazzy (#1383) (66d43d4)

4.3.0 (2021-12-22)

Bug Fixes

Features

Reverts

4.2.5 (2020-11-12)

Bug Fixes

  • auth opts: Default to null for false-y values (#1197) (6a0e50a)

4.2.4 (2020-10-29)

Bug Fixes

4.2.3 (2020-10-27)

Bug Fixes

  • secure: do not override password and username (#1190) (298dbb2)

4.2.2 (2020-10-27)

Bug Fixes

4.2.1 (2020-08-24)

Bug Fixes

4.2.0 (2020-08-12)

Bug Fixes

  • 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)

Features

  • 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)

Reverts

  • Revert "docs: adding client flowchart" (ef2d590)

4.0.0 (2020-04-27)

Bug Fixes

Features

3.0.0 (2019-05-27)

Bug Fixes

  • delete completed incoming QOS 2 messages (#893) (9a39faa)

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)

Reverts

  • 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)

Reverts

  • Revert "Adding a little buffer to cope with slow connections." (ff1e3ed)

0.2.11 (2013-07-20)

0.2.10 (2013-06-12)

0.2.9 (2013-05-29)

0.2.8 (2013-05-27)

0.2.5 (2013-03-23)

0.2.4 (2013-03-07)

0.2.3 (2013-03-07)

0.2.2 (2013-03-06)

0.2.0 (2013-02-28)

0.1.8 (2013-02-12)

0.1.3 (2012-02-06)

0.1.2 (2012-01-23)

0.1.1 (2012-01-18)

0.1.0 (2012-01-17)