@cloudflare/workers-types 4.20240524.0 → 4.20240603.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.
- package/2021-11-03/index.d.ts +14 -5
- package/2021-11-03/index.ts +14 -5
- package/2022-01-31/index.d.ts +14 -5
- package/2022-01-31/index.ts +14 -5
- package/2022-03-21/index.d.ts +14 -5
- package/2022-03-21/index.ts +14 -5
- package/2022-08-04/index.d.ts +14 -5
- package/2022-08-04/index.ts +14 -5
- package/2022-10-31/index.d.ts +14 -5
- package/2022-10-31/index.ts +14 -5
- package/2022-11-30/index.d.ts +14 -5
- package/2022-11-30/index.ts +14 -5
- package/2023-03-01/index.d.ts +14 -5
- package/2023-03-01/index.ts +14 -5
- package/2023-07-01/index.d.ts +14 -5
- package/2023-07-01/index.ts +14 -5
- package/experimental/index.d.ts +20 -5
- package/experimental/index.ts +20 -5
- package/index.d.ts +14 -5
- package/index.ts +14 -5
- package/oldest/index.d.ts +14 -5
- package/oldest/index.ts +14 -5
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
declare type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1748,11 +1750,11 @@ declare interface R2MultipartOptions {
|
|
|
1748
1750
|
storageClass?: string;
|
|
1749
1751
|
}
|
|
1750
1752
|
declare interface R2Checksums {
|
|
1751
|
-
readonly md5?:
|
|
1752
|
-
readonly sha1?:
|
|
1753
|
-
readonly sha256?:
|
|
1754
|
-
readonly sha384?:
|
|
1755
|
-
readonly sha512?:
|
|
1753
|
+
readonly md5?: ArrayBufferView;
|
|
1754
|
+
readonly sha1?: ArrayBufferView;
|
|
1755
|
+
readonly sha256?: ArrayBufferView;
|
|
1756
|
+
readonly sha384?: ArrayBufferView;
|
|
1757
|
+
readonly sha512?: ArrayBufferView;
|
|
1756
1758
|
toJSON(): R2StringChecksums;
|
|
1757
1759
|
}
|
|
1758
1760
|
declare interface R2StringChecksums {
|
|
@@ -3347,6 +3349,7 @@ declare interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3347
3349
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3348
3350
|
mirage?: boolean;
|
|
3349
3351
|
polish?: "lossy" | "lossless" | "off";
|
|
3352
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3350
3353
|
/**
|
|
3351
3354
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3352
3355
|
* for example, to implement load balancing across several origins.
|
|
@@ -3531,6 +3534,12 @@ declare interface RequestInitCfPropertiesImageMinify {
|
|
|
3531
3534
|
css?: boolean;
|
|
3532
3535
|
html?: boolean;
|
|
3533
3536
|
}
|
|
3537
|
+
declare interface RequestInitCfPropertiesR2 {
|
|
3538
|
+
/**
|
|
3539
|
+
* Colo id of bucket that an object is stored in
|
|
3540
|
+
*/
|
|
3541
|
+
bucketColoId?: number;
|
|
3542
|
+
}
|
|
3534
3543
|
/**
|
|
3535
3544
|
* Request metadata provided by Cloudflare's edge.
|
|
3536
3545
|
*/
|
package/2021-11-03/index.ts
CHANGED
|
@@ -51,6 +51,8 @@ export declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
export type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1750,11 +1752,11 @@ export interface R2MultipartOptions {
|
|
|
1750
1752
|
storageClass?: string;
|
|
1751
1753
|
}
|
|
1752
1754
|
export interface R2Checksums {
|
|
1753
|
-
readonly md5?:
|
|
1754
|
-
readonly sha1?:
|
|
1755
|
-
readonly sha256?:
|
|
1756
|
-
readonly sha384?:
|
|
1757
|
-
readonly sha512?:
|
|
1755
|
+
readonly md5?: ArrayBufferView;
|
|
1756
|
+
readonly sha1?: ArrayBufferView;
|
|
1757
|
+
readonly sha256?: ArrayBufferView;
|
|
1758
|
+
readonly sha384?: ArrayBufferView;
|
|
1759
|
+
readonly sha512?: ArrayBufferView;
|
|
1758
1760
|
toJSON(): R2StringChecksums;
|
|
1759
1761
|
}
|
|
1760
1762
|
export interface R2StringChecksums {
|
|
@@ -3352,6 +3354,7 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3352
3354
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3353
3355
|
mirage?: boolean;
|
|
3354
3356
|
polish?: "lossy" | "lossless" | "off";
|
|
3357
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3355
3358
|
/**
|
|
3356
3359
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3357
3360
|
* for example, to implement load balancing across several origins.
|
|
@@ -3536,6 +3539,12 @@ export interface RequestInitCfPropertiesImageMinify {
|
|
|
3536
3539
|
css?: boolean;
|
|
3537
3540
|
html?: boolean;
|
|
3538
3541
|
}
|
|
3542
|
+
export interface RequestInitCfPropertiesR2 {
|
|
3543
|
+
/**
|
|
3544
|
+
* Colo id of bucket that an object is stored in
|
|
3545
|
+
*/
|
|
3546
|
+
bucketColoId?: number;
|
|
3547
|
+
}
|
|
3539
3548
|
/**
|
|
3540
3549
|
* Request metadata provided by Cloudflare's edge.
|
|
3541
3550
|
*/
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
declare type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1754,11 +1756,11 @@ declare interface R2MultipartOptions {
|
|
|
1754
1756
|
storageClass?: string;
|
|
1755
1757
|
}
|
|
1756
1758
|
declare interface R2Checksums {
|
|
1757
|
-
readonly md5?:
|
|
1758
|
-
readonly sha1?:
|
|
1759
|
-
readonly sha256?:
|
|
1760
|
-
readonly sha384?:
|
|
1761
|
-
readonly sha512?:
|
|
1759
|
+
readonly md5?: ArrayBufferView;
|
|
1760
|
+
readonly sha1?: ArrayBufferView;
|
|
1761
|
+
readonly sha256?: ArrayBufferView;
|
|
1762
|
+
readonly sha384?: ArrayBufferView;
|
|
1763
|
+
readonly sha512?: ArrayBufferView;
|
|
1762
1764
|
toJSON(): R2StringChecksums;
|
|
1763
1765
|
}
|
|
1764
1766
|
declare interface R2StringChecksums {
|
|
@@ -3373,6 +3375,7 @@ declare interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3373
3375
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3374
3376
|
mirage?: boolean;
|
|
3375
3377
|
polish?: "lossy" | "lossless" | "off";
|
|
3378
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3376
3379
|
/**
|
|
3377
3380
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3378
3381
|
* for example, to implement load balancing across several origins.
|
|
@@ -3557,6 +3560,12 @@ declare interface RequestInitCfPropertiesImageMinify {
|
|
|
3557
3560
|
css?: boolean;
|
|
3558
3561
|
html?: boolean;
|
|
3559
3562
|
}
|
|
3563
|
+
declare interface RequestInitCfPropertiesR2 {
|
|
3564
|
+
/**
|
|
3565
|
+
* Colo id of bucket that an object is stored in
|
|
3566
|
+
*/
|
|
3567
|
+
bucketColoId?: number;
|
|
3568
|
+
}
|
|
3560
3569
|
/**
|
|
3561
3570
|
* Request metadata provided by Cloudflare's edge.
|
|
3562
3571
|
*/
|
package/2022-01-31/index.ts
CHANGED
|
@@ -51,6 +51,8 @@ export declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
export type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1756,11 +1758,11 @@ export interface R2MultipartOptions {
|
|
|
1756
1758
|
storageClass?: string;
|
|
1757
1759
|
}
|
|
1758
1760
|
export interface R2Checksums {
|
|
1759
|
-
readonly md5?:
|
|
1760
|
-
readonly sha1?:
|
|
1761
|
-
readonly sha256?:
|
|
1762
|
-
readonly sha384?:
|
|
1763
|
-
readonly sha512?:
|
|
1761
|
+
readonly md5?: ArrayBufferView;
|
|
1762
|
+
readonly sha1?: ArrayBufferView;
|
|
1763
|
+
readonly sha256?: ArrayBufferView;
|
|
1764
|
+
readonly sha384?: ArrayBufferView;
|
|
1765
|
+
readonly sha512?: ArrayBufferView;
|
|
1764
1766
|
toJSON(): R2StringChecksums;
|
|
1765
1767
|
}
|
|
1766
1768
|
export interface R2StringChecksums {
|
|
@@ -3378,6 +3380,7 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3378
3380
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3379
3381
|
mirage?: boolean;
|
|
3380
3382
|
polish?: "lossy" | "lossless" | "off";
|
|
3383
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3381
3384
|
/**
|
|
3382
3385
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3383
3386
|
* for example, to implement load balancing across several origins.
|
|
@@ -3562,6 +3565,12 @@ export interface RequestInitCfPropertiesImageMinify {
|
|
|
3562
3565
|
css?: boolean;
|
|
3563
3566
|
html?: boolean;
|
|
3564
3567
|
}
|
|
3568
|
+
export interface RequestInitCfPropertiesR2 {
|
|
3569
|
+
/**
|
|
3570
|
+
* Colo id of bucket that an object is stored in
|
|
3571
|
+
*/
|
|
3572
|
+
bucketColoId?: number;
|
|
3573
|
+
}
|
|
3565
3574
|
/**
|
|
3566
3575
|
* Request metadata provided by Cloudflare's edge.
|
|
3567
3576
|
*/
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
declare type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1771,11 +1773,11 @@ declare interface R2MultipartOptions {
|
|
|
1771
1773
|
storageClass?: string;
|
|
1772
1774
|
}
|
|
1773
1775
|
declare interface R2Checksums {
|
|
1774
|
-
readonly md5?:
|
|
1775
|
-
readonly sha1?:
|
|
1776
|
-
readonly sha256?:
|
|
1777
|
-
readonly sha384?:
|
|
1778
|
-
readonly sha512?:
|
|
1776
|
+
readonly md5?: ArrayBufferView;
|
|
1777
|
+
readonly sha1?: ArrayBufferView;
|
|
1778
|
+
readonly sha256?: ArrayBufferView;
|
|
1779
|
+
readonly sha384?: ArrayBufferView;
|
|
1780
|
+
readonly sha512?: ArrayBufferView;
|
|
1779
1781
|
toJSON(): R2StringChecksums;
|
|
1780
1782
|
}
|
|
1781
1783
|
declare interface R2StringChecksums {
|
|
@@ -3399,6 +3401,7 @@ declare interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3399
3401
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3400
3402
|
mirage?: boolean;
|
|
3401
3403
|
polish?: "lossy" | "lossless" | "off";
|
|
3404
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3402
3405
|
/**
|
|
3403
3406
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3404
3407
|
* for example, to implement load balancing across several origins.
|
|
@@ -3583,6 +3586,12 @@ declare interface RequestInitCfPropertiesImageMinify {
|
|
|
3583
3586
|
css?: boolean;
|
|
3584
3587
|
html?: boolean;
|
|
3585
3588
|
}
|
|
3589
|
+
declare interface RequestInitCfPropertiesR2 {
|
|
3590
|
+
/**
|
|
3591
|
+
* Colo id of bucket that an object is stored in
|
|
3592
|
+
*/
|
|
3593
|
+
bucketColoId?: number;
|
|
3594
|
+
}
|
|
3586
3595
|
/**
|
|
3587
3596
|
* Request metadata provided by Cloudflare's edge.
|
|
3588
3597
|
*/
|
package/2022-03-21/index.ts
CHANGED
|
@@ -51,6 +51,8 @@ export declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
export type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1773,11 +1775,11 @@ export interface R2MultipartOptions {
|
|
|
1773
1775
|
storageClass?: string;
|
|
1774
1776
|
}
|
|
1775
1777
|
export interface R2Checksums {
|
|
1776
|
-
readonly md5?:
|
|
1777
|
-
readonly sha1?:
|
|
1778
|
-
readonly sha256?:
|
|
1779
|
-
readonly sha384?:
|
|
1780
|
-
readonly sha512?:
|
|
1778
|
+
readonly md5?: ArrayBufferView;
|
|
1779
|
+
readonly sha1?: ArrayBufferView;
|
|
1780
|
+
readonly sha256?: ArrayBufferView;
|
|
1781
|
+
readonly sha384?: ArrayBufferView;
|
|
1782
|
+
readonly sha512?: ArrayBufferView;
|
|
1781
1783
|
toJSON(): R2StringChecksums;
|
|
1782
1784
|
}
|
|
1783
1785
|
export interface R2StringChecksums {
|
|
@@ -3404,6 +3406,7 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3404
3406
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3405
3407
|
mirage?: boolean;
|
|
3406
3408
|
polish?: "lossy" | "lossless" | "off";
|
|
3409
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3407
3410
|
/**
|
|
3408
3411
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3409
3412
|
* for example, to implement load balancing across several origins.
|
|
@@ -3588,6 +3591,12 @@ export interface RequestInitCfPropertiesImageMinify {
|
|
|
3588
3591
|
css?: boolean;
|
|
3589
3592
|
html?: boolean;
|
|
3590
3593
|
}
|
|
3594
|
+
export interface RequestInitCfPropertiesR2 {
|
|
3595
|
+
/**
|
|
3596
|
+
* Colo id of bucket that an object is stored in
|
|
3597
|
+
*/
|
|
3598
|
+
bucketColoId?: number;
|
|
3599
|
+
}
|
|
3591
3600
|
/**
|
|
3592
3601
|
* Request metadata provided by Cloudflare's edge.
|
|
3593
3602
|
*/
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
declare type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1772,11 +1774,11 @@ declare interface R2MultipartOptions {
|
|
|
1772
1774
|
storageClass?: string;
|
|
1773
1775
|
}
|
|
1774
1776
|
declare interface R2Checksums {
|
|
1775
|
-
readonly md5?:
|
|
1776
|
-
readonly sha1?:
|
|
1777
|
-
readonly sha256?:
|
|
1778
|
-
readonly sha384?:
|
|
1779
|
-
readonly sha512?:
|
|
1777
|
+
readonly md5?: ArrayBufferView;
|
|
1778
|
+
readonly sha1?: ArrayBufferView;
|
|
1779
|
+
readonly sha256?: ArrayBufferView;
|
|
1780
|
+
readonly sha384?: ArrayBufferView;
|
|
1781
|
+
readonly sha512?: ArrayBufferView;
|
|
1780
1782
|
toJSON(): R2StringChecksums;
|
|
1781
1783
|
}
|
|
1782
1784
|
declare interface R2StringChecksums {
|
|
@@ -3400,6 +3402,7 @@ declare interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3400
3402
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3401
3403
|
mirage?: boolean;
|
|
3402
3404
|
polish?: "lossy" | "lossless" | "off";
|
|
3405
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3403
3406
|
/**
|
|
3404
3407
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3405
3408
|
* for example, to implement load balancing across several origins.
|
|
@@ -3584,6 +3587,12 @@ declare interface RequestInitCfPropertiesImageMinify {
|
|
|
3584
3587
|
css?: boolean;
|
|
3585
3588
|
html?: boolean;
|
|
3586
3589
|
}
|
|
3590
|
+
declare interface RequestInitCfPropertiesR2 {
|
|
3591
|
+
/**
|
|
3592
|
+
* Colo id of bucket that an object is stored in
|
|
3593
|
+
*/
|
|
3594
|
+
bucketColoId?: number;
|
|
3595
|
+
}
|
|
3587
3596
|
/**
|
|
3588
3597
|
* Request metadata provided by Cloudflare's edge.
|
|
3589
3598
|
*/
|
package/2022-08-04/index.ts
CHANGED
|
@@ -51,6 +51,8 @@ export declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
export type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1774,11 +1776,11 @@ export interface R2MultipartOptions {
|
|
|
1774
1776
|
storageClass?: string;
|
|
1775
1777
|
}
|
|
1776
1778
|
export interface R2Checksums {
|
|
1777
|
-
readonly md5?:
|
|
1778
|
-
readonly sha1?:
|
|
1779
|
-
readonly sha256?:
|
|
1780
|
-
readonly sha384?:
|
|
1781
|
-
readonly sha512?:
|
|
1779
|
+
readonly md5?: ArrayBufferView;
|
|
1780
|
+
readonly sha1?: ArrayBufferView;
|
|
1781
|
+
readonly sha256?: ArrayBufferView;
|
|
1782
|
+
readonly sha384?: ArrayBufferView;
|
|
1783
|
+
readonly sha512?: ArrayBufferView;
|
|
1782
1784
|
toJSON(): R2StringChecksums;
|
|
1783
1785
|
}
|
|
1784
1786
|
export interface R2StringChecksums {
|
|
@@ -3405,6 +3407,7 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3405
3407
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3406
3408
|
mirage?: boolean;
|
|
3407
3409
|
polish?: "lossy" | "lossless" | "off";
|
|
3410
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3408
3411
|
/**
|
|
3409
3412
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3410
3413
|
* for example, to implement load balancing across several origins.
|
|
@@ -3589,6 +3592,12 @@ export interface RequestInitCfPropertiesImageMinify {
|
|
|
3589
3592
|
css?: boolean;
|
|
3590
3593
|
html?: boolean;
|
|
3591
3594
|
}
|
|
3595
|
+
export interface RequestInitCfPropertiesR2 {
|
|
3596
|
+
/**
|
|
3597
|
+
* Colo id of bucket that an object is stored in
|
|
3598
|
+
*/
|
|
3599
|
+
bucketColoId?: number;
|
|
3600
|
+
}
|
|
3592
3601
|
/**
|
|
3593
3602
|
* Request metadata provided by Cloudflare's edge.
|
|
3594
3603
|
*/
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
declare type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1772,11 +1774,11 @@ declare interface R2MultipartOptions {
|
|
|
1772
1774
|
storageClass?: string;
|
|
1773
1775
|
}
|
|
1774
1776
|
declare interface R2Checksums {
|
|
1775
|
-
readonly md5?:
|
|
1776
|
-
readonly sha1?:
|
|
1777
|
-
readonly sha256?:
|
|
1778
|
-
readonly sha384?:
|
|
1779
|
-
readonly sha512?:
|
|
1777
|
+
readonly md5?: ArrayBufferView;
|
|
1778
|
+
readonly sha1?: ArrayBufferView;
|
|
1779
|
+
readonly sha256?: ArrayBufferView;
|
|
1780
|
+
readonly sha384?: ArrayBufferView;
|
|
1781
|
+
readonly sha512?: ArrayBufferView;
|
|
1780
1782
|
toJSON(): R2StringChecksums;
|
|
1781
1783
|
}
|
|
1782
1784
|
declare interface R2StringChecksums {
|
|
@@ -3399,6 +3401,7 @@ declare interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3399
3401
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3400
3402
|
mirage?: boolean;
|
|
3401
3403
|
polish?: "lossy" | "lossless" | "off";
|
|
3404
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3402
3405
|
/**
|
|
3403
3406
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3404
3407
|
* for example, to implement load balancing across several origins.
|
|
@@ -3583,6 +3586,12 @@ declare interface RequestInitCfPropertiesImageMinify {
|
|
|
3583
3586
|
css?: boolean;
|
|
3584
3587
|
html?: boolean;
|
|
3585
3588
|
}
|
|
3589
|
+
declare interface RequestInitCfPropertiesR2 {
|
|
3590
|
+
/**
|
|
3591
|
+
* Colo id of bucket that an object is stored in
|
|
3592
|
+
*/
|
|
3593
|
+
bucketColoId?: number;
|
|
3594
|
+
}
|
|
3586
3595
|
/**
|
|
3587
3596
|
* Request metadata provided by Cloudflare's edge.
|
|
3588
3597
|
*/
|
package/2022-10-31/index.ts
CHANGED
|
@@ -51,6 +51,8 @@ export declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
export type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1774,11 +1776,11 @@ export interface R2MultipartOptions {
|
|
|
1774
1776
|
storageClass?: string;
|
|
1775
1777
|
}
|
|
1776
1778
|
export interface R2Checksums {
|
|
1777
|
-
readonly md5?:
|
|
1778
|
-
readonly sha1?:
|
|
1779
|
-
readonly sha256?:
|
|
1780
|
-
readonly sha384?:
|
|
1781
|
-
readonly sha512?:
|
|
1779
|
+
readonly md5?: ArrayBufferView;
|
|
1780
|
+
readonly sha1?: ArrayBufferView;
|
|
1781
|
+
readonly sha256?: ArrayBufferView;
|
|
1782
|
+
readonly sha384?: ArrayBufferView;
|
|
1783
|
+
readonly sha512?: ArrayBufferView;
|
|
1782
1784
|
toJSON(): R2StringChecksums;
|
|
1783
1785
|
}
|
|
1784
1786
|
export interface R2StringChecksums {
|
|
@@ -3404,6 +3406,7 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3404
3406
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3405
3407
|
mirage?: boolean;
|
|
3406
3408
|
polish?: "lossy" | "lossless" | "off";
|
|
3409
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3407
3410
|
/**
|
|
3408
3411
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3409
3412
|
* for example, to implement load balancing across several origins.
|
|
@@ -3588,6 +3591,12 @@ export interface RequestInitCfPropertiesImageMinify {
|
|
|
3588
3591
|
css?: boolean;
|
|
3589
3592
|
html?: boolean;
|
|
3590
3593
|
}
|
|
3594
|
+
export interface RequestInitCfPropertiesR2 {
|
|
3595
|
+
/**
|
|
3596
|
+
* Colo id of bucket that an object is stored in
|
|
3597
|
+
*/
|
|
3598
|
+
bucketColoId?: number;
|
|
3599
|
+
}
|
|
3591
3600
|
/**
|
|
3592
3601
|
* Request metadata provided by Cloudflare's edge.
|
|
3593
3602
|
*/
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
declare type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1777,11 +1779,11 @@ declare interface R2MultipartOptions {
|
|
|
1777
1779
|
storageClass?: string;
|
|
1778
1780
|
}
|
|
1779
1781
|
declare interface R2Checksums {
|
|
1780
|
-
readonly md5?:
|
|
1781
|
-
readonly sha1?:
|
|
1782
|
-
readonly sha256?:
|
|
1783
|
-
readonly sha384?:
|
|
1784
|
-
readonly sha512?:
|
|
1782
|
+
readonly md5?: ArrayBufferView;
|
|
1783
|
+
readonly sha1?: ArrayBufferView;
|
|
1784
|
+
readonly sha256?: ArrayBufferView;
|
|
1785
|
+
readonly sha384?: ArrayBufferView;
|
|
1786
|
+
readonly sha512?: ArrayBufferView;
|
|
1785
1787
|
toJSON(): R2StringChecksums;
|
|
1786
1788
|
}
|
|
1787
1789
|
declare interface R2StringChecksums {
|
|
@@ -3395,6 +3397,7 @@ declare interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3395
3397
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3396
3398
|
mirage?: boolean;
|
|
3397
3399
|
polish?: "lossy" | "lossless" | "off";
|
|
3400
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3398
3401
|
/**
|
|
3399
3402
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3400
3403
|
* for example, to implement load balancing across several origins.
|
|
@@ -3579,6 +3582,12 @@ declare interface RequestInitCfPropertiesImageMinify {
|
|
|
3579
3582
|
css?: boolean;
|
|
3580
3583
|
html?: boolean;
|
|
3581
3584
|
}
|
|
3585
|
+
declare interface RequestInitCfPropertiesR2 {
|
|
3586
|
+
/**
|
|
3587
|
+
* Colo id of bucket that an object is stored in
|
|
3588
|
+
*/
|
|
3589
|
+
bucketColoId?: number;
|
|
3590
|
+
}
|
|
3582
3591
|
/**
|
|
3583
3592
|
* Request metadata provided by Cloudflare's edge.
|
|
3584
3593
|
*/
|
package/2022-11-30/index.ts
CHANGED
|
@@ -51,6 +51,8 @@ export declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
export type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1779,11 +1781,11 @@ export interface R2MultipartOptions {
|
|
|
1779
1781
|
storageClass?: string;
|
|
1780
1782
|
}
|
|
1781
1783
|
export interface R2Checksums {
|
|
1782
|
-
readonly md5?:
|
|
1783
|
-
readonly sha1?:
|
|
1784
|
-
readonly sha256?:
|
|
1785
|
-
readonly sha384?:
|
|
1786
|
-
readonly sha512?:
|
|
1784
|
+
readonly md5?: ArrayBufferView;
|
|
1785
|
+
readonly sha1?: ArrayBufferView;
|
|
1786
|
+
readonly sha256?: ArrayBufferView;
|
|
1787
|
+
readonly sha384?: ArrayBufferView;
|
|
1788
|
+
readonly sha512?: ArrayBufferView;
|
|
1787
1789
|
toJSON(): R2StringChecksums;
|
|
1788
1790
|
}
|
|
1789
1791
|
export interface R2StringChecksums {
|
|
@@ -3400,6 +3402,7 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3400
3402
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3401
3403
|
mirage?: boolean;
|
|
3402
3404
|
polish?: "lossy" | "lossless" | "off";
|
|
3405
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3403
3406
|
/**
|
|
3404
3407
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3405
3408
|
* for example, to implement load balancing across several origins.
|
|
@@ -3584,6 +3587,12 @@ export interface RequestInitCfPropertiesImageMinify {
|
|
|
3584
3587
|
css?: boolean;
|
|
3585
3588
|
html?: boolean;
|
|
3586
3589
|
}
|
|
3590
|
+
export interface RequestInitCfPropertiesR2 {
|
|
3591
|
+
/**
|
|
3592
|
+
* Colo id of bucket that an object is stored in
|
|
3593
|
+
*/
|
|
3594
|
+
bucketColoId?: number;
|
|
3595
|
+
}
|
|
3587
3596
|
/**
|
|
3588
3597
|
* Request metadata provided by Cloudflare's edge.
|
|
3589
3598
|
*/
|
package/2023-03-01/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
declare type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1778,11 +1780,11 @@ declare interface R2MultipartOptions {
|
|
|
1778
1780
|
storageClass?: string;
|
|
1779
1781
|
}
|
|
1780
1782
|
declare interface R2Checksums {
|
|
1781
|
-
readonly md5?:
|
|
1782
|
-
readonly sha1?:
|
|
1783
|
-
readonly sha256?:
|
|
1784
|
-
readonly sha384?:
|
|
1785
|
-
readonly sha512?:
|
|
1783
|
+
readonly md5?: ArrayBufferView;
|
|
1784
|
+
readonly sha1?: ArrayBufferView;
|
|
1785
|
+
readonly sha256?: ArrayBufferView;
|
|
1786
|
+
readonly sha384?: ArrayBufferView;
|
|
1787
|
+
readonly sha512?: ArrayBufferView;
|
|
1786
1788
|
toJSON(): R2StringChecksums;
|
|
1787
1789
|
}
|
|
1788
1790
|
declare interface R2StringChecksums {
|
|
@@ -3396,6 +3398,7 @@ declare interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3396
3398
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3397
3399
|
mirage?: boolean;
|
|
3398
3400
|
polish?: "lossy" | "lossless" | "off";
|
|
3401
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3399
3402
|
/**
|
|
3400
3403
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3401
3404
|
* for example, to implement load balancing across several origins.
|
|
@@ -3580,6 +3583,12 @@ declare interface RequestInitCfPropertiesImageMinify {
|
|
|
3580
3583
|
css?: boolean;
|
|
3581
3584
|
html?: boolean;
|
|
3582
3585
|
}
|
|
3586
|
+
declare interface RequestInitCfPropertiesR2 {
|
|
3587
|
+
/**
|
|
3588
|
+
* Colo id of bucket that an object is stored in
|
|
3589
|
+
*/
|
|
3590
|
+
bucketColoId?: number;
|
|
3591
|
+
}
|
|
3583
3592
|
/**
|
|
3584
3593
|
* Request metadata provided by Cloudflare's edge.
|
|
3585
3594
|
*/
|
package/2023-03-01/index.ts
CHANGED
|
@@ -51,6 +51,8 @@ export declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
export type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1780,11 +1782,11 @@ export interface R2MultipartOptions {
|
|
|
1780
1782
|
storageClass?: string;
|
|
1781
1783
|
}
|
|
1782
1784
|
export interface R2Checksums {
|
|
1783
|
-
readonly md5?:
|
|
1784
|
-
readonly sha1?:
|
|
1785
|
-
readonly sha256?:
|
|
1786
|
-
readonly sha384?:
|
|
1787
|
-
readonly sha512?:
|
|
1785
|
+
readonly md5?: ArrayBufferView;
|
|
1786
|
+
readonly sha1?: ArrayBufferView;
|
|
1787
|
+
readonly sha256?: ArrayBufferView;
|
|
1788
|
+
readonly sha384?: ArrayBufferView;
|
|
1789
|
+
readonly sha512?: ArrayBufferView;
|
|
1788
1790
|
toJSON(): R2StringChecksums;
|
|
1789
1791
|
}
|
|
1790
1792
|
export interface R2StringChecksums {
|
|
@@ -3401,6 +3403,7 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3401
3403
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3402
3404
|
mirage?: boolean;
|
|
3403
3405
|
polish?: "lossy" | "lossless" | "off";
|
|
3406
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3404
3407
|
/**
|
|
3405
3408
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3406
3409
|
* for example, to implement load balancing across several origins.
|
|
@@ -3585,6 +3588,12 @@ export interface RequestInitCfPropertiesImageMinify {
|
|
|
3585
3588
|
css?: boolean;
|
|
3586
3589
|
html?: boolean;
|
|
3587
3590
|
}
|
|
3591
|
+
export interface RequestInitCfPropertiesR2 {
|
|
3592
|
+
/**
|
|
3593
|
+
* Colo id of bucket that an object is stored in
|
|
3594
|
+
*/
|
|
3595
|
+
bucketColoId?: number;
|
|
3596
|
+
}
|
|
3588
3597
|
/**
|
|
3589
3598
|
* Request metadata provided by Cloudflare's edge.
|
|
3590
3599
|
*/
|
package/2023-07-01/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
declare type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1778,11 +1780,11 @@ declare interface R2MultipartOptions {
|
|
|
1778
1780
|
storageClass?: string;
|
|
1779
1781
|
}
|
|
1780
1782
|
declare interface R2Checksums {
|
|
1781
|
-
readonly md5?:
|
|
1782
|
-
readonly sha1?:
|
|
1783
|
-
readonly sha256?:
|
|
1784
|
-
readonly sha384?:
|
|
1785
|
-
readonly sha512?:
|
|
1783
|
+
readonly md5?: ArrayBufferView;
|
|
1784
|
+
readonly sha1?: ArrayBufferView;
|
|
1785
|
+
readonly sha256?: ArrayBufferView;
|
|
1786
|
+
readonly sha384?: ArrayBufferView;
|
|
1787
|
+
readonly sha512?: ArrayBufferView;
|
|
1786
1788
|
toJSON(): R2StringChecksums;
|
|
1787
1789
|
}
|
|
1788
1790
|
declare interface R2StringChecksums {
|
|
@@ -3396,6 +3398,7 @@ declare interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3396
3398
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3397
3399
|
mirage?: boolean;
|
|
3398
3400
|
polish?: "lossy" | "lossless" | "off";
|
|
3401
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3399
3402
|
/**
|
|
3400
3403
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3401
3404
|
* for example, to implement load balancing across several origins.
|
|
@@ -3580,6 +3583,12 @@ declare interface RequestInitCfPropertiesImageMinify {
|
|
|
3580
3583
|
css?: boolean;
|
|
3581
3584
|
html?: boolean;
|
|
3582
3585
|
}
|
|
3586
|
+
declare interface RequestInitCfPropertiesR2 {
|
|
3587
|
+
/**
|
|
3588
|
+
* Colo id of bucket that an object is stored in
|
|
3589
|
+
*/
|
|
3590
|
+
bucketColoId?: number;
|
|
3591
|
+
}
|
|
3583
3592
|
/**
|
|
3584
3593
|
* Request metadata provided by Cloudflare's edge.
|
|
3585
3594
|
*/
|
package/2023-07-01/index.ts
CHANGED
|
@@ -51,6 +51,8 @@ export declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
export type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1780,11 +1782,11 @@ export interface R2MultipartOptions {
|
|
|
1780
1782
|
storageClass?: string;
|
|
1781
1783
|
}
|
|
1782
1784
|
export interface R2Checksums {
|
|
1783
|
-
readonly md5?:
|
|
1784
|
-
readonly sha1?:
|
|
1785
|
-
readonly sha256?:
|
|
1786
|
-
readonly sha384?:
|
|
1787
|
-
readonly sha512?:
|
|
1785
|
+
readonly md5?: ArrayBufferView;
|
|
1786
|
+
readonly sha1?: ArrayBufferView;
|
|
1787
|
+
readonly sha256?: ArrayBufferView;
|
|
1788
|
+
readonly sha384?: ArrayBufferView;
|
|
1789
|
+
readonly sha512?: ArrayBufferView;
|
|
1788
1790
|
toJSON(): R2StringChecksums;
|
|
1789
1791
|
}
|
|
1790
1792
|
export interface R2StringChecksums {
|
|
@@ -3401,6 +3403,7 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3401
3403
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3402
3404
|
mirage?: boolean;
|
|
3403
3405
|
polish?: "lossy" | "lossless" | "off";
|
|
3406
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3404
3407
|
/**
|
|
3405
3408
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3406
3409
|
* for example, to implement load balancing across several origins.
|
|
@@ -3585,6 +3588,12 @@ export interface RequestInitCfPropertiesImageMinify {
|
|
|
3585
3588
|
css?: boolean;
|
|
3586
3589
|
html?: boolean;
|
|
3587
3590
|
}
|
|
3591
|
+
export interface RequestInitCfPropertiesR2 {
|
|
3592
|
+
/**
|
|
3593
|
+
* Colo id of bucket that an object is stored in
|
|
3594
|
+
*/
|
|
3595
|
+
bucketColoId?: number;
|
|
3596
|
+
}
|
|
3588
3597
|
/**
|
|
3589
3598
|
* Request metadata provided by Cloudflare's edge.
|
|
3590
3599
|
*/
|
package/experimental/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
declare type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -252,6 +254,9 @@ declare interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
252
254
|
ReadableByteStreamController: typeof ReadableByteStreamController;
|
|
253
255
|
WritableStreamDefaultController: typeof WritableStreamDefaultController;
|
|
254
256
|
TransformStreamDefaultController: typeof TransformStreamDefaultController;
|
|
257
|
+
Buffer: any;
|
|
258
|
+
process: any;
|
|
259
|
+
global: ServiceWorkerGlobalScope;
|
|
255
260
|
CompressionStream: typeof CompressionStream;
|
|
256
261
|
DecompressionStream: typeof DecompressionStream;
|
|
257
262
|
TextEncoderStream: typeof TextEncoderStream;
|
|
@@ -364,6 +369,9 @@ declare const caches: CacheStorage;
|
|
|
364
369
|
declare const scheduler: Scheduler;
|
|
365
370
|
declare const performance: Performance;
|
|
366
371
|
declare const origin: string;
|
|
372
|
+
declare const Buffer: any;
|
|
373
|
+
declare const process: any;
|
|
374
|
+
declare const global: ServiceWorkerGlobalScope;
|
|
367
375
|
declare const navigator: Navigator;
|
|
368
376
|
declare interface TestController {}
|
|
369
377
|
declare interface ExecutionContext {
|
|
@@ -1824,11 +1832,11 @@ declare interface R2MultipartOptions {
|
|
|
1824
1832
|
storageClass?: string;
|
|
1825
1833
|
}
|
|
1826
1834
|
declare interface R2Checksums {
|
|
1827
|
-
readonly md5?:
|
|
1828
|
-
readonly sha1?:
|
|
1829
|
-
readonly sha256?:
|
|
1830
|
-
readonly sha384?:
|
|
1831
|
-
readonly sha512?:
|
|
1835
|
+
readonly md5?: ArrayBufferView;
|
|
1836
|
+
readonly sha1?: ArrayBufferView;
|
|
1837
|
+
readonly sha256?: ArrayBufferView;
|
|
1838
|
+
readonly sha384?: ArrayBufferView;
|
|
1839
|
+
readonly sha512?: ArrayBufferView;
|
|
1832
1840
|
toJSON(): R2StringChecksums;
|
|
1833
1841
|
}
|
|
1834
1842
|
declare interface R2StringChecksums {
|
|
@@ -3471,6 +3479,7 @@ declare interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3471
3479
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3472
3480
|
mirage?: boolean;
|
|
3473
3481
|
polish?: "lossy" | "lossless" | "off";
|
|
3482
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3474
3483
|
/**
|
|
3475
3484
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3476
3485
|
* for example, to implement load balancing across several origins.
|
|
@@ -3655,6 +3664,12 @@ declare interface RequestInitCfPropertiesImageMinify {
|
|
|
3655
3664
|
css?: boolean;
|
|
3656
3665
|
html?: boolean;
|
|
3657
3666
|
}
|
|
3667
|
+
declare interface RequestInitCfPropertiesR2 {
|
|
3668
|
+
/**
|
|
3669
|
+
* Colo id of bucket that an object is stored in
|
|
3670
|
+
*/
|
|
3671
|
+
bucketColoId?: number;
|
|
3672
|
+
}
|
|
3658
3673
|
/**
|
|
3659
3674
|
* Request metadata provided by Cloudflare's edge.
|
|
3660
3675
|
*/
|
package/experimental/index.ts
CHANGED
|
@@ -51,6 +51,8 @@ export declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
export type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -252,6 +254,9 @@ export interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
252
254
|
ReadableByteStreamController: typeof ReadableByteStreamController;
|
|
253
255
|
WritableStreamDefaultController: typeof WritableStreamDefaultController;
|
|
254
256
|
TransformStreamDefaultController: typeof TransformStreamDefaultController;
|
|
257
|
+
Buffer: any;
|
|
258
|
+
process: any;
|
|
259
|
+
global: ServiceWorkerGlobalScope;
|
|
255
260
|
CompressionStream: typeof CompressionStream;
|
|
256
261
|
DecompressionStream: typeof DecompressionStream;
|
|
257
262
|
TextEncoderStream: typeof TextEncoderStream;
|
|
@@ -366,6 +371,9 @@ export declare const caches: CacheStorage;
|
|
|
366
371
|
export declare const scheduler: Scheduler;
|
|
367
372
|
export declare const performance: Performance;
|
|
368
373
|
export declare const origin: string;
|
|
374
|
+
export declare const Buffer: any;
|
|
375
|
+
export declare const process: any;
|
|
376
|
+
export declare const global: ServiceWorkerGlobalScope;
|
|
369
377
|
export declare const navigator: Navigator;
|
|
370
378
|
export interface TestController {}
|
|
371
379
|
export interface ExecutionContext {
|
|
@@ -1826,11 +1834,11 @@ export interface R2MultipartOptions {
|
|
|
1826
1834
|
storageClass?: string;
|
|
1827
1835
|
}
|
|
1828
1836
|
export interface R2Checksums {
|
|
1829
|
-
readonly md5?:
|
|
1830
|
-
readonly sha1?:
|
|
1831
|
-
readonly sha256?:
|
|
1832
|
-
readonly sha384?:
|
|
1833
|
-
readonly sha512?:
|
|
1837
|
+
readonly md5?: ArrayBufferView;
|
|
1838
|
+
readonly sha1?: ArrayBufferView;
|
|
1839
|
+
readonly sha256?: ArrayBufferView;
|
|
1840
|
+
readonly sha384?: ArrayBufferView;
|
|
1841
|
+
readonly sha512?: ArrayBufferView;
|
|
1834
1842
|
toJSON(): R2StringChecksums;
|
|
1835
1843
|
}
|
|
1836
1844
|
export interface R2StringChecksums {
|
|
@@ -3476,6 +3484,7 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3476
3484
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3477
3485
|
mirage?: boolean;
|
|
3478
3486
|
polish?: "lossy" | "lossless" | "off";
|
|
3487
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3479
3488
|
/**
|
|
3480
3489
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3481
3490
|
* for example, to implement load balancing across several origins.
|
|
@@ -3660,6 +3669,12 @@ export interface RequestInitCfPropertiesImageMinify {
|
|
|
3660
3669
|
css?: boolean;
|
|
3661
3670
|
html?: boolean;
|
|
3662
3671
|
}
|
|
3672
|
+
export interface RequestInitCfPropertiesR2 {
|
|
3673
|
+
/**
|
|
3674
|
+
* Colo id of bucket that an object is stored in
|
|
3675
|
+
*/
|
|
3676
|
+
bucketColoId?: number;
|
|
3677
|
+
}
|
|
3663
3678
|
/**
|
|
3664
3679
|
* Request metadata provided by Cloudflare's edge.
|
|
3665
3680
|
*/
|
package/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
declare type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1748,11 +1750,11 @@ declare interface R2MultipartOptions {
|
|
|
1748
1750
|
storageClass?: string;
|
|
1749
1751
|
}
|
|
1750
1752
|
declare interface R2Checksums {
|
|
1751
|
-
readonly md5?:
|
|
1752
|
-
readonly sha1?:
|
|
1753
|
-
readonly sha256?:
|
|
1754
|
-
readonly sha384?:
|
|
1755
|
-
readonly sha512?:
|
|
1753
|
+
readonly md5?: ArrayBufferView;
|
|
1754
|
+
readonly sha1?: ArrayBufferView;
|
|
1755
|
+
readonly sha256?: ArrayBufferView;
|
|
1756
|
+
readonly sha384?: ArrayBufferView;
|
|
1757
|
+
readonly sha512?: ArrayBufferView;
|
|
1756
1758
|
toJSON(): R2StringChecksums;
|
|
1757
1759
|
}
|
|
1758
1760
|
declare interface R2StringChecksums {
|
|
@@ -3347,6 +3349,7 @@ declare interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3347
3349
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3348
3350
|
mirage?: boolean;
|
|
3349
3351
|
polish?: "lossy" | "lossless" | "off";
|
|
3352
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3350
3353
|
/**
|
|
3351
3354
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3352
3355
|
* for example, to implement load balancing across several origins.
|
|
@@ -3531,6 +3534,12 @@ declare interface RequestInitCfPropertiesImageMinify {
|
|
|
3531
3534
|
css?: boolean;
|
|
3532
3535
|
html?: boolean;
|
|
3533
3536
|
}
|
|
3537
|
+
declare interface RequestInitCfPropertiesR2 {
|
|
3538
|
+
/**
|
|
3539
|
+
* Colo id of bucket that an object is stored in
|
|
3540
|
+
*/
|
|
3541
|
+
bucketColoId?: number;
|
|
3542
|
+
}
|
|
3534
3543
|
/**
|
|
3535
3544
|
* Request metadata provided by Cloudflare's edge.
|
|
3536
3545
|
*/
|
package/index.ts
CHANGED
|
@@ -51,6 +51,8 @@ export declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
export type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1750,11 +1752,11 @@ export interface R2MultipartOptions {
|
|
|
1750
1752
|
storageClass?: string;
|
|
1751
1753
|
}
|
|
1752
1754
|
export interface R2Checksums {
|
|
1753
|
-
readonly md5?:
|
|
1754
|
-
readonly sha1?:
|
|
1755
|
-
readonly sha256?:
|
|
1756
|
-
readonly sha384?:
|
|
1757
|
-
readonly sha512?:
|
|
1755
|
+
readonly md5?: ArrayBufferView;
|
|
1756
|
+
readonly sha1?: ArrayBufferView;
|
|
1757
|
+
readonly sha256?: ArrayBufferView;
|
|
1758
|
+
readonly sha384?: ArrayBufferView;
|
|
1759
|
+
readonly sha512?: ArrayBufferView;
|
|
1758
1760
|
toJSON(): R2StringChecksums;
|
|
1759
1761
|
}
|
|
1760
1762
|
export interface R2StringChecksums {
|
|
@@ -3352,6 +3354,7 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3352
3354
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3353
3355
|
mirage?: boolean;
|
|
3354
3356
|
polish?: "lossy" | "lossless" | "off";
|
|
3357
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3355
3358
|
/**
|
|
3356
3359
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3357
3360
|
* for example, to implement load balancing across several origins.
|
|
@@ -3536,6 +3539,12 @@ export interface RequestInitCfPropertiesImageMinify {
|
|
|
3536
3539
|
css?: boolean;
|
|
3537
3540
|
html?: boolean;
|
|
3538
3541
|
}
|
|
3542
|
+
export interface RequestInitCfPropertiesR2 {
|
|
3543
|
+
/**
|
|
3544
|
+
* Colo id of bucket that an object is stored in
|
|
3545
|
+
*/
|
|
3546
|
+
bucketColoId?: number;
|
|
3547
|
+
}
|
|
3539
3548
|
/**
|
|
3540
3549
|
* Request metadata provided by Cloudflare's edge.
|
|
3541
3550
|
*/
|
package/oldest/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
declare type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1748,11 +1750,11 @@ declare interface R2MultipartOptions {
|
|
|
1748
1750
|
storageClass?: string;
|
|
1749
1751
|
}
|
|
1750
1752
|
declare interface R2Checksums {
|
|
1751
|
-
readonly md5?:
|
|
1752
|
-
readonly sha1?:
|
|
1753
|
-
readonly sha256?:
|
|
1754
|
-
readonly sha384?:
|
|
1755
|
-
readonly sha512?:
|
|
1753
|
+
readonly md5?: ArrayBufferView;
|
|
1754
|
+
readonly sha1?: ArrayBufferView;
|
|
1755
|
+
readonly sha256?: ArrayBufferView;
|
|
1756
|
+
readonly sha384?: ArrayBufferView;
|
|
1757
|
+
readonly sha512?: ArrayBufferView;
|
|
1756
1758
|
toJSON(): R2StringChecksums;
|
|
1757
1759
|
}
|
|
1758
1760
|
declare interface R2StringChecksums {
|
|
@@ -3347,6 +3349,7 @@ declare interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3347
3349
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3348
3350
|
mirage?: boolean;
|
|
3349
3351
|
polish?: "lossy" | "lossless" | "off";
|
|
3352
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3350
3353
|
/**
|
|
3351
3354
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3352
3355
|
* for example, to implement load balancing across several origins.
|
|
@@ -3531,6 +3534,12 @@ declare interface RequestInitCfPropertiesImageMinify {
|
|
|
3531
3534
|
css?: boolean;
|
|
3532
3535
|
html?: boolean;
|
|
3533
3536
|
}
|
|
3537
|
+
declare interface RequestInitCfPropertiesR2 {
|
|
3538
|
+
/**
|
|
3539
|
+
* Colo id of bucket that an object is stored in
|
|
3540
|
+
*/
|
|
3541
|
+
bucketColoId?: number;
|
|
3542
|
+
}
|
|
3534
3543
|
/**
|
|
3535
3544
|
* Request metadata provided by Cloudflare's edge.
|
|
3536
3545
|
*/
|
package/oldest/index.ts
CHANGED
|
@@ -51,6 +51,8 @@ export declare class DOMException extends Error {
|
|
|
51
51
|
static readonly TIMEOUT_ERR: number;
|
|
52
52
|
static readonly INVALID_NODE_TYPE_ERR: number;
|
|
53
53
|
static readonly DATA_CLONE_ERR: number;
|
|
54
|
+
get stack(): any;
|
|
55
|
+
set stack(value: any);
|
|
54
56
|
}
|
|
55
57
|
export type WorkerGlobalScopeEventMap = {
|
|
56
58
|
fetch: FetchEvent;
|
|
@@ -1750,11 +1752,11 @@ export interface R2MultipartOptions {
|
|
|
1750
1752
|
storageClass?: string;
|
|
1751
1753
|
}
|
|
1752
1754
|
export interface R2Checksums {
|
|
1753
|
-
readonly md5?:
|
|
1754
|
-
readonly sha1?:
|
|
1755
|
-
readonly sha256?:
|
|
1756
|
-
readonly sha384?:
|
|
1757
|
-
readonly sha512?:
|
|
1755
|
+
readonly md5?: ArrayBufferView;
|
|
1756
|
+
readonly sha1?: ArrayBufferView;
|
|
1757
|
+
readonly sha256?: ArrayBufferView;
|
|
1758
|
+
readonly sha384?: ArrayBufferView;
|
|
1759
|
+
readonly sha512?: ArrayBufferView;
|
|
1758
1760
|
toJSON(): R2StringChecksums;
|
|
1759
1761
|
}
|
|
1760
1762
|
export interface R2StringChecksums {
|
|
@@ -3352,6 +3354,7 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
3352
3354
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
3353
3355
|
mirage?: boolean;
|
|
3354
3356
|
polish?: "lossy" | "lossless" | "off";
|
|
3357
|
+
r2?: RequestInitCfPropertiesR2;
|
|
3355
3358
|
/**
|
|
3356
3359
|
* Redirects the request to an alternate origin server. You can use this,
|
|
3357
3360
|
* for example, to implement load balancing across several origins.
|
|
@@ -3536,6 +3539,12 @@ export interface RequestInitCfPropertiesImageMinify {
|
|
|
3536
3539
|
css?: boolean;
|
|
3537
3540
|
html?: boolean;
|
|
3538
3541
|
}
|
|
3542
|
+
export interface RequestInitCfPropertiesR2 {
|
|
3543
|
+
/**
|
|
3544
|
+
* Colo id of bucket that an object is stored in
|
|
3545
|
+
*/
|
|
3546
|
+
bucketColoId?: number;
|
|
3547
|
+
}
|
|
3539
3548
|
/**
|
|
3540
3549
|
* Request metadata provided by Cloudflare's edge.
|
|
3541
3550
|
*/
|
package/package.json
CHANGED