Skip to content
Cloudflare Docs

Workers (Historic)

This page tracks changes made to Cloudflare Workers before 2023. For a view of more recent updates, refer to the current changelog.

2022-12-16

  • Conditional PUT requests have been fixed in the R2 bindings API.

2022-12-02

  • Queues no longer support calling send() with an undefined JavaScript value as the message.

2022-11-30

  • The DOMException constructor has been updated to align better with the standard specification. Specifically, the message and name arguments can now be any JavaScript value that is coercible into a string (previously, passing non-string values would throw).
  • Extended the R2 binding API to include support for multipart uploads.

2022-11-17

  • V8 update: 10.6 → 10.8

2022-11-02

  • Implemented toJSON() for R2Checksums so that it is usable with JSON.stringify().

2022-10-21

  • The alarm retry limit will no longer apply to errors that are our fault.
  • Compatibility dates have been added for multiple flags including the new streams implementation.
  • DurableObjectStorage has a new method sync() that provides a way for a Worker to wait for its writes (including those performed with allowUnconfirmed) to be synchronized with storage.

2022-10-10

2022-09-16

  • R2 put bindings options can now have an onlyIf field similar to get that does a conditional upload.
  • Allow deleting multiple keys at once in R2 bindings.
  • Added support for SHA-1, SHA-256, SHA-384, SHA-512 checksums in R2 put options.
  • User-specified object checksums will now be available in the R2 get/head bindings response. MD5 is included by default for non-multipart uploaded objects.
  • Updated V8 to 10.6.

2022-08-12

  • A Headers object with the range header can now be used for range within R2GetOptions for the get R2 binding.
  • When headers are used for onlyIf within R2GetOptions for the get R2 binding, they now correctly compare against the second granularity. This allows correctly round-tripping to the browser and back. Additionally, secondsGranularity is now an option that can be passed into options constructed by hand to specify this when constructing outside Headers for the same effect.
  • Fixed the TypeScript type of DurableObjectState.id in @cloudflare/workers-types to always be a DurableObjectId.
  • Validation errors during Worker upload for module scripts now include correct line and column numbers.
  • Bugfix, Profiling tools and flame graphs via Chrome’s debug tools now properly report information.

2022-07-08

  • Workers Usage Report and Workers Weekly Summary have been disabled due to scaling issues with the service.

2022-06-24

  • wrangler dev in global network preview mode now supports scheduling alarms.
  • R2 GET requests made with the range option now contain the returned range in the GetObject’s range parameter.
  • Some Web Cryptography API error messages include more information now.
  • Updated V8 from 10.2 to 10.3.

2022-06-18

  • Cron trigger events on Worker scripts using the old addEventListener syntax are now treated as failing if there is no event listener registered for scheduled events.
  • The durable_object_alarms flag no longer needs to be explicitly provided to use DO alarms.

2022-06-09

  • No externally-visible changes.

2022-06-03

  • It is now possible to create standard TransformStream instances that can perform transformations on the data. Because this changes the behavior of the default new TransformStream() with no arguments, the transformstream_enable_standard_constructor compatibility flag is required to enable.
  • Preview in Quick Edit now correctly uses the correct R2 bindings.
  • Updated V8 from 10.1 to 10.2.

2022-05-26

  • The static Response.json() method can be used to initialize a Response object with a JSON-serialized payload (refer to whatwg/fetch #1392).
  • R2 exceptions being thrown now have the error code appended in the message in parenthesis. This is a stop-gap until we are able to explicitly add the code property on the thrown Error object.

2022-05-19

  • R2 bindings: contentEncoding, contentLanguage, and cacheControl are now correctly rendered.
  • ReadableStream pipeTo and pipeThrough now support cancellation using AbortSignal.
  • Calling setAlarm() in a DO with no alarm() handler implemented will now throw instead of failing silently. Calling getAlarm() when no alarm() handler is currently implemented will return null, even if an alarm was previously set on an old version of the DO class, as no execution will take place.
  • R2: Better runtime support for additional ranges.
  • R2 bindings now support ranges that have an offset and an optional length, a length and an optional offset, or a suffix (returns the last N bytes of a file).

2022-05-12

  • Fix R2 bindings saving cache-control under content-language and rendering cache-control under content-language.
  • Fix R2 bindings list without options to use the default list limit instead of never returning any results.
  • Fix R2 bindings which did not correctly handle error messages from R2, resulting in internal error being thrown. Also fix behavior for get throwing an exception on a non-existent key instead of returning null. R2Error is removed for the time being and will be reinstated at some future time TBD.
  • R2 bindings: if the onlyIf condition results in a precondition failure or a not modified result, the object is returned without a body instead of returning null.
  • R2 bindings: sha1 is removed as an option because it was not actually hooked up to anything. TBD on additional checksum options beyond md5.
  • Added startAfter option to the list() method in the Durable Object storage API.

2022-05-05

  • Response.redirect(url) will no longer coalesce multiple consecutive slash characters appearing in the URL’s path.
  • Fix generated types for Date.
  • Fix R2 bindings list without options to use the default list limit instead of never returning any results.
  • Fix R2 bindings did not correctly handle error messages from R2, resulting in internal error being thrown. Also fix behavior for get throwing an exception on a non-existent key instead of returning null. R2Error is removed for the time being and will be reinstated at some future time TBD.

2022-04-29

  • Minor V8 update: 10.0 → 10.1.
  • R2 public beta bindings are the default regardless of compat date or flags. Internal beta bindings customers should transition to public beta bindings as soon as possible. A back compatibility flag is available if this is not immediately possible. After some lag, new scripts carrying the r2_public_beta_bindings compatibility flag will stop accepting to be published until that flag is removed.

2022-04-22