Skip to content

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

Merged
subpathdev merged 2 commits into
mainfrom
renovate/github.com-eclipse-paho.mqtt.golang-1.x
Dec 5, 2026
Merged

subpathdev merged 2 commits into
mainfrom
renovate/github.com-eclipse-paho.mqtt.golang-1.x

Conversation

@renovate

@renovate renovate Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

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: eclipse-paho/paho.mqtt.golang@v1.5.1...v1.5.2


Configuration

📅 Schedule: (in timezone Europe/Berlin)

  • Branch creation
    • Between 12:00 AM and 07:59 AM, only on Saturday (* 0-7 * * 6)
  • Automerge
    • Between 09:00 AM and 06:59 PM (* 9-18 * * *)

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

♻ Rebasing: Whenever PR is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the heating-path label Dec 5, 2026
@renovate

renovate Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@subpathdev
subpathdev merged commit be4146d into main Dec 5, 2026
6 checks passed
@renovate
renovate Bot deleted the renovate/github.com-eclipse-paho.mqtt.golang-1.x branch December 5, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant