Skip to content

web: upgrade @pierre/diffs to 1.6.4 and @pierre/trees to 1.0.0-beta.6 - #8434

Merged
unknwon merged 1 commit into
mainfrom
jc/pierre-upgrade
Nov 7, 2026
Merged

unknwon merged 1 commit into
mainfrom
jc/pierre-upgrade

Conversation

@unknwon

@unknwon unknwon commented Nov 7, 2026

Copy link
Copy Markdown
Member

Describe the pull request

Upgrades @pierre/diffs from 1.6.2 to 1.6.4 and @pierre/trees from 1.0.0-beta.4 to 1.0.0-beta.6, both to the current latest tags.

  • No code changes needed. The only breaking change in diffs 1.6.3 moves parsePatchFiles's cache-key and error-flag arguments into an options object, and we only pass the patch text. Trees changes are additive to the public API (FileTreeGitStatusPatch, FileTreeResetPreparedOptions).
  • Pinned exactly. 1.6.3 was a broken release (Bug: @pierre/diffs 1.6.3 release is broken pierrecomputer/pierre#1254). 1.6.4 is the rebuild.
  • Fixes we pick up in trees: truncated row names keep mid-string spaces visible, inline rename no longer commits during IME composition, and incremental git status updates.
  • Selectors and strings unchanged. Every data-* attribute our unsafeCSS targets and the English strings the shadow-root localization in Commit.tsx matches are still present.
  • Harmless peer warning. Trees beta.6 pins @pierre/[email protected], whose peer range predates @pierre/theme 2.x. Trees only imports @pierre/theming/color, which does not touch @pierre/theme, and diffs already uses @pierre/[email protected] with the widened range.
  • Highlighting stays on Shiki. 1.6.4 bumps the opt-in @pierre/highlights backend to 0.4.0, which we do not enable.

Link to the issue: n/a

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code or have provided the test plan. (if applicable)
  • I have added an entry to CHANGELOG. (if applicable)

Test plan

  1. moon run web:build (includes tsc -b) and moon run web:lint both pass.
  2. Open a commit diff page for a commit that touches several files and confirm syntax highlighting, inline word diffs, and both unified and split views render.
  3. Click a hunk separator and "Expand all lines" on a modified file and confirm context expands and the "N unmodified lines" and "No newline at end of file" labels are localized.
  4. In the file tree, confirm colors, git status badges, and the search row match the app theme in light and dark modes, and that the search row stays hidden until opened.
  5. Collapse and expand files, toggle whitespace, and confirm in-page diff search and the file tree still work at ~375px width.

@unknwon unknwon mentioned this pull request Nov 7, 2026
3 of 4 tasks
@unknwon
unknwon merged commit 207663d into main Nov 7, 2026
2 checks passed
@unknwon
unknwon deleted the jc/pierre-upgrade branch November 7, 2026 18:00
appthin added a commit to appthin/gogs-plus that referenced this pull request Nov 12, 2026
Brings in the 0.14.4 security and bug fixes (gogs#8439, gogs#8472, gogs#8478, gogs#8480-gogs#8484,
gogs#8486, gogs#8488), the Highlights-based diff highlighter for the web UI (gogs#8492,
gogs#8434, gogs#8435), absolute entrypoint paths for the SPA shell (gogs#8447), Docker
workflow updates (gogs#8463, gogs#8475), and housekeeping.

Fork-specific code is preserved: CodeQL workflow, login bans, sign-in
protection, the -plus release pipeline, and the rewritten README.
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