react-draggable
Advanced tools
Comparing version 4.0.3 to 4.1.0
# 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 @@ |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
375312
38
4343
2