-
Notifications
You must be signed in to change notification settings - Fork 33
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
chore(deps): switch from lodash-es to es-toolkit #3142
Conversation
> es-toolkit is a state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations. Advantages for `bpmn-visualization`: - receive more updates - optimize for ESM - better tree-shaking - provide types out of the box (for lodash-es, we needed to use a package provided by DefinitevlyTyped) - provide CommonJS files as well, so we are no longer forced to use a trick as we did for lodash-es in the jest configuration of the integration test (which doesn't provide CommonJS file)
🎊 PR Preview c54c5d5 has been successfully built and deployed to https://process-analytics-bpmn-visualization-js-demo_preview-pr-3142.surge.sh 🕐 Build time: 0.011s 🤖 By surge-preview |
🎊 PR Preview c54c5d5 has been successfully built and deployed to https://process-analytics-bpmn-visualization-js-doc_preview-pr-3142.surge.sh 🕐 Build time: 0.012s 🤖 By surge-preview |
Test Suites: 2 passed, 2 total Tests: 10 passed, 10 total Snapshots: 0 total Time: 64.674 s
Test Suites: 2 passed, 2 total Tests: 10 passed, 10 total Snapshots: 0 total Time: 61.914 s, estimated 64 s
Quality Gate passedIssues Measures |
Advantages for
bpmn-visualization
:The performance tests were run on Ubuntu 22.
They include results for master a5886d1 and for switching to es-toolkit.
Notes
For information about the
lodash-es
introduction inbpmn-visualization
, see #2678Bundle size decrease
bpmn-visualization.min.js
size decrease: 2887b / 2.82kbefc35ad (latest available commit GH Actions run at the time of the PR creation)
https://github.com/process-analytics/bpmn-visualization-js/actions/runs/10348508718
Rollup decrease detection
efc35ad
new
Performance tests results
On Ubuntu 22, master a5886d1
No change. Tests are run 5 times for each commit.
Notice that lodash/es-toolkit are not involved in the "load" tests
Resources
https://github.com/toss/es-toolkit
https://es-toolkit.slash.page/performance.html (but no figures about the throttle/debounce functions we are using)