yarn react-flip-move 2.6.1
v2.6.1

latest releases: 3.0.5, 3.0.4, 3.0.3...
7 years ago

Overhaul Codebase

While by strict semver standards this is a patch version (visible changes are only a couple bug fixes, outlined below), this is a pretty big change.

I went through the codebase and refactored heavily, with 3 goals in mind:

  • Simplify / clarify the code as much as possible. Over the past year, as we've added new features and support for various edge-cases, the code was getting a little labyrinthian. I've tried to smooth the flow out, and have written an accompanying document to walk users through how it all comes together.
  • Future-proof the codebase. Remove the dependence on string refs in favor of callback refs, and reduce ReactDOM.findDOMNode as much as possible.
  • Make the code follow today's common conventions. When I wrote this library I had a bit of an eclectic code style. To make this code easier to read and contribute to, I've replaced my custom .eslint config with a barely-tweaked AirBnb config. The code style should be much closer to the community standard now.

Additionally, I built a new structure for the React Storybook stories, and added a few usecases that were missing.

Despite the improved developer insights, and a careful run-through, it is possible that this release has introduced new edge-case bugs - it's a big change, after all! I'll be keeping a close eye on things over the next few days, and any issues that arise will be fixed very quickly.


These changes will make it easier (and, frankly, more enjoyable) to introduce new features. And I have some pretty big ideas for what I'd like to do next :)

In addition to this housekeeping, two bugfixes found their way into the release:

  • #84 - onFinishAll is now invoked with the right arguments
  • #85 - maintainContainerHeight placeholder will take on the correct node type, based on the typeName supplied.

Don't miss a new react-flip-move release

NewReleases is sending notifications on new releases.