WebPurple / site

Site of front-end community - WebPurple
https://www.webpurple.net
Other
39 stars 44 forks source link

Update react-spring to the latest version ๐Ÿš€ #374

Open greenkeeper[bot] opened 5 years ago

greenkeeper[bot] commented 5 years ago

The dependency react-spring was updated from 5.9.2 to 6.0.0.

This version is not covered by your current version range.

If you donโ€™t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Release Notes for v6.0.0

React-spring 6.0

  • โšก๏ธ React strict-mode compliant and ready for async rendering
  • ๐Ÿš€ New spring engine (from rk4 to see), lots of internal changes making it faster and leaner
  • โœจ Simpler and more intuitive api

configs

  • โฐ Duration is built in and as easy as going config={{ duration: 1000, easing: ... }}
  • โŒ›๏ธ Delays can be driven per config config={{ delay: 1000, ... }}
  • โœจ Simpler property names (mass, tension, friction, delay, precision, clamp, velocity, duration, easing)
  • ๐ŸŽฉ Spring config props are 1:1 compatible with react-motions and the presets finally do what they say

Springs

  • โฎ Springs can run reverse, which switches from and to
  • ๐Ÿšฌ The after prop makes it easier to apply static values at the end of an animation
  • ๐Ÿ‰ Springs can animate scrollTop/Left

Transitions

  • ๐ŸŽ‰ Multistage transitions are finally possible. Transition inherits from Keyframes now, which allows it to receive the same values that you can use in slots, meaning you can chain or even script transitions
  • โญ๏ธ The unique prop prevents two children with the same key to co-exist, which was an often asked for suggestion. If it is true, a fading-out item will vanish when an item with the same key comes in again, as opposed to forming a stack (which is still the default)
  • โœ–๏ธ The reset prop, in combination with unique forces an incoming item to always start from scratch instead of adapting the fading-out item to take start-position
  • ๐ŸŒ Transitions can trail using teh trail prop which takes a duration in ms
  • โœจ Simpler api. Previously you could optionally pass items and you would have to map over children yourself. items and keys are Transitions sole source of truth now. You give a single function child instead of mapping
  • ๐ŸŽฎ Transition behaves more like Reacts TransitionGroup in that it can give you way more contextual information than before, you even have access to the state your output component is in (enter/leave/update)

Trails

  • โœจ Simpler api. Same as Transitions
  • โฎ The reverse prop can move a trail bottom-up instead of the default top-down which is more natural for items swinging in and out

Keyframes

  • โœจ Simpler api. You don't have to write to: {...} any longer since everything is interpolated to it

Parallax

  • ๐Ÿคทโ€ Parallax always felt off since it's not as generic as the others. It has been moved to react-spring/dist/addons and could mark the start of convenience components or effects that don't belong anywhere else

Upgrading from 5.0 to 6.0

The changes made are mostly features, the api changes are slight and looking at the front page here will tell you immediately what to do. You will probably have to adapt your Transitions and Trail, Keyframes are backwards compatible. If you have used timings off dist/addons before, duration is now inbuilt (see above). A noticeable change also concerns spring config props, where before we would be closer to how the animated library interprets tension and friction we are now 1:1 compatible with react-motion.

Commits

The new version differs by 21 commits.

There are 21 commits in total.

See the full diff

FAQ and help There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those donโ€™t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper bot :palm_tree:

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

Commits

The new version differs by 13 commits.

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

Commits

The new version differs by 7 commits.

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€

greenkeeper[bot] commented 5 years ago

Update to this version instead ๐Ÿš€