github cloudflare/workers-sdk @cloudflare/workers-utils@0.31.2

latest releases: wrangler@4.120.0, create-cloudflare@2.70.18
2 hours ago

Patch Changes

  • #15013 8cf78c8 Thanks @dario-piotrowicz! - Update undici from 7.28.0 to 7.29.0

  • #15011 6946da1 Thanks @LeSingh1! - Validate observability.logs.head_sampling_rate and observability.traces.head_sampling_rate are between 0 and 1

    The 0–1 range check was only applied to the top level observability.head_sampling_rate. The two nested fields were type-checked as numbers but never bounds-checked, so a value such as 10 (a common mix-up with a percentage) was accepted locally and sent to the API.

    {
      "observability": {
        "logs": { "enabled": true, "head_sampling_rate": 10 }
      }
    }

    All three fields now report must be a value between 0 and 1. consistently.

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.