Skip to content

Conversation

@onlywei
Copy link
Collaborator

@onlywei onlywei commented Jan 21, 2026

Renaming some internal variables for clarity.

@changeset-bot
Copy link

changeset-bot bot commented Jan 21, 2026

⚠️ No Changeset found

Latest commit: 278c90c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@onlywei onlywei marked this pull request as draft January 21, 2026 16:37
onlywei and others added 5 commits January 21, 2026 20:02
- Replace .call() pattern with regular function taking single context parameter
- Simplify setup return type from { client, routes } to just ClientModule
- Move hasIterableRoutes type guard to shared mode/support.ts
- Rename SetupFunctionContext -> FastifyViteDecorationPriorToSetup
- Rename mode/types.ts -> mode/support.ts
- Use hasIterableRoutes in index.ts for route iteration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Extract nested functions from setup() to module-level functions with
explicit parameters instead of closure captures, improving readability.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@onlywei onlywei marked this pull request as ready for review January 22, 2026 16:38
@onlywei onlywei merged commit 2723ff5 into v9 Jan 22, 2026
4 checks passed
@onlywei onlywei deleted the renaming branch January 22, 2026 16:42
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.

2 participants