Skip to content

feat: add hono diff - #162

Merged
yusukebe merged 1 commit into
nextfrom
feat/diff
Oct 11, 2026
Merged

yusukebe merged 1 commit into
nextfrom
feat/diff

Conversation

@yusukebe

Copy link
Copy Markdown
Member

hono diff shows what your uncommitted changes do to the app. It runs hono snapshot at the last commit and on the working tree, each in a temporary git worktree with fresh local data, and lists the routes that answer differently plus the routes added or removed. With snapshot, an agent has to remember to capture before the change; with diff it can ask at the end.

The worktrees share node_modules (linked) and get .dev.vars copied. The user's index, stash, and branches are not touched: the working tree is committed with a temporary index. The two snapshots run one after the other, since two Vite servers rebuilding the shared dependency cache at once stalled for minutes. On the blog app from the trials it takes about 3.5s and reports GET /admin 200 -> 303 and the new login routes.

The author should do the following, if applicable

  • Add tests
  • Run tests
  • pnpm run format:fix && pnpm run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

@yusukebe
yusukebe merged commit faffa78 into next Oct 11, 2026
4 checks passed
@yusukebe
yusukebe deleted the feat/diff branch October 11, 2026 01:29
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