Packages

wrangler

4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed

Your version

3.24.0

23 Jan 2024Where it was published

3.114.17 is the newest release of 3.x.

In short

1 new1 fixed2 internal

Security

1 advisory affects 3.24.0; 3.114.17 fixes them

Release note

Minor Changes

  • Add new getBindingsProxy utility to the wrangler package

    The new utility is part of wrangler's JS API (it is not part of the wrangler CLI) and its use is to provide proxy objects to bindings, such objects can be used in Node.js code as if they were actual bindings

    The utility reads the wrangler.toml file present in the current working directory in order to discern what bindings should be available (a wrangler.json file can be used too, as well as config files with custom paths).

Example

Assuming that in the current working directory there is a `wrangler.toml` file with the following  
content:

    [[kv_namespaces]]  
    binding = "MY_KV"  
    id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

The utility could be used in a nodejs script in the following way:

```js
import { getBindingsProxy } from "wrangler";

const { bindings, dispose } = await getBindingsProxy();

try {
	const myKv = bindings.MY_KV;
	const kvValue = await myKv.get("my-kv-key");

	console.log(`KV Value = ${kvValue}`);
} finally {
	await dispose();
}
```

Patch Changes

  • Use Windows SYSTEMROOT env var for finding netstat

    Currently, the drive letter of os.homedir() (the user's home directory) is used to build the path to netstat.exe. However, user directories are not always on the same drive as the Windows installation, in which case the path to netstat will be incorrect. Now we use the %SYSTEMROOT% environment variable which correctly points to the installation path of Windows.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.