github cloudflare/workers-sdk create-cloudflare@2.0.11

Patch Changes

  • #3465 528cc0fc Thanks @jculvey! - Improvements to the project name selection prompt.

  • #3500 c43fc4e8 Thanks @jculvey! - Fix the output of the --version flag

  • #3343 cc9ced83 Thanks @petebacondarwin! - fix: use a valid compatibility date for worker templates

    Previously, we changed wrangler.toml to use the current date for the
    compatibility_date setting in wrangler.toml when generating workers.
    But this is almost always going to be too recent and results in a warning.

    Now we look up the most recent compatibility date via npm on the workerd
    package and use that instead.

    Fixes #2385

  • #3516 941764d0 Thanks @petebacondarwin! - fix: ensure the Angular fetch handler returns a "real" promise to Cloudflare

    Angular employs the Zone.js library to patch potentially async operations so that
    it can trigger change detection reliably. But in order to do this, it swaps out
    the native Promise with a ZoneAwarePromise class.

    The Cloudflare runtime (i.e. workerd) does runtime checks on the value returned
    from the fetch() handler, expecting it to be a native Promise and fails if not.

    This fix ensures that the actual object returned from the fetch() is actually a
    native Promise. We don't need to stop Angular using ZoneAwarePromises elsewhere.

  • #3486 436f752d Thanks @Cherry! - fix: use wrangler deploy command for deploying applications instead of the deprecated wrangler publish

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.