Repository navigation
Comparing changes
Open a pull request
base repository: motiondivision/motion
base: v13.1.0
head repository: motiondivision/motion
compare: v13.1.1
- 12 commits
- 16 files changed
- 2 contributors
Commits on Jun 12, 2026
-
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]>
Configuration menu - View commit details
-
Copy full SHA for 86b431f - Browse repository at this point
Copy the full SHA 86b431fView commit details
Commits on Jul 27, 2026
-
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.
Configuration menu - View commit details
-
Copy full SHA for 83da418 - Browse repository at this point
Copy the full SHA 83da418View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7af07f9 - Browse repository at this point
Copy the full SHA 7af07f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for c84e7bd - Browse repository at this point
Copy the full SHA c84e7bdView commit details -
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]>
Configuration menu - View commit details
-
Copy full SHA for f532675 - Browse repository at this point
Copy the full SHA f532675View commit details
Commits on Aug 18, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 06540fa - Browse repository at this point
Copy the full SHA 06540faView commit details -
Merge pull request #3751 from motiondivision/worktree-fix-issue-3735
Guard animateTarget window access in non-browser runtimes (#3735)
Configuration menu - View commit details
-
Copy full SHA for bbabb00 - Browse repository at this point
Copy the full SHA bbabb00View commit details
Commits on Aug 19, 2026
-
Configuration menu - View commit details
-
Copy full SHA for b497f1d - Browse repository at this point
Copy the full SHA b497f1dView commit details
Commits on Aug 20, 2026
-
Merge pull request #3752 from motiondivision/fix-3746-animatepresence…
…-strictmode-remount Fix AnimatePresence remounting present children inside React.StrictMode (#3746)
Configuration menu - View commit details
-
Copy full SHA for c07d12e - Browse repository at this point
Copy the full SHA c07d12eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b9190d - Browse repository at this point
Copy the full SHA 9b9190dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d734481 - Browse repository at this point
Copy the full SHA d734481View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b037b0 - Browse repository at this point
Copy the full SHA 1b037b0View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v13.1.0...v13.1.1