Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui-speedspacechart: use specific d3 sub-packages #669

Merged
merged 3 commits into from
Oct 25, 2024
Merged

Conversation

emersion
Copy link
Member

@emersion emersion commented Oct 25, 2024

See individual commits.

Instead of importing all of d3, only import the two sub-packages
that we actually need: d3-selection and d3-zoom.

This removes 28 unused d3 sub-packages and all of their dependencies.

We were getting it from @types/d3 by chance. Since we use chroma-js
directly, let's add an explicit dependency.

Signed-off-by: Simon Ser <contact@emersion.fr>
`'' || '00'` always evaluates to `'00'`.

Signed-off-by: Simon Ser <contact@emersion.fr>
Instead of importing all of d3, only import the two sub-packages
that we actually need: d3-selection and d3-zoom.

This removes 28 dependencies.

Signed-off-by: Simon Ser <contact@emersion.fr>
@emersion emersion requested a review from a team as a code owner October 25, 2024 10:15
@emersion emersion self-assigned this Oct 25, 2024
Copy link
Contributor

@SharglutDev SharglutDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm and tested. Thank you for that :)

Copy link
Contributor

@anisometropie anisometropie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@emersion emersion added this pull request to the merge queue Oct 25, 2024
Merged via the queue into dev with commit 02b3b6f Oct 25, 2024
6 checks passed
@emersion emersion deleted the emr/split-d3 branch October 25, 2024 13:06
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.

3 participants