• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
You are now the owner of this repo.

decentraland / snapshots-fetcher
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: 10.0.0
DEFAULT BRANCH: main
Repo Added 16 Oct 2024 08:53AM UTC
Token xuxWKSdssQF5oQHCAyFnfU4K1Ysc64RLE regen
Build 44 Last
Files 16
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

LAST BUILD ON BRANCH 10.0.0
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • 10.0.0
  • chore/debug
  • chore/migrate-to-dcl-fetch-component
  • chore/oidc-and-node24-upgrades
  • chore/test
  • chore/upgrade-dependencies
  • chore/upgrade-dependencies-latest
  • chore/use-dcl-http-server
  • claude/intelligent-shirley
  • code-coverage
  • coverage
  • feat/metrics-optional
  • fix/prevent-logs-flooding
  • fix/security-perf-bug-hardening
  • main
  • refs/tags/9.2.0
  • refs/tags/9.2.1
  • refs/tags/9.2.2
  • refs/tags/9.2.3

01 Jul 2026 08:37PM UTC coverage: 86.56% (-0.5%) from 87.014%
28621060381

push

github

web-flow
refactor: migrate to @dcl/fetch-component and drain response bodies (#202)

* refactor: migrate off @well-known-components to @dcl fetch and test helpers

Replace @well-known-components/fetch-component with @dcl/fetch-component
and source IFetchComponent/RequestOptions/IHttpServerComponent from
@dcl/core-commons. The undici-backed fetcher has no `size` option and
pins sockets when response bodies go unconsumed, so fetchJson now:

- drains the body (response.body.cancel()) before throwing on non-2xx,
  releasing the socket back to the undici pool
- reads the body through a bounded reader that enforces the 50 MiB cap
  manually and cancels the stream if the limit is exceeded

Also migrate the test harness from @well-known-components/test-helpers to
@dcl/test-helpers (createRunner/defaultServerConfig), bump @dcl/http-server
to v2, drop node-fetch in favour of the native fetcher and global Headers,
and add jest/ts-jest/@types/jest explicitly (the old WKC test-helpers
bundled them transitively). The one sinon-style suite is converted to jest
spyComponents + toHaveBeenCalledTimes, since the new stub/spy components
return jest mocks. Bump the node engine to >=22.

* fix: correct the node-version guard and reject empty JSON bodies

The startup guard used process.version ("v22.14.0"), so
parseInt(version.split('.')[0]) parsed "v22" as NaN and the check never
fired; it also still referenced Node 16. Switch to process.versions.node
(no "v" prefix) and require >=22 to match the engines field.

fetchJson returned JSON.parse('') on an empty/null 2xx body, throwing a
bare SyntaxError. Reject an empty body explicitly, including the URL for
context, before parsing.

168 of 224 branches covered (75.0%)

Branch coverage included in aggregate %.

24 of 29 new or added lines in 4 files covered. (82.76%)

1 existing line in 1 file now uncovered.

695 of 773 relevant lines covered (89.91%)

15.97 hits per line

Relevant lines Covered
Build:
Build:
773 RELEVANT LINES 695 COVERED LINES
15.97 HITS PER LINE
Source Files on main
  • Tree
  • List 16
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
28621060381 10.0.0 refactor: migrate to @dcl/fetch-component and drain response bodies (#202) * refactor: migrate off @well-known-components to @dcl fetch and test helpers Replace @well-known-components/fetch-component with @dcl/fetch-component and source IFetchCo... push 02 Jul 2026 08:57PM UTC web-flow github
86.56
28546226573 main refactor: migrate to @dcl/fetch-component and drain response bodies (#202) * refactor: migrate off @well-known-components to @dcl fetch and test helpers Replace @well-known-components/fetch-component with @dcl/fetch-component and source IFetchCo... push 01 Jul 2026 08:38PM UTC web-flow github
86.56
28546000074 chore/migrate-to-dcl-fetch-component Merge db963976f into 714d3142a Pull #202 01 Jul 2026 08:34PM UTC web-flow github
86.56
28544186134 chore/migrate-to-dcl-fetch-component Merge c7f7353d6 into 714d3142a Pull #202 01 Jul 2026 08:01PM UTC web-flow github
86.71
28542347752 main chore: remove NPM_TOKEN and upgrade actions to Node 24 (#198) push 01 Jul 2026 07:27PM UTC web-flow github
87.01
28542143048 chore/oidc-and-node24-upgrades Merge 1ea985fca into 2d1ec185e Pull #198 01 Jul 2026 07:23PM UTC web-flow github
87.01
28542030299 chore/oidc-and-node24-upgrades Merge 3229f89dd into 2d1ec185e Pull #198 01 Jul 2026 07:22PM UTC web-flow github
87.01
27587095204 main chore(deps): upgrade dependencies to clear security advisories (#200) Re-resolve the lockfile to the latest versions allowed by the existing semver ranges (package.json unchanged, so the dependency contract is identical). This clears 246 of 248 a... push 16 Jun 2026 01:08AM UTC web-flow github
87.01
27570669483 chore/upgrade-dependencies-latest Merge 9a63f9f60 into de76c1b4b Pull #201 15 Jun 2026 07:24PM UTC web-flow github
86.97
27569676955 chore/upgrade-dependencies-latest Merge e8acee478 into de76c1b4b Pull #201 15 Jun 2026 07:06PM UTC web-flow github
87.01
See All Builds (44)

Badge your Repo: snapshots-fetcher

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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