Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: motiondivision/motion
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v13.1.0
Choose a base ref
...
head repository: motiondivision/motion
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v13.1.1
Choose a head ref
  • 12 commits
  • 16 files changed
  • 2 contributors

Commits on Jun 12, 2026

  1. Guard window access for non-browser runtimes (#3735)

    Several motion-dom functions accessed `window` without a `typeof window`
    guard, throwing in non-browser JS runtimes — or when `window` is shadowed
    to undefined by an IIFE wrapper (e.g. Lynx's web runtime). The immediate
    crash reported was `animateTarget` reading `window.MotionHandoffAnimation`,
    but the same unguarded access existed across projection, keyframe
    resolution, computed-style reads, gestures, resize handling and the
    scroll-timeline support checks.
    
    Add `typeof window !== "undefined"` guards at each site, matching the
    existing pattern in render/utils/reduced-motion. `typeof` never throws on
    an undefined binding, and every guard evaluates to true in a browser, so
    existing behaviour is unchanged.
    
    Fixes #3735
    
    Co-Authored-By: Claude Opus 4.8 <[email protected]>
    mattgperry and claude committed Jun 12, 2026
    Configuration menu
    Copy the full SHA
    86b431f View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2026

  1. Narrow #3735 fix to the reported crash

    Limit non-browser handling to animateTarget and use a module-level isBrowser flag so the animation loop avoids repeated environment checks.
    mattgperry committed Jul 27, 2026
    Configuration menu
    Copy the full SHA
    83da418 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7af07f9 View commit details
    Browse the repository at this point in the history
  3. Updating changelog

    mattgperry committed Jul 27, 2026
    Configuration menu
    Copy the full SHA
    c84e7bd View commit details
    Browse the repository at this point in the history
  4. Fix AnimatePresence reordering present children when others exit

    Exiting children were spliced into the new children array at their index
    within the previously rendered children. Those are two different index
    spaces, so exiting children could be interleaved with entering children
    and push present children to new positions, remounting them (#3746).
    
    Reinsert each exiting child directly after the child it previously
    followed instead.
    
    Co-Authored-By: Claude Opus 5 <[email protected]>
    mattgperry and claude committed Jul 27, 2026
    Configuration menu
    Copy the full SHA
    f532675 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2026

  1. Configuration menu
    Copy the full SHA
    06540fa View commit details
    Browse the repository at this point in the history
  2. Merge pull request #3751 from motiondivision/worktree-fix-issue-3735

    Guard animateTarget window access in non-browser runtimes (#3735)
    mattgperry authored Aug 18, 2026
    Configuration menu
    Copy the full SHA
    bbabb00 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2026

  1. Configuration menu
    Copy the full SHA
    b497f1d View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2026

  1. Merge pull request #3752 from motiondivision/fix-3746-animatepresence…

    …-strictmode-remount
    
    Fix AnimatePresence remounting present children inside React.StrictMode (#3746)
    mattgperry authored Aug 20, 2026
    Configuration menu
    Copy the full SHA
    c07d12e View commit details
    Browse the repository at this point in the history
  2. Latest

    mattgperry committed Aug 20, 2026
    Configuration menu
    Copy the full SHA
    9b9190d View commit details
    Browse the repository at this point in the history
  3. Updating changelog

    mattgperry committed Aug 20, 2026
    Configuration menu
    Copy the full SHA
    d734481 View commit details
    Browse the repository at this point in the history
  4. v13.1.1

    mattgperry committed Aug 20, 2026
    Configuration menu
    Copy the full SHA
    1b037b0 View commit details
    Browse the repository at this point in the history
Loading