Skip to content

build(deps): bump @formkit/auto-animate to 0.10.2 and fix Stack ref type - #3262

Open
jonathanKingston wants to merge 1 commit into
mainfrom
claude/bold-thompson-167uk9
Open

jonathanKingston wants to merge 1 commit into
mainfrom
claude/bold-thompson-167uk9

Conversation

@jonathanKingston

Copy link
Copy Markdown
Contributor

Asana Task/Github Issue: Supersedes #3224

Description

Dependabot's bump of @formkit/auto-animate from 0.10.0 to 0.10.2 fails tsc in the unit (ubuntu-latest) job:

special-pages/pages/onboarding/app/shared/components/Stack.js(22,33): error TS2322: Type 'RefObject<Element> | null' is not assignable to type 'Ref<HTMLDivElement> | undefined'.

0.10.1 changed the Preact hook to useAutoAnimate<T extends Element>(), so with no type argument the ref is inferred as RefObject<Element>. This PR applies the same bump on current main and annotates the hook result in Stack.js as HTMLDivElement. No runtime code changes on our side.

Upstream changes in range (bug fixes only, per the release notes): re-measure after a parent's CSS transition ends; measure uncached positioned ancestors when removing table rows; avoid re-observing a detached element after destroy(); prevent a duplicate MutationObserver when called twice; SVG elements accepted in types. These change animation measurement in the onboarding Stack (only used when animate is set), so a quick visual check is worthwhile.

Testing Steps

  • npm run build && npm run lint && npm run test-unit (all pass locally)
  • Open the onboarding page from the Build Branch links and step through screens that use animated stacks; check items still animate into place and reduced motion still disables animation.

Checklist

Please tick all that apply:

  • I have tested this change locally
  • I have tested this change locally in all supported browsers
  • This change will be visible to users
  • I have added automated tests that cover this change
  • I have ensured the change is gated by config
  • This change was covered by a ship review
  • This change was covered by a tech design
  • Any dependent config has been merged

🤖 Generated with Claude Code

https://claude.ai/code/session_018Jw5UTfNU9VJhBhrJXHaKN

auto-animate 0.10.1 widened useAutoAnimate's generic to `T extends Element`,
so the ref now infers as RefObject<Element> and fails to type-check against
the div ref in the onboarding Stack component. Pin the hook's element type
to HTMLDivElement.

Supersedes #3224.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Jw5UTfNU9VJhBhrJXHaKN
@jonathanKingston
jonathanKingston requested review from a team and daxtheduck as code owners November 28, 2026 08:45

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@github-actions github-actions Bot added the semver-patch Bug fix / internal — no release needed label Nov 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Build Branch

Branch pr-releases/claude/bold-thompson-167uk9
Commit fbc773f4aa
Updated November 28, 2026 at 8:47:34 AM UTC

Static preview entry points

QR codes (mobile preview)
Entry point QR code
Docs QR for docs preview
Static pages QR for static pages preview
Integration pages QR for integration pages preview

Integration commands

npm (Android / Extension):

npm i github:duckduckgo/content-scope-scripts#pr-releases/claude/bold-thompson-167uk9

Swift Package Manager (Apple):

.package(url: "https://github.com/duckduckgo/content-scope-scripts.git", branch: "pr-releases/claude/bold-thompson-167uk9")

git submodule (Windows):

git -C submodules/content-scope-scripts fetch origin pr-releases/claude/bold-thompson-167uk9
git -C submodules/content-scope-scripts checkout origin/pr-releases/claude/bold-thompson-167uk9
Pin to exact commit

npm (Android / Extension):

npm i github:duckduckgo/content-scope-scripts#fbc773f4aaf700b41b01e06effc9f03739f4b18b

Swift Package Manager (Apple):

.package(url: "https://github.com/duckduckgo/content-scope-scripts.git", revision: "fbc773f4aaf700b41b01e06effc9f03739f4b18b")

git submodule (Windows):

git -C submodules/content-scope-scripts fetch origin pr-releases/claude/bold-thompson-167uk9
git -C submodules/content-scope-scripts checkout fbc773f4aaf700b41b01e06effc9f03739f4b18b

@github-actions

Copy link
Copy Markdown
Contributor

[Beta] Generated file diff

Time updated: Sat, 28 Nov 2026 08:47:48 GMT

Apple
    - apple/pages/onboarding/dist/index.js

File has changed

Integration
    - integration/pages/onboarding/dist/index.js

File has changed

Windows
    - windows/pages/onboarding/dist/index.js

File has changed

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-patch Bug fix / internal — no release needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant