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

chartjs / chartjs-plugin-zoom / 35122569761
89%

Build:
DEFAULT BRANCH: master
Ran 16 Sep 2026 04:33PM UTC
Jobs 5
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

16 Sep 2026 04:32PM UTC coverage: 88.88% (-0.2%) from 89.117%
35122569761

push

github

web-flow
fix: publish the type declarations and fix the ESM export path (#968)

Since the TypeScript conversion in #907 the package has shipped no types at
all, and could not be imported from ESM. Both are still unreleased: v2.2.0
predates that commit.

"types" pointed at dist/index.d.ts, but `tsc --emitDeclarationOnly` writes to
dist/src/, because rootDir has to stay at the repo root for src/plugin.ts to
import the version out of package.json. The "dist/*.d.ts" entry in "files"
does not match a subdirectory, so nothing was packed. Point both at dist/src/
instead.

"exports.import" asked for dist/chartjs-plugin-zoom-esm.js. Rollup writes
chartjs-plugin-zoom.esm.js, so `import 'chartjs-plugin-zoom'` failed with
ERR_MODULE_NOT_FOUND.

The specs live beside the sources, so declaration emit moves to
tsconfig.build.json, which excludes them; tsconfig.json still includes them
and `npm run typecheck` keeps covering them.

Verified by installing the packed tarball into a throwaway project: `tsc`
resolves the types and `import()` returns the plugin, both of which fail with
the tarball built from master.

This publishes the module layout as tsc emits it, so core, gestures, handlers,
state and the rest land in the tarball as separate declarations. A follow-up
rolls them into a single dist/index.d.ts; keeping that separate leaves this
commit to the two outright bugs.

`require('chartjs-plugin-zoom')` still returns {} either way, because "type":
"module" makes node read the UMD bundle as ESM. That needs a separate CJS
output and is left alone here.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

316 of 401 branches covered (78.8%)

Branch coverage included in aggregate %.

811 of 867 relevant lines covered (93.54%)

1400.58 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
81.08
-4.05% src/plugin.ts
Jobs
ID Job ID Ran Files Coverage
1 windows-latest-chrome - 35122569761.1 16 Sep 2026 04:34PM UTC 9
87.92
GitHub Action Run
2 unit - 35122569761.2 16 Sep 2026 04:33PM UTC 3
57.43
GitHub Action Run
3 windows-latest-firefox - 35122569761.3 16 Sep 2026 04:34PM UTC 9
88.3
GitHub Action Run
4 ubuntu-latest-chrome - 35122569761.4 16 Sep 2026 04:33PM UTC 9
88.3
GitHub Action Run
5 ubuntu-latest-firefox - 35122569761.5 16 Sep 2026 04:33PM UTC 9
88.3
GitHub Action Run
Source Files on build 35122569761
  • Tree
  • List 9
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #35122569761
  • 85a2c8c1 on github
  • Prev Build on master (#35090025141)
  • Next Build on master (#35189342292)
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