Change: All CloudflareRequestAttributes fields are now optional to ease testing. Avoids forcing the developer to create an object full of unused, but required fields. This requires null checks in the worker code, but they should have arguably been there from the start.
Cloudflare has added additional incoming and outgoing fields to the
Request.cf
object. This adds new fields listed in https://workers.cloudflare.com/docs/reference/runtime/apis/fetch/Change: All
CloudflareRequestAttributes
fields are now optional to ease testing. Avoids forcing the developer to create an object full of unused, but required fields. This requires null checks in the worker code, but they should have arguably been there from the start.CloudflareRequestAttributes object to avoid