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

digidem / rpc-reflector / 6228807531 / 2
98%
main: 98%

Build:
DEFAULT BRANCH: main
Ran 18 Sep 2023 10:44PM UTC
Files 11
Run time 0s
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

18 Sep 2023 10:44PM UTC coverage: 93.405% (+0.1%) from 93.297%
6228807531.2

push

github

web-flow
fix: always return same object from client prop (#18)

* fix: Can await returned client

calling `await client` was throwing an error. The returned client should
not be thenable, and should just return the same client

* fix: always return same object from client prop

There was a bug where every time you access a client property e.g.
`client.namespace` it would return a new Proxy object, which would lead
to unexpected behaviour when accessing a client object, e.g.
`client.namespace === client.namespace` would be false. It would also
cause a lot of garbage collection slowing things down (all those Proxy
objects need to be garbage collected).

This fix caches all the sub clients that are created when you access
properties. This could be seen as a memory leak because every time you
access a client property, the value is cached, but this is effectively
lazily building the API on the server side - as long as you don't call
huge numbers of non-existent properties on the client it won't take much
more memory than the server-side API.

196 of 219 branches covered (0.0%)

Branch coverage included in aggregate %.

328 of 342 relevant lines covered (95.91%)

215.86 hits per line

Source Files on job 6228807531.2
  • Tree
  • List 0
  • Changed 4
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 6228807531
  • 8517f2f4 on github
  • Prev Job for on main (#6225771312.1)
  • Next Job for on main (#6233270959.1)
  • Delete
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