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

openwisp / netjsongraph.js / 21760645092
81%

Build:
DEFAULT BRANCH: master
Ran 06 Feb 2026 06:02PM UTC
Jobs 1
Files 9
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

06 Feb 2026 06:00PM UTC coverage: 81.1% (+0.4%) from 80.722%
21760645092

push

github

web-flow
[change] Reduced size, provided 2 builds: full/echarts-only #392

**Two Build Variants Available:**
- **Full Bundle** (`yarn build:full`): Complete library with ECharts and Leaflet bundled
- **ECharts-Only Bundle** (`yarn build:echarts-only`): Library without Leaflet (~144 KiB smaller)

**For Projects with Existing Leaflet:**
Projects already using Leaflet (e.g., via django-leaflet in OpenWISP)
can now use the ECharts-only variant. Leaflet must be available as
a global `L` object before loading NetJSONGraph.

**Other changes:**
- Removed large GraphGL example data files (~40MB)
- Added compression plugin for `.gz` and `.br` file generation
- `package.json` `main` field now points to
  `dist/netjsongraph.min.js` instead of `src/js/netjsongraph.js`
- Webpack Bundle Analyzer Support:
  new stats commands to analyze bundle composition
- Dynamic Leaflet Loading: The echarts-only bundle can dynamically load Leaflet from CDN for development/demo purposes

**Breaking changes**
- Leaflet is now a **peer dependency** (optional),
  projects using the ECharts-only bundle must provide Leaflet themselves

Closes #392

Signed-off-by: Sankalp <sankalp.nex@gmail.com>
Co-authored-by: Federico Capoano <f.capoano@openwisp.io>

755 of 994 branches covered (75.96%)

Branch coverage included in aggregate %.

20 of 28 new or added lines in 5 files covered. (71.43%)

1176 of 1387 relevant lines covered (84.79%)

16.68 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
93.28
1.54% src/js/netjsongraph.core.js
1
63.82
0.12% src/js/netjsongraph.geojson.js
2
78.26
src/js/leaflet-loader.js
4
66.4
1.3% src/js/netjsongraph.render.js
Jobs
ID Job ID Ran Files Coverage
1 21760645092.1 06 Feb 2026 06:02PM UTC 9
81.1
GitHub Action Run
Source Files on build 21760645092
  • Tree
  • List 9
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 82f6d59b on github
  • Prev Build on master (#21722551412)
  • Next Build on master (#21761255290)
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