github cloudflare/workers-sdk wrangler@3.31.0

latest releases: wrangler@3.78.6, miniflare@3.20240909.4, @cloudflare/vitest-pool-workers@0.5.6...
6 months ago

Minor Changes

Patch Changes

  • #5132 82a3f94 Thanks @mrbbot! - fix: switch default logging level of unstable_dev() to warn

    When running unstable_dev() in its default "test mode", the logging level was set to none. This meant any Worker startup errors or helpful warnings wouldn't be shown. This change switches the default to warn. To restore the previous behaviour, include logLevel: "none" in your options object:

    const worker = await unstable_dev("path/to/script.js", {
    	logLevel: "none",
    });
  • #5128 d27e2a7 Thanks @taylorlee! - fix: Add legacy_env support to experimental versions upload command.

  • #5087 a5231de Thanks @dario-piotrowicz! - fix: make wrangler types always generate a d.ts file for module workers

    Currently if a config file doesn't define any binding nor module, running
    wrangler types against such file would not produce a d.ts file.

    Producing a d.ts file can however still be beneficial as it would define a correct
    env interface (even if empty) that can be expanded/referenced by user code (this can
    be particularly convenient for scaffolding tools that may want to always generate an
    env interface).

    Example:
    Before wrangler types --env-interface MyEnv run with an empty wrangler.toml file
    would not generate any file, after these change it would instead generate a file with
    the following content:

    interface MyEnv {
    }
    
  • #5138 3dd9089 Thanks @G4brym! - fix: ensure Workers-AI local mode fetcher returns headers to client worker

  • Updated dependencies [42bcc72, 42bcc72]:

    • miniflare@3.20240223.1

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.