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

Foo-Foo-MQ / foo-foo-mq / 46166774508
92%
master: 89%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 28 Nov 2026 04:45PM UTC
Jobs 3
Files 60
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

28 Nov 2026 04:44PM UTC coverage: 90.966% (+0.2%) from 90.728%
46166774508

push

github

web-flow
fix(serializers.js): match content types with parameters or different case (#77)

* fix(serializers.js): match content types with parameters or different case

Serializers were looked up by exact content type string, so messages
with a valid content type such as `application/json; charset=UTF-8`,
`application/json;` or `Application/JSON` (common from other AMQP
clients) found no serializer and were rejected without requeue, i.e.
silently dropped unless a dead-letter exchange was configured. The same
lookup made publishing or replying with such a content type fail.

All serializer lookups (consume, reply, publish, returned messages) now
go through `getSerializer`, which prefers an exact match, so serializers
registered for a full content type still win, then falls back to the
bare media type with parameters removed and lowercased. Lookups also
ignore inherited object properties.

Closes #38

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(serializers.js): move the default serializers out of index.js

The built-in `application/json`, `application/octet-stream` and
`text/plain` serializers now live next to the lookup logic in
`src/amqp/serializers.js`, behind `createDefaultSerializers()`.
`index.js` calls it once at load, so there is still a single shared,
process-wide registry that `addSerializer` adds to; behavior is
unchanged and the serializer code is moved verbatim.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(serializers.js): use Object.hasOwn for serializer lookup

Equivalent to Object.prototype.hasOwnProperty.call and available on all
supported Node versions (>=20).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

718 of 889 branches covered (80.76%)

Branch coverage included in aggregate %.

119 of 123 new or added lines in 7 files covered. (96.75%)

4196 of 4513 relevant lines covered (92.98%)

195.93 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
83.33
src/amqp/serializers.js
1
98.08
spec/integration/contentTypeParameters.spec.js
Jobs
ID Job ID Ran Files Coverage
1 node-22.x - 46166774508.1 28 Nov 2026 04:46PM UTC 60
90.95
GitHub Action Run
2 node-20.x - 46166774508.2 28 Nov 2026 04:45PM UTC 60
90.95
GitHub Action Run
3 node-24.x - 46166774508.3 28 Nov 2026 04:47PM UTC 60
90.93
GitHub Action Run
Source Files on build 46166774508
  • Tree
  • List 60
  • Changed 6
  • Source Changed 4
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #46166774508
  • 1c6586f6 on github
  • Prev Build on main (#46160136044)
  • Next Build on main (#46166851820)
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