Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.

Commit 1931791

Browse files
committed
release v4.1.0
1 parent e055f96 commit 1931791

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
### 4.1.0 (Oct 25, 2019)
4+
5+
- Add `"module"` to `package.json`. There are now three builds:
6+
* **`"main"`**: ES5-compatible CJS build, suitable for most use cases with maximum compatibility.
7+
- For legacy reasons, this has exports of the following shape, which ensures no surprises in CJS or ESM polyfilled environments:
8+
```js
9+
module.exports = Draggable;
10+
module.exports.default = Draggable;
11+
module.exports.DraggableCore = DraggableCore;
12+
```
13+
* **`"web"`**: Minified UMD bundle exporting to `window.ReactDraggable` with the same ES compatibility as the "main" build.
14+
* **`"module"`**: ES6-compatible build using import/export.
15+
16+
This should fix issues like https://github.com/STRML/react-resizable/issues/113 while allowing modern bundlers to consume esm modules in the future.
17+
18+
No compatibility changes are expected.
19+
320
### 4.0.3 (Sep 10, 2019)
421

522
- Add typings and sourcemap to published npm package.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-draggable",
3-
"version": "4.0.3",
3+
"version": "4.1.0",
44
"description": "React draggable component",
55
"main": "build/cjs/cjs.js",
66
"browser": "build/web/react-draggable.min.js",

0 commit comments

Comments
 (0)