Packages

motion

14.14.0 · 13 Nov 2026MIT38.5M / weekRepositoryHomepagenpmAtom feed

Upgrading motion From 1.4.3 to 2.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 1.4.3Latest14.14.0
  1. 1.4.3yours
  2. 2.0.0target
5
changes to make
0
advisories fixed
5
new
1
fix

Before you upgrade

Tick each one off as you go
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0

Release by release

  1. 2.0.0

    Migration needed15 Jun 20165 new · 1 fix
    • Breaking

      positionTransition and layoutTransition props (use layout={true} instead).

    • Breaking

      Point type in favour of Point2D.

    • Breaking

      useAnimatedState: Moved to Framer library.

    • Breaking

      dragOriginX, dragOriginY props.

4 other lines we could not sort, mostly version bumps
  • Using Proxy to generate motion components. This saves ~0.5kb from the bundle size and ensures compatibility with all DOM elements and Web Components.

    2.0.0
  • x and y transform values won't change as a result of a drag gesture as this now works via layout projection.

    2.0.0
  • Drag events now report point as the pointer relative to the viewport, in line with other pointer events.

    2.0.0
  • Changed build process and using Terser for uglification. Reduces bundle size by ~1.2kb. (@stokesman in #596)

    2.0.0

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.