Workers – Send npm package dependency metadata with Worker uploads

Workers – Send npm package dependency metadata with Worker uploads

Wrangler now collects npm package dependency information from your project’s package.json during wrangler deploy and wrangler versions upload, and includes it in the upload metadata sent to the Cloudflare API. This data, each dependency’s name, declared version range, and exact installed version, enables dependency analytics and future supply chain security features such as vulnerability alerting.

To opt out, set dependencies_instrumentation.enabled to false in your Wrangler configuration file:

  • wrangler.jsonc

    {
    "dependencies_instrumentation": {
    "enabled": false
    }
    }
  • wrangler.toml

    [dependencies_instrumentation]
    enabled = false

For more details, refer to Wrangler configuration.

Source: Cloudflare



Latest Posts

Pass It On
Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply