You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add plain text response support for release and PR pages (#221)
* feat: add text/plain markdown responses for release and PR routes
Requests with an Accept: text/plain header to /release, /release/:version,
/release/compare/:from/:to, and /pr/:number now receive a pure markdown
representation of the page content instead of the HTML UI.
- Add wantsTextPlain/textPlainResponse helpers
- Extract groupReleaseNotes (raw markdown) from renderGroupedReleaseNotes
- Expose rawTitle/rawBody on cached PR details (cache key bumped to v2)
* fix: use load context to pass text/plain body through to entry server
Remix unwraps Response bodies from component-route loaders during
document requests instead of sending them directly. Work around this
by stashing the markdown body on the load context and short-circuiting
in handleRequest (which receives loadContext as its fifth argument)
before React renders.
* feat: respect HTTP(S)_PROXY env vars for outbound fetch calls
Use undici's EnvHttpProxyAgent as the global dispatcher when proxy
environment variables are set, so release data and GitHub API calls
work behind corporate proxies.
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments