react-draggable v4.2.0 Release Notes

Release Date: 2019-12-02 // 8 months ago
    • 🛠 Fix: Apply scale parameter also while dragging an element. #438
    • 🛠 Fix: Don't ship process.env.DRAGGABLE_DEBUG checks in cjs/esm. #445

Previous changes from v4.1.0

    • ➕ Add "module" to package.json. There are now three builds:
      • "main": ES5-compatible CJS build, suitable for most use cases with maximum compatibility.
      • For legacy reasons, this has exports of the following shape, which ensures no surprises in CJS or ESM polyfilled environments: js module.exports = Draggable; module.exports.default = Draggable; module.exports.DraggableCore = DraggableCore;
      • "web": Minified UMD bundle exporting to window.ReactDraggable with the same ES compatibility as the "main" build.
      • "module": ES6-compatible build using import/export.

    This should fix issues like while allowing modern bundlers to consume esm modules in the future.

    No compatibility changes are expected.