latest updates to Workers?
I'm having a hard time to find info about what was added to Workers over the past year. Seems like Pages & Workers merged? Because all of the sudden the default template includes a
public/index.html
file without an import from the index.js.
Bad thing is most AI code builders still have the old workers tech; maybe if you make breaking changes you should just rename the project instead of confusing everyone?Cloudflare Docs
CLI
Set up and deploy your first Worker with Wrangler, the Cloudflare Developer Platform CLI.
2 Replies
There's a change log which includes some of the stuff at https://developers.cloudflare.com/workers/platform/changelog/ + blog posts and wrangler releases, depends exactly on what you're looking for
They've been working on adding all the missing features to Workers including static assets, but Pages and Workers are still seperate for now. No breaking changes or anything that would render old code incompatiable
No breaking changes or anything that would render old code incompatibleProjects will break if one moves old code into a new project. The new templates use
./public/index.html
as the base of responses, but old code still expects to write htm via return new Response()
in the index.js
file. Took me an hour to find I had comment out a config in wrangle.jsonc
bug submitted: https://github.com/cloudflare/workers-sdk/issues/9140GitHub
Updating to Wrangler v4 via template breaks old code · Issue #9140...
Which Cloudflare product(s) does this pertain to? Workers for Platforms What versions & operating system are you using? "wrangler": "~4.14.1", Bun latest, Win11 Please provi...