Repository navigation
Community
Mercure 1.1.8 makes publishing faster and cheaper. Token validation is now almost twice as fast, which raised maximum publish throughput by 18% in our Linux benchmark. Subscribers also get their updates with fewer allocations and fewer write deadlines.
⚖️ You Can Now Embed the Hub as a Go Library in Proprietary Applications
Mercure stays AGPL-3.0, with a new exception: the Mercure Library Exception. Applications talking to a hub over HTTP could already keep their own license. Until now, embedding the hub in another program put that program under the AGPL. by @dunglas in #1505
- Allowed: proprietary applications may import
github.com/dunglas/mercureandgithub.com/dunglas/mercure/caddyand embed the hub in their own binaries or services. Your code keeps its own license. An unmodified Mercure only needs a notice naming the module, its version and a link to its source. - Still copyleft: changes to Mercure itself stay under the AGPL, including for network use.
- Not covered: hub products, whose primary function is letting third parties publish or receive updates for their own applications (hub distributions, hosted hub services), and transports. These need full AGPL compliance or a commercial license. Serving the applications you develop is fine.
Read Embedding the hub in your application for the details.
⚡ Performance Improvements
- Publish: tokens are verified in a single parse instead of two. Validating a publisher token takes 44% less time (8.2 to 4.6 µs) with 42% fewer allocations. In our Linux benchmark, token validation dropped from 30% to 22% of the hub's CPU at maximum publish throughput, and throughput rose by 18%. by @dunglas in #1503
- Subscribe: each update is serialized once and shared by all subscribers, and queued updates are written in chunks of up to 4 KiB, so the write deadlines are set once per chunk instead of once per update. A Bolt history replay to 10,000 subscribers uses 18% less CPU. by @dunglas in #1502
📦 Dependencies
- Remove go-jose v3, flagged by CVE scanners (CVE-2026-116585, CVE-2026-116586, CVE-2026-116587). Only Caddy's internal PKI pulled it in; the hub never used it to validate tokens. by @dunglas in #1508
- Update dependencies. by @dunglas in #1507
Enterprise
Mercure Enterprise 1.1.8 ships every improvement above. Its binary and image no longer contain go-jose v3, so container scanners stop reporting CVE-2026-116585, CVE-2026-116586 and CVE-2026-116587.
Mercure Cloud hubs are upgraded automatically: use Mercure Cloud to get improvements like these without managing upgrades yourself.
Enterprise releases ship under the Enterprise SLA, with prioritized security patches and direct support. Contact contact@mercure.rocks for the managed Cloud offering, on-premise licenses, custom development, consulting, and training.
Full Changelog: v1.1.7...v1.1.8