It's Apple M1 time! This release provides support for M1 (Apple Silicon) devices through the use of the x86_64 binary which will be run using Apple's Rosetta 2 instruction set translator. This is also true for the various binary dependencies of wrangler, such as: wasm-pack, cargo-generate. If not installed, these will be built from source automatically.
To install wrangler and use it on M1 (Apple Silicon) devices, follow the same instructions for other architectures found here: https://developers.cloudflare.com/workers/cli-wrangler/install-update#install
As always, please report issues if you encounter any!
-
Features
-
Add
wasm_modulesconfig field for bundling arbitrary WebAssembly modules. - losfair, pull/1803Currently it seems that wrangler only supports WebAssembly modules included from a
rustorwebpackproject.This pull request enables the inclusion of arbitrary WebAssembly modules through a
wasm_modulesconfig field.
-
-
Fixes
-
fix: use x86_64 arch for pre-built downloads on M1 devices - nilslice, pull/1876
This PR forces the use of a pre-built x86_64 binary on a aarch64/arm64 Apple system. For M1 devices specifically, it will fix
wrangler generate, andwrangler buildfortype = "rust"wrangler projects.There is another semi-related
... truncated -
chore: include @cloudflare/binary-install directly as source - nilslice, pull/1877
This PR inlines the
@cloudflare/binary-installdependency as a quickfix for #1811, in which usage reports indicated that the module occasionally failed to install.I tested this by running
npm i && node run-wrangler.json both `npm
... truncated -
Stop assuming KV values are UTF8 text - koeninger, pull/1878
Implementation of kv:key get is calling text() on the result of the api call, so it's replacing non-utf8 values with ef bf bd, the unicode REPLACEMENT CHAR. KV values can be arbitrary bytes, we shouldn't assume they're UTF8 text, so this p
... truncated
-