Tom Moor and Claude Opus 5.5
00b124d03c
chore: Rename APIContext to Context and flatten its fields ( #14684 )
...
* chore: Rename APIContext to Context and flatten its fields
Auth and transaction now live directly on the context instead of in
ctx.state and a nested ctx.context, and model helpers read them directly.
APIContext remains as a deprecated alias.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf
* chore: Remove deprecated APIContext alias
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf
* fix: Read auth from context in OAuth provider callbacks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf
* chore: Add withUser and withTransaction context helpers
Replaces manual createContext rebuilds that copy fields from an existing context.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf
* chore: Remove arbitrary property access from Koa context types
AppContext and Context no longer inherit the any index signature from
Koa's DefaultContext, custom fields are declared explicitly, and importing
Koa's loose Context type is disallowed by lint.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf
---------
Co-authored-by: Claude <noreply@anthropic.com >
2026-11-23 23:17:06 -05:00
Tom Moor
25eac11a6c
perf: Render share page content without the export lock and cache it ( #14284 )
...
* perf: Render share page content without the export lock and cache it
* perf: Render share page content only for bots, detect bots with isbot
Browsers never read the server-rendered share content, so skip the render
for them. Replace the koa-useragent isBot check with the isbot package,
which also detects AI crawlers, and add a lint rule against isBot.
2026-11-01 08:05:55 -05:00
Tom Moor
9bfb1b9930
fix: Preserve custom port in client-side redirects ( #13401 )
...
Proxies commonly forward a Host header without the port the installation is
publicly reachable on, so redirects derived from the incoming request pointed at
the wrong address – most visibly breaking the email magic sign-in link.
2026-08-12 21:49:49 -04:00
Tom Moor
8267f22c31
chore: Remove client boolean guard in redirectOnClient ( #13136 )
2026-07-25 12:16:28 -04:00
Tom Moor
5386d689da
perf: Refactor to run boot migration check as separate process ( #13049 )
...
* perf: Refactor to run boot migration check as separate process
* Apply suggestions from code review
2026-07-19 11:36:14 -04:00