feat: add drag & drop npm stats preset#1012
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA new static comparison entry titled "Drag & Drop" is appended to the array returned by ChangesDrag & Drop Comparison Entry
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This PR adds a new Drag & Drop preset comparing the most popular modern and classic drag-and-drop libraries in the JavaScript/React ecosystem.
The comparison includes:
@dnd-kit/core)@atlaskit/pragmatic-drag-and-drop)react-dnd)react-draggable)react-grid-layout)react-rnd)Key Design Decisions
1. Combo Logic (Wrapper/Version Consolidation)
To represent the true reach of the underlying engines without double-counting, we applied two distinct rules for library grouping:
sortablejs(vanilla core),react-sortablejs(React wrapper),vuedraggable(Vue 2 wrapper),vue-draggable-next(Vue 3 wrapper), andvue-draggable-plus(Vue 3 wrapper) under theSortableJSline. Since a project typically installs only one of these, combining them gives an accurate measure of total SortableJS engine adoption.react-beautiful-dnd(deprecated) and@hello-pangea/dnd(its active community fork/successor) under a single line. This represents the continuous adoption of this specific layout engine layout flow.@dnd-kit/core). We did not combine sub-modules (like@dnd-kit/sortable) because they are installed alongside the core package in the same project; combining them would double-count downloads and inflate the chart.Summary by CodeRabbit