Ccodemod

codemod/dd-trace-js-v6-rename-plugin-list-options

Rename Datadog plugin whitelist/blacklist options to allowlist/blocklist

apmnodejsv6datadogdd-trace-jsv5-to-v6
Public
0 executions

Run locally

npx codemod @codemod/dd-trace-js-v6-rename-plugin-list-options

@codemod/dd-trace-js-v6-rename-plugin-list-options

Renames removed Datadog plugin option aliases:

  • whitelist to allowlist
  • blacklist to blocklist

The transform only applies to the v6-affected plugin interfaces: http,
ioredis, iovalkey, and redis.

Supported Shapes

ts

The transform only updates plugin config reached through a local dd-trace
binding or direct require("dd-trace") call. Generic object properties named
whitelist or blacklist are left unchanged.

Ready to contribute?

Build your own codemod and share it with the community.