kwhitley / itty-durable

Cloudflare Durable Objects + Itty Router = shorter code
MIT License
251 stars 18 forks source link

make withDurables standalone #50

Closed fujohnwang closed 5 months ago

fujohnwang commented 5 months ago

I think make withDurables an utility without dependency on router may be a good choice, Since people may use different router impl. from different frameworks.

Just an advice ;)

kwhitley commented 5 months ago

Great minds think alike!

In the upcoming version (@next currently), itty-durable:

kwhitley commented 5 months ago

But specifically, the next version is framework agnostic... in the original version, the pairing of middleware+itty-durable (which used itty-router internally) was crucial to get the RPC mechanism to work. Now, with native RPC finally being supported by Cloudflare, itty-durable gets to cut WAY back. It shrinks to only ~400 bytes!