github cloudflare/workers-sdk wrangler@3.80.0

4 hours ago

Minor Changes

Patch Changes

  • #6854 04a8fed Thanks @penalosa! - chore: Include serialised FormData in debug logs

  • #6879 b27d8cb Thanks @petebacondarwin! - fix: the docs command should not crash if given search terms

    Fixes a regression accidentally introduced by #3735.

  • #6873 b123f43 Thanks @zwily! - fix: reduce logging noise during wrangler dev with static assets

    Updates to static assets are accessible by passing in --log-level="debug" but otherwise hidden.

  • #6881 7ca37bc Thanks @RamIdeas! - fix: custom builds outputting files in assets watched directory no longer cause the custom build to run again in an infinite loop

  • #6872 b2d094e Thanks @petebacondarwin! - fix: render a helpful build error if a Service Worker mode Worker has imports

    A common mistake is to forget to export from the entry-point of a Worker, which causes
    Wrangler to infer that we are in "Service Worker" mode.

    In this mode, imports to external modules are not allowed.
    Currently this only fails at runtime, because our esbuild step converts these imports to an internal __require() call that throws an error.
    The error message is misleading and does not help the user identify the cause of the problem.
    This is particularly tricky where the external imports are added by a library or our own node.js polyfills.

    Fixes #6648

  • #6792 27e8385 Thanks @penalosa! - fix: Handle more module declaration cases

  • #6838 7dbd0c8 Thanks @GregBrimble! - fix: Improve static asset upload messaging

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.