Skip to content

chore(deps): upgrade use-resize-observer to 10.0.0 - #12

Merged
agentHits merged 2 commits into
AgentHits-Devfrom
chore/deps-use-resize-observer-10
Oct 7, 2026
Merged

agentHits merged 2 commits into
AgentHits-Devfrom
chore/deps-use-resize-observer-10

Conversation

@agentHits

Copy link
Copy Markdown
Collaborator

What changed

  • apps/dokploy/package.json: use-resize-observer 9.1.0 -> 10.0.0 (published 2026-07-31, past the 3-day release-age window).
  • apps/dokploy/components/ui/file-tree.tsx: default import -> named import { useResizeObserver }.
  • bun.lock: @juggle/resize-observer is no longer pulled in.

The file tree is the only consumer of the package. The other ResizeObserver usages in the app (truncate-tooltip.tsx, both terminals) use the native browser API and are unaffected.

Release notes (v10.0.0) and impact

  • Named export only, no default export: fixed in file-tree.tsx.
  • /polyfilled entrypoint removed, only the package root is importable: not used here.
  • @juggle/resize-observer dropped, native ResizeObserver required: all supported browsers have it.
  • react-dom no longer a peer; React >= 18.2 required: the app is on React 19.
  • ES2020 output: fine for Next's toolchain.
  • A measured 0 is now reported as 0 instead of undefined, and the onResize payload carries the raw entry: the file tree only uses the returned ref and never reads width/height or passes onResize, so there is no ?? vs || fallback to adjust.

Verification

  • bun run typecheck: passes for all workspaces.
  • bunx biome check on the changed files: clean.
  • bun run test in apps/dokploy: the only failures seen are in application.real.test.ts, which needs a Docker socket and fails locally as expected. No test covers the file tree.
  • next build not run locally; CI builds it.

Manual check on dev

The file tree is rendered on Traefik File System (/dashboard/traefik, sidebar entry, also reachable from the user menu and the command palette), via components/dashboard/file-system/show-traefik-system.tsx. Check that:

  • the directory tree renders and scrolls inside its panel,
  • folders expand/collapse and selecting a file opens it in the editor,
  • resizing the window doesn't break the layout and there are no console errors.

If remote servers are configured, check the same page with a server selected.

🤖 Generated with Claude Code

agentHits and others added 2 commits October 6, 2026 16:15
v10 ships a named export only, so switch the file tree to
`import { useResizeObserver }`. The package no longer depends on
@juggle/resize-observer, which drops out of the lockfile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@agentHits
agentHits merged commit bcb7db7 into AgentHits-Dev Oct 7, 2026
8 checks passed
@agentHits
agentHits deleted the chore/deps-use-resize-observer-10 branch October 7, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant