@cloudflare/workers-types 4.20260413.1 → 4.20260415.1

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.
@@ -3823,6 +3823,7 @@ interface WorkerStub {
3823
3823
  }
3824
3824
  interface WorkerStubEntrypointOptions {
3825
3825
  props?: any;
3826
+ limits?: workerdResourceLimits;
3826
3827
  }
3827
3828
  interface WorkerLoader {
3828
3829
  get(
@@ -3844,6 +3845,7 @@ interface WorkerLoaderWorkerCode {
3844
3845
  compatibilityDate: string;
3845
3846
  compatibilityFlags?: string[];
3846
3847
  allowExperimental?: boolean;
3848
+ limits?: workerdResourceLimits;
3847
3849
  mainModule: string;
3848
3850
  modules: Record<string, WorkerLoaderModule | string>;
3849
3851
  env?: any;
@@ -3851,6 +3853,10 @@ interface WorkerLoaderWorkerCode {
3851
3853
  tails?: Fetcher[];
3852
3854
  streamingTails?: Fetcher[];
3853
3855
  }
3856
+ interface workerdResourceLimits {
3857
+ cpuMs?: number;
3858
+ subRequests?: number;
3859
+ }
3854
3860
  /**
3855
3861
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3856
3862
  * as well as timing of subrequests and other operations.
@@ -3829,6 +3829,7 @@ export interface WorkerStub {
3829
3829
  }
3830
3830
  export interface WorkerStubEntrypointOptions {
3831
3831
  props?: any;
3832
+ limits?: workerdResourceLimits;
3832
3833
  }
3833
3834
  export interface WorkerLoader {
3834
3835
  get(
@@ -3850,6 +3851,7 @@ export interface WorkerLoaderWorkerCode {
3850
3851
  compatibilityDate: string;
3851
3852
  compatibilityFlags?: string[];
3852
3853
  allowExperimental?: boolean;
3854
+ limits?: workerdResourceLimits;
3853
3855
  mainModule: string;
3854
3856
  modules: Record<string, WorkerLoaderModule | string>;
3855
3857
  env?: any;
@@ -3857,6 +3859,10 @@ export interface WorkerLoaderWorkerCode {
3857
3859
  tails?: Fetcher[];
3858
3860
  streamingTails?: Fetcher[];
3859
3861
  }
3862
+ export interface workerdResourceLimits {
3863
+ cpuMs?: number;
3864
+ subRequests?: number;
3865
+ }
3860
3866
  /**
3861
3867
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3862
3868
  * as well as timing of subrequests and other operations.
@@ -3890,6 +3890,7 @@ interface WorkerStub {
3890
3890
  }
3891
3891
  interface WorkerStubEntrypointOptions {
3892
3892
  props?: any;
3893
+ limits?: workerdResourceLimits;
3893
3894
  }
3894
3895
  interface WorkerLoader {
3895
3896
  get(
@@ -3911,6 +3912,7 @@ interface WorkerLoaderWorkerCode {
3911
3912
  compatibilityDate: string;
3912
3913
  compatibilityFlags?: string[];
3913
3914
  allowExperimental?: boolean;
3915
+ limits?: workerdResourceLimits;
3914
3916
  mainModule: string;
3915
3917
  modules: Record<string, WorkerLoaderModule | string>;
3916
3918
  env?: any;
@@ -3918,6 +3920,10 @@ interface WorkerLoaderWorkerCode {
3918
3920
  tails?: Fetcher[];
3919
3921
  streamingTails?: Fetcher[];
3920
3922
  }
3923
+ interface workerdResourceLimits {
3924
+ cpuMs?: number;
3925
+ subRequests?: number;
3926
+ }
3921
3927
  /**
3922
3928
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3923
3929
  * as well as timing of subrequests and other operations.
@@ -3896,6 +3896,7 @@ export interface WorkerStub {
3896
3896
  }
3897
3897
  export interface WorkerStubEntrypointOptions {
3898
3898
  props?: any;
3899
+ limits?: workerdResourceLimits;
3899
3900
  }
3900
3901
  export interface WorkerLoader {
3901
3902
  get(
@@ -3917,6 +3918,7 @@ export interface WorkerLoaderWorkerCode {
3917
3918
  compatibilityDate: string;
3918
3919
  compatibilityFlags?: string[];
3919
3920
  allowExperimental?: boolean;
3921
+ limits?: workerdResourceLimits;
3920
3922
  mainModule: string;
3921
3923
  modules: Record<string, WorkerLoaderModule | string>;
3922
3924
  env?: any;
@@ -3924,6 +3926,10 @@ export interface WorkerLoaderWorkerCode {
3924
3926
  tails?: Fetcher[];
3925
3927
  streamingTails?: Fetcher[];
3926
3928
  }
3929
+ export interface workerdResourceLimits {
3930
+ cpuMs?: number;
3931
+ subRequests?: number;
3932
+ }
3927
3933
  /**
3928
3934
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3929
3935
  * as well as timing of subrequests and other operations.
@@ -3898,6 +3898,7 @@ interface WorkerStub {
3898
3898
  }
3899
3899
  interface WorkerStubEntrypointOptions {
3900
3900
  props?: any;
3901
+ limits?: workerdResourceLimits;
3901
3902
  }
3902
3903
  interface WorkerLoader {
3903
3904
  get(
@@ -3919,6 +3920,7 @@ interface WorkerLoaderWorkerCode {
3919
3920
  compatibilityDate: string;
3920
3921
  compatibilityFlags?: string[];
3921
3922
  allowExperimental?: boolean;
3923
+ limits?: workerdResourceLimits;
3922
3924
  mainModule: string;
3923
3925
  modules: Record<string, WorkerLoaderModule | string>;
3924
3926
  env?: any;
@@ -3926,6 +3928,10 @@ interface WorkerLoaderWorkerCode {
3926
3928
  tails?: Fetcher[];
3927
3929
  streamingTails?: Fetcher[];
3928
3930
  }
3931
+ interface workerdResourceLimits {
3932
+ cpuMs?: number;
3933
+ subRequests?: number;
3934
+ }
3929
3935
  /**
3930
3936
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3931
3937
  * as well as timing of subrequests and other operations.
@@ -3904,6 +3904,7 @@ export interface WorkerStub {
3904
3904
  }
3905
3905
  export interface WorkerStubEntrypointOptions {
3906
3906
  props?: any;
3907
+ limits?: workerdResourceLimits;
3907
3908
  }
3908
3909
  export interface WorkerLoader {
3909
3910
  get(
@@ -3925,6 +3926,7 @@ export interface WorkerLoaderWorkerCode {
3925
3926
  compatibilityDate: string;
3926
3927
  compatibilityFlags?: string[];
3927
3928
  allowExperimental?: boolean;
3929
+ limits?: workerdResourceLimits;
3928
3930
  mainModule: string;
3929
3931
  modules: Record<string, WorkerLoaderModule | string>;
3930
3932
  env?: any;
@@ -3932,6 +3934,10 @@ export interface WorkerLoaderWorkerCode {
3932
3934
  tails?: Fetcher[];
3933
3935
  streamingTails?: Fetcher[];
3934
3936
  }
3937
+ export interface workerdResourceLimits {
3938
+ cpuMs?: number;
3939
+ subRequests?: number;
3940
+ }
3935
3941
  /**
3936
3942
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3937
3943
  * as well as timing of subrequests and other operations.
@@ -3899,6 +3899,7 @@ interface WorkerStub {
3899
3899
  }
3900
3900
  interface WorkerStubEntrypointOptions {
3901
3901
  props?: any;
3902
+ limits?: workerdResourceLimits;
3902
3903
  }
3903
3904
  interface WorkerLoader {
3904
3905
  get(
@@ -3920,6 +3921,7 @@ interface WorkerLoaderWorkerCode {
3920
3921
  compatibilityDate: string;
3921
3922
  compatibilityFlags?: string[];
3922
3923
  allowExperimental?: boolean;
3924
+ limits?: workerdResourceLimits;
3923
3925
  mainModule: string;
3924
3926
  modules: Record<string, WorkerLoaderModule | string>;
3925
3927
  env?: any;
@@ -3927,6 +3929,10 @@ interface WorkerLoaderWorkerCode {
3927
3929
  tails?: Fetcher[];
3928
3930
  streamingTails?: Fetcher[];
3929
3931
  }
3932
+ interface workerdResourceLimits {
3933
+ cpuMs?: number;
3934
+ subRequests?: number;
3935
+ }
3930
3936
  /**
3931
3937
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3932
3938
  * as well as timing of subrequests and other operations.
@@ -3905,6 +3905,7 @@ export interface WorkerStub {
3905
3905
  }
3906
3906
  export interface WorkerStubEntrypointOptions {
3907
3907
  props?: any;
3908
+ limits?: workerdResourceLimits;
3908
3909
  }
3909
3910
  export interface WorkerLoader {
3910
3911
  get(
@@ -3926,6 +3927,7 @@ export interface WorkerLoaderWorkerCode {
3926
3927
  compatibilityDate: string;
3927
3928
  compatibilityFlags?: string[];
3928
3929
  allowExperimental?: boolean;
3930
+ limits?: workerdResourceLimits;
3929
3931
  mainModule: string;
3930
3932
  modules: Record<string, WorkerLoaderModule | string>;
3931
3933
  env?: any;
@@ -3933,6 +3935,10 @@ export interface WorkerLoaderWorkerCode {
3933
3935
  tails?: Fetcher[];
3934
3936
  streamingTails?: Fetcher[];
3935
3937
  }
3938
+ export interface workerdResourceLimits {
3939
+ cpuMs?: number;
3940
+ subRequests?: number;
3941
+ }
3936
3942
  /**
3937
3943
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3938
3944
  * as well as timing of subrequests and other operations.
@@ -3919,6 +3919,7 @@ interface WorkerStub {
3919
3919
  }
3920
3920
  interface WorkerStubEntrypointOptions {
3921
3921
  props?: any;
3922
+ limits?: workerdResourceLimits;
3922
3923
  }
3923
3924
  interface WorkerLoader {
3924
3925
  get(
@@ -3940,6 +3941,7 @@ interface WorkerLoaderWorkerCode {
3940
3941
  compatibilityDate: string;
3941
3942
  compatibilityFlags?: string[];
3942
3943
  allowExperimental?: boolean;
3944
+ limits?: workerdResourceLimits;
3943
3945
  mainModule: string;
3944
3946
  modules: Record<string, WorkerLoaderModule | string>;
3945
3947
  env?: any;
@@ -3947,6 +3949,10 @@ interface WorkerLoaderWorkerCode {
3947
3949
  tails?: Fetcher[];
3948
3950
  streamingTails?: Fetcher[];
3949
3951
  }
3952
+ interface workerdResourceLimits {
3953
+ cpuMs?: number;
3954
+ subRequests?: number;
3955
+ }
3950
3956
  /**
3951
3957
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3952
3958
  * as well as timing of subrequests and other operations.
@@ -3925,6 +3925,7 @@ export interface WorkerStub {
3925
3925
  }
3926
3926
  export interface WorkerStubEntrypointOptions {
3927
3927
  props?: any;
3928
+ limits?: workerdResourceLimits;
3928
3929
  }
3929
3930
  export interface WorkerLoader {
3930
3931
  get(
@@ -3946,6 +3947,7 @@ export interface WorkerLoaderWorkerCode {
3946
3947
  compatibilityDate: string;
3947
3948
  compatibilityFlags?: string[];
3948
3949
  allowExperimental?: boolean;
3950
+ limits?: workerdResourceLimits;
3949
3951
  mainModule: string;
3950
3952
  modules: Record<string, WorkerLoaderModule | string>;
3951
3953
  env?: any;
@@ -3953,6 +3955,10 @@ export interface WorkerLoaderWorkerCode {
3953
3955
  tails?: Fetcher[];
3954
3956
  streamingTails?: Fetcher[];
3955
3957
  }
3958
+ export interface workerdResourceLimits {
3959
+ cpuMs?: number;
3960
+ subRequests?: number;
3961
+ }
3956
3962
  /**
3957
3963
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3958
3964
  * as well as timing of subrequests and other operations.
@@ -3924,6 +3924,7 @@ interface WorkerStub {
3924
3924
  }
3925
3925
  interface WorkerStubEntrypointOptions {
3926
3926
  props?: any;
3927
+ limits?: workerdResourceLimits;
3927
3928
  }
3928
3929
  interface WorkerLoader {
3929
3930
  get(
@@ -3945,6 +3946,7 @@ interface WorkerLoaderWorkerCode {
3945
3946
  compatibilityDate: string;
3946
3947
  compatibilityFlags?: string[];
3947
3948
  allowExperimental?: boolean;
3949
+ limits?: workerdResourceLimits;
3948
3950
  mainModule: string;
3949
3951
  modules: Record<string, WorkerLoaderModule | string>;
3950
3952
  env?: any;
@@ -3952,6 +3954,10 @@ interface WorkerLoaderWorkerCode {
3952
3954
  tails?: Fetcher[];
3953
3955
  streamingTails?: Fetcher[];
3954
3956
  }
3957
+ interface workerdResourceLimits {
3958
+ cpuMs?: number;
3959
+ subRequests?: number;
3960
+ }
3955
3961
  /**
3956
3962
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3957
3963
  * as well as timing of subrequests and other operations.
@@ -3930,6 +3930,7 @@ export interface WorkerStub {
3930
3930
  }
3931
3931
  export interface WorkerStubEntrypointOptions {
3932
3932
  props?: any;
3933
+ limits?: workerdResourceLimits;
3933
3934
  }
3934
3935
  export interface WorkerLoader {
3935
3936
  get(
@@ -3951,6 +3952,7 @@ export interface WorkerLoaderWorkerCode {
3951
3952
  compatibilityDate: string;
3952
3953
  compatibilityFlags?: string[];
3953
3954
  allowExperimental?: boolean;
3955
+ limits?: workerdResourceLimits;
3954
3956
  mainModule: string;
3955
3957
  modules: Record<string, WorkerLoaderModule | string>;
3956
3958
  env?: any;
@@ -3958,6 +3960,10 @@ export interface WorkerLoaderWorkerCode {
3958
3960
  tails?: Fetcher[];
3959
3961
  streamingTails?: Fetcher[];
3960
3962
  }
3963
+ export interface workerdResourceLimits {
3964
+ cpuMs?: number;
3965
+ subRequests?: number;
3966
+ }
3961
3967
  /**
3962
3968
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3963
3969
  * as well as timing of subrequests and other operations.
@@ -3930,6 +3930,7 @@ interface WorkerStub {
3930
3930
  }
3931
3931
  interface WorkerStubEntrypointOptions {
3932
3932
  props?: any;
3933
+ limits?: workerdResourceLimits;
3933
3934
  }
3934
3935
  interface WorkerLoader {
3935
3936
  get(
@@ -3951,6 +3952,7 @@ interface WorkerLoaderWorkerCode {
3951
3952
  compatibilityDate: string;
3952
3953
  compatibilityFlags?: string[];
3953
3954
  allowExperimental?: boolean;
3955
+ limits?: workerdResourceLimits;
3954
3956
  mainModule: string;
3955
3957
  modules: Record<string, WorkerLoaderModule | string>;
3956
3958
  env?: any;
@@ -3958,6 +3960,10 @@ interface WorkerLoaderWorkerCode {
3958
3960
  tails?: Fetcher[];
3959
3961
  streamingTails?: Fetcher[];
3960
3962
  }
3963
+ interface workerdResourceLimits {
3964
+ cpuMs?: number;
3965
+ subRequests?: number;
3966
+ }
3961
3967
  /**
3962
3968
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3963
3969
  * as well as timing of subrequests and other operations.
@@ -3936,6 +3936,7 @@ export interface WorkerStub {
3936
3936
  }
3937
3937
  export interface WorkerStubEntrypointOptions {
3938
3938
  props?: any;
3939
+ limits?: workerdResourceLimits;
3939
3940
  }
3940
3941
  export interface WorkerLoader {
3941
3942
  get(
@@ -3957,6 +3958,7 @@ export interface WorkerLoaderWorkerCode {
3957
3958
  compatibilityDate: string;
3958
3959
  compatibilityFlags?: string[];
3959
3960
  allowExperimental?: boolean;
3961
+ limits?: workerdResourceLimits;
3960
3962
  mainModule: string;
3961
3963
  modules: Record<string, WorkerLoaderModule | string>;
3962
3964
  env?: any;
@@ -3964,6 +3966,10 @@ export interface WorkerLoaderWorkerCode {
3964
3966
  tails?: Fetcher[];
3965
3967
  streamingTails?: Fetcher[];
3966
3968
  }
3969
+ export interface workerdResourceLimits {
3970
+ cpuMs?: number;
3971
+ subRequests?: number;
3972
+ }
3967
3973
  /**
3968
3974
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3969
3975
  * as well as timing of subrequests and other operations.
@@ -3930,6 +3930,7 @@ interface WorkerStub {
3930
3930
  }
3931
3931
  interface WorkerStubEntrypointOptions {
3932
3932
  props?: any;
3933
+ limits?: workerdResourceLimits;
3933
3934
  }
3934
3935
  interface WorkerLoader {
3935
3936
  get(
@@ -3951,6 +3952,7 @@ interface WorkerLoaderWorkerCode {
3951
3952
  compatibilityDate: string;
3952
3953
  compatibilityFlags?: string[];
3953
3954
  allowExperimental?: boolean;
3955
+ limits?: workerdResourceLimits;
3954
3956
  mainModule: string;
3955
3957
  modules: Record<string, WorkerLoaderModule | string>;
3956
3958
  env?: any;
@@ -3958,6 +3960,10 @@ interface WorkerLoaderWorkerCode {
3958
3960
  tails?: Fetcher[];
3959
3961
  streamingTails?: Fetcher[];
3960
3962
  }
3963
+ interface workerdResourceLimits {
3964
+ cpuMs?: number;
3965
+ subRequests?: number;
3966
+ }
3961
3967
  /**
3962
3968
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3963
3969
  * as well as timing of subrequests and other operations.
@@ -3936,6 +3936,7 @@ export interface WorkerStub {
3936
3936
  }
3937
3937
  export interface WorkerStubEntrypointOptions {
3938
3938
  props?: any;
3939
+ limits?: workerdResourceLimits;
3939
3940
  }
3940
3941
  export interface WorkerLoader {
3941
3942
  get(
@@ -3957,6 +3958,7 @@ export interface WorkerLoaderWorkerCode {
3957
3958
  compatibilityDate: string;
3958
3959
  compatibilityFlags?: string[];
3959
3960
  allowExperimental?: boolean;
3961
+ limits?: workerdResourceLimits;
3960
3962
  mainModule: string;
3961
3963
  modules: Record<string, WorkerLoaderModule | string>;
3962
3964
  env?: any;
@@ -3964,6 +3966,10 @@ export interface WorkerLoaderWorkerCode {
3964
3966
  tails?: Fetcher[];
3965
3967
  streamingTails?: Fetcher[];
3966
3968
  }
3969
+ export interface workerdResourceLimits {
3970
+ cpuMs?: number;
3971
+ subRequests?: number;
3972
+ }
3967
3973
  /**
3968
3974
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3969
3975
  * as well as timing of subrequests and other operations.
@@ -4309,6 +4309,7 @@ interface WorkerStub {
4309
4309
  }
4310
4310
  interface WorkerStubEntrypointOptions {
4311
4311
  props?: any;
4312
+ limits?: workerdResourceLimits;
4312
4313
  }
4313
4314
  interface WorkerLoader {
4314
4315
  get(
@@ -4330,6 +4331,7 @@ interface WorkerLoaderWorkerCode {
4330
4331
  compatibilityDate: string;
4331
4332
  compatibilityFlags?: string[];
4332
4333
  allowExperimental?: boolean;
4334
+ limits?: workerdResourceLimits;
4333
4335
  mainModule: string;
4334
4336
  modules: Record<string, WorkerLoaderModule | string>;
4335
4337
  env?: any;
@@ -4337,6 +4339,10 @@ interface WorkerLoaderWorkerCode {
4337
4339
  tails?: Fetcher[];
4338
4340
  streamingTails?: Fetcher[];
4339
4341
  }
4342
+ interface workerdResourceLimits {
4343
+ cpuMs?: number;
4344
+ subRequests?: number;
4345
+ }
4340
4346
  /**
4341
4347
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
4342
4348
  * as well as timing of subrequests and other operations.
@@ -4315,6 +4315,7 @@ export interface WorkerStub {
4315
4315
  }
4316
4316
  export interface WorkerStubEntrypointOptions {
4317
4317
  props?: any;
4318
+ limits?: workerdResourceLimits;
4318
4319
  }
4319
4320
  export interface WorkerLoader {
4320
4321
  get(
@@ -4336,6 +4337,7 @@ export interface WorkerLoaderWorkerCode {
4336
4337
  compatibilityDate: string;
4337
4338
  compatibilityFlags?: string[];
4338
4339
  allowExperimental?: boolean;
4340
+ limits?: workerdResourceLimits;
4339
4341
  mainModule: string;
4340
4342
  modules: Record<string, WorkerLoaderModule | string>;
4341
4343
  env?: any;
@@ -4343,6 +4345,10 @@ export interface WorkerLoaderWorkerCode {
4343
4345
  tails?: Fetcher[];
4344
4346
  streamingTails?: Fetcher[];
4345
4347
  }
4348
+ export interface workerdResourceLimits {
4349
+ cpuMs?: number;
4350
+ subRequests?: number;
4351
+ }
4346
4352
  /**
4347
4353
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
4348
4354
  * as well as timing of subrequests and other operations.
package/index.d.ts CHANGED
@@ -3823,6 +3823,7 @@ interface WorkerStub {
3823
3823
  }
3824
3824
  interface WorkerStubEntrypointOptions {
3825
3825
  props?: any;
3826
+ limits?: workerdResourceLimits;
3826
3827
  }
3827
3828
  interface WorkerLoader {
3828
3829
  get(
@@ -3844,6 +3845,7 @@ interface WorkerLoaderWorkerCode {
3844
3845
  compatibilityDate: string;
3845
3846
  compatibilityFlags?: string[];
3846
3847
  allowExperimental?: boolean;
3848
+ limits?: workerdResourceLimits;
3847
3849
  mainModule: string;
3848
3850
  modules: Record<string, WorkerLoaderModule | string>;
3849
3851
  env?: any;
@@ -3851,6 +3853,10 @@ interface WorkerLoaderWorkerCode {
3851
3853
  tails?: Fetcher[];
3852
3854
  streamingTails?: Fetcher[];
3853
3855
  }
3856
+ interface workerdResourceLimits {
3857
+ cpuMs?: number;
3858
+ subRequests?: number;
3859
+ }
3854
3860
  /**
3855
3861
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3856
3862
  * as well as timing of subrequests and other operations.
package/index.ts CHANGED
@@ -3829,6 +3829,7 @@ export interface WorkerStub {
3829
3829
  }
3830
3830
  export interface WorkerStubEntrypointOptions {
3831
3831
  props?: any;
3832
+ limits?: workerdResourceLimits;
3832
3833
  }
3833
3834
  export interface WorkerLoader {
3834
3835
  get(
@@ -3850,6 +3851,7 @@ export interface WorkerLoaderWorkerCode {
3850
3851
  compatibilityDate: string;
3851
3852
  compatibilityFlags?: string[];
3852
3853
  allowExperimental?: boolean;
3854
+ limits?: workerdResourceLimits;
3853
3855
  mainModule: string;
3854
3856
  modules: Record<string, WorkerLoaderModule | string>;
3855
3857
  env?: any;
@@ -3857,6 +3859,10 @@ export interface WorkerLoaderWorkerCode {
3857
3859
  tails?: Fetcher[];
3858
3860
  streamingTails?: Fetcher[];
3859
3861
  }
3862
+ export interface workerdResourceLimits {
3863
+ cpuMs?: number;
3864
+ subRequests?: number;
3865
+ }
3860
3866
  /**
3861
3867
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3862
3868
  * as well as timing of subrequests and other operations.
package/latest/index.d.ts CHANGED
@@ -3963,6 +3963,7 @@ interface WorkerStub {
3963
3963
  }
3964
3964
  interface WorkerStubEntrypointOptions {
3965
3965
  props?: any;
3966
+ limits?: workerdResourceLimits;
3966
3967
  }
3967
3968
  interface WorkerLoader {
3968
3969
  get(
@@ -3984,6 +3985,7 @@ interface WorkerLoaderWorkerCode {
3984
3985
  compatibilityDate: string;
3985
3986
  compatibilityFlags?: string[];
3986
3987
  allowExperimental?: boolean;
3988
+ limits?: workerdResourceLimits;
3987
3989
  mainModule: string;
3988
3990
  modules: Record<string, WorkerLoaderModule | string>;
3989
3991
  env?: any;
@@ -3991,6 +3993,10 @@ interface WorkerLoaderWorkerCode {
3991
3993
  tails?: Fetcher[];
3992
3994
  streamingTails?: Fetcher[];
3993
3995
  }
3996
+ interface workerdResourceLimits {
3997
+ cpuMs?: number;
3998
+ subRequests?: number;
3999
+ }
3994
4000
  /**
3995
4001
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3996
4002
  * as well as timing of subrequests and other operations.
package/latest/index.ts CHANGED
@@ -3969,6 +3969,7 @@ export interface WorkerStub {
3969
3969
  }
3970
3970
  export interface WorkerStubEntrypointOptions {
3971
3971
  props?: any;
3972
+ limits?: workerdResourceLimits;
3972
3973
  }
3973
3974
  export interface WorkerLoader {
3974
3975
  get(
@@ -3990,6 +3991,7 @@ export interface WorkerLoaderWorkerCode {
3990
3991
  compatibilityDate: string;
3991
3992
  compatibilityFlags?: string[];
3992
3993
  allowExperimental?: boolean;
3994
+ limits?: workerdResourceLimits;
3993
3995
  mainModule: string;
3994
3996
  modules: Record<string, WorkerLoaderModule | string>;
3995
3997
  env?: any;
@@ -3997,6 +3999,10 @@ export interface WorkerLoaderWorkerCode {
3997
3999
  tails?: Fetcher[];
3998
4000
  streamingTails?: Fetcher[];
3999
4001
  }
4002
+ export interface workerdResourceLimits {
4003
+ cpuMs?: number;
4004
+ subRequests?: number;
4005
+ }
4000
4006
  /**
4001
4007
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
4002
4008
  * as well as timing of subrequests and other operations.
package/oldest/index.d.ts CHANGED
@@ -3823,6 +3823,7 @@ interface WorkerStub {
3823
3823
  }
3824
3824
  interface WorkerStubEntrypointOptions {
3825
3825
  props?: any;
3826
+ limits?: workerdResourceLimits;
3826
3827
  }
3827
3828
  interface WorkerLoader {
3828
3829
  get(
@@ -3844,6 +3845,7 @@ interface WorkerLoaderWorkerCode {
3844
3845
  compatibilityDate: string;
3845
3846
  compatibilityFlags?: string[];
3846
3847
  allowExperimental?: boolean;
3848
+ limits?: workerdResourceLimits;
3847
3849
  mainModule: string;
3848
3850
  modules: Record<string, WorkerLoaderModule | string>;
3849
3851
  env?: any;
@@ -3851,6 +3853,10 @@ interface WorkerLoaderWorkerCode {
3851
3853
  tails?: Fetcher[];
3852
3854
  streamingTails?: Fetcher[];
3853
3855
  }
3856
+ interface workerdResourceLimits {
3857
+ cpuMs?: number;
3858
+ subRequests?: number;
3859
+ }
3854
3860
  /**
3855
3861
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3856
3862
  * as well as timing of subrequests and other operations.
package/oldest/index.ts CHANGED
@@ -3829,6 +3829,7 @@ export interface WorkerStub {
3829
3829
  }
3830
3830
  export interface WorkerStubEntrypointOptions {
3831
3831
  props?: any;
3832
+ limits?: workerdResourceLimits;
3832
3833
  }
3833
3834
  export interface WorkerLoader {
3834
3835
  get(
@@ -3850,6 +3851,7 @@ export interface WorkerLoaderWorkerCode {
3850
3851
  compatibilityDate: string;
3851
3852
  compatibilityFlags?: string[];
3852
3853
  allowExperimental?: boolean;
3854
+ limits?: workerdResourceLimits;
3853
3855
  mainModule: string;
3854
3856
  modules: Record<string, WorkerLoaderModule | string>;
3855
3857
  env?: any;
@@ -3857,6 +3859,10 @@ export interface WorkerLoaderWorkerCode {
3857
3859
  tails?: Fetcher[];
3858
3860
  streamingTails?: Fetcher[];
3859
3861
  }
3862
+ export interface workerdResourceLimits {
3863
+ cpuMs?: number;
3864
+ subRequests?: number;
3865
+ }
3860
3866
  /**
3861
3867
  * The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
3862
3868
  * as well as timing of subrequests and other operations.
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.20260413.1"
10
+ "version": "4.20260415.1"
11
11
  }