-
Features
-
Accept --verbose for every command - bradyjoslin, issue/975 pull/1110
Not every command outputs additional information when you pass
--verbose, but none of them will fail to run if you pass--verboseafter this change. -
wrangler devchecks if the specified port is available - EverlastingBugstopper, issue/1122 pull/1272When starting up
wrangler dev, it now checks to see if the requested port is already in use and returns a helpful error message if that's the case.
-
-
Fixes
-
Don't reinstall vendored binaries on every build - EverlastingBugstopper, issue/768 pull/1003
You may have noticed some very verbose and over-eager installation output when running Wrangler. Every
webpacktype build would installwranglerjsandwasm-pack. This was... super annoying and not a great experience, especially when runningwrangler preview --watchorwrangler dev. Each time you'd change a file, Wrangler would reinstall those external dependencies. This doesn't happen anymore! Wrangler will still download and install these external dependencies, but only if you have an outdated version. -
Remove redundant builds - EverlastingBugstopper, issue/1219 pull/1269
When running
wrangler preview --watchorwrangler devon awebpacktype project, Wrangler will provide a new build artifact and upload it via the Cloudflare API. Before, we'd start a long-runningwebpack --watchcommand, in addition to runningwebpackon every change. We were running two builds on every change! This was not great and has been removed. This, combined with the above fix removing redundant installations, should greatly improve your dev iteration cycles. -
wrangler devwill reconnect to the devtools WebSocket after being disconnected - EverlastingBugstopper, issue/1241 pull/1276wrangler devinitiates a WebSocket connection via the Cloudflare API in order to streamconsole.logmessages to your terminal. Over time, it's very likely that the WebSocket would be disconnected. When this happened, Wrangler would panic, requiring developers to restart the process. Now, ifwrangler devgets disconnected, it will issue a reconnect request, allowing developers to runwrangler devas long as they are connected to the Internet.
-
-
Maintenance
-
Adds
Developing Wranglersection toCONTRIBUTING.md- EverlastingBugstopper, issue/270 pull/1288We love external contributors, and what better way to help get folks kickstarted than to add some documentation on developing Wrangler? Check out CONTRIBUTING.md if you're interested in helping out.
-
Remove
--releasefromwrangler publish --help- EverlastingBugstopper, pull/1289We deprecated
wrangler publish --releasea long time ago in favor of environments, but it's still an accepted argument to preserve backwards compatibility. Now, it no longer shows up inwrangler publish --helpas an accepted argument, even though it's still an alias ofwrangler publish. -
Updates license file to wrangler@cloudflare.com - EverlastingBugstopper, pull/1290
The copyright in our MIT license was outdated and pointed to the email address of @ashleygwilliams (who no longer works at Cloudflare 😢). Now it points to wrangler@cloudflare.com :)
-
Add Dependabot to Wrangler - ispivey, pull/1294
Wrangler now uses Dependabot to automatically update dependencies. We had already been doing this on a sort of ad-hoc basis, but this should make it much easier to stay on top of updates!
-
Remove unused code warnings - ashleymichal, pull/1304
For our integration tests we create fixtures containing sample Workers projects. When we ran
cargo test,cargowould say that the code used to create said fixtures were unused (which was not true). This PR moves the fixture code to a place wherecargosays "This is a Fine Place for This Code." -
Handle clippy warnings - ashleymichal EverlastingBugstopper, pull/1305 pull/1306
cargo clippyis a helpful little tool that helps you write more idiomatic Rust. Over time, we've developed an immunity to the warnings produced by this tool, and we took a stab at cleaning some of them up.
-