Repository navigation
chore(deps): upgrade frontend dependencies to their latest releases - #9997
Open
joshistoast wants to merge 6 commits into
Open
joshistoast wants to merge 6 commits into
joshistoast wants to merge 6 commits into
Conversation
Bumps every frontend package to its latest minor or patch release. Ports the react-hook-tanstack-virtual patch to virtual-core 3.19: the offset reconcile no longer writes the getter-only scrollAdjustments and skips while a scroll correction is held.
…needs Vitest 5.0.4 lays the test iframe out as a block that fills the runner page, so that page cannot scroll. The setup file keeps only the pointer reset; the guard now asserts the outer page stays unscrolled.
…pe guards oxlint 1.89 flags render-time `new Date()` under react/purity; relative-time captions and the splash year now use a mount-time snapshot. Type-guard failures throw TypeError, and oxfmt 0.74 regroups a README code sample's imports.
axe-core 4.14 checks WCAG 2.5.3 Label in Name under the audited tags. Status-bar chips, the Invoke button, scrubber values, gallery sort and starred toggle, media slots, zoom level and color format controls are now named from what they show.
Launchpad and editor byte figures re-recorded as reviewed upgrade growth, mostly @tanstack/virtual-core 3.19; timings, request counts and owner sets unchanged. Rolldown 1.2.15 moves three canvas-engine modules out of the editor's initial graph.
…pgrade # Conflicts: # invokeai/frontend/webv2/performance/architecture-baseline.json # invokeai/frontend/webv2/performance/browser-baseline.json # invokeai/frontend/webv2/src/features/workflow/ui/library/WorkflowPublicationHost.tsx
This branch has not been deployed
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
Upgrades every frontend dependency in
invokeai/frontend/webv2to its latest release (all minor or patch) and fixes what the new versions surfaced.Dependencies: vite 8.3.5 (rolldown 1.2.15), vitest and
@vitest/browser-playwright5.0.5, playwright 1.64.1, oxlint 1.89, oxfmt 0.74, axe-core 4.14,@tanstack/react-virtual3.14.22 (pulls@tanstack/virtual-core3.19.7),@tanstack/react-query5.104,@tanstack/react-router1.170.46, react/react-dom 19.3.1, i18next 26.5, react-i18next 17.1, lucide-react 1.61,@xyflow/react12.12, zod 4.6.7 and smaller patch bumps.Virtualizer patch: virtual-core 3.19 made
scrollAdjustmentsa getter-only property, so the localreact-hook-tanstack-virtualpatch threw on every list. Its post-commit offset reconcile no longer writes that property and now skips while virtual-core holds a scroll correction. The other two hunks are unchanged; removing each one fails existing tests. A test pins the private members the patch reads, so an upstream rename fails loudly.Browser test setup: vitest 5.0.4 lays the test iframe out as a block that fills the runner page, so that page can no longer scroll. The per-test ancestor scroll reset is removed. The guard test now asserts that the outer page stays unscrolled: a 4 px offset makes all FeatureHint hover tests time out.
Lint: oxlint 1.89 catches render-time
new Date()underreact/purity. Relative-time captions and the splash copyright year now read the clock once per mount. Captions treat a timestamp newer than that snapshot as "now". Type-guard failures throwTypeError.Accessibility: axe-core 4.14 checks WCAG 2.5.3 (Label in Name) under the audited tags. Controls whose
aria-labelhid their visible text are now named from it:Status-bar chips keep their widget name through visually hidden text. A new accessibility journey enables every bottom widget and asserts that each chip's name starts with its widget label.
Performance baselines:
controlPixelEdit,math/snapping,transform/transformMath) from the eagerprojectHydrationchunk into the lazy canvas chunk, so they leave the editor's initial source-owner set.Related Issues / Discussions
None. The pnpm 12 migration follows in a separate PR: pnpm 12's 24-hour
minimumReleaseAgerejects ten of the packages upgraded here until they are a day old.QA Instructions
Run from
invokeai/frontend/webv2on the pinned pnpm 10.12.4 and Node 22.14:pnpm lint: passes.pnpm check:release:tests: passes on the rebased tree (636 unit files, 358 browser files, fixtures, architecture and browser performance gates, project-file journeys, accessibility journeys).pnpm outdated: no output.pnpm dev:mock: the top bar and status bar are visually unchanged, including with the Workflow chip enabled (no overflow). The accessibility tree reads "Invoke", "Edit Width: 1024", "Server Status Disconnected from Server", "Queue status Queue idle", "Gallery: 0 items", "Autosave: Saved", "Shortcuts" and "Notifications: 0 total".Known flake: one FeatureHint browser test ("stays open through a rest on the arrow…") failed once under full-suite load with
Cannot read properties of undefined (reading 'includes')and no stack. Neither the test nor the component calls.includes. It passed 5/5 in isolation and in three other full runs.Byte growth:
Editor initial graph: build gate, against a
mainbuild at the same base:vendor+8,168 B, mostly@tanstack/virtual-core3.17.11 → 3.19.7 (+14 KB unminified);shell-shared+770 B (i18next).projectHydration−5,135 B (the canvas modules above load lazily);chakra−518 B.Launchpad startup JS: +8,264 B over the base build.
Main's own growth: the re-recorded figures also absorb growth main had already accumulated since the last capture. On the build gate that is +19.9 KB raw in the editor initial graph.
Review
Resolved:
t(key)without options on a templated string.Remaining:
_holdOffset,pendingWriteandmaybeNotify. The new test catches a rename.editor-workflow(scripts) andeditor-canvas(largest asset) is about 4 KB.Checklist
What's Newcopy (if doing a release after this PR)Need help on this PR? Tag
@codesmith-botwith what you need.