fix(deps): update module github.com/eclipse/paho.mqtt.golang to v1.5.2 #181

Open
Sebi wants to merge 1 commits from renovate/github.com-eclipse-paho.mqtt.golang-1.x into main
pull from: renovate/github.com-eclipse-paho.mqtt.golang-1.x
Owner

This PR contains the following updates:

Package Change Age Confidence
github.com/eclipse/paho.mqtt.golang v1.5.1 → v1.5.2 age confidence

Release Notes

eclipse/paho.mqtt.golang (github.com/eclipse/paho.mqtt.golang)

v1.5.2

Compare Source

This is a minor release incorporating changes since Sep 2025. v1.5.2 fixes a reconnect race and a case where a QoS 0 publish token could wait indefinitely. It also adds per-client logging and an optional size limit for incoming packets.

Thanks to all contributors!

Upgrade notes

Most users should not need to take any action (other than ensuring the use of a recent version of Go, i.e. 1.25+). If you use some of the more advanced features then the following may be needed:

  • Go 1.25.0 or later is required, up from Go 1.24.0 in v1.5.1.
  • Potentially breaking change. mqtt.Client now includes DeleteRoute(topic string). Applications using the client returned by mqtt.NewClient need no changes for this addition. Custom implementations and mocks may need to add the method. DeleteRoute removes a local message handler (without sending an UNSUBSCRIBE to the broker)
  • For users of the packets package, Write now leaves FixedHeader.RemainingLength untouched (changing this led to race conditions). Reading a packet still populates the field from the wire.
Logging and packet handling
  • ClientOptions.SetLogger accepts a per-client *slog.Logger. Logging remains silent by default. If the application configures package-level loggers, they continue to receive output. Both constructing ClientOptions directly and calling SetLogger(nil) are safe.
  • ClientOptions.SetMaxIncomingPacketSize limits the MQTT Remaining Length the client will accept from a broker. The client rejects oversized packets before allocating the body. The default of 0 leaves this limit disabled.
  • Packet validation now rejects malformed lengths, truncated fields, invalid MQTT UTF-8 strings, and SUBACK responses with invalid return codes or a result count that differs from the number of requested subscriptions.
Reliability fixes
  • Fixed a race when resending stored packets after reconnect. If a QoS 0 publish is dropped while the connection is unavailable, its token now completes so callers can stop waiting.
  • A ConnectTimeout of zero now disables the connection timeout as intended.
  • Local topic filters beginning with # or + now exclude $-prefixed topics such as $SYS.
  • FileStore checks its directory when it opens and fails immediately if it cannot write, read, or remove files there. If an individual stored message later cannot be opened, the store skips it and attempts to archive it.

What's Changed

New Contributors

Full Changelog: https://github.com/eclipse-paho/paho.mqtt.golang/compare/v1.5.1...v1.5.2


Configuration

📅 Schedule: (in timezone Europe/Berlin)

  • Branch creation
    • "before 7am on monday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [github.com/eclipse/paho.mqtt.golang](https://github.com/eclipse/paho.mqtt.golang) | `v1.5.1` → `v1.5.2` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2feclipse%2fpaho.mqtt.golang/v1.5.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2feclipse%2fpaho.mqtt.golang/v1.5.1/v1.5.2?slim=true) | --- ### Release Notes <details> <summary>eclipse/paho.mqtt.golang (github.com/eclipse/paho.mqtt.golang)</summary> ### [`v1.5.2`](https://github.com/eclipse-paho/paho.mqtt.golang/releases/tag/v1.5.2) [Compare Source](https://github.com/eclipse/paho.mqtt.golang/compare/v1.5.1...v1.5.2) This is a minor release incorporating changes since Sep 2025. v1.5.2 fixes a reconnect race and a case where a QoS 0 publish token could wait indefinitely. It also adds per-client logging and an optional size limit for incoming packets. Thanks to all contributors! ##### Upgrade notes Most users should not need to take any action (other than ensuring the use of a recent version of Go, i.e. 1.25+). If you use some of the more advanced features then the following may be needed: - **Go 1.25.0 or later is required**, up from Go 1.24.0 in v1.5.1. - **Potentially breaking change.** `mqtt.Client` now includes `DeleteRoute(topic string)`. Applications using the client returned by `mqtt.NewClient` need no changes for this addition. Custom implementations and mocks may need to add the method. `DeleteRoute` removes a local message handler (without sending an `UNSUBSCRIBE` to the broker) - For users of the `packets` package, `Write` now leaves `FixedHeader.RemainingLength` untouched (changing this led to race conditions). Reading a packet still populates the field from the wire. ##### Logging and packet handling - `ClientOptions.SetLogger` accepts a per-client `*slog.Logger`. **Logging remains silent by default.** If the application configures package-level loggers, they continue to receive output. Both constructing `ClientOptions` directly and calling `SetLogger(nil)` are safe. - `ClientOptions.SetMaxIncomingPacketSize` limits the MQTT Remaining Length the client will accept from a broker. The client rejects oversized packets before allocating the body. The default of `0` leaves this limit disabled. - Packet validation now rejects malformed lengths, truncated fields, invalid MQTT UTF-8 strings, and `SUBACK` responses with invalid return codes or a result count that differs from the number of requested subscriptions. ##### Reliability fixes - Fixed a race when resending stored packets after reconnect. If a QoS 0 publish is dropped while the connection is unavailable, its token now completes so callers can stop waiting. - A `ConnectTimeout` of zero now disables the connection timeout as intended. - Local topic filters beginning with `#` or `+` now exclude `$`-prefixed topics such as `$SYS`. - `FileStore` checks its directory when it opens and fails immediately if it cannot write, read, or remove files there. If an individual stored message later cannot be opened, the store skips it and attempts to archive it. #### What's Changed - Documentation improvements by [@&#8203;MattBrittan](https://github.com/MattBrittan) in [eclipse-paho#736](https://github.com/eclipse-paho/paho.mqtt.golang/pull/736) - feat: add client based logger by [@&#8203;kenkalang](https://github.com/kenkalang) in [eclipse-paho#718](https://github.com/eclipse-paho/paho.mqtt.golang/pull/718) - fix: remove unnecessary if statement by [@&#8203;mojixcoder](https://github.com/mojixcoder) in [eclipse-paho#735](https://github.com/eclipse-paho/paho.mqtt.golang/pull/735) - Check for invalid "Remaining Length" when encoding/decoding by [@&#8203;MattBrittan](https://github.com/MattBrittan) in [eclipse-paho#737](https://github.com/eclipse-paho/paho.mqtt.golang/pull/737) - Bump github.com/eclipse/paho.mqtt.golang from 1.5.0 to 1.5.1 in /cmd/docker/subscriber by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [eclipse-paho#738](https://github.com/eclipse-paho/paho.mqtt.golang/pull/738) - Update dependencies (including self in examples) by [@&#8203;MattBrittan](https://github.com/MattBrittan) in [eclipse-paho#744](https://github.com/eclipse-paho/paho.mqtt.golang/pull/744) - options.ConnectTimeout = 0 should never timeout by [@&#8203;MattBrittan](https://github.com/MattBrittan) in [eclipse-paho#745](https://github.com/eclipse-paho/paho.mqtt.golang/pull/745) - Enhance Topic Filter starting with a wildcard [#&#8203;728](https://github.com/eclipse/paho.mqtt.golang/issues/728) by [@&#8203;tomatod](https://github.com/tomatod) in [eclipse-paho#740](https://github.com/eclipse-paho/paho.mqtt.golang/pull/740) - Suppress spurious "BUG BUG BUG reconnection function is nil" log when AutoReconnect disabled by [@&#8203;ultramcu](https://github.com/ultramcu) in [eclipse-paho#750](https://github.com/eclipse-paho/paho.mqtt.golang/pull/750) - filestore: fail fast at startup and stop panicking on unreadable files by [@&#8203;ultramcu](https://github.com/ultramcu) in [eclipse-paho#751](https://github.com/eclipse-paho/paho.mqtt.golang/pull/751) - client: add public DeleteRoute to remove a route added with AddRoute by [@&#8203;ultramcu](https://github.com/ultramcu) in [eclipse-paho#752](https://github.com/eclipse-paho/paho.mqtt.golang/pull/752) - Grammar/Spelling by [@&#8203;MattBrittan](https://github.com/MattBrittan) in [eclipse-paho#753](https://github.com/eclipse-paho/paho.mqtt.golang/pull/753) - Bump golang.org/x/net from 0.48.0 to 0.55.0 in /cmd/docker/publisher by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [eclipse-paho#757](https://github.com/eclipse-paho/paho.mqtt.golang/pull/757) - Bump golang.org/x/net from 0.48.0 to 0.55.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [eclipse-paho#756](https://github.com/eclipse-paho/paho.mqtt.golang/pull/756) - Bump golang.org/x/net from 0.48.0 to 0.55.0 in /cmd/docker/subscriber by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [eclipse-paho#755](https://github.com/eclipse-paho/paho.mqtt.golang/pull/755) - Check that number of SUBACK return codes is as expected. by [@&#8203;MattBrittan](https://github.com/MattBrittan) in [eclipse-paho#758](https://github.com/eclipse-paho/paho.mqtt.golang/pull/758) - Limit incoming MQTT packet allocations by [@&#8203;tabish-malik13](https://github.com/tabish-malik13) in [eclipse-paho#759](https://github.com/eclipse-paho/paho.mqtt.golang/pull/759) - Reject invalid SUBACK return codes by [@&#8203;ajavanma](https://github.com/ajavanma) in [eclipse-paho#797](https://github.com/eclipse-paho/paho.mqtt.golang/pull/797) - Reject truncated fields in shared packet decoders by [@&#8203;ajavanma](https://github.com/ajavanma) in [eclipse-paho#795](https://github.com/eclipse-paho/paho.mqtt.golang/pull/795) - Fix reconnect packet race and make serialization read-only by [@&#8203;MattBrittan](https://github.com/MattBrittan) in [eclipse-paho#800](https://github.com/eclipse-paho/paho.mqtt.golang/pull/800) - Complete QoS 0 publish tokens when not connected by [@&#8203;anyingiit](https://github.com/anyingiit) in [eclipse-paho#801](https://github.com/eclipse-paho/paho.mqtt.golang/pull/801) - Reject packet bodies whose length does not match the type by [@&#8203;NUAAwqy](https://github.com/NUAAwqy) in [eclipse-paho#803](https://github.com/eclipse-paho/paho.mqtt.golang/pull/803) - Validate MQTT UTF-8 string fields consistently when encoding and decoding by [@&#8203;NUAAwqy](https://github.com/NUAAwqy) in [eclipse-paho#804](https://github.com/eclipse-paho/paho.mqtt.golang/pull/804) - Handle nil loggers in NewClient by [@&#8203;MattBrittan](https://github.com/MattBrittan) in [eclipse-paho#806](https://github.com/eclipse-paho/paho.mqtt.golang/pull/806) #### New Contributors - [@&#8203;kenkalang](https://github.com/kenkalang) made their first contribution in [eclipse-paho#718](https://github.com/eclipse-paho/paho.mqtt.golang/pull/718) - [@&#8203;mojixcoder](https://github.com/mojixcoder) made their first contribution in [eclipse-paho#735](https://github.com/eclipse-paho/paho.mqtt.golang/pull/735) - [@&#8203;dependabot](https://github.com/dependabot)\[bot] made their first contribution in [eclipse-paho#738](https://github.com/eclipse-paho/paho.mqtt.golang/pull/738) - [@&#8203;ultramcu](https://github.com/ultramcu) made their first contribution in [eclipse-paho#750](https://github.com/eclipse-paho/paho.mqtt.golang/pull/750) - [@&#8203;tabish-malik13](https://github.com/tabish-malik13) made their first contribution in [eclipse-paho#759](https://github.com/eclipse-paho/paho.mqtt.golang/pull/759) - [@&#8203;ajavanma](https://github.com/ajavanma) made their first contribution in [eclipse-paho#797](https://github.com/eclipse-paho/paho.mqtt.golang/pull/797) - [@&#8203;anyingiit](https://github.com/anyingiit) made their first contribution in [eclipse-paho#801](https://github.com/eclipse-paho/paho.mqtt.golang/pull/801) - [@&#8203;NUAAwqy](https://github.com/NUAAwqy) made their first contribution in [eclipse-paho#803](https://github.com/eclipse-paho/paho.mqtt.golang/pull/803) **Full Changelog**: <https://github.com/eclipse-paho/paho.mqtt.golang/compare/v1.5.1...v1.5.2> </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/Berlin) - Branch creation - "before 7am on monday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMTAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjIxMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
Sebi added the dependencies label 2026-11-30 00:13:23 +00:00
Sebi added 1 commit 2026-11-30 00:13:26 +00:00
fix(deps): update module github.com/eclipse/paho.mqtt.golang to v1.5.2
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
renovate/stability-days Updates have met minimum release age requirement
ci / lint (pull_request) Successful in 11m17s
ci / test (pull_request) Successful in 12m58s
ci / build (pull_request) Successful in 18m39s
ci / image (pull_request) Successful in 5m29s
8cf0507b60
All checks were successful
ci / lint (push) Skipped
Required
ci / test (push) Skipped
Required
ci / build (push) Skipped
Required
ci / image (push) Skipped
Required
renovate/stability-days Updates have met minimum release age requirement
ci / lint (pull_request) Successful in 11m17s
Required
Details
ci / test (pull_request) Successful in 12m58s
Required
Details
ci / build (pull_request) Successful in 18m39s
Required
Details
ci / image (pull_request) Successful in 5m29s
Required
Details
You are not authorized to merge this pull request.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/github.com-eclipse-paho.mqtt.golang-1.x:renovate/github.com-eclipse-paho.mqtt.golang-1.x
git checkout renovate/github.com-eclipse-paho.mqtt.golang-1.x
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#181