Skip to content

@cloudflare/config@0.7.0

Choose a tag to compare

@workers-devprod workers-devprod released this 20 Aug 17:42
· 1 commit to main since this release
38b4623

Minor Changes

  • #14995 59872c4 Thanks @ThomasRubini! - Add connect trigger for raw sockets

    You can now configure a Worker to receive raw socket connections during wrangler dev, delivered directly to the Worker's connect(socket, env, ctx) handler:

    {
      "connect": [{ "protocol": "tcp", "port": 5432 }]
    }

    Each entry opens a listening socket on 127.0.0.1 (or the given address) that forwards incoming connections straight to the Worker, bypassing the local dev HTTP entry point. This requires the experimental compatibility flag. Only "tcp" is supported at the moment.

    @cloudflare/config also supports declaring this trigger via triggers.connect(...), which lowers to the connect field above:

    import { defineWorker, triggers } from "@cloudflare/config";
    
    export default defineWorker({
      triggers: [
        triggers.connect({ protocol: "tcp", port: 5432, address: "127.0.0.1" }),
      ],
    });
  • #15130 99a1f49 Thanks @emily-shen! - Add R2 local S3 credentials to the shared config binding shape

    R2 bindings now support localDev.experimentalS3Credentials, matching Wrangler's existing local S3 endpoint credentials configuration.

Patch Changes

  • #15130 99a1f49 Thanks @emily-shen! - Default local Analytics Engine dataset names in Miniflare

    Analytics Engine dataset bindings without an explicit name now fallback to the worker and binding name as a default.

  • #15130 99a1f49 Thanks @emily-shen! - Remove unsupported remote configuration from Workflow bindings

    Workflow bindings no longer accept remote in configuration, as remote Workflow bindings have never actually been supported.