Skip to content

Releases: joshwcomeau/react-flip-move

v2.9.4

05 May 11:40
Compare
Choose a tag to compare

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

27 Apr 01:51
Compare
Choose a tag to compare

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

12 Apr 11:34
Compare
Choose a tag to compare

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

18 Feb 19:17
Compare
Choose a tag to compare

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

18 Feb 18:59
Compare
Choose a tag to compare

Add appearAnimation prop.

Similar to other animation libraries like ReactCSSTransitionGroup, added an appearAnimation prop that will trigger an on-mount animation, for the initial render.

Thanks to @deibeljc for implementing this feature.

v2.8.0

27 Jan 13:34
Compare
Choose a tag to compare

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

17 Dec 01:50
Compare
Choose a tag to compare

Fix bug with disableAllAnimations.

Thanks to @willemx for supplying a PR that fixed a bug with children not being properly cleared with disableAllAnimations.

v2.7.2

04 Dec 22:17
Compare
Choose a tag to compare

Fix crash on frequent enter/leave transitions, remove omit dependency

This patch includes two small updates:

  • Fix crash when spamming enter/leave animations (#111)
  • Replace lodash.omit dependency (#110)

Big thanks to @HenrikJoreteg for replacing lodash.omit and trimming ~6kb from the minified/gzip filesize!

v2.7.1

23 Nov 12:42
Compare
Choose a tag to compare

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

22 Nov 14:28
Compare
Choose a tag to compare

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.