Releases: joshwcomeau/react-flip-move
v2.9.4
Add support for React-like libraries
Some small tweaks to allow for the subtle internal differences between React and Preact, so that React should be compatible with React-like libraries (Preact, Inferno, etc).
Big thanks to @AlexanderOtavka for adding this support.
v2.9.3
Environment-calculation refactor
Simple patch change that restructures some of the business of working out what environment FlipMove is running in.
A tidy side-effect is that FlipMove is smaller now - minified and gzip size went from ~6.3kb to ~5.8kb ⚡ ⚡ ⚡
v2.9.2
Disable dev warnings in production
Prior to this release, all warnings (such as when SFCs were passed as children, invalid animation presets were used, etc) would log regardless of environment. This patch ensures that these warnings are suppressed when process.env.NODE_ENV
is set to "production".
It also grants a minor perf win, as the check for logging SFC warnings involved iterating through the children. This work is no longer done in production.
Thanks to @AlexanderOtavka for their contribution!
v2.9.1
Documentation tweaks
Several improvements to the documentation:
- Added a missing link to enter/leave docs
- Moved API reference to a separate file (that README was getting long!)
- Removed explicit version from UMD CDN link
- Switch to
yarn
as default installation instruction - Switch to JSX code blocks for better markdown syntax highlighting
- Removed
changelog
section
Patch version bump needed to propagate changes to NPM.
v2.9.0
v2.8.0
Add verticalAlignment
prop to support bottom-aligned containers
Formerly, Flip Move leave animations would be wonky if the container's height didn't shrink from the bottom.
When setting containers with bottom: 0;
, the child elements would jump down and fade away from the wrong position.
This release fixes that. Thanks to @donaldpipowitch for identifying the issue.
v2.7.3
v2.7.2
Fix crash on frequent enter/leave transitions, remove omit
dependency
This patch includes two small updates:
Big thanks to @HenrikJoreteg for replacing lodash.omit and trimming ~6kb from the minified/gzip filesize!
v2.7.1
Fix bug with children that render null
Previously, we fixed an issue with null children:
<FlipMove>
{null}
</FlipMove>
We hadn't accounted, however, for children that render null:
<FlipMove>
<CustomComponent />
</FlipMove>
class CustomComponent extends Component {
render() {
return null;
}
}
This patch addresses this second case, by avoiding doing any DOM manipulation for elements that don't return a DOM node.
v2.7.0
Graceful Animations
This version includes some improvements to how interrupts are handled. Specifically:
- In browsers except Firefox, shuffle/reorder interrupts now start from their current position instead of "jumping" to their final position at the start of the new animation. Firefox remains unchanged :(
- Leave animations no longer restart when the list is updated mid-exit.