Skip to content

chore: align d3 sub-packages with d3@7 peer dep#43

Merged
ekacnet merged 1 commit into
ekacnet:mainfrom
jtakkala:jari/d3-subpackages-v3
Mar 31, 2026
Merged

chore: align d3 sub-packages with d3@7 peer dep#43
ekacnet merged 1 commit into
ekacnet:mainfrom
jtakkala:jari/d3-subpackages-v3

Conversation

@jtakkala

Copy link
Copy Markdown

peerDependencies declares d3: ^7.0.0, but the direct d3-* sub-package deps are pinned to v2-era versions. d3@7 bundles v3/v4 of these, so consumers installing cubism-es + d3@7 get both copies in their dependency tree:

Package cubism-es declares d3@7 bundles
d3-axis, d3-dispatch, d3-fetch, d3-format, d3-selection, d3-time 2 3
d3-time-format 3 4

The source already uses the v3 event pattern ((event) => pointer(event, ...) — no d3.event anywhere), so this is pure dep alignment, no code changes. Lockfile net −115 lines.

92 tests pass on the upstream tree.

The peer dep declares d3@^7.0.0, but the direct d3-* sub-package
deps were pinned to v2-era versions. d3@7 bundles v3/v4 of these
packages, so consumers installing cubism-es + d3@7 get both copies
in their tree — duplicate bundle weight plus potential behavioral
divergence (d3-selection v2→v3 removed d3.event).

The source already uses the v3 event pattern ((event) => pointer(...)
with no d3.event access), so this is pure dep alignment.

  d3-axis, d3-dispatch, d3-fetch, d3-format, d3-selection, d3-time: 2 → 3
  d3-time-format: 3 → 4

These match the versions d3@7 itself depends on.
@codecov

codecov Bot commented Mar 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.54%. Comparing base (4037869) to head (07153ab).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #43   +/-   ##
=======================================
  Coverage   99.54%   99.54%           
=======================================
  Files          33       33           
  Lines         883      883           
  Branches      193      194    +1     
=======================================
  Hits          879      879           
  Misses          4        4           
Flag Coverage Δ
integration 99.54% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ekacnet ekacnet merged commit e69e892 into ekacnet:main Mar 31, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants