@cloudflare/workers-types 4.20241224.0 → 4.20250109.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5411,6 +5411,7 @@ declare module "cloudflare:workers" {
5411
5411
  [Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
5412
5412
  protected ctx: ExecutionContext;
5413
5413
  protected env: Env;
5414
+ constructor(ctx: ExecutionContext, env: Env);
5414
5415
  run(
5415
5416
  event: Readonly<WorkflowEvent<T>>,
5416
5417
  step: WorkflowStep,
@@ -5437,6 +5437,7 @@ declare module "cloudflare:workers" {
5437
5437
  [Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
5438
5438
  protected ctx: ExecutionContext;
5439
5439
  protected env: Env;
5440
+ constructor(ctx: ExecutionContext, env: Env);
5440
5441
  run(
5441
5442
  event: Readonly<WorkflowEvent<T>>,
5442
5443
  step: WorkflowStep,
@@ -5462,6 +5462,7 @@ declare module "cloudflare:workers" {
5462
5462
  [Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
5463
5463
  protected ctx: ExecutionContext;
5464
5464
  protected env: Env;
5465
+ constructor(ctx: ExecutionContext, env: Env);
5465
5466
  run(
5466
5467
  event: Readonly<WorkflowEvent<T>>,
5467
5468
  step: WorkflowStep,
@@ -5463,6 +5463,7 @@ declare module "cloudflare:workers" {
5463
5463
  [Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
5464
5464
  protected ctx: ExecutionContext;
5465
5465
  protected env: Env;
5466
+ constructor(ctx: ExecutionContext, env: Env);
5466
5467
  run(
5467
5468
  event: Readonly<WorkflowEvent<T>>,
5468
5469
  step: WorkflowStep,
@@ -5466,6 +5466,7 @@ declare module "cloudflare:workers" {
5466
5466
  [Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
5467
5467
  protected ctx: ExecutionContext;
5468
5468
  protected env: Env;
5469
+ constructor(ctx: ExecutionContext, env: Env);
5469
5470
  run(
5470
5471
  event: Readonly<WorkflowEvent<T>>,
5471
5472
  step: WorkflowStep,
@@ -5471,6 +5471,7 @@ declare module "cloudflare:workers" {
5471
5471
  [Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
5472
5472
  protected ctx: ExecutionContext;
5473
5473
  protected env: Env;
5474
+ constructor(ctx: ExecutionContext, env: Env);
5474
5475
  run(
5475
5476
  event: Readonly<WorkflowEvent<T>>,
5476
5477
  step: WorkflowStep,
@@ -5473,6 +5473,7 @@ declare module "cloudflare:workers" {
5473
5473
  [Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
5474
5474
  protected ctx: ExecutionContext;
5475
5475
  protected env: Env;
5476
+ constructor(ctx: ExecutionContext, env: Env);
5476
5477
  run(
5477
5478
  event: Readonly<WorkflowEvent<T>>,
5478
5479
  step: WorkflowStep,
@@ -5473,6 +5473,7 @@ declare module "cloudflare:workers" {
5473
5473
  [Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
5474
5474
  protected ctx: ExecutionContext;
5475
5475
  protected env: Env;
5476
+ constructor(ctx: ExecutionContext, env: Env);
5476
5477
  run(
5477
5478
  event: Readonly<WorkflowEvent<T>>,
5478
5479
  step: WorkflowStep,
@@ -1710,7 +1710,7 @@ interface Request<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>>
1710
1710
  *
1711
1711
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
1712
1712
  */
1713
- cache?: "no-store";
1713
+ cache?: "no-store" | "no-cache";
1714
1714
  }
1715
1715
  interface RequestInit<Cf = CfProperties> {
1716
1716
  /* A string to set request's method. */
@@ -1724,7 +1724,7 @@ interface RequestInit<Cf = CfProperties> {
1724
1724
  fetcher?: Fetcher | null;
1725
1725
  cf?: Cf;
1726
1726
  /* A string indicating how the request will interact with the browser's cache to set request's cache. */
1727
- cache?: "no-store";
1727
+ cache?: "no-store" | "no-cache";
1728
1728
  /* A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
1729
1729
  integrity?: string;
1730
1730
  /* An AbortSignal to set request's signal. */
@@ -5552,6 +5552,7 @@ declare module "cloudflare:workers" {
5552
5552
  [Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
5553
5553
  protected ctx: ExecutionContext;
5554
5554
  protected env: Env;
5555
+ constructor(ctx: ExecutionContext, env: Env);
5555
5556
  run(
5556
5557
  event: Readonly<WorkflowEvent<T>>,
5557
5558
  step: WorkflowStep,
@@ -1718,7 +1718,7 @@ export interface Request<
1718
1718
  *
1719
1719
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
1720
1720
  */
1721
- cache?: "no-store";
1721
+ cache?: "no-store" | "no-cache";
1722
1722
  }
1723
1723
  export interface RequestInit<Cf = CfProperties> {
1724
1724
  /* A string to set request's method. */
@@ -1732,7 +1732,7 @@ export interface RequestInit<Cf = CfProperties> {
1732
1732
  fetcher?: Fetcher | null;
1733
1733
  cf?: Cf;
1734
1734
  /* A string indicating how the request will interact with the browser's cache to set request's cache. */
1735
- cache?: "no-store";
1735
+ cache?: "no-store" | "no-cache";
1736
1736
  /* A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
1737
1737
  integrity?: string;
1738
1738
  /* An AbortSignal to set request's signal. */
package/index.d.ts CHANGED
@@ -5411,6 +5411,7 @@ declare module "cloudflare:workers" {
5411
5411
  [Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
5412
5412
  protected ctx: ExecutionContext;
5413
5413
  protected env: Env;
5414
+ constructor(ctx: ExecutionContext, env: Env);
5414
5415
  run(
5415
5416
  event: Readonly<WorkflowEvent<T>>,
5416
5417
  step: WorkflowStep,
package/oldest/index.d.ts CHANGED
@@ -5411,6 +5411,7 @@ declare module "cloudflare:workers" {
5411
5411
  [Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
5412
5412
  protected ctx: ExecutionContext;
5413
5413
  protected env: Env;
5414
+ constructor(ctx: ExecutionContext, env: Env);
5414
5415
  run(
5415
5416
  event: Readonly<WorkflowEvent<T>>,
5416
5417
  step: WorkflowStep,
package/package.json CHANGED
@@ -7,5 +7,5 @@
7
7
  },
8
8
  "author": "Cloudflare Workers DevProd Team <workers-devprod@cloudflare.com> (https://workers.cloudflare.com)",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "4.20241224.0"
10
+ "version": "4.20250109.0"
11
11
  }