Skip to content

fix(deps): update dependency framer-motion to v12 #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 20, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
framer-motion ^11.9.0 -> ^12.0.0 age adoption passing confidence

Release Notes

motiondivision/motion (framer-motion)

v12.0.1

Compare Source

Fixed
  • Prevent relative animations from restarting layout animations unnecessarily.

v12.0.0

Compare Source

Changed
  • press, hover and inView now pass the target element as the first argument to the gesture start callback.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

sourcery-ai bot commented Jan 20, 2025

Reviewer's Guide by Sourcery

This pull request updates the framer-motion dependency from version 11.9.0 to 12.0.0. This is a minor version update that includes a change to the arguments passed to gesture start callbacks.

Sequence diagram showing updated gesture callback behavior in framer-motion v12

sequenceDiagram
    participant C as Component
    participant M as Motion Component
    participant CB as Gesture Callback

    Note over C,CB: Changes in v12.0.0
    C->>M: User interacts (press/hover/inView)
    M->>CB: Call gesture callback with target element
    Note right of CB: Now receives target element<br/>as first argument
Loading

Class diagram showing framer-motion gesture callback interface changes

classDiagram
    class GestureCallbacks {
        +onHoverStart(element: HTMLElement, ...args)
        +onPressStart(element: HTMLElement, ...args)
        +onInViewStart(element: HTMLElement, ...args)
    }
    note for GestureCallbacks "v12: Callbacks now receive target element as first argument"
Loading

File-Level Changes

Change Details Files
Updated framer-motion dependency to v12.0.0
  • Updated framer-motion dependency in package.json.
  • Updated framer-motion dependency in package-lock.json.
package.json
package-lock.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!

Copy link

netlify bot commented Jan 20, 2025

Deploy Preview for arithmeticsequence ready!

Name Link
🔨 Latest commit 44ee840
🔍 Latest deploy log https://app.netlify.com/sites/arithmeticsequence/deploys/678ebc34a5f7c60008d0206d
😎 Deploy Preview https://deploy-preview-66--arithmeticsequence.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@renovate renovate bot force-pushed the renovate/framer-motion-12.x branch from 5acc762 to 44ee840 Compare January 20, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants