Skip to content

Bump 24 JavaScript dependencies and rebuild browser bundles - #3782

Merged
leaf-agent merged 4 commits into
mainfrom
dependabot/npm_and_yarn/dependencies-2b4176b3b2
Oct 24, 2026
Merged

leaf-agent merged 4 commits into
mainfrom
dependabot/npm_and_yarn/dependencies-2b4176b3b2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Updates 24 JavaScript dependencies and rebuilds the browser assets shipped with Leaf. The changed Pele and Pierre build adapters match their new published modules. A frozen install, pnpm run check, and the repeat-row regression test pass on the repaired head.

lit-html stays at 3.3.0 because 3.3.3 still accumulates markers when repeat rows are removed; #3783 tracks its eventual upgrade. Playwright stays at 1.63.0 because #3772 carries the 1.64 runtime fixes and should own that version change.

A base/candidate code-comparison startup probe recorded 50 requests through presentation on each arm. The candidate delivered 1,357 more bytes through that phase, with no additional requests.

---
updated-dependencies:
- dependency-name: "@openai/codex"
  dependency-version: 0.163.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: "@anthropic-ai/claude-agent-sdk"
  dependency-version: 0.3.305
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: "@cloudflare/workers-types"
  dependency-version: 5.20261021.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: "@codemirror/autocomplete"
  dependency-version: 6.20.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: "@codemirror/merge"
  dependency-version: 6.12.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: "@codemirror/view"
  dependency-version: 6.43.15
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: "@earendil-works/pi-ai"
  dependency-version: 1.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: "@happy-dom/global-registrator"
  dependency-version: 21.0.4
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dependencies
- dependency-name: "@lezer/markdown"
  dependency-version: 1.8.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: "@pierre/diffs"
  dependency-version: 1.6.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: "@types/node"
  dependency-version: 26.6.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: amaro
  dependency-version: 1.2.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: eventsource-parser
  dependency-version: 4.1.2
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dependencies
- dependency-name: happy-dom
  dependency-version: 21.0.4
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dependencies
- dependency-name: jsdom
  dependency-version: 30.1.3
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dependencies
- dependency-name: lit-html
  dependency-version: 3.3.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: modern-tar
  dependency-version: 0.8.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: oxc-parser
  dependency-version: 0.155.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: pele
  dependency-version: 1.8.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: playwright
  dependency-version: 1.64.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: smol-toml
  dependency-version: 1.9.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: uuid
  dependency-version: 14.0.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: vite
  dependency-version: 8.3.4
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: vitest
  dependency-version: 5.0.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: wrangler
  dependency-version: 4.151.3
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: zod
  dependency-version: 4.6.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 24, 2026

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The lit-html 3.3.3 update breaks the browser build: Leaf's Lit adapter still searches for the 3.3.0 ref and directive-helpers source seams. Both ci / test and dependency-bundles / build stop with Lit ref seam changed and Lit move seam changed, so this head cannot generate or verify the committed browser bundles. I am updating the adapter for the new source and will push the repair to this branch.

Keep lit-html 3.3.0: 3.3.3 still leaves a marker for every removed repeat row, which a focused runtime test now catches. Keep Playwright 1.63.0 while PR #3772 carries its runtime changes. Update Pele and Pierre build seams and regenerate their shipped bundles for the other 24 updates.
@leaf-agent leaf-agent changed the title Bump the dependencies group with 26 updates Bump 24 JavaScript dependencies and rebuild browser bundles Oct 24, 2026

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The Pierre bundle now includes both @shikijs/vscode-textmate 10.0.2 and 10.1.0. The lockfile gives @shikijs/engine-oniguruma the newer copy while the other Shiki packages use 10.0.2, and pierre-diffs.LICENSES.txt records both in the shipped bundle. Align that closure and rebuild the bundle so the dependency bump does not ship duplicate code. I’ll apply this repair to the bot branch.

Pierre 1.6.0 brought a resolver that its pinned theming package could not supply, so diff widgets failed to render with Leaf's theme. Move to 1.6.1, expose the new theme catalog shape, and rebuild the browser assets. Align vscode-textmate in the lock so the Pierre bundle carries one copy. The focused diff widget test now passes, and pnpm run check passes.
leaf-agent
leaf-agent previously approved these changes Oct 24, 2026
@leaf-agent
leaf-agent merged commit cde27ae into main Oct 24, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the dependabot/npm_and_yarn/dependencies-2b4176b3b2 branch October 24, 2026 03:01
max-sixty added a commit that referenced this pull request Oct 25, 2026
Pierre's parsePatchFiles has run realignChangeContentBySimilarity since
@pierre/diffs 1.3.0, and 1.5.2 splits the test's rewrite into the same
three pieces as 1.6.1 (0/11, 4/4, 0/4). Leaf pinned 1.4.3 when it first
pinned Pierre (#1084), so the rewrite has read this way since then, not
since #3782.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 25, 2026
In a patch review at 1600x1000, lf-diff showed a rewrite's four deleted
lines between the 11th and 12th of its 19 added lines. That cut the new
function in two, and the re-indented lines 12-15 were painted as changed
words. Pierre's parser has re-paired such changes since 1.3.0, so the
diff has read this way since Leaf first pinned `@pierre/diffs` (1.4.3,
in #1084), not since the 1.6 bump in #3782: Leaf's vendored parser
before that bump splits this PR's test patch exactly as 1.6.1 does.

Pierre runs `realignChangeContentBySimilarity` on every parse. It splits
a change whose deleted and added line counts differ into pieces, so that
its most similar lines pair up. That helps a split view. Leaf draws only
the unified view, where the step moves deleted lines into the middle of
the added ones. In a fresh Opus 5.5 patch review, the pair judge
preferred plain HTML's removed-then-added diff both times, for "more
readable code".

lf-diff now joins the pieces after parsing, restoring git's order: each
change reads deletions, then additions. A git patch never puts two
changes side by side without context between them, so a one-sided change
next to another change can only be one of Pierre's pieces. Rows, line
numbers and comment coordinates are unchanged. Word highlights pair a
change's lines by position.

The join undoes a step the dependency runs itself. An option in Pierre
to skip realignment for the unified view would let this code go; that is
reported upstream in
[pierrecomputer/pierre#1229](pierrecomputer/pierre#1229).

Evidence (local, in the campaign worktree
`/Users/maximilian/workspace/leaf.agent-a10f091f355e3a600`):
- `.tmp/overnight/c7/rewrite-diff-base.png` and
`.tmp/overnight/c7/rewrite-diff-after.png` show the rewrite on main and
with the join.
- `.tmp/overnight/c7/difftest.html` reproduces it.

Checks, on this branch cherry-picked onto current main:
- `test_a_rewrite_reads_its_deletions_above_its_additions` fails with
main's `lf-diff.js`, where the rows read new1..new11, old1..old4,
new12.., and passes with the join.
- `tests/browser/widgets/test_diffs.py -k "rewrite_reads or comments or
selection or refresh or hunk"`: 9 passed.
- `tests/browser/test_render_anchors.py -k diff`: 19 passed.
- `pnpm run test:runtime`: 550 passed.
- pre-commit passes.
- Parsing the test's rewrite with `parsePatchFiles` gives the same three
pieces (0/11, 4/4, 0/4 deletions/additions) on 1.3.0, 1.5.2 and 1.6.1,
and one change (4/19) on 1.2.0.
- On the campaign branch, the stills diff-file-threads, diff-long-lines,
worktree-diffs, walkthrough-diff-comment and diff-filter were unchanged.

No open PR touches the same code (searched "pierre", "realign", "diff
deleted").

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant