Skip to content

Commit a1fff41

Browse files
committed
docs(changelog): Prepare for 2.0.0
1 parent d0a1c08 commit a1fff41

1 file changed

Lines changed: 49 additions & 39 deletions

File tree

CHANGELOG.md

Lines changed: 49 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,127 @@
11
# Changelog
22

3-
### Unreleased
4-
3+
### 2.0.0
4+
5+
- ⚠ Breaking Change!
6+
- `<Resizable>` used to pass unknown props onto its child. For example:
7+
```js
8+
<Resizable foo="bar"><div /></Resizable>
9+
```
10+
In this example, when `<Resizable>` wrapped its child `div`, it would pass on `foo="bar"`. This has been removed.
11+
- I do not expect meaningful breakage in the wild from this change, as the behavior in 1.x was unexpected and not generally useful.
12+
- If this change breaks your use case, please pass props directly to the child component rather than expecting `<Resizable>` to pass it downward.
13+
- See [#133](https://github.com/STRML/react-resizable/pull/133) for more details.
514
- 🐛 Bugfix: remove unknown Prop `handle` from div children in Resizable React.CloneElement [124](https://github.com/STRML/react-resizable/issues/124)
15+
- ✏ Chore: Improved test suite. Please contribute tests for your use cases if you have the time, I would really appreciate it! Thanks very much, @Danielecina
616

717
### 1.10.1 (Nov 25, 2019)
818

919
> Note: 1.10.0 was a mis-publish.
1020

11-
- Feat: Add `transformScale` prop [#115](https://github.com/STRML/react-resizable/pull/115)
12-
- Bugfix: Resolve `getDerivedStateFromProps` dev warning [#117](https://github.com/STRML/react-resizable/pull/117)
21+
- ➕ Feature: Add `transformScale` prop [#115](https://github.com/STRML/react-resizable/pull/115)
22+
- 🐛 Bugfix: Resolve `getDerivedStateFromProps` dev warning [#117](https://github.com/STRML/react-resizable/pull/117)
1323

1424
### 1.9.0 (Oct 24, 2019)
1525

16-
- Fix resize with north/south handles when `lockAspectRatio=true` [#106](https://github.com/STRML/react-resizable/pull/106)
17-
- Remove deprecated React 16.9 lifecycle methods (`componentWillReceiveProps`) (https://github.com/STRML/react-resizable/pull/112/commits/541dee69b8e45d91a533855609472b481634edee)
18-
- Upgrade to babel 7
19-
- [Remove unused state inside `<Draggable>`](https://github.com/STRML/react-resizable/pull/112/commits/05693f63d6d221ad652f0f28af024cfb46a5f2df). This has not been needed for quite some time, fixes [some bugs](https://github.com/STRML/react-resizable/issues/99) and improves performance.
26+
- 🐛 Bugfix: Fix resize with north/south handles when `lockAspectRatio=true` [#106](https://github.com/STRML/react-resizable/pull/106)
27+
- ✏ Chore: Remove deprecated React 16.9 lifecycle methods (`componentWillReceiveProps`) (https://github.com/STRML/react-resizable/pull/112/commits/541dee69b8e45d91a533855609472b481634edee)
28+
- ✏ Chore: Upgrade to babel 7
29+
- ✏ Chore: [Remove unused state inside `<Draggable>`](https://github.com/STRML/react-resizable/pull/112/commits/05693f63d6d221ad652f0f28af024cfb46a5f2df). This has not been needed for quite some time, fixes [some bugs](https://github.com/STRML/react-resizable/issues/99) and improves performance.
2030

2131
### 1.8.0 (May 15, 2019)
2232

23-
- Added support for custom resize handles [#79](https://github.com/STRML/react-resizable/pull/79)
24-
- Added support for resize handles on all corners [#191](https://github.com/STRML/react-resizable/pull/191)
33+
- ➕ Feature: Added support for custom resize handles [#79](https://github.com/STRML/react-resizable/pull/79)
34+
- ➕ Feature: Added support for resize handles on all corners [#191](https://github.com/STRML/react-resizable/pull/191)
2535

2636
### 1.7.5 (Sep 26, 2017)
2737

28-
- Support for React 16 (no changes required, updated `peerDependencies`)
29-
- Minor dep updates.
38+
- ✏ Chore: Support for React 16 (no changes required, updated `peerDependencies`)
39+
- ✏ Chore: Minor dep updates.
3040

3141
### 1.7.4 (Sep 5, 2017)
3242

33-
- Minor Flow & dependency updates.
43+
- ✏ Chore: Minor Flow & dependency updates.
3444

3545
### 1.7.3 (Aug 31, 2017)
3646

37-
- Fix React deprecation warnings from `import *`
47+
- 🐛 Bugfix: React deprecation warnings from `import *`
3848
- https://github.com/facebook/react/issues/10583
3949

4050
### 1.7.2 (Aug 21, 2017)
4151

42-
- Pkg: Add `react-draggable@3.0.0` to version range.
52+
- ✏ Chore: Pkg: Add `react-draggable@3.0.0` to version range.
4353
- This package is compatible with both `@2` and `@3` versions.
4454

4555
### 1.7.1 (May 23, 2017)
4656

47-
- Bugfix: Some flow types were improperly specified.
57+
- 🐛 Bugfix: Some flow types were improperly specified.
4858

4959
### 1.7.0 (May 1, 2017)
5060

51-
- Deprecation: `React.PropTypes` now deprecated in React 15.5, moved to `prop-types` package
52-
- Internal: Update devDeps, upgrade to webpack 2
53-
- Internal: Remove babel `stage-1` and `transform-flow-comments`, bring in only selected plugins, makes for leaner dev/build.
61+
- Deprecation: `React.PropTypes` now deprecated in React 15.5, moved to `prop-types` package
62+
- ✏ Chore: Update devDeps, upgrade to webpack 2
63+
- ✏ Chore: Remove babel `stage-1` and `transform-flow-comments`, bring in only selected plugins, makes for leaner dev/build.
5464

5565
### 1.6.0 (Jan 23, 2017)
5666

57-
- Feature: Allow restricting by axis. (#40, thanks @dnissley-al)
67+
- Feature: Allow restricting by axis. (#40, thanks @dnissley-al)
5868

5969
### 1.5.0 (Jan 23, 2017)
6070

61-
- Bugfix: Persist SyntheticEvents when needed (#45, #46)
62-
- Feature: Add componentWillReceiveProps to `<ResizableBox>` (#44, thanks @JoaoMosmann)
71+
- 🐛 Bugfix: Persist SyntheticEvents when needed (#45, #46)
72+
- Feature: Add componentWillReceiveProps to `<ResizableBox>` (#44, thanks @JoaoMosmann)
6373

6474
### 1.4.6 (Dec 30, 2016)
6575

66-
- Removed unused ref from `<Resizable>`.
67-
- Added development lockfile.
76+
- ✏ Chore: Removed unused ref from `<Resizable>`.
77+
- ✏ Chore: Added development lockfile.
6878

6979
### 1.4.5 (Sep 30, 2016)
7080

71-
- Fix bad publish
81+
- 🐛 Bugfix: Fix bad publish
7282

7383
### 1.4.4 (Sep 30, 2016)
7484

75-
- Bugfix: Minor flow errors
85+
- 🐛 Bugfix: Minor flow errors
7686

7787
### 1.4.3 (Sep 27, 2016)
7888

79-
- Bugfix: Don't pass `onResize` in `<ResizableBox>`.
80-
- Bugfix: Fix new Flow errors (type parameters no longer optional).
89+
- 🐛 Bugfix: Don't pass `onResize` in `<ResizableBox>`.
90+
- 🐛 Bugfix: Fix new Flow errors (type parameters no longer optional).
8191
8292
### 1.4.2 (July 1, 2016)
8393
84-
- Bugfix: Don't pass unknown props to underlying DOM element. Fixes React 15.2.0 warnings.
94+
- 🐛 Bugfix: Don't pass unknown props to underlying DOM element. Fixes React 15.2.0 warnings.
8595

8696
### 1.4.1 (May 23, 2016)
8797

88-
- Bugfix: Resizable handle should have a `key` when injected. Fixes React warnings on custom components.
98+
- 🐛 Bugfix: Resizable handle should have a `key` when injected. Fixes React warnings on custom components.
8999

90100
### 1.4.0 (May 20, 2016)
91101

92-
- Update to React-Draggable v2, which changed callback data structure.
102+
- ✏ Chore: Update to React-Draggable v2, which changed callback data structure.
93103

94104
### 1.3.4 (May 17, 2016)
95105

96-
- Bugfix: Slack was not being reset on resizeStop. Fixes #34, #36.
97-
- Added `flow-bin` to devDeps.
106+
- 🐛 Bugfix: Slack was not being reset on resizeStop. Fixes #34, #36.
107+
- ✏ Chore: Added `flow-bin` to devDeps.
98108

99109
### 1.3.3 (Apr 19, 2016)
100110

101-
- Enhancement: Add Flow comments.
111+
- ➕ Feature: Add Flow comments.
102112

103113
### 1.3.2 (Apr 8, 2016)
104114

105-
- Bugfix: Prevent `width` and `height` from leaking to the underlying DOM element and being written.
115+
- 🐛 Bugfix: Prevent `width` and `height` from leaking to the underlying DOM element and being written.
106116

107117
### 1.3.1 (Apr 8, 2016)
108118

109-
- Allow React v15 in peerdeps.
119+
- ✏ Chore: Allow React v15 in peerdeps.
110120

111121
### 1.3.0 (Mar 11, 2016)
112122

113-
- Switch to ES2015 Loose Mode to fix IE9/10 issues.
114-
- Flow typing fixes.
115-
- Styling fixes to the demo page.
123+
- 🐛 Bugfix: Switch to ES2015 Loose Mode to fix IE9/10 issues.
124+
- 🐛 Bugfix: Flow typing fixes.
125+
- 🐛 Bugfix: Styling fixes to the demo page.
116126

117127
> Changes before 1.3.0 were not logged. Please see the git commit history.

0 commit comments

Comments
 (0)