@workers-community/workers-types 4.20250515.0 → 4.20250517.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.
Files changed (3) hide show
  1. package/index.d.ts +1 -0
  2. package/index.ts +1 -0
  3. package/package.json +5 -1
package/index.d.ts CHANGED
@@ -2016,6 +2016,7 @@ interface R2ObjectBody extends R2Object {
2016
2016
  get body(): ReadableStream;
2017
2017
  get bodyUsed(): boolean;
2018
2018
  arrayBuffer(): Promise<ArrayBuffer>;
2019
+ bytes(): Promise<Uint8Array>;
2019
2020
  text(): Promise<string>;
2020
2021
  json<T>(): Promise<T>;
2021
2022
  blob(): Promise<Blob>;
package/index.ts CHANGED
@@ -2025,6 +2025,7 @@ export interface R2ObjectBody extends R2Object {
2025
2025
  get body(): ReadableStream;
2026
2026
  get bodyUsed(): boolean;
2027
2027
  arrayBuffer(): Promise<ArrayBuffer>;
2028
+ bytes(): Promise<Uint8Array>;
2028
2029
  text(): Promise<string>;
2029
2030
  json<T>(): Promise<T>;
2030
2031
  blob(): Promise<Blob>;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "author": "Workers Community",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "4.20250515.0",
10
+ "version": "4.20250517.0",
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./index.d.ts",
@@ -49,6 +49,10 @@
49
49
  "types": "./index.d.ts",
50
50
  "import": "./index.ts"
51
51
  },
52
+ "./latest": {
53
+ "types": "./index.d.ts",
54
+ "import": "./index.ts"
55
+ },
52
56
  "./oldest": {
53
57
  "types": "./index.d.ts",
54
58
  "import": "./index.ts"