feat: publish `hono` jsx support and parsing as separate package
What is the feature you are proposing?
Hey there 👋
I'm developing https://jsx.email and have been following hono's JSX support with great interest. The latest addition of Suspense that's due to drop soon is very interesting for our use case, and we're planning on adopting that into our project. However, it would be amazing if the team would consider publishing that as a separate package so projects like jsx-email could depend on that rather than the entire hono framework.
I know this is a bit of a wonky ask, but curious to see what the reaction to it is.
Hi @shellscape,
I can share two points regarding this.
- Please evaluate the implications post-usage. The
Suspensefeature hasn't been released yet and will initially be tagged asexperimental. You're welcome to use it and then assess whether it meets your expectations or not. - Your primary concern might be regarding package separation. We have a policy against separating packages used in Hono, like the routers. The rationale is that managing different packages can complicate maintenance. It becomes challenging to make breaking changes to such routers or JSX libraries, whereas with a unified package, we are less concerned about altering the APIs of routers and JSX. Additionally, another policy is that the Hono core should not have external libraries, even if they are under the
@hono/.+scope. Although it's worth considering making it a separate package, this will not happen anytime soon.
It will be nice to document the standalone usage of rendering JSX with hono. The use case is writing emails content using JSX and render them outside of HTTP requests.