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

nats-io / nats.js / 14579522670
86%

Build:
DEFAULT BRANCH: main
Ran 21 Apr 2025 07:03PM UTC
Jobs 7
Files 64
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

21 Apr 2025 07:03PM UTC coverage: 84.545% (-0.08%) from 84.628%
14579522670

push

github

web-flow
feat(js): expose pedantic option on consumer create (#275)

* Refactor ConsumerAPI to separate add and update logic

Inadvertently exposed ConsumerApiOptions, which at this time should only expose the `pedantic` option. Refactored the type to be backward compatible in case someone is already using it even though it has not not been released.

Introduced `addUpdate` method to handle shared logic for consumer creation and updates, while keeping `add` and `update` methods for specific actions. This enhances code clarity and maintains backward compatibility by adapting argument handling in the `add` method.

Signed-off-by: Alberto Ricart <alberto@synadia.com>

* Update types to use ConsumerCreateOptions in consumer methods

Replaced ConsumerApiOptions with ConsumerCreateOptions in the consumer addition method for better specificity and alignment. Updated related imports across the module to support the change. This ensures improved type handling and consistency in consumer creation workflows.

Signed-off-by: Alberto Ricart <alberto@synadia.com>

---------

Signed-off-by: Alberto Ricart <alberto@synadia.com>

2385 of 3241 branches covered (73.59%)

Branch coverage included in aggregate %.

13 of 21 new or added lines in 1 file covered. (61.9%)

5 existing lines in 1 file now uncovered.

10279 of 11738 relevant lines covered (87.57%)

761578.92 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
37.38
0.35% jetstream/src/jsmconsumer_api.ts

Uncovered Existing Lines

Lines Coverage ∆ File
5
84.4
-0.93% transport-node/lib/node_transport.js
Subprojects
ID Flag name Job ID Ran Files Coverage
1 transport-deno 14579522670.1 21 Apr 2025 07:03PM UTC 34
9.4
GitHub Action Run
2 services 14579522670.2 21 Apr 2025 07:04PM UTC 39
51.37
GitHub Action Run
3 obj 14579522670.3 21 Apr 2025 07:04PM UTC 52
43.22
GitHub Action Run
4 transport-node 14579522670.4 21 Apr 2025 07:04PM UTC 3
85.49
GitHub Action Run
5 kv 14579522670.5 21 Apr 2025 07:04PM UTC 53
46.51
GitHub Action Run
6 jetstream 14579522670.6 21 Apr 2025 07:05PM UTC 49
67.27
GitHub Action Run
7 core 14579522670.7 21 Apr 2025 07:05PM UTC 34
89.46
GitHub Action Run
Source Files on build 14579522670
  • Tree
  • List 64
  • Changed 36
  • Source Changed 5
  • Coverage Changed 35
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #14579522670
  • 32d2dc5e on github
  • Prev Build on main (#14498280246)
  • Next Build on main (#14579573686)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc