Repository navigation
Bump is-animated@3.0.19 - #101173
Merged
Merged
Bump is-animated@3.0.19#101173
is-animated@3.0.19#101173Conversation
Contributor
Tests PassedCommit: eb6868e |
styfle
marked this pull request as ready for review
November 6, 2026 18:36
eps1lon
approved these changes
Nov 7, 2026
4 tasks
MrIago
added a commit
to MrIago/vinext
that referenced
this pull request
Nov 9, 2026
Next.js now vendors is-animated 3 (vercel/next.js#101173). For WebP it reads the animation bit of the leading VP8X chunk, where version 2 took any `ANIM` bytes anywhere in the file. vinext ported version 2, so a still WebP whose data happened to contain `ANIM` was served as-is instead of being optimized, and an animated one flagged in VP8X without those bytes was flattened. Detection now reads 30 bytes instead of scanning the whole source. The new AVIF detection (`avis` brand) has no effect on the optimizer: Next.js only calls is-animated for GIF, PNG and WebP sources, so it still optimizes an animated AVIF, and vinext keeps doing the same. Refs cloudflare#4603 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bumps
is-animatedfrom 2.0.2 to 3.0.19 and refreshes the vendored bundle and preserves CJS export now that upstream ships ESM.Performance
A local detection-only benchmark across 9 existing image fixtures measured 33β34% less detection time for an equally weighted mix: approximately 1.09 β 0.73 Β΅s per call. This reproduced in two runs with 24 alternating A/B pairs per fixture on an Apple M3 Pro using Node.js 26.12.1, with buffers loaded before timing.
Results vary by format: animated GIF detection took about 38% less time, and the two animated PNG fixtures took 11β82% less time. Animated WebP took about 0.16 Β΅s longer per call; static PNG, JPEG, and AVIF detection also took longer.
End-to-end image optimization was not benchmarked since these are Β΅s improvements.