Skip to content

chore: version packages#2517

Merged
joshuaellis merged 1 commit into
nextfrom
changeset-release/next
May 22, 2026
Merged

chore: version packages#2517
joshuaellis merged 1 commit into
nextfrom
changeset-release/next

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

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

  • #2510 cd13304 Thanks @joshuaellis! - Add a reverse prop to useTransition that flips the order in which trail delays are assigned to transitioning items. Toggle it with caller state (e.g. reverse: !open) to make items animate in forward on enter and backward on leave. Render order is untouched — use sort for that. Closes #1794.

Patch Changes

  • #2516 6bd6613 Thanks @joshuaellis! - Preserve config.velocity across to/from retargets when config.decay is set. Previously, SpringValue._update unconditionally reset config.velocity to 0 whenever a new goal was provided, which silently broke gesture-driven decay flows that retarget mid-throw (e.g. mouse-flick decay). Also clarifies the decay JSDoc and docs-site reference to explain that decay decelerates from an initial velocity and does not ease toward to. Closes #1843.

  • #2511 84b058a Thanks @joshuaellis! - Fire onRest when an animation is cancelled before its first frame. SpringValue._stop gated onRest on anim.changed, which only becomes true once a frame has rendered. When two start() 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, so onRest was silently dropped. The same gap affected set() and stop() called synchronously after start(). Closes #1802.

  • #2471 8e9876f Thanks @joshuaellis! - Stop looping when a re-render flips loop to a falsy value. Previously a declarative update like useSpring({ to, loop }) would keep looping even after loop toggled to false, because the in-flight loop chain captured its own loop value 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 9765d75 Thanks @joshuaellis! - Expose phase === 'leave' to the useTransition render function during the render that runs the leave animation. Previously t.phase was 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 whose phase matches the upcoming animation, so consumers can reliably branch on state.phase === 'leave'. Closes #1654.

  • Updated dependencies [f9a1857]:

    • @react-spring/shared@10.1.0
    • @react-spring/animated@10.1.0
    • @react-spring/types@10.1.0

@react-spring/animated@10.1.0

Patch Changes

  • Updated dependencies [f9a1857]:
    • @react-spring/shared@10.1.0
    • @react-spring/types@10.1.0

@react-spring/parallax@10.1.0

Patch Changes

  • Updated dependencies [f9a1857]:
    • @react-spring/shared@10.1.0
    • @react-spring/web@10.1.0

react-spring@10.0.4

Patch Changes

  • Updated dependencies [6bd6613, 84b058a, cd13304, 8e9876f, 9765d75]:
    • @react-spring/core@10.1.0
    • @react-spring/konva@10.1.0
    • @react-spring/native@10.1.0
    • @react-spring/three@10.1.0
    • @react-spring/web@10.1.0
    • @react-spring/zdog@10.1.0

@react-spring/shared@10.1.0

Patch Changes

  • #2469 f9a1857 Thanks @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/rafz@10.1.0
    • @react-spring/types@10.1.0

@react-spring/konva@10.1.0

Patch Changes

@react-spring/native@10.1.0

Patch Changes

@react-spring/three@10.1.0

Patch Changes

@react-spring/web@10.1.0

Patch Changes

@react-spring/zdog@10.1.0

Patch Changes

@react-spring/rafz@10.1.0

@react-spring/types@10.1.0

@react-spring/mock-raf@10.1.0

@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-spring Error Error May 22, 2026 3:18pm

Request Review

@joshuaellis joshuaellis merged commit 3d0ca63 into next May 22, 2026
1 check failed
@joshuaellis joshuaellis deleted the changeset-release/next branch May 22, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant