-
Notifications
You must be signed in to change notification settings - Fork 5
fix: drop getAsString from HeadContext
#41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for impala-react-ts ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for impala-react-js ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for impala-preact-ts ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for impala-preact-js ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
ascorbic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
🤖 I have created a release *beep* *boop* --- <details><summary>preact: 0.0.15</summary> ## [0.0.15](preact-v0.0.14...preact-v0.0.15) (2025-10-13) ### Bug Fixes * drop `getAsString` from `HeadContext` ([#41](#41)) ([407e9b6](407e9b6)) </details> <details><summary>react: 0.0.15</summary> ## [0.0.15](react-v0.0.14...react-v0.0.15) (2025-10-13) ### Bug Fixes * drop `getAsString` from `HeadContext` ([#41](#41)) ([407e9b6](407e9b6)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: mixie-bot[bot] <127146692+mixie-bot[bot]@users.noreply.github.com>
@ascorbic Is Impala still maintained? I happened to have some small projects that
@impala/preactjust perfectly fit the need.I noticed that
preact-render-to-stringis being included in the client bundle, which is weird. I dug around and noticed that this is used in theHeadContext'sgetAsStringmethod, which is not being used at all: https://github.com/search?q=repo%3Aascorbic%2Fimpala%20getAsString&type=codeI guess the
getAsStringwas added for SSR, but later the SSR for<head />has been moved toentry-serverinstead, which madegetAsStringobsolete:impala/packages/preact/src/entry-server.tsx
Line 25 in 74a4ab0
impala/packages/react/src/entry-server.tsx
Line 60 in 74a4ab0
The PR removes the
getAsStringmethod fromHeadContext, preventingpreact-render-to-stringandreact-dom/serverfrom being included in the client bundle (they should only be in the server bundle).