Repository navigation
refactor(browser): use Express 5 async routes - #106964
Merged
Merged
Conversation
Contributor
Author
|
Land-ready at Work completed:
Proof:
Known gap: hosted CI was not awaited per maintainer instruction. Main advanced only in unrelated wizard, agent, and UI files; the final rebase preserved the stable patch-id byte-for-byte. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Browser routes carried a no-op async-handler wrapper that added nesting across every endpoint even though the supported Express runtime already handles rejected promises natively.
Why This Change Was Made
Register all 47 async Browser handlers directly, delete the redundant wrapper, and disable the lint rule whose own contract targets Express versions before v5. The Express pin remains exact at 5.2.1, and the in-process dispatcher continues to await the same returned promises.
User Impact
No user-visible behavior change. Browser route behavior, error propagation, methods, paths, and response bodies stay the same while 175 lines of adapter boilerplate disappear.
Evidence
tbx_01kxf29krg5r5qjza3rgexz4w8: 188 Browser route/server tests passed; exact-filecheck:changedpassed formatting, extension/test type lanes, extension/script lint, boundary guards, and import-cycle checks; fullpnpm buildpassed.tbx_01kxf32ytqte6nnjyxs0h495qf: 188/188 focused tests passed again.git diff --checkpassed. Two fresh autoreview runs reported no accepted/actionable findings.