- ✏ Chore: Add
fileswhitelist to package.json to reduce package size and exclude unnecessary files.
- 🐛 Bugfix: Fix SSR crash where
Elementis not defined in Node.js environments. #251
- 🐛 Bugfix: Fix crash when
Resizablechild has a single child element (was not iterable). #219 - 🐛 Bugfix: Fix
offsetParentpropType fromPropTypes.nodetoPropTypes.instanceOf(Element). #220 - ✏ Chore: Update GitHub Actions workflows to latest versions.
- ✏ Chore: Add version display to demo page.
- 🐛 Bugfix: Fix
onResizeStopreporting stale size data due to React's batched state updates. The callback now uses the stored size from the lastonResizecall. #250 - ➕ Feature: React 18 support.
- ✏ Chore: Migrate test suite from Enzyme to React Testing Library. #249
- ✏ Chore: Update
react-draggableto ^4.5.0. - ✏ Chore: Update
react-test-rendererto ^18.
- 🐛 Bugfix: Make
widthandheightconditionally required if anaxisis set. See #196 - ✏ Chore: Minor dependency upgrades.
- ✏ Chore: Fix documentation of
onResizecallback arity.
- 🐛 Bugfix: Fix incorrect fix for
handleAxison DOM elements. #175 - ✏ Chore:Upgrade dependencies.
- 🐛 Bugfix: Remove unknown prop
handleAxismaking it to DOM elements, causing a warning in dev. - ✏ Chore: Rewrote
lockAspectRatiologic to be more accurate and shorter.
- ✏ Chore: Add documentation for resize handles and fix a mistake where the
handleAxisprop was not being passed to custom components.- See Resize Handles
- ✏ Chore: Reduce package size through
.npmignore.
- 🐛 Bugfix: Fixed handling of the
nodeRefthat needs to be passed to<DraggableCore>to avoid use of ReactDOM. This means that vanilla usage ofreact-resizableno longer requires ReactDOM. No code changes are needed in the usual case, except:- React
>= 16.3is required due to use ofReact.createRef(), and - The
handleprop now sends aReactRef<HTMLElement>as its second argument and expects it to be used on your returned component.- If you do not attach the
ref, you will receive the following error:"<DraggableCore> not mounted on DragStart!"This is due to the ref being present but not attached to any node.
- If you do not attach the
- React
- ✏ Chore: Added React 17 to peerDependencies.
- ⚠ Important Notice!
- React-Resizable 2.0.0 was published due to a breaking change in
propshandling. This change ended up actually completely breaking certain workflows, for the dubious benefit of making the code slightly simpler to add to. The breaking change has been reverted, 2.0.0 is now deprecated, and we will continue on the 1.x branch. Future breaking changes toreact-resizablewill upgrade the major version to3.
- React-Resizable 2.0.0 was published due to a breaking change in
- ➕ Feature:
<ResizableBox>now takes astyleprop which will be applied on the wrapping<div>.widthandheightin this prop are ignored. - 🐛 Bugfix: remove unknown Prop
handlefrom div children in ResizableReact.cloneElement. #124 - 🐛 Bugfix: Fix top and left resizing jerkiness. Thanks @conor-kelleher. #136
- ✏ 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
- ✏ Chore: Minor internal refactors and additional tests.
- ✏ Chore: Additional examples.
Note: 1.10.0 was a mis-publish.
- 🐛 Bugfix: Fix resize with north/south handles when
lockAspectRatio=true#106 - ✏ Chore: Remove deprecated React 16.9 lifecycle methods (
componentWillReceiveProps) (https://github.com/STRML/react-resizable/pull/112/commits/541dee69b8e45d91a533855609472b481634edee) - ✏ Chore: Upgrade to babel 7
- ✏ Chore: Remove unused state inside
<Draggable>. This has not been needed for quite some time, fixes some bugs and improves performance.
- ➕ Feature: Added support for custom resize handles #79
- ➕ Feature: Added support for resize handles on all corners #191
- ✏ Chore: Support for React 16 (no changes required, updated
peerDependencies) - ✏ Chore: Minor dep updates.
- ✏ Chore: Minor Flow & dependency updates.
- 🐛 Bugfix: React deprecation warnings from
import *
- ✏ Chore: Pkg: Add
react-draggable@3.0.0to version range.- This package is compatible with both
@2and@3versions.
- This package is compatible with both
- 🐛 Bugfix: Some flow types were improperly specified.
- ⚠ Deprecation:
React.PropTypesnow deprecated in React 15.5, moved toprop-typespackage - ✏ Chore: Update devDeps, upgrade to webpack 2
- ✏ Chore: Remove babel
stage-1andtransform-flow-comments, bring in only selected plugins, makes for leaner dev/build.
- ➕ Feature: Allow restricting by axis. (#40, thanks @dnissley-al)
- 🐛 Bugfix: Persist SyntheticEvents when needed (#45, #46)
- ➕ Feature: Add componentWillReceiveProps to
<ResizableBox>(#44, thanks @JoaoMosmann)
- ✏ Chore: Removed unused ref from
<Resizable>. - ✏ Chore: Added development lockfile.
- 🐛 Bugfix: Fix bad publish
- 🐛 Bugfix: Minor flow errors
- 🐛 Bugfix: Don't pass
onResizein<ResizableBox>. - 🐛 Bugfix: Fix new Flow errors (type parameters no longer optional).
- 🐛 Bugfix: Don't pass unknown props to underlying DOM element. Fixes React 15.2.0 warnings.
- 🐛 Bugfix: Resizable handle should have a
keywhen injected. Fixes React warnings on custom components.
- ✏ Chore: Update to React-Draggable v2, which changed callback data structure.
- 🐛 Bugfix: Slack was not being reset on resizeStop. Fixes #34, #36.
- ✏ Chore: Added
flow-binto devDeps.
- ➕ Feature: Add Flow comments.
- 🐛 Bugfix: Prevent
widthandheightfrom leaking to the underlying DOM element and being written.
- ✏ Chore: Allow React v15 in peerdeps.
- 🐛 Bugfix: Switch to ES2015 Loose Mode to fix IE9/10 issues.
- 🐛 Bugfix: Flow typing fixes.
- 🐛 Bugfix: Styling fixes to the demo page.
Changes before 1.3.0 were not logged. Please see the git commit history.