-
Features
-
wrangler devlistens on IPv4 by default - EverlastingBugstopper, issue/1198 pull/1405Before,
wrangler devwould listen on[::1]:8787by default, and call itlocalhostin the terminal output. This was confusing for developers whoselocalhostresolves to IPv4 and not IPv6. Now,wrangler devwill listen on127.0.0.1:8787by default. This can be overriden by passing values via the--ipand--portflags. -
Clarify where to find your
account_idin the dashboard - EverlastingBugstopper, issue/1364 pull/1395When you create a new project with
wrangler generate, it directs you to the Cloudflare Dashboard to find youraccount_idandzone_id. However, this flow only worked if you had your own domain. Developers who only useworkers.devfor their Workers were directed to a page that does not exist! This message now points everyone to a page where they can find the information that they need.
-
-
Fixes
-
Allow creation of preview namespaces when a namespace already exists in
wrangler.toml- EverlastingBugstopper, pull/1414When we introduced KV preview namespaces, we made sure to add nice messages when creating new namespaces so people could easily add the new namespace id to their wrangler.toml in the correct place.
However, we missed a very common case where developers already have a production namespace defined in their
wrangler.tomland they want to add a preview namespace. When this is the case, we returned an error message intended to only be thrown when running either wrangler preview or wrangler dev. This is now fixed! -
Allow multiple response header values in
wrangler dev- EverlastingBugstopper, issue/1412 pull/1413Before,
wrangler devwould not properly handle response headers that have multiple values. We would iterate over all response headers coming from the Workers runtime, and "insert" them into the header map instead of appending them. This is no longer the case and response headers should now work as expected. More details on this issue can be found here. -
Fix kv-namespace/kv_namespace behavior in environments - EverlastingBugstopper, issue/1408 pull/1409
When KV namespace support was initially added to Wrangler, we documented using
kv-namespacesinwrangler.toml. Unfortunately, the-was not consistent with other fields such aszone_idandaccount_id, so the decision was made to allow bothkv-namespacesandkv_namespaces. When this change was introduced, it worked with top levelkv_namespacesentries, but not in environments. This is now fixed! You can now usekv_namespaceseverywhere you can usekv-namespaces.
-
-
Maintenance
-
Add link to testing docs in CONTRIBUTING.md - luanraithz, pull/1416
-
Remove unused
Krate::installcode - EverlastingBugstopper, [issue/247] pull/1410When we introduced our own version checking for Wrangler we stopped using
Krate::install. This PR just removes that unused code.
-