jman
Explore posts from serversCDCloudflare Developers
•Created by jman on 2/4/2025 in #workers-help
Build custom rollout mechanism
Hehe, so would I, if you're hiring 😉
What I mean is: Many versions of a mobile app could be running at the same time (also applicable to web, but significantly less prevalent since pages will update on refresh); these apps were built to work against a version of the API. To ensure these old versions of apps continue to work, one solution is to ensure the API surface remains stable, eliminating breaking changes.
Or... my curiosity is telling me there might be a solution where I pin the worker that gets called to the version of the app that is calling it. (there are other risks associated with this, but it was a point of exploration / curiosity)
7 replies
CDCloudflare Developers
•Created by jman on 2/4/2025 in #workers-help
Build custom rollout mechanism
I love that these exist!! Unfortunately, neither fully address my needs
One desire is version pinning of the API version (worker version) against the app version, to maintain stable behaviors.
Another desire is for rollouts to be gated by flags on individual users (eg. Internal rollout happens 24 hours earlier then public rollout)
7 replies
CDCloudflare Developers
•Created by jman on 1/16/2025 in #workers-help
sql.prepare is not a function in Durable Objects SQL
Thank's for clarifying! :MeowHeartCloudflare:
4 replies
CDCloudflare Developers
•Created by jman on 1/16/2025 in #workers-help
sql.prepare is not a function in Durable Objects SQL
Ok, they share Typescript typings so I was confused.
I saw that page, but I didn't see it mention that the two were actually different. I assumed that page was just a summary of the most common api's, and I should refer to d1 docs.
4 replies
CDCloudflare Developers
•Created by jman on 12/29/2024 in #workers-help
Vitest `Failed to pop isolated storage stack frame` when error thrown
Created issue here: https://github.com/cloudflare/workers-sdk/issues/7707
8 replies
CDCloudflare Developers
•Created by jman on 12/29/2024 in #workers-help
Vitest `Failed to pop isolated storage stack frame` when error thrown
No, the same behavior persists in the above example if the function name is changed to anything else.
myCustomFunc
for example.8 replies
CDCloudflare Developers
•Created by jman on 4/14/2024 in #workers-and-pages-discussions
Are there example repos of Durable
I found it pretty fiddly to get working, but I added details in the threads below that message, and some following issues in later messages:
https://discord.com/channels/595317990191398933/779390076219686943/1229204177469702174
https://discord.com/channels/595317990191398933/779390076219686943/1229228850701930539
3 replies
CDCloudflare Developers
•Created by jman on 4/15/2024 in #workers-and-pages-discussions
Ok, new problems. When running tests
Ok, workaround found..
1. The methods have to be called in
runInDurableObject
.
2. But this doesn't correctly infer the type of the object so you have to manually assert it. (inst: Manager) => ...
3. But, manually asserting it fails to be properly typed if the durable object doesn't have a fetch handler, so just add a blank fetch handler and you're good2 replies
CDCloudflare Developers
•Created by jman on 4/15/2024 in #workers-and-pages-discussions
Ok, new problems. When running tests
2 replies
CDCloudflare Developers
•Created by kian on 4/14/2024 in #workers-and-pages-discussions
Try adding the `rpc` compatibility flag
I did exactly the same lol
17 replies
CDCloudflare Developers
•Created by kian on 4/14/2024 in #workers-and-pages-discussions
Try adding the `rpc` compatibility flag
Thanks @kian !
17 replies
CDCloudflare Developers
•Created by kian on 4/14/2024 in #workers-and-pages-discussions
Try adding the `rpc` compatibility flag
WOAH it works 🙂
17 replies
CDCloudflare Developers
•Created by kian on 4/14/2024 in #workers-and-pages-discussions
Try adding the `rpc` compatibility flag
Oh that message only includes wrangler
17 replies
CDCloudflare Developers
•Created by kian on 4/14/2024 in #workers-and-pages-discussions
Try adding the `rpc` compatibility flag
No I was using the prerelease in the github actions bot message
17 replies
CDCloudflare Developers
•Created by kian on 4/14/2024 in #workers-and-pages-discussions
Try adding the `rpc` compatibility flag
Installing the PR is still causing the same errors, so doesn't look like it's totally resolved yet
17 replies