Skip to content

Update hono example #207

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

Merged
merged 3 commits into from
May 7, 2025
Merged

Update hono example #207

merged 3 commits into from
May 7, 2025

Conversation

lachieh
Copy link
Contributor

@lachieh lachieh commented Apr 30, 2025

After talking with the StarlingMonkey team, they pointed out that my transforms from the wasi:http/'s IncomingRequest type fo the standard Request type were unnecessary since the runtime can handle this with an event listener on the 'fetch' event. I've removed the unneccesary code and updated the README.

@lachieh lachieh requested review from a team as code owners April 30, 2025 23:15
@lachieh lachieh force-pushed the example/hono-adapter branch 2 times, most recently from 381139b to 4f1c793 Compare April 30, 2025 23:16
@vados-cosmonic
Copy link
Contributor

vados-cosmonic commented May 1, 2025

Hey @lachieh that's true, but it isn't until jco supports the new componentize-js which is currently blocked (which is why I didn't mention it) -- so I'd recommend holding this off until the new version of cJS is released and we can actually make use of this functionality!

Also another nice thing is that eventually theoretically Hono should support this naturaly (when they have WinterTC support) so this can maybe completely disappear.

@lachieh lachieh requested a review from a team as a code owner May 1, 2025 02:27
@lachieh lachieh force-pushed the example/hono-adapter branch 2 times, most recently from a91b21b to cf3147c Compare May 1, 2025 02:28
Copy link
Contributor

@vados-cosmonic vados-cosmonic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Ignore my comment on componentize-js that's currently bundled with jco not working -- it is working as evidenced by your test.

@lachieh lachieh force-pushed the example/hono-adapter branch from cf3147c to 5d6bb77 Compare May 7, 2025 15:09
@lachieh lachieh enabled auto-merge (rebase) May 7, 2025 15:09
@lachieh lachieh merged commit c8d50dd into wasmCloud:main May 7, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants