@workers-community/workers-types 4.20250409.0 → 4.20250412.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 +25 -25
  2. package/index.ts +25 -25
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2037,11 +2037,11 @@ interface R2PutOptions {
2037
2037
  onlyIf?: R2Conditional | Headers;
2038
2038
  httpMetadata?: R2HTTPMetadata | Headers;
2039
2039
  customMetadata?: Record<string, string>;
2040
- md5?: ArrayBuffer | string;
2041
- sha1?: ArrayBuffer | string;
2042
- sha256?: ArrayBuffer | string;
2043
- sha384?: ArrayBuffer | string;
2044
- sha512?: ArrayBuffer | string;
2040
+ md5?: (ArrayBuffer | ArrayBufferView) | string;
2041
+ sha1?: (ArrayBuffer | ArrayBufferView) | string;
2042
+ sha256?: (ArrayBuffer | ArrayBufferView) | string;
2043
+ sha384?: (ArrayBuffer | ArrayBufferView) | string;
2044
+ sha512?: (ArrayBuffer | ArrayBufferView) | string;
2045
2045
  storageClass?: string;
2046
2046
  ssecKey?: ArrayBuffer | string;
2047
2047
  }
@@ -2714,9 +2714,9 @@ declare class URLSearchParams {
2714
2714
  }
2715
2715
  declare class URLPattern {
2716
2716
  constructor(
2717
- input?: string | URLPatternURLPatternInit,
2718
- baseURL?: string | URLPatternURLPatternOptions,
2719
- patternOptions?: URLPatternURLPatternOptions,
2717
+ input?: string | URLPatternInit,
2718
+ baseURL?: string | URLPatternOptions,
2719
+ patternOptions?: URLPatternOptions,
2720
2720
  );
2721
2721
  get protocol(): string;
2722
2722
  get username(): string;
@@ -2726,13 +2726,13 @@ declare class URLPattern {
2726
2726
  get pathname(): string;
2727
2727
  get search(): string;
2728
2728
  get hash(): string;
2729
- test(input?: string | URLPatternURLPatternInit, baseURL?: string): boolean;
2729
+ test(input?: string | URLPatternInit, baseURL?: string): boolean;
2730
2730
  exec(
2731
- input?: string | URLPatternURLPatternInit,
2731
+ input?: string | URLPatternInit,
2732
2732
  baseURL?: string,
2733
- ): URLPatternURLPatternResult | null;
2733
+ ): URLPatternResult | null;
2734
2734
  }
2735
- interface URLPatternURLPatternInit {
2735
+ interface URLPatternInit {
2736
2736
  protocol?: string;
2737
2737
  username?: string;
2738
2738
  password?: string;
@@ -2743,22 +2743,22 @@ interface URLPatternURLPatternInit {
2743
2743
  hash?: string;
2744
2744
  baseURL?: string;
2745
2745
  }
2746
- interface URLPatternURLPatternComponentResult {
2746
+ interface URLPatternComponentResult {
2747
2747
  input: string;
2748
2748
  groups: Record<string, string>;
2749
2749
  }
2750
- interface URLPatternURLPatternResult {
2751
- inputs: (string | URLPatternURLPatternInit)[];
2752
- protocol: URLPatternURLPatternComponentResult;
2753
- username: URLPatternURLPatternComponentResult;
2754
- password: URLPatternURLPatternComponentResult;
2755
- hostname: URLPatternURLPatternComponentResult;
2756
- port: URLPatternURLPatternComponentResult;
2757
- pathname: URLPatternURLPatternComponentResult;
2758
- search: URLPatternURLPatternComponentResult;
2759
- hash: URLPatternURLPatternComponentResult;
2760
- }
2761
- interface URLPatternURLPatternOptions {
2750
+ interface URLPatternResult {
2751
+ inputs: (string | URLPatternInit)[];
2752
+ protocol: URLPatternComponentResult;
2753
+ username: URLPatternComponentResult;
2754
+ password: URLPatternComponentResult;
2755
+ hostname: URLPatternComponentResult;
2756
+ port: URLPatternComponentResult;
2757
+ pathname: URLPatternComponentResult;
2758
+ search: URLPatternComponentResult;
2759
+ hash: URLPatternComponentResult;
2760
+ }
2761
+ interface URLPatternOptions {
2762
2762
  ignoreCase?: boolean;
2763
2763
  }
2764
2764
  /**
package/index.ts CHANGED
@@ -2046,11 +2046,11 @@ export interface R2PutOptions {
2046
2046
  onlyIf?: R2Conditional | Headers;
2047
2047
  httpMetadata?: R2HTTPMetadata | Headers;
2048
2048
  customMetadata?: Record<string, string>;
2049
- md5?: ArrayBuffer | string;
2050
- sha1?: ArrayBuffer | string;
2051
- sha256?: ArrayBuffer | string;
2052
- sha384?: ArrayBuffer | string;
2053
- sha512?: ArrayBuffer | string;
2049
+ md5?: (ArrayBuffer | ArrayBufferView) | string;
2050
+ sha1?: (ArrayBuffer | ArrayBufferView) | string;
2051
+ sha256?: (ArrayBuffer | ArrayBufferView) | string;
2052
+ sha384?: (ArrayBuffer | ArrayBufferView) | string;
2053
+ sha512?: (ArrayBuffer | ArrayBufferView) | string;
2054
2054
  storageClass?: string;
2055
2055
  ssecKey?: ArrayBuffer | string;
2056
2056
  }
@@ -2726,9 +2726,9 @@ export declare class URLSearchParams {
2726
2726
  }
2727
2727
  export declare class URLPattern {
2728
2728
  constructor(
2729
- input?: string | URLPatternURLPatternInit,
2730
- baseURL?: string | URLPatternURLPatternOptions,
2731
- patternOptions?: URLPatternURLPatternOptions,
2729
+ input?: string | URLPatternInit,
2730
+ baseURL?: string | URLPatternOptions,
2731
+ patternOptions?: URLPatternOptions,
2732
2732
  );
2733
2733
  get protocol(): string;
2734
2734
  get username(): string;
@@ -2738,13 +2738,13 @@ export declare class URLPattern {
2738
2738
  get pathname(): string;
2739
2739
  get search(): string;
2740
2740
  get hash(): string;
2741
- test(input?: string | URLPatternURLPatternInit, baseURL?: string): boolean;
2741
+ test(input?: string | URLPatternInit, baseURL?: string): boolean;
2742
2742
  exec(
2743
- input?: string | URLPatternURLPatternInit,
2743
+ input?: string | URLPatternInit,
2744
2744
  baseURL?: string,
2745
- ): URLPatternURLPatternResult | null;
2745
+ ): URLPatternResult | null;
2746
2746
  }
2747
- export interface URLPatternURLPatternInit {
2747
+ export interface URLPatternInit {
2748
2748
  protocol?: string;
2749
2749
  username?: string;
2750
2750
  password?: string;
@@ -2755,22 +2755,22 @@ export interface URLPatternURLPatternInit {
2755
2755
  hash?: string;
2756
2756
  baseURL?: string;
2757
2757
  }
2758
- export interface URLPatternURLPatternComponentResult {
2758
+ export interface URLPatternComponentResult {
2759
2759
  input: string;
2760
2760
  groups: Record<string, string>;
2761
2761
  }
2762
- export interface URLPatternURLPatternResult {
2763
- inputs: (string | URLPatternURLPatternInit)[];
2764
- protocol: URLPatternURLPatternComponentResult;
2765
- username: URLPatternURLPatternComponentResult;
2766
- password: URLPatternURLPatternComponentResult;
2767
- hostname: URLPatternURLPatternComponentResult;
2768
- port: URLPatternURLPatternComponentResult;
2769
- pathname: URLPatternURLPatternComponentResult;
2770
- search: URLPatternURLPatternComponentResult;
2771
- hash: URLPatternURLPatternComponentResult;
2772
- }
2773
- export interface URLPatternURLPatternOptions {
2762
+ export interface URLPatternResult {
2763
+ inputs: (string | URLPatternInit)[];
2764
+ protocol: URLPatternComponentResult;
2765
+ username: URLPatternComponentResult;
2766
+ password: URLPatternComponentResult;
2767
+ hostname: URLPatternComponentResult;
2768
+ port: URLPatternComponentResult;
2769
+ pathname: URLPatternComponentResult;
2770
+ search: URLPatternComponentResult;
2771
+ hash: URLPatternComponentResult;
2772
+ }
2773
+ export interface URLPatternOptions {
2774
2774
  ignoreCase?: boolean;
2775
2775
  }
2776
2776
  /**
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.20250409.0",
10
+ "version": "4.20250412.0",
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./index.d.ts",