Skip to content

Made Cloudflare samples more idiomatic - #217

Merged
oskardudycz merged 4 commits into
mainfrom
idiomatic_cloudflare_samples
Sep 20, 2026
Merged

oskardudycz merged 4 commits into
mainfrom
idiomatic_cloudflare_samples

Conversation

@oskardudycz

Copy link
Copy Markdown
Contributor

The initial version from #213 was fine because it worked and used Pongo, Hono, and Emmett wrappers.

Still, it wasn't perfect, as it included a lot of boilerplate that we can and should remove when using Pongo and Emmett idiomatically. It wasn't showcasing the real benefit of using them.

Note: There'll be a follow-up PR with changes once Pongo and Emmett are polished and we address some rough edges in this usage.

@dawidhermann @EisenbergEffect @SamHatoum FYI

The initial version from
#213 was fine because it
worked and used Pongo, Hono, and Emmett wrappers.

Still, it wasn't perfect, as it included a lot of boilerplate that we
can and should remove when using Pongo and Emmett idiomatically. It
wasn't showcasing the real benefit of using them.

**Note:** There'll be a follow-up PR with changes once Pongo and Emmett
are polished and we address some rough edges in this usage.
@oskardudycz
oskardudycz force-pushed the idiomatic_cloudflare_samples branch from 8d4c218 to c65f8aa Compare September 20, 2026 08:28
oskardudycz added 3 commits September 20, 2026 10:37
Previously it was just returning no-content, which was maybe fine from
the HTTP perspective, but effectively, as some stuff like total amount
are calculated on server, then cannot be assumed from the UI, without
returning them one would need to follow location to get the current
totals, which could return newer version than needed.
@oskardudycz
oskardudycz merged commit a8f803c into main Sep 20, 2026
6 checks passed
@oskardudycz
oskardudycz deleted the idiomatic_cloudflare_samples branch September 20, 2026 10:17
@EisenbergEffect

Copy link
Copy Markdown

@oskardudycz You are on fire! Thank you!

@dawidhermann

Copy link
Copy Markdown

I know it's to late, but i've reviewed the changes anyway. LGTM

@oskardudycz

Copy link
Copy Markdown
Contributor Author

@oskardudycz You are on fire! Thank you!

Thanks, see this event-driven-io/emmett#403 😀

@oskardudycz

Copy link
Copy Markdown
Contributor Author

I know it's to late, but i've reviewed the changes anyway. LGTM

It's never too late, I can always retrofit your comments if you have some. Thank you for having a look 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants