• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dunglas / mercure / 29919598305
88%
master: 93%

Build:
Build:
LAST BUILD BRANCH: feat/derive-public-url
DEFAULT BRANCH: master
Ran 22 Jul 2026 12:28PM UTC
Jobs 1
Files 37
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Jul 2026 12:26PM UTC coverage: 85.539% (-0.2%) from 85.697%
29919598305

push

github

web-flow
feat!: carry subscription API cursor in the rel="mercure" Link header (#1307)

* feat!: carry subscription API cursor in the rel="mercure" Link header

The reconciliation cursor was exposed two ways: a last-event-id Link
attribute at discovery, and a last_event_id JSON body property on the
subscription API. Unify on the Link header the API already advertises, so
a single-subscription response body is exactly the subscription event
document. The hub now also exposes the Link header via CORS so cross-origin
subscribers can read it.

BREAKING CHANGE: the subscription API no longer returns the last_event_id
JSON property; read the last-event-id attribute of the rel="mercure" Link
response header instead.

* feat: advertise SSE type and content-type on the rel="mercure" Link header

Discovery gains an optional `type` attribute naming the SSE event type
updates will carry, so a native EventSource client can register the right
listener at bootstrap instead of silently dropping named events. Keep
`content-type` (it fills the gap that SSE data fields carry no content type,
avoiding sniffing). Both are single-valued hints and MUST be omitted for
heterogeneous streams; routing stays governed by topic matchers.

The hub now also sets these on the subscription API Link header, where the
stream is homogeneous by definition (reserved "mercure" type, JSON body).

* docs: refine subscription API and discovery wording for RFC style

* fix: drop unused initSubscription return and wrap long JS line for CI

* docs: inline the single-item last-event-id bullet as prose

26 of 35 new or added lines in 3 files covered. (74.29%)

2786 of 3257 relevant lines covered (85.54%)

113.34 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
76.11
-2.55% subscription.go
Jobs
ID Job ID Ran Files Coverage
1 0 - 29919598305.1 22 Jul 2026 12:28PM UTC 37
85.54
GitHub Action Run
Source Files on build 29919598305
  • Tree
  • List 37
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a17467a2 on github
  • Prev Build on main (#29907875749)
  • Next Build on main (#29920766534)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc