Skip to content

chore: version packages#2436

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

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

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 21, 2026

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/animated@10.0.4

Patch Changes

  • Updated dependencies [e5107dc]:
    • @react-spring/shared@10.0.4
    • @react-spring/types@10.0.4

@react-spring/core@10.0.4

Patch Changes

  • #2410 1fb03f4 Thanks @gumob! - fix(core): clear stale updates in useSprings layout effect to prevent re-application on subsequent renders

  • #2407 6c37f69 Thanks @hiebj! - fix: exitBeforeEnter in useTransition doesn't work when used with trail

  • #2435 46f97db Thanks @joshuaellis! - fix(useTrail): with loop: true, deeper springs trap in a mid-range oscillation instead of sweeping the full from→to distance each cycle. The trail chains children via to: parent.springs, so every parent change resets the child's animation progress; under looping, the head snap-resets each cycle but children only chase fluidly. An internal Controller.onLoopReset subscription now fires synchronously when the head recurses into the next loop iteration, and every non-head child snaps back to from in phase. The fluid-chain contract is preserved. Fixes #1063.

  • #2438 01810a4 Thanks @joshuaellis! - fix(core): run async script to to completion under skipAnimation so the spring lands at the script's final value rather than being skipped entirely (#1429)

  • #2430 8da5e50 Thanks @joshuaellis! - fix: events not firing when SpringRef attached manually under StrictMode

  • #2431 98d9f52 Thanks @joshuaellis! - fix(SpringValue): stop() no longer establishes a goal on a spring that never had one. The previous implementation always called _focus(this.get()) to snap animation.to to the current value — useful for freezing a live animation, but wrong for a paused or never-started spring whose underlying value was seeded by _prepareNode via from. The bug became observable under React.StrictMode, whose simulated unmount fires useSprings's cleanup (ctrl.stop(true)) on a freshly-mounted, paused spring, leaving t.goal equal to the from value instead of undefined.

  • #2431 98d9f52 Thanks @joshuaellis! - fix(useTrail): chaining no longer breaks under React.StrictMode. The reverse and passedRef accumulators inside the useSprings wrapper relied on the wrapper being invoked at least once per render. Under StrictMode's second render pass, useSprings's internal useMemo caches and the wrapper is skipped, leaving the accumulators at their initial values and reversing the trail direction. For the object-form props the values are now derived directly from the shared props. Fixes #1991.

  • Updated dependencies [e5107dc]:

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

@react-spring/parallax@10.0.4

Patch Changes

  • Updated dependencies [344972e, e5107dc]:
    • @react-spring/web@10.0.4
    • @react-spring/shared@10.0.4

@react-spring/shared@10.0.4

Patch Changes

  • #2432 e5107dc Thanks @joshuaellis! - fix: useResize now reports border-box dimensions (includes padding and border)

  • Updated dependencies []:

    • @react-spring/rafz@10.0.4
    • @react-spring/types@10.0.4

@react-spring/konva@10.0.4

Patch Changes

@react-spring/native@10.0.4

Patch Changes

@react-spring/three@10.0.4

Patch Changes

@react-spring/web@10.0.4

Patch Changes

  • #2439 344972e Thanks @joshuaellis! - fix(web): remove DOM attributes when their animated value becomes undefined

    Previously, attributes such as inert, disabled, viewBox, className, and children were coerced to the string "undefined" or left stale when their animated value resolved to undefined. Boolean-style attributes like inert must be entirely removed to be disabled — setting them to any value (including "undefined") keeps them active. applyAnimatedValues now calls removeAttribute (or clears the class/textContent) in this case.

  • Updated dependencies [1fb03f4, 6c37f69, 46f97db, 01810a4, 8da5e50, 98d9f52, 98d9f52, e5107dc]:

    • @react-spring/core@10.0.4
    • @react-spring/shared@10.0.4
    • @react-spring/animated@10.0.4
    • @react-spring/types@10.0.4

@react-spring/zdog@10.0.4

Patch Changes

@react-spring/rafz@10.0.4

@react-spring/types@10.0.4

@react-spring/mock-raf@10.0.4

@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

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

Project Deployment Actions Updated (UTC)
react-spring Error Error May 21, 2026 8:04pm

Request Review

@github-actions github-actions Bot force-pushed the changeset-release/next branch from 9db092b to 24e0f6a Compare May 21, 2026 20:03
@joshuaellis joshuaellis merged commit 558a2ac into next May 21, 2026
1 check failed
joshuaellis pushed a commit that referenced this pull request May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: Events aren't called when attaching a ref manually [bug]: useTrail does not work correctly (spring values are weaker the more trails you have)

1 participant