Socket
Socket
Sign inDemoInstall

react-draggable

Package Overview
Dependencies
Maintainers
2
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-draggable - npm Package Compare versions

Comparing version 4.0.3 to 4.1.0

build/cjs/cjs.js

17

CHANGELOG.md
# Changelog
### 4.1.0 (Oct 25, 2019)
- 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 https://github.com/STRML/react-resizable/issues/113 while allowing modern bundlers to consume esm modules in the future.
No compatibility changes are expected.
### 4.0.3 (Sep 10, 2019)

@@ -4,0 +21,0 @@

8

package.json
{
"name": "react-draggable",
"version": "4.0.3",
"version": "4.1.0",
"description": "React draggable component",
"main": "index.js",
"browser": "web/react-draggable.min.js",
"main": "build/cjs/cjs.js",
"browser": "build/web/react-draggable.min.js",
"module": "build/module/Draggable.js",
"scripts": {
"test": "make test",
"test-phantom": "make test-phantom",
"test-debug": "karma start --browsers=Chrome",

@@ -10,0 +12,0 @@ "test-ie": "karma start --browsers=IE",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc