chore: version packages#2517
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to next, this PR will be updated.
Releases
@react-spring/core@10.1.0
Minor Changes
cd13304Thanks @joshuaellis! - Add areverseprop touseTransitionthat flips the order in whichtraildelays are assigned to transitioning items. Toggle it with caller state (e.g.reverse: !open) to make items animate in forward onenterand backward onleave. Render order is untouched — usesortfor that. Closes #1794.Patch Changes
#2516
6bd6613Thanks @joshuaellis! - Preserveconfig.velocityacrossto/fromretargets whenconfig.decayis set. Previously,SpringValue._updateunconditionally resetconfig.velocityto0whenever a new goal was provided, which silently broke gesture-driven decay flows that retarget mid-throw (e.g. mouse-flick decay). Also clarifies thedecayJSDoc and docs-site reference to explain that decay decelerates from an initial velocity and does not ease towardto. Closes #1843.#2511
84b058aThanks @joshuaellis! - FireonRestwhen an animation is cancelled before its first frame.SpringValue._stopgatedonRestonanim.changed, which only becomestrueonce a frame has rendered. When twostart()calls happened within a single tick and the second returned the spring to its current value, the engine stopped the animation before any frame fired, soonRestwas silently dropped. The same gap affectedset()andstop()called synchronously afterstart(). Closes #1802.#2471
8e9876fThanks @joshuaellis! - Stop looping when a re-render flipsloopto a falsy value. Previously a declarative update likeuseSpring({ to, loop })would keep looping even afterlooptoggled tofalse, because the in-flight loop chain captured its ownloopvalue and kept scheduling iterations in parallel with the new update. The Controller now tags each loop chain with a generation token and exits when a newer external update has superseded it. Closes #1193.#2507
9765d75Thanks @joshuaellis! - Exposephase === 'leave'to theuseTransitionrender function during the render that runs the leave animation. Previouslyt.phasewas only updated to the new phase in a layout effect after render, so the render fn always saw the previous phase ('enter') while a leaving item animated out — and by the time a follow-up render could surface'leave', the transition had expired and been pruned. The render fn now receives a state whosephasematches the upcoming animation, so consumers can reliably branch onstate.phase === 'leave'. Closes #1654.Updated dependencies [
f9a1857]:@react-spring/animated@10.1.0
Patch Changes
f9a1857]:@react-spring/parallax@10.1.0
Patch Changes
f9a1857]:react-spring@10.0.4
Patch Changes
6bd6613,84b058a,cd13304,8e9876f,9765d75]:@react-spring/shared@10.1.0
Patch Changes
#2469
f9a1857Thanks @joshuaellis! - Preserve decimal precision when interpolating between stringified numbers. Previously,useSpring({ from: '0.00', to: '1.50' })would render'0'at rest and lose precision mid-tween. The string interpolator now returns each keyframe verbatim when the input lands exactly on a range value, and pads mid-animation results to the shared decimal count of the keyframes (when every keyframe has the same non-zero fractional length). Closes #1461.Updated dependencies []:
@react-spring/konva@10.1.0
Patch Changes
6bd6613,84b058a,f9a1857,cd13304,8e9876f,9765d75]:@react-spring/native@10.1.0
Patch Changes
6bd6613,84b058a,f9a1857,cd13304,8e9876f,9765d75]:@react-spring/three@10.1.0
Patch Changes
6bd6613,84b058a,f9a1857,cd13304,8e9876f,9765d75]:@react-spring/web@10.1.0
Patch Changes
6bd6613,84b058a,f9a1857,cd13304,8e9876f,9765d75]:@react-spring/zdog@10.1.0
Patch Changes
6bd6613,84b058a,f9a1857,cd13304,8e9876f,9765d75]:@react-spring/rafz@10.1.0
@react-spring/types@10.1.0
@react-spring/mock-raf@10.1.0