Skip to content

@cloudflare/workers-utils@0.58.0

Choose a tag to compare

@workers-devprod workers-devprod released this 27 Nov 14:34
· 3 commits to main since this release
Immutable release. Only release title and notes can be modified.
370ea36

Minor Changes

  • #17088 43da328 Thanks @efalcao! - Add the oidc_tokens binding

    An OIDC token binding issues short-lived OpenID Connect tokens for the Worker's own identity, for one audience. Exchange them for cloud credentials, or send them to an API as a bearer token, instead of storing long-lived credentials as secrets:

    "oidc_tokens": [{ "binding": "API_TOKEN", "audience": "https://api.example.com" }]

    env.API_TOKEN.getToken() returns a newly signed JWT. Set "alg": "RS256" for verifiers that don't accept the default, ES256. Wrangler validates the audience (1 to 2048 printable ASCII characters, no whitespace), uploads the binding, generates its OidcTokenBinding type, and prints it in the bindings table. After a deploy, wrangler deploy prints the issuer and subject to put in the verifier's trust policy. The subject contains the Worker's immutable ID, which the deploy output doesn't otherwise show. The binding isn't available in local development yet. Accounts must be enabled for the binding before they can deploy it.

  • #17161 e46c7c6 Thanks @thisisamank! - Add RealtimeKit bindings

    Bind an existing RealtimeKit app to a Worker in your Wrangler configuration file:

    {
      "realtimekit": [
        {
          "binding": "RTK",
          "app_id": "<APP_ID>",
          "remote": true
        }
      ]
    }

    RealtimeKit has no local simulator, so set remote: true to use the real app during local development. Calls during development, including calls on returned meetings, go through the existing remote bindings proxy. The experimental configuration API supports bindings.realtimeKit({ id: "<APP_ID>", dev: { remote: true } }), and the wrangler-to-cf codemod converts realtimekit entries. Deployments upload only the binding name and app_id. wrangler types generates RealtimeKitBinding for these bindings.

Patch Changes

  • #17203 41bacf7 Thanks @jamesopstad! - Accept fedramp-high in CLOUDFLARE_COMPLIANCE_REGION

    cloudflare.config.ts writes the FedRAMP High region as fedramp-high, but CLOUDFLARE_COMPLIANCE_REGION only accepted fedramp_high and rejected the other spelling with Expected "fedramp-high" to be one of ["public","fedramp_high"]. Both spellings are now accepted and mean the same region, so a value copied from cloudflare.config.ts into CLOUDFLARE_COMPLIANCE_REGION works.

  • #17075 4475a8e Thanks @petebacondarwin! - Use database_id for D1 bindings in Worker uploads

    Worker upload metadata now matches the Workers API schema. Pages bundles continue to use id for compatibility with the Pages API. No configuration changes are needed: programmatic config still uses bindings.d1({ id }), and Wrangler config files still use database_id.

  • #17140 b645124 Thanks @dependabot! - Update DEFAULT_COMPAT_DATE to 2026-11-24

    Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.

  • #17160 8d3e953 Thanks @dependabot! - Update DEFAULT_COMPAT_DATE to 2026-11-25

    Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.

  • #17220 b89dfcf Thanks @dependabot! - Update DEFAULT_COMPAT_DATE to 2026-11-27

    Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.