2 hours ago
react-grid-layout

2.4.0

📚 Documentation

  • deterministic operation-count budgets for core and React hot paths - #2323 by @STRML
  • bound untrusted layout input and the compaction work it can cause - #2328 by @STRML
  • add enableUserSelectHack to dragConfig and resizeConfig (#1630) - #2311 by @cmaciasjimenez
  • coded dev warnings and the 2.4 deprecations (RGL-47) - #2341 by @STRML
  • replace ESLint with oxlint - #2357 by @STRML

🧪 Tests

  • adjust scaled drag position to be relative to parent container (#2231) - #2253 by @olagokemills
  • render active items between snapped grid steps - #2304 by @sergioperezcheco
  • golden-master corpus for core and extras algorithms - #2320 by @STRML
  • moveElement sorts once per call instead of once per step - #2327 by @STRML
  • replace the 28 TestUtils.Simulate calls in lifecycle-test - #2331 by @STRML
  • bound untrusted layout input and the compaction work it can cause - #2328 by @STRML
  • stop edge auto-scroll when the dropping placeholder unmounts (#2312) - #2314 by @b84330808
  • external drops push the items they land on again (#2313) - #2334 by @STRML
  • bound fastVerticalCompactor work on a negative x - #2335 by @STRML
  • two regressions from the layout-bounds work (#2328) - #2336 by @STRML
  • add enableUserSelectHack to dragConfig and resizeConfig (#1630) - #2311 by @cmaciasjimenez
  • keep 2.x sizes below 1 and breakpoint generation (#2328 follow-up) - #2337 by @STRML
  • sync layoutRef when removing the drop placeholder (port of #2248, #2265 test) - #2339 by @STRML
  • moveElement no longer mutates its input (RGL-11) - #2342 by @STRML
  • coded dev warnings and the 2.4 deprecations (RGL-47) - #2341 by @STRML
  • one onLayoutChange per drag, resize or compactor swap (RGL-15) - #2343 by @STRML
  • re-sync on a same-type compactor change; RGL_W008 for getCompactor (RGL-17) - #2344 by @STRML
  • warn RGL_W002 once per grid, and only for geometry - #2346 by @STRML
  • keep moveElement's 2.x in-place contract - #2347 by @STRML
  • spatial indexes for classic vertical and horizontal compaction - #2351 by @STRML
  • replace ESLint with oxlint - #2357 by @STRML
  • keep lint and fmt out of .claude worktrees, pass allowMobileScroll changes to items - #2370 by @STRML

🔧 Internal Changes

  • build: migrate from Yarn 1 to Yarn 4 through Corepack - #2299 by @STRML

  • golden-master corpus for core and extras algorithms - #2320 by @STRML

  • golden-master interaction traces for the React layer - #2321 by @STRML

  • deterministic operation-count budgets for core and React hot paths - #2323 by @STRML

  • fix dev-dependency security advisories - #2325 by @STRML

  • scenario-driven Playwright suite with per-frame box baselines - #2332 by @STRML

  • drop unused prop-types and resize-observer-polyfill - #2338 by @STRML

  • 2.4.0 changelog so far, and keep jest out of nested worktrees - #2340 by @STRML

  • replace ESLint with oxlint - #2357 by @STRML

  • keep lint and fmt out of .claude worktrees, pass allowMobileScroll changes to items - #2370 by @STRML

  • add changelog entries for 2.2.2 through 2.3.0 - #2298 by @STRML

  • delete compact-compat and share clamp and column width - #2322 by @STRML

  • one axis-generic classic compactor without O(n^2) lookups - #2326 by @STRML

  • RFC 0003, the v2.1 engine and extension points - #2329 by @STRML

  • RFC 0003 revision 5, ship the engine as 3.0.0 with breaking changes - #2333 by @STRML

  • build: remove the follow-redirects age-gate exemption - #2307 by @Apu-Emdad

  • mark RGL-17 merged in RFC 0003 - #2345 by @STRML

  • run local Playwright on system Chrome with the sandbox on - #2350 by @STRML

  • back off the classic horizontal wrap-jump check - #2349 by @STRML

  • dense tide for ordinary rows in fastHorizontalCompactor - #2348 by @STRML

  • have CodeRabbit approve PRs once its comments are resolved - #2352 by @STRML

3 hours ago
anime

v5.0.0

https://github.com/user-attachments/assets/249cb69e-883f-4f3e-9477-b2895bd67aa7

New Features

  • Editor
    • New visual editor that shows the animations of your code as controls and on a timeline in your browser, and saves your changes back into your code (learn more: https://animejs.com/editor)
  • Muting animations and properties
    • New muted parameter for animate(), createTimeline() and createTimer() to disable value updates, callbacks and completion promises while keeping the timing, and for individual animation properties to disable their value updates
  • Spring
    • New stretch() method to make a spring settle in a given time with the same bounce and curve, like spring({ bounce: .5 }).stretch(1000)
    • New minSettlingDuration getter, the shortest duration a spring can settle in
  • Color
    • New utils.parseColor() to convert a hex, rgb(), hsl(), oklab(), oklch() or color() string to [r, g, b, a], like utils.parseColor('#ff0000') returning [255, 0, 0, 1]. Named colors, transparent, lab(), lch(), hwb() and other strings return [0, 0, 0, 1]
  • Engine
    • New optional time argument for engine.update() to render at the timestamp of your own loop, a performance.now() time as requestAnimationFrame gives, like renderer.setAnimationLoop(time => engine.update(time)) with engine.useDefaultMainLoop = false

Breaking Changes

  • Timer
    • duration and iterationDuration of timers, animations and timelines, duration of waapi.animate() animations, and settlingDuration of springs are now read only: use stretch() to change them
    • The duration of animate(el, { x: 1, duration: 0 }), of a timeline with only call() or set() children, and of an animation after stretch(0) now reads 1e-7 instead of 1e-11
    • currentTime and iterationCurrentTime now read whole milliseconds, like 33 instead of 33.3 after seek(33.3), and 0.123 instead of 0.1235 after seek(.123456789) with engine.timeUnit = 's'
  • Timeline
    • timeline.labels no longer inherits from Object
    • A value of a child of a timeline can now show floating point noise, like x at 29.999899999999997 instead of 29.9999 at seek(2999.99) on a timeline with three 1000 ms children going to 10, 20 and 30 with ease: 'linear'
  • Engine
    • The deltaTime of the engine, timers, animations and timelines is now read only
    • computeDeltaTime() is removed: read deltaTime instead
    • engine.pause() now also holds draggables and scroll synced animations, like a 100 px drag leaving draggable.x at 0 instead of 100 until engine.resume()
    • engine.resume() on an engine that is not paused now restarts each animation from its last frame, like an x animation to 1000 in 1000 ms with a resume() call after each frame reading 400 instead of 812 at 800 ms
  • Muted
    • A target property named muted can no longer be animated or set, because muted is now a parameter
  • Draggable
    • The velocity of a draggable is now read only
  • Utilities
    • utils.get() now returns colors in the rgba() form, like rgba(255,0,0,1) instead of #ff0000
    • utils.forEachChildren(), utils.addChild(), and utils.removeChild() no longer accept custom names for the properties that link the items
  • TypeScript
    • The RandomNumberGenerator type is removed: use ReturnType<typeof utils.createSeededRandom>

Improvements with breaking changes

  • Animation
    • A new animation now also replaces the animations of the same property that are scheduled to start after it:
      animate(el, { x: 200, delay: 200 });
      animate(el, { x: 300 });
      // 4.5: ends at 200
      // 5.0: ends at 300
    • .restart(), .play() and .seek() on a replaced animation now take its properties back from the newer animation:
      const enter = animate(el, { scale: 1.5, duration: 300, autoplay: false });
      const leave = animate(el, { scale: 1, duration: 300, autoplay: false });
      enter.restart();
      // 4.5: scale stays at 1
      // 5.0: scale animates to 1.5, and leave is cancelled without calling its onComplete
    • An animation that lost a property no longer writes it when you seek it to a time before the newer animation was created:
      const a = animate(el, { x: 100, y: 100, duration: 1000 });
      // 400 ms later
      const b = animate(el, { x: 300, duration: 2000 });
      a.seek(100);
      // 4.5: x and y take the values of a
      // 5.0: x keeps the value of b, and y takes the value of a
  • Timeline
    • Children now apply their from values when they are added, without .init(), when no earlier child animates the same property:
      const tl = createTimeline({ autoplay: false })
        .add(a, { opacity: [0, 1], duration: 300 }, 500)
        .add(b, { y: [50, 0], duration: 300 }, 800);
      // 4.5: a.opacity is 1 and b.y is unchanged until tl.init() is called or the timeline reaches each child
      // 5.0: a.opacity is 0 and b.y is 50 after the last .add()
    • A child now takes a property from the earlier children when its animation starts, after its delay, instead of at its position, so the earlier children keep playing during the delay:
      createTimeline({ defaults: { ease: 'linear' } })
        .add(el, { x: 100, duration: 1000 })
        .add(el, { x: 200, duration: 500, delay: 300 }, 500);
      // 4.5: x stays at 50 from 500 to 800
      // 5.0: x goes on to 80 at 800, where the second animation starts
    • svg.morphTo() and scrambleText() in a child with a delay now start from the shape or the text at the end of the delay
  • Completion promises
    • .then() now resolves with the result of its callback, waits for a returned promise or animation, rejects when its callback throws, and resolves to the instance without a callback:
      await animation.then(() => 42);
      // 4.5: undefined
      // 5.0: 42
      
      await intro.then(() => outro.play());
      // 4.5: resolves when intro completes
      // 5.0: resolves when outro completes too
      
      await animation.then(() => { throw new Error('boom') });
      // 4.5: never resolves or rejects
      // 5.0: rejects with the error
  • Transforms
    • Individual transform properties like x or rotate now always win over transform in the same animation, whatever their order:
      animate(el, { x: 100, transform: 'rotate(45deg)' });
      // 4.5: rotate(45deg)
      // 5.0: translateX(100px)
    • The transform of an element is now written after its other animated styles, which changes the order of the declarations in its style attribute and of the MutationObserver records
  • Easing
    • A custom ease function now runs once per frame for all the properties and targets that share its ease, delay and duration, instead of once per property and target
    • The string syntax of the steps(), linear(), irregular() and cubicBezier() eases, like ease: 'steps(4)', no longer logs a warning and plays as a linear ease
    • irregular() now gives each step a random speed around a constant pace, so the progress no longer holds still, reaches 1 before the end, or always runs ahead of the linear pace. A randomness above 1 now makes more slow steps and fewer fast ones, like irregular(12, 3) with no time at zero speed instead of about 28% of it
  • Stagger
    • The start of a range now adds to its first value, like stagger([200, 800], { start: 100 }) going from 300 to 900 instead of 100 to 700. As a timeline position, a range now starts at its first value
  • Function-based values
    • A function-based delay now runs before the function-based to, from, ease and duration of the same property:
      animate(el, { x: { to: () => log('to'), delay: () => log('delay') } });
      // 4.5: to, delay
      // 5.0: delay, to
    • A function-based delay now also runs when a function value like scrambleText() returns its own delay, and that function value can run two times in a timeline
  • Precision
    • Times and stagger values are now rounded to 7 decimals, so a seek to a written time reaches it exactly, and values smaller than that, like stagger(1e-8), become 0
  • Three.js adapter
    • A scale or opacity above 0 now shows a mesh only when a scale or opacity of 0 hid it, and utils.get(mesh, 'visible') returns true for a mesh hidden that way:
      mesh.visible = false;
      animate(mesh, { scale: [1, 2] });
      // 4.5: mesh.visible is true from the first frame
      // 5.0: mesh.visible stays false
  • Scroll
    • A number sync of onScroll() now smooths less near 1 and more near 0, like sync: .99 catching up with the scroll in about 0.07 s instead of 0.4 s at 60 fps, and sync: .1 in about 8 s instead of 3 s. To keep the catch-up time of 4.5 at 60 fps, convert a value with Math.log(-150 * Math.log(.99 - .19 * sync)) / Math.log(227), like sync: .5 to sync: .52

Improvements

  • Performance
    • Measured against 4.5.0 in Chrome. 2× means that anime.js does the same work in half the time. Playback is the time to render a frame or to seek, setup is the time to create animations. The frame rate gain depends on how much of each frame anime.js uses, the rest being your own code and the rendering of the browser
    • CSS transforms: 1.2 to 1.45× faster playback, 1.75× with keyframes and 2× with staggered keyframes, and up to 5.7× faster setup for one staggered animation on 1,000 elements
    • CSS properties, CSS variables, and SVG attributes: 1.05 to 1.1× faster playback, and 1.3 to 1.5× with staggered keyframes. Colors play back at the same speed as in 4.5, except 1.45× faster with staggered keyframes
    • Timelines: 3.3× faster playback with many overlapping steps, 2.85× with nested timelines, 1.45× with steps chained on the same targets or scroll-driven scrubbing, and 2 to 40× faster setup, like 1.2 ms instead of 49 ms to add 1,000 children
    • Animations that replace running ones: 1.55 to 1.6× faster playback and 14 to 24× faster setup, like 0.65 ms instead of 16 ms to replace 1,500 running values
    • Staggered keyframe animations: 3.4 to 5.3× faster setup on every target type
    • JavaScript objects: 1.05 to 1.4× faster playback, 1.5× with keyframes and 1.95× with staggered keyframes, and up to 2.9× faster setup for one staggered animation on 10,000 objects
    • Long keyframe lists: 34× faster setup, like 0.55 ms instead of 18 ms for 500 keyframes
    • Values with several numbers, like SVG points or 3D vectors: 1.15× faster playback, 1.25× faster setup, and 3.7× faster playback through adapters
    • Blended animations: 1.15× faster playback and 1.35× faster setup, with less temporary memory
    • Animations with composition: 'none': 1.4× faster playback and 1.1× faster setup
    • Three.js Object3D: 1.1 to 1.35× faster playback, 1.35× with keyframes and 1.65× with staggered keyframes, and up to 3.9× faster setup for one staggered animation on 10,000 objects
    • Three.js InstancedMesh: 2.85 to 3.2× faster playback with a stagger, 1.85 to 2.8× with one animation per instance, 2.25× with keyframes, and 1.1 to 3.25× faster setup, with less memory per instance
    • Power eases, like 'inOutQuad' or the default 'out(2)': about a third less memory allocated on each frame on a page that uses several eases
    • svg.createMotionPath(): 2× faster playback with translateX and translateY, 1.3× with rotate as well
    • timeline.remove(): 4× faster
  • Timeline
    • New .call({ id, callback, muted }, position) and .sync({ id, target, muted }, position) forms to name or mute callbacks and synced animations
    • .sync() now accepts an array, like timeline.sync([intro, outro], stagger(200))
    • Synced animations now inherit defaults.muted
  • Layout
    • Images, videos, and canvases now animate their size with a scale instead of width and height, for smoother animations of large media
  • Color
    • New support for animating oklab(), oklch(), and color() values in the srgb, srgb-linear and display-p3 spaces, including mixed formats: animate('.box', { color: ['oklch(70% 0.2 30)', 'color(display-p3 0 0.8 1)'] })
    • Colors outside sRGB, like color(display-p3 0 1 0), now animate in a clipped sRGB color space instead of not animating at all: use waapi.animate() to keep the full color space
  • Soft revert
    • New .revert(false) option for timers, animations, and timelines to cancel and restore the original values without seeking back to the start
  • Random
    • New options object for utils.random(), like utils.random({ min: 0, max: 100, decimals: 2 }), with seed and perTarget options
    • Generators from utils.createSeededRandom() now accept an options object, like utils.createSeededRandom(42)({ min: 10, max: 20 })
    • utils.randomPick() now accepts a random generator as its second argument, like utils.randomPick(['red', 'blue'], utils.createSeededRandom(42))
  • Easing
    • New seed parameter for irregular() to repeat the same steps at each call and each page load, like irregular(12, 1.5, 7), as the seed of utils.random() does. Another number draws other steps. Without a seed, or with false, each call draws new steps
  • TypeScript
    • More accurate callback and .then() types, including async results and animation subclasses
  • Scroll
    • Clearer enter and leave markers for onScroll({ debug: true }), with less flicker when resizing the window
    • More accurate velocity and direction in onScroll(), now measured on every frame instead of 30 times per second, with the same velocity for the same scroll speed at any frame rate, like a velocity that changes on each frame of a 120 Hz display instead of every fourth frame
  • Version
    • New version export, the version of the package: import { version } from 'animejs'

Bug Fixes

  • Timeline
    • Fix backward seeks showing the from value of a later child before that child starts
    • Fix a seek to the end of a loop skipping the call() children of that loop
    • Fix a backward seek leaving a property on the value of a later child when an earlier child with loop and alternate owns it again
    • Fix a child with reversed: true or a playbackEase not playing before a later child of the same property starts
    • Fix a child starting from the wrong value after a looped child with keyframes
    • Fix a child starting from 0 instead of the value of the previous child when another child replaced its first target
    • Fix a reversed timeline not showing the value of an earlier child between two children of the same property
    • Fix a stretched timeline not completing at its end
    • Fix utils.remove() and timeline.remove() on a timeline not updating its duration
    • Fix timeline.refresh() restarting a function-based child from the current value of its target instead of the value of the previous child
    • Fix a seek that jumps over a child running its onRender when a later child writes the same property
    • Fix a looping timeline not running onUpdate on a seek backward from its end
    • Fix descending stagger() ranges used as timeline positions starting before the end of the timeline, like 1000, 900, 800 instead of 1200, 1100, 1000
    • Fix '<' as the position of the first child throwing an error
    • Fix a relative position on a missing label, like 'missing+=20', placing its child at NaN instead of the end of the timeline
    • Fix onBegin of a child with a negative delay never running at the start of a timeline, or running on every frame later in it
    • Fix a child that ends before 0 keeping its start value on the first seek after it
    • Fix a child with a negative position skipping its end value and its onComplete when a seek or a long frame goes over the end of a loop of its timeline
    • Fix a child with duration: 0 in a timeline that has a delay running onComplete without onBegin
    • Fix .stretch() on a child not updating the duration of its timeline
    • Fix .stretch() sometimes leaving a call() at its old position
    • .stretch(0) on a timeline now does nothing instead of setting the labels and the positions of the children to 0 for good
    • Fix a call() on the turn of an alternate timeline with a loopDelay running three times
    • Fix a long frame over a loop skipping the call() children of the loop it leaves
    • Fix .stretch() on a timeline turning its call() and set() children into short animations
    • Fix .refresh() on a child of a timeline leaving the later children on the start value they took before
    • Fix the call() children of a timeline created with reversed: true never running
    • Fix a seek over the turn of an alternate timeline, or back over a loop, skipping the call() children of the iteration it leaves
    • Fix a call() at a negative position not running on a seek back over a loop
    • Fix onComplete of a child that ends on or before the turn of an alternate timeline not running when a frame or a seek goes over the turn
    • A call() or a set() at a negative position now runs like one at 0
    • Fix play() on a new timeline with reversed: true running every call() and the onBegin and onComplete of every child at once
    • Fix a child that rests past its end keeping an old value after utils.remove() of a later child, or after another animation moved its property while the timeline was complete
    • Fix .remove(), .refresh() and the .stretch() of a child on a timeline taking a property back from a newer animation of the same target and cancelling it
    • The iterationDuration of a set() child of a timeline, and of any child whose properties all last 0 ms, now reads 0 like a call() child
    • Fix utils.remove() on one child of a timeline keeping the value it took from the removed child
    • Fix keyframes with composition: 'none' in a looping timeline showing the wrong keyframe after a seek
    • Fix a child with a playbackRate writing a property after a later child with a from value took it
    • Fix svg.morphTo() and other function values reading the last keyframe of the previous child instead of the keyframe that plays at their start
    • Fix a call() not running again after a muted seek back or a revert(), and running late after a muted seek past it
    • Fix the call(), set() and 0 ms children of a looped 0 ms timeline running only once
    • Fix reverse() on a looped timeline that holds only set() or call() children completing it one frame late
    • Fix .call(null) and other non-function values throwing an error when the timeline reaches them
    • Fix the frameRate of a child of a timeline with composition: false not applying, like createTimeline({ composition: false }).add(el, { x: 100, frameRate: 30 }).init() updating the child on every frame instead of 30 times per second
    • Fix a seek of a timeline outside of a callback not updating a child with a frameRate, like x: 1000, duration: 1000, ease: 'linear', frameRate: 10 keeping its value instead of showing 500 on seek(500) right after seek(100)
    • Fix onBeforeUpdate, onUpdate and onRender of a child, and onRender of its timeline, not running when the timeline moves back before the start of the child or starts a new loop, like seek(500) after seek(2000) setting x to 0 without calling the onUpdate of x: 100, duration: 400 added at 1000
    • A set() now calls onBeforeUpdate, onUpdate and onRender when a seek goes back before it, like seek(400) after seek(600) on a set() at 500, which called only onComplete
    • A child now calls onBeforeUpdate, onUpdate and onRender on a frame that a frameRate skips when that frame moves it back to its start, as on a skipped frame that ends it, like a child of a frameRate: 15 timeline with alternate: true calling onUpdate with its start value on the way back
    • Fix a child calling onBegin and onComplete when the playhead does not reach it, or on a muted seek, in a timeline that also holds a sync()ed timeline, like a set() at 100 before a set() of the same property at 600 calling both on seek(850) after seek(750) in an 800 ms timeline with loop: 1
    • Fix a muted seek and init() of a timeline calling the callbacks of its sync()ed timers, animations and timelines, like seek(300, true) calling onBegin, onUpdate and onRender of an animation synced at 100
    • Fix a muted seek and init() of a timeline calling the callbacks of the timers, animations and timelines that a child animates with currentTime, like seek(300, true) calling onBegin and onUpdate of both timers after add([timerA, timerB], { currentTime: [0, 1000], duration: 1000 })
    • Fix a timeline calling onPause of a playing timer, animation or timeline each time it seeks it, like seek(300) calling onPause of a timer that plays after sync(timer)
  • Animation
    • Fix progress or currentTime assigned on a playing animation of createAnimatable() calling onComplete and onPause during the move, like animatable.animations.x.progress = .3 after animatable.x(100)
    • Fix utils.keepTime() calling onPause of the new animation two times on each call after the first one, like three onPause instead of one on the second call with animate(el, { x: 100, loop: true })
    • Fix unit conversions ignoring the size rules of the element, like a max-width, padding, a border, an inline display or a flex container
    • Fix floating point errors stopping an animation or its keyframes short of their end, like 99.99999999999997 instead of 100
    • Fix .cancel() on a replaced animation breaking later animations of the same property
    • Fix .revert() removing the original inline styles after keyframe animations
    • Fix .revert() not restoring original values of 0, null, undefined, or an empty string
    • Fix onComplete running again on a seek past the end of a completed animation
    • Fix blended transforms no longer updating after one of the blended animations is cancelled or completes
    • Fix a property with three or more keyframes not going back to its first value when a looping timeline restarts or a short backward seek passes its start
    • Fix .reverse() after completion holding the end value for as long as the last frame went past the end
    • Fix .stretch() moving an animation in time, so a new animation of the same property took its start value from the wrong animation
    • Fix cancelled animations using composition: 'blend' affecting later animations of the same property
    • Fix .reverse() on a looped animation with a loopDelay jumping to another value
    • Fix an animation with reversed: true and a loopDelay not holding the start of its next loop during each loop delay and calling onLoop late, like x: 100, duration: 1000, loop: 2, loopDelay: 500 holding 0 instead of 100 during the delays and calling onLoop at 1500 and 3000 instead of 1000 and 2500
    • Fix negative delay values: currentTime now counts from 0 after seek(0) and play(), and a negative delay longer than the duration no longer shows the end at seek(0), jumps to the start on .reverse(), or skips the end value when the animation is revived
    • Fix a seek on a looped animation with a negative delay adding the time that the delay skips, like scale: [0, 1] with duration: 7000, loop: true, alternate: true, delay: -5250 and ease: 'linear' showing 0.75 instead of 0 at seek(0)
    • Fix a looping animation with a delay keeping its final value after a seek backward from its end, like 100 instead of 95
    • Fix a reversed animation keeping a later value after a seek back into its delay
    • Fix playbackEase showing a value from the middle of an animation during its delay
    • Fix .refresh() throwing an error when a function value returns an options object or a from-to array
    • Fix .refresh() reading the current value in the wrong unit when a function value returns another unit, like 180turn instead of 0.5turn
    • Fix .refresh() writing NaN when a function value returns fewer numbers than the end value
    • Fix .refresh() keeping the old value of a function value that creates another animation
    • Fix a function value that creates another animation changing the duration, the keyframes, or the start, end or original values of its own animation
    • Fix an empty keyframe array on a transform property, like y: [], stopping the other transform properties of the animation
    • Fix .stretch() during playback jumping to another value, like 31 instead of 61
    • Fix .stretch() on a looping animation leaving its value in the middle when the next seek goes past the new duration
    • Fix .stretch() adding floating point errors on each call: the new duration is now rounded to 7 decimals
    • Fix .stretch(0) losing the proportions of keyframes and loops for the next .stretch()
    • Fix the currentIteration and iterationCurrentTime setters ignoring loopDelay
    • Fix a property with duration: 0 and a delay ending slightly off its final value
    • Fix a function value reading the color of the previous keyframe without its modifier
    • Fix a keyword in the inline style of an element, like red, transparent, bold or inherit, read as written instead of as its computed value, so color: red stayed red instead of animating and utils.get() returned 'red' instead of rgba(255,0,0,1)
  • Promises
    • Fix only the last .then() callback running when several are registered on the same instance
  • Color
    • Fix rgb() and hsl() values with spaces, a slash alpha, percentages, or a turn, grad or rad hue throwing an error, like rgb(255 0 0 / 50%)
    • Fix the channels of rgb() and hsl() colors and the alpha of every color out of range animating out of range instead of clamping like CSS, like rgb(300, 0, 0) writing rgba(300,0,0,1) instead of rgba(255,0,0,1)
    • Fix a color with channels that are not numbers, like hsl(a, b, c), throwing an error instead of reading as [0, 0, 0, 1]
    • Fix gray hsl() colors animating to black
    • Fix colors fading to transparent when animating from or to a number
  • Easing
    • Fix the Expo and Elastic eases jumping to their end value on the last frame. Their curves also change a little, like outExpo at 50% giving 0.969697 instead of 0.96875
    • Fix spring() parameters above 10,000 being silently capped
  • Engine
    • Fix engine.pause() and engine.resume() returning undefined when they have nothing to do, like engine.pause().resume() throwing a TypeError before the first animation plays
    • Fix a timer, animation or timeline created or played after engine.pause() starting the engine again, like an x animation from 0 to 1000 in 1000 ms paused at 211 reading 811 100 ms after an animate() call made 500 ms into the pause. It now stays at 211 and the new animation at its beginning until engine.resume()
    • Fix engine.paused reading true before the first engine.pause(), and engine.pause() doing nothing when no animation plays, like engine.pause(); animate(target, { x: 100, duration: 500, ease: 'linear' }) moving x to 62 in 300 ms instead of keeping it at 0 until engine.resume()
    • Fix the engine and timers with a frameRate rendering two times in one millisecond after a late frame
    • Fix an animation started while no other animation runs rendering one frame late, like an animation played from a scroll event listener
    • Fix the engine keeping the CPU busy in Node between two frames, like 33805 callbacks and 122 ms of CPU for a 500 ms animation instead of 110 callbacks and 8 ms
    • Fix frameRate and engine.fps letting a faster display update more often than the limit, like 72 updates per second with frameRate: 60 on a 144 Hz display, and 300 instead of about 240 on a 300 Hz display. A display up to 1% faster than the limit still updates on each frame
    • Fix frameRate and engine.fps updating two times faster than the limit for two frames after a late frame, like intervals of 16.7 then 16.7 ms instead of 33.3 ms with frameRate: 30 on a 60 Hz display after one frame of 62 ms
    • Fix a timer, animation or timeline updating again one frame after its first update at a lower frameRate, like two updates 16 ms apart after frameRate changes from the default to 30 on 60 Hz frames
    • Fix engine.deltaTime counting the time without animations on the first frame after the engine wakes, like about 2000 instead of 16 at 60 fps after 2 seconds without animations
    • Fix animations and deltaTime moving by uneven steps on frames that the browser does not drop, like steps of 7, 8, 9 or 10 ms instead of the 8.3 ms between the frames of a 120 Hz display
    • Fix engine.update() skipping a frame when an animation or timer is created right before it with engine.useDefaultMainLoop = false, like 11 updates in 30 frames with one animate() call before each engine.update()
    • Fix engine.speed = 0 stopping every playing animation for good, like an animation that stays at the same value after engine.speed = 1. It now holds the animations until the speed changes again
    • Fix engine.speed set from a callback making the animations that update after it in the same frame jump for one frame, like a 5000 ms animation going from 76 to 152 then back to 84 on engine.speed = .5 in the onUpdate of an animation created before it
    • Fix timers, animations and timeline children with a frameRate updating at uneven intervals when a frame callback runs late, like updates 48 then 16 ms apart instead of 32 ms with frameRate: 30 on frames 16 ms apart
  • Layout
    • Fix progress or currentTime assigned on a playing layout animation ending it at once, like layout.update(...).progress = .5 calling onComplete and onPause and removing the is-animated class while the animation goes on
    • Fix transformed elements keeping their end transform inline after a transition, which blocked later stylesheet transforms like a hover rotation
    • Fix a stylesheet transform jumping to its end value when a transition starts from transform: none
  • WAAPI
    • Fix completion callbacks running and promises resolving after .seek(time, true)
    • Fix animations completing or being removed after a muted seek backward from the end, like .seek(100, true) after .complete()
    • Fix reversed animations reporting their duration as currentTime after completion instead of 0
    • Fix .cancel() writing the computed values inline one frame later, over the inline styles set after the cancel
    • Fix .cancel() removing an inline transform: none from its targets
    • Fix an ease name of Object.prototype, like ease: 'constructor', throwing an error instead of playing as a linear ease
  • Scroll
    • Fix the sync smoothing speed of onScroll() depending on the frame rate
    • Fix .refresh() of a scroll observer moving a linked animation with a negative delay to the wrong time
    • Fix onScroll() keeping the engine running after scrolling stops
    • Fix onScroll() reacting one frame late to a scroll that starts after a pause, like a linked animation with sync: true updating on the second frame of the scroll instead of the first
    • Fix the callbacks of a scroll that starts half a second after the previous one reading the direction and velocity of the previous scroll, like onEnterForward instead of onEnterBackward
    • Fix the velocity and the sync smoothing of onScroll() changing with engine.speed, like engine.speed = .5 doubling the velocity and halving the speed of sync: .5
  • Time unit in seconds
    • Fix looped animations, timers and timelines ending on the wrong loop, short of their end value, or without onComplete when their total duration has decimals
    • Fix engine.deltaTime reading milliseconds, like 16.7 instead of 0.0167
    • Fix spring() without a duration settling in about 21 seconds instead of 1.76 seconds
    • Fix waapi.animate() reading its times in milliseconds
    • Fix a layout transition without a duration playing for 350 seconds instead of 350 milliseconds
    • Fix a timer or an animation with a delay not completing on a seek to its duration
    • Fix utils.damp() taking its deltaTime in milliseconds, like utils.damp(0, 100, .016, .5) giving 0.08 instead of 55.07
    • Fix the velocity, minVelocity and maxVelocity of a draggable reading px per millisecond, like the default maxVelocity reading 50 instead of 50000
    • Fix two timeline children that start at the same time both writing the property
    • Fix tl.sync() of a native Animation lasting 1000 times its duration
    • Fix the overshoot of a released draggable lasting 1 second instead of 1 ms
    • Fix the sync smoothing of onScroll() jumping to the scroll position in one frame
  • Timer
    • Fix a timer with duration: 0 and a delay never calling onBegin and onComplete, like createTimer({ duration: 0, delay: 100 }) that now calls them at the end of its delay
    • Fix reverse(), play() and alternate() inside a loop calling onLoop, and on a timeline the call() at its end
    • Fix the deltaTime of timers reading a huge negative value on the first frames, then the previous frame instead of the current one
    • Fix the deltaTime of timers with a frameRate reading one frame late, like 16 instead of 100 in the first onUpdate of a frameRate: 30 timer after a 100 ms frame
    • Fix a playing timer, animation or timeline losing time when its speed or engine.speed changes, like an animation moving 520 ms in one second with speed assigned in the middle of each frame at 60 fps
    • Fix currentTime, progress, iterationCurrentTime, iterationProgress and currentIteration calling onPause when assigned on a playing timer, animation or timeline, like timer.currentTime = 500 calling onPause once while the timer keeps playing. reverse(), play() and alternate() with loop: true had the same bug, like reverse() at 250 of a playing 1000 ms animation
    • Fix reverse(), play() and alternate() on a playing timer, animation or timeline losing the time since the last frame, like an animation moving back 1 ms instead of 16.7 ms on the frame after a reverse() called 1 ms before that frame at 60 fps
    • Fix onBeforeUpdate, onUpdate and onRender not running when a timer, an animation or a timeline moves back to its start, like seek(0) after seek(200) on x: 100, duration: 400 setting x to 0 without calling onUpdate. deltaTime now reads that move, like -200
    • Fix the deltaTime of a timer, an animation or a timeline keeping the value of the last frame after restart() or reset(), like 16 instead of 0 during the delay of an animation restarted at 60 fps
    • reverse() and alternate() on a completed timer, animation or timeline, and play() on one that completed reversed, now call onBeforeUpdate, onUpdate and onRender at once, as they do in progress, like reverse() after seek(100) on x: 100, duration: 100 calling onUpdate instead of no callback
  • Targets
    • Fix the other transforms of an element no longer updating after utils.remove() removes one of its transform properties
  • Three.js adapter
    • Fix target detection and getInstances() when an application loads multiple copies of Three.js
    • Fix a visible: false tween undone by a scale or opacity animation of the same mesh
    • Fix errors on every render after deleting an animated BatchedMesh instance
  • splitText
    • Fix a lines split dropping the space next to a <br> that does not break the line, like Animation <br>engine with a hidden <br> giving the line Animationengine instead of Animation engine
  • scrambleText
    • Fix scrambleText() ignoring the delay of its animation
  • Scope
    • Fix an error thrown in a scope callback leaving the scope active
  • TypeScript
    • Fix utils.randomPick() result types, like number instead of string | number for utils.randomPick([1, 2, 3])
    • The delay of the ScrambleTextTween type is now optional

Size

An animate()-only bundle is 13.3 KB gzipped (12.3 KB in 4.5), the full bundle 45.4 KB (40.9 KB in 4.5).

3 hours ago
formatjs

formatjs_intl_datetimeformat_calendars: 1.0.3

1.0.3 (2026-12-01)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • formatjs_intl_datetimeformat bumped from 1.1.2 to 1.2.0
3 hours ago
formatjs

react-intl: 12.2.3

12.2.3 (2026-12-01)

Bug Fixes

3 hours ago
formatjs

@formatjs/unplugin: 1.3.3

1.3.3 (2026-12-01)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @formatjs/cli-lib bumped to 10.6.2
3 hours ago
formatjs

formatjs_intl_datetimeformat: 1.2.0

1.2.0 (2026-12-01)

Features

  • intl_datetimeformat: compile static IANA timezone tables (#8274) (894ec2b)
3 hours ago
formatjs

formatjs_intl_hermes: 0.4.4

0.4.4 (2026-12-01)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • formatjs_intl_datetimeformat bumped from 1.1.2 to 1.2.0
      • formatjs_intl_datetimeformat_calendars bumped from 1.0.2 to 1.0.3
3 hours ago
formatjs

formatjs-hermes-intl: 2.1.0

2.1.0 (2026-12-01)

Features

  • intl_hermes: add autolinked RN Temporal wrapper and update docs (#8279) (6f102ce)
  • intl_hermes: add autolinked RN wrapper and update Hermes docs (#8275) (b2add62)
3 hours ago
formatjs

formatjs_temporal: 2.0.3

2.0.3 (2026-12-01)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • formatjs_intl_datetimeformat_calendars bumped from 1.0.2 to 1.0.3
3 hours ago
formatjs

formatjs_cli: 1.13.2

1.13.2 (2026-12-01)

Bug Fixes

Binaries

  • macOS Apple Silicon: formatjs_cli-darwin-arm64
  • Linux ARM64: formatjs_cli-linux-arm64
  • Linux x86_64: formatjs_cli-linux-x64
  • Windows x64: formatjs_cli-win32-x64.exe

Installation

# macOS (Apple Silicon)
curl -LO https://github.com/formatjs/formatjs/releases/download/formatjs_cli_v1.13.2/formatjs_cli-darwin-arm64
chmod +x formatjs_cli-darwin-arm64
sudo mv formatjs_cli-darwin-arm64 /usr/local/bin/formatjs

# Linux
curl -LO https://github.com/formatjs/formatjs/releases/download/formatjs_cli_v1.13.2/formatjs_cli-linux-x64
chmod +x formatjs_cli-linux-x64
sudo mv formatjs_cli-linux-x64 /usr/local/bin/formatjs

# Linux ARM64
curl -LO https://github.com/formatjs/formatjs/releases/download/formatjs_cli_v1.13.2/formatjs_cli-linux-arm64
chmod +x formatjs_cli-linux-arm64
sudo mv formatjs_cli-linux-arm64 /usr/local/bin/formatjs
# Windows x64 (PowerShell)
curl.exe -LO https://github.com/formatjs/formatjs/releases/download/formatjs_cli_v1.13.2/formatjs_cli-win32-x64.exe

Verification

Verify the checksums:

curl -LO https://github.com/formatjs/formatjs/releases/download/formatjs_cli_v1.13.2/checksums.txt
shasum -a 256 -c checksums.txt