Pipelines, Workers – Pipeline binding configuration field renamed to stream

Pipelines, Workers – Pipeline binding configuration field renamed to stream

The pipeline field inside the pipelines binding configuration in your Wrangler configuration file has been renamed to stream. The old field is deprecated but still accepted.

Update your configuration to use stream to avoid the deprecation warning.

Before (deprecated):

  • wrangler.jsonc

    {
    "$schema": "./node_modules/wrangler/config-schema.json",
    "pipelines": [
    {
    "binding": "MY_PIPELINE",
    "pipeline": "<STREAM_ID>"
    }
    ]
    }
  • wrangler.toml

    [[pipelines]]
    binding = "MY_PIPELINE"
    pipeline = "<STREAM_ID>"

After:

  • wrangler.jsonc

    {
    "$schema": "./node_modules/wrangler/config-schema.json",
    "pipelines": [
    {
    "binding": "MY_PIPELINE",
    "stream": "<STREAM_ID>"
    }
    ]
    }
  • wrangler.toml

    [[pipelines]]
    binding = "MY_PIPELINE"
    stream = "<STREAM_ID>"

No other changes are required. The binding name, TypeScript types, and runtime API (env.MY_PIPELINE.send(...)) remain the same.

For more information on configuring pipeline bindings, refer to Writing to streams.

Source: Cloudflare



Latest Posts

Pass It On
Leave a Comment

Comments

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

Leave a Reply