Skip to content

chore: update dependency oxfmt to ^0.62.0 - #261

Merged
renovate-nownabe-ghac[bot] merged 1 commit into
mainfrom
renovate/oxfmt-0.x
Aug 8, 2026
Merged

renovate-nownabe-ghac[bot] merged 1 commit into
mainfrom
renovate/oxfmt-0.x

Conversation

@renovate-nownabe-ghac

Copy link
Copy Markdown

This PR contains the following updates:

Package Type Update Change OpenSSF
oxfmt (source) devDependencies minor ^0.61.0 → ^0.62.0 OpenSSF Scorecard

Release Notes

oxc-project/oxc (oxfmt)

v0.62.0

Compare Source

🐛 Bug Fixes

Configuration

📅 Schedule: (in timezone Asia/Tokyo)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

@renovate-nownabe-ghac
renovate-nownabe-ghac Bot enabled auto-merge (squash) August 8, 2026 08:57
@renovate-nownabe-ghac
renovate-nownabe-ghac Bot merged commit 6e5992b into main Aug 8, 2026
11 checks passed
@renovate-nownabe-ghac
renovate-nownabe-ghac Bot deleted the renovate/oxfmt-0.x branch August 8, 2026 08:58
nownabe added a commit that referenced this pull request Sep 20, 2026
## Why

Closes #265.

Draft comments and suggestions keep the line numbers of the head sha
they were created at (`anchor.sha`), but the Planner posted them with
`commit_id = current headSha` and those stale lines. After the author
pushed during a review, drafts landed on the wrong text on GitHub,
suggestions applied to the wrong lines via "Apply suggestion", or the
whole review batch failed with 422 when a stale line fell outside a
hunk.

The ADRs never said which coordinate system the Executor posts in; ADR
0003 now does.

## What

- **Planner** re-anchors every `CreateComment` from `anchor.sha` to the
current head using the same line map ADR 0004 uses for display, and
posts (and routes in-diff/out-of-diff) with the mapped range.
`Comment.anchor` in `LocalState` stays immutable; only the posted copy
is rebased.
- **`RejectComment` step**: a draft whose mapping is `outdated` never
reaches GitHub and returns to `draft + lastError` with a clear message,
so the rest of the submission still goes out and the batch cannot 422 on
stale lines.
- **Remote fetcher** also loads every anchored path at the head sha.
Nothing fetched `(headSha, path)` before, so the line map (display
re-anchoring included) had no target side.
- **Suggestion drafts** carry their edit's `baseSha` instead of the
current head, and submit refreshes first so both shas' sources are
available for the mapping.
- **ADR 0003** §5/§6: posted coordinates are the current head's;
`RejectComment` semantics.
- Tests: draft at sha A → head advances to B with lines inserted above →
submit posts the mapped line; unmappable draft is refused while mappable
ones post; head-sha contents are fetched; pending suggestions carry
`baseSha`.

### Tooling / CI (separate commits)

- `style:` reformats two untouched test files that `oxfmt` 0.62 (pinned
since #261) flagged.
- `chore(tooling):` the shared `Common Checks / oxfmt` job runs the
oxfmt version hardcoded in `nownabe/workflows` at the pinned sha
(0.59.0), which disagrees with this repo's 0.62.0 pin, so a branch that
passes `bun run check:format` failed CI. This bumps the repo pin to
0.68.0 (mise.toml, package.json, lockfiles), moves the shared-workflow
pin to current main (also 0.68.0), and reformats the one file 0.68
changes.
- `ci:` moving the shared-workflow pin made the `GitHub Workflow` job
run zizmor 1.30.1, which flagged pre-existing issues: three hash pins
whose `# vN` comment drifted from the pinned commit (fixed to the exact
tags), and the `./` reusable-workflow reference. actionlint 1.7.12
(latest; what CI runs) rejects the `$/` syntax zizmor wants, so that one
finding is suppressed inline.

## How to verify

1. Draft a comment near the end of a changed `.md`, and a suggestion in
another file.
2. Push a commit that inserts 10+ lines above them, then reload Bark (or
refresh via the debug FAB).
3. Submit: on github.com the comment sits on the original sentence and
"Apply suggestion" edits the right lines.
4. Delete a drafted line upstream instead and submit: only that draft
returns with "Could not map the commented lines to the current head
commit…", the others post.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants