@cloudflare/workers-types 5.20261117.1 → 5.20261119.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.
@@ -1163,6 +1163,7 @@ declare class Blob {
1163
1163
  }
1164
1164
  interface BlobOptions {
1165
1165
  type?: string;
1166
+ endings?: "transparent" | "native";
1166
1167
  }
1167
1168
  /**
1168
1169
  * The **`File`** interface provides information about files and allows JavaScript in a web page to access their content.
@@ -1191,6 +1192,7 @@ declare class File extends Blob {
1191
1192
  interface FileOptions {
1192
1193
  type?: string;
1193
1194
  lastModified?: number;
1195
+ endings?: "transparent" | "native";
1194
1196
  }
1195
1197
  /**
1196
1198
  * The Cache API allows fine grained control of reading and writing from the Cloudflare global network cache.
@@ -3302,7 +3304,7 @@ declare class CompressionStream extends TransformStream<
3302
3304
  ArrayBuffer | ArrayBufferView,
3303
3305
  Uint8Array
3304
3306
  > {
3305
- constructor(format: "gzip" | "deflate" | "deflate-raw");
3307
+ constructor(format: "gzip" | "deflate" | "deflate-raw" | "brotli");
3306
3308
  }
3307
3309
  /**
3308
3310
  * The **`DecompressionStream`** interface of the Compression Streams API decompresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
@@ -3313,7 +3315,7 @@ declare class DecompressionStream extends TransformStream<
3313
3315
  ArrayBuffer | ArrayBufferView,
3314
3316
  Uint8Array
3315
3317
  > {
3316
- constructor(format: "gzip" | "deflate" | "deflate-raw");
3318
+ constructor(format: "gzip" | "deflate" | "deflate-raw" | "brotli");
3317
3319
  }
3318
3320
  /**
3319
3321
  * The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
@@ -4558,6 +4560,11 @@ interface Tracing {
4558
4560
  ): T;
4559
4561
  Span: typeof Span;
4560
4562
  }
4563
+ interface TracingSpanLink {
4564
+ context: TracingSpanContext;
4565
+ attributes?: Record<string, boolean | number | string | undefined>;
4566
+ droppedAttributesCount?: number;
4567
+ }
4561
4568
  declare abstract class Span {
4562
4569
  get isTraced(): boolean;
4563
4570
  spanContext(): TracingSpanContext;
@@ -4590,6 +4597,8 @@ declare abstract class Span {
4590
4597
  updateName(name: string): this;
4591
4598
  setStatus(status: TracingSpanStatus): this;
4592
4599
  end(): void;
4600
+ addLink(link: TracingSpanLink): this;
4601
+ addLinks(links: readonly TracingSpanLink[]): this;
4593
4602
  }
4594
4603
  type TracingSpanStatusCode = "unset" | "ok" | "error";
4595
4604
  interface TracingSpanStatus {
@@ -17805,6 +17814,22 @@ declare namespace TailStream {
17805
17814
  readonly type: "spanUpdate";
17806
17815
  readonly info: SpanUpdateInfo;
17807
17816
  }
17817
+ /** A causal relationship to a span, including spans in another trace. */
17818
+ interface SpanLink {
17819
+ readonly context: {
17820
+ readonly traceId: string;
17821
+ readonly spanId: string;
17822
+ readonly traceFlags: number;
17823
+ };
17824
+ readonly attributes: readonly Attribute[];
17825
+ /** Attributes dropped before this link was recorded. */
17826
+ readonly droppedAttributesCount: number;
17827
+ }
17828
+ /** Links added to the receiver identified by the event's spanContext. */
17829
+ interface SpanLinks {
17830
+ readonly type: "spanLinks";
17831
+ readonly links: readonly SpanLink[];
17832
+ }
17808
17833
  interface DiagnosticChannelEvent {
17809
17834
  readonly type: "diagnosticChannel";
17810
17835
  readonly channel: string;
@@ -17875,6 +17900,7 @@ declare namespace TailStream {
17875
17900
  | SpanOpen
17876
17901
  | SpanClose
17877
17902
  | SpanUpdate
17903
+ | SpanLinks
17878
17904
  | DiagnosticChannelEvent
17879
17905
  | Exception
17880
17906
  | Log
@@ -17918,6 +17944,7 @@ declare namespace TailStream {
17918
17944
  spanOpen?: TailEventHandler<SpanOpen>;
17919
17945
  spanClose?: TailEventHandler<SpanClose>;
17920
17946
  spanUpdate?: TailEventHandler<SpanUpdate>;
17947
+ spanLinks?: TailEventHandler<SpanLinks>;
17921
17948
  diagnosticChannel?: TailEventHandler<DiagnosticChannelEvent>;
17922
17949
  exception?: TailEventHandler<Exception>;
17923
17950
  log?: TailEventHandler<Log>;
@@ -1164,6 +1164,7 @@ export declare class Blob {
1164
1164
  }
1165
1165
  export interface BlobOptions {
1166
1166
  type?: string;
1167
+ endings?: "transparent" | "native";
1167
1168
  }
1168
1169
  /**
1169
1170
  * The **`File`** interface provides information about files and allows JavaScript in a web page to access their content.
@@ -1192,6 +1193,7 @@ export declare class File extends Blob {
1192
1193
  export interface FileOptions {
1193
1194
  type?: string;
1194
1195
  lastModified?: number;
1196
+ endings?: "transparent" | "native";
1195
1197
  }
1196
1198
  /**
1197
1199
  * The Cache API allows fine grained control of reading and writing from the Cloudflare global network cache.
@@ -3305,7 +3307,7 @@ export declare class CompressionStream extends TransformStream<
3305
3307
  ArrayBuffer | ArrayBufferView,
3306
3308
  Uint8Array
3307
3309
  > {
3308
- constructor(format: "gzip" | "deflate" | "deflate-raw");
3310
+ constructor(format: "gzip" | "deflate" | "deflate-raw" | "brotli");
3309
3311
  }
3310
3312
  /**
3311
3313
  * The **`DecompressionStream`** interface of the Compression Streams API decompresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
@@ -3316,7 +3318,7 @@ export declare class DecompressionStream extends TransformStream<
3316
3318
  ArrayBuffer | ArrayBufferView,
3317
3319
  Uint8Array
3318
3320
  > {
3319
- constructor(format: "gzip" | "deflate" | "deflate-raw");
3321
+ constructor(format: "gzip" | "deflate" | "deflate-raw" | "brotli");
3320
3322
  }
3321
3323
  /**
3322
3324
  * The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
@@ -4564,6 +4566,11 @@ export interface Tracing {
4564
4566
  ): T;
4565
4567
  Span: typeof Span;
4566
4568
  }
4569
+ export interface TracingSpanLink {
4570
+ context: TracingSpanContext;
4571
+ attributes?: Record<string, boolean | number | string | undefined>;
4572
+ droppedAttributesCount?: number;
4573
+ }
4567
4574
  export declare abstract class Span {
4568
4575
  get isTraced(): boolean;
4569
4576
  spanContext(): TracingSpanContext;
@@ -4596,6 +4603,8 @@ export declare abstract class Span {
4596
4603
  updateName(name: string): this;
4597
4604
  setStatus(status: TracingSpanStatus): this;
4598
4605
  end(): void;
4606
+ addLink(link: TracingSpanLink): this;
4607
+ addLinks(links: readonly TracingSpanLink[]): this;
4599
4608
  }
4600
4609
  export type TracingSpanStatusCode = "unset" | "ok" | "error";
4601
4610
  export interface TracingSpanStatus {
@@ -17705,6 +17714,22 @@ export declare namespace TailStream {
17705
17714
  readonly type: "spanUpdate";
17706
17715
  readonly info: SpanUpdateInfo;
17707
17716
  }
17717
+ /** A causal relationship to a span, including spans in another trace. */
17718
+ interface SpanLink {
17719
+ readonly context: {
17720
+ readonly traceId: string;
17721
+ readonly spanId: string;
17722
+ readonly traceFlags: number;
17723
+ };
17724
+ readonly attributes: readonly Attribute[];
17725
+ /** Attributes dropped before this link was recorded. */
17726
+ readonly droppedAttributesCount: number;
17727
+ }
17728
+ /** Links added to the receiver identified by the event's spanContext. */
17729
+ interface SpanLinks {
17730
+ readonly type: "spanLinks";
17731
+ readonly links: readonly SpanLink[];
17732
+ }
17708
17733
  interface DiagnosticChannelEvent {
17709
17734
  readonly type: "diagnosticChannel";
17710
17735
  readonly channel: string;
@@ -17775,6 +17800,7 @@ export declare namespace TailStream {
17775
17800
  | SpanOpen
17776
17801
  | SpanClose
17777
17802
  | SpanUpdate
17803
+ | SpanLinks
17778
17804
  | DiagnosticChannelEvent
17779
17805
  | Exception
17780
17806
  | Log
@@ -17818,6 +17844,7 @@ export declare namespace TailStream {
17818
17844
  spanOpen?: TailEventHandler<SpanOpen>;
17819
17845
  spanClose?: TailEventHandler<SpanClose>;
17820
17846
  spanUpdate?: TailEventHandler<SpanUpdate>;
17847
+ spanLinks?: TailEventHandler<SpanLinks>;
17821
17848
  diagnosticChannel?: TailEventHandler<DiagnosticChannelEvent>;
17822
17849
  exception?: TailEventHandler<Exception>;
17823
17850
  log?: TailEventHandler<Log>;
package/index.d.ts CHANGED
@@ -1112,6 +1112,7 @@ declare class Blob {
1112
1112
  }
1113
1113
  interface BlobOptions {
1114
1114
  type?: string;
1115
+ endings?: "transparent" | "native";
1115
1116
  }
1116
1117
  /**
1117
1118
  * The **`File`** interface provides information about files and allows JavaScript in a web page to access their content.
@@ -1140,6 +1141,7 @@ declare class File extends Blob {
1140
1141
  interface FileOptions {
1141
1142
  type?: string;
1142
1143
  lastModified?: number;
1144
+ endings?: "transparent" | "native";
1143
1145
  }
1144
1146
  /**
1145
1147
  * The Cache API allows fine grained control of reading and writing from the Cloudflare global network cache.
@@ -3141,7 +3143,7 @@ declare class CompressionStream extends TransformStream<
3141
3143
  ArrayBuffer | ArrayBufferView,
3142
3144
  Uint8Array
3143
3145
  > {
3144
- constructor(format: "gzip" | "deflate" | "deflate-raw");
3146
+ constructor(format: "gzip" | "deflate" | "deflate-raw" | "brotli");
3145
3147
  }
3146
3148
  /**
3147
3149
  * The **`DecompressionStream`** interface of the Compression Streams API decompresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
@@ -3152,7 +3154,7 @@ declare class DecompressionStream extends TransformStream<
3152
3154
  ArrayBuffer | ArrayBufferView,
3153
3155
  Uint8Array
3154
3156
  > {
3155
- constructor(format: "gzip" | "deflate" | "deflate-raw");
3157
+ constructor(format: "gzip" | "deflate" | "deflate-raw" | "brotli");
3156
3158
  }
3157
3159
  /**
3158
3160
  * The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
@@ -4191,6 +4193,11 @@ interface Tracing {
4191
4193
  ): T;
4192
4194
  Span: typeof Span;
4193
4195
  }
4196
+ interface TracingSpanLink {
4197
+ context: TracingSpanContext;
4198
+ attributes?: Record<string, boolean | number | string | undefined>;
4199
+ droppedAttributesCount?: number;
4200
+ }
4194
4201
  declare abstract class Span {
4195
4202
  get isTraced(): boolean;
4196
4203
  spanContext(): TracingSpanContext;
@@ -4223,6 +4230,8 @@ declare abstract class Span {
4223
4230
  updateName(name: string): this;
4224
4231
  setStatus(status: TracingSpanStatus): this;
4225
4232
  end(): void;
4233
+ addLink(link: TracingSpanLink): this;
4234
+ addLinks(links: readonly TracingSpanLink[]): this;
4226
4235
  }
4227
4236
  type TracingSpanStatusCode = "unset" | "ok" | "error";
4228
4237
  interface TracingSpanStatus {
@@ -17438,6 +17447,22 @@ declare namespace TailStream {
17438
17447
  readonly type: "spanUpdate";
17439
17448
  readonly info: SpanUpdateInfo;
17440
17449
  }
17450
+ /** A causal relationship to a span, including spans in another trace. */
17451
+ interface SpanLink {
17452
+ readonly context: {
17453
+ readonly traceId: string;
17454
+ readonly spanId: string;
17455
+ readonly traceFlags: number;
17456
+ };
17457
+ readonly attributes: readonly Attribute[];
17458
+ /** Attributes dropped before this link was recorded. */
17459
+ readonly droppedAttributesCount: number;
17460
+ }
17461
+ /** Links added to the receiver identified by the event's spanContext. */
17462
+ interface SpanLinks {
17463
+ readonly type: "spanLinks";
17464
+ readonly links: readonly SpanLink[];
17465
+ }
17441
17466
  interface DiagnosticChannelEvent {
17442
17467
  readonly type: "diagnosticChannel";
17443
17468
  readonly channel: string;
@@ -17508,6 +17533,7 @@ declare namespace TailStream {
17508
17533
  | SpanOpen
17509
17534
  | SpanClose
17510
17535
  | SpanUpdate
17536
+ | SpanLinks
17511
17537
  | DiagnosticChannelEvent
17512
17538
  | Exception
17513
17539
  | Log
@@ -17551,6 +17577,7 @@ declare namespace TailStream {
17551
17577
  spanOpen?: TailEventHandler<SpanOpen>;
17552
17578
  spanClose?: TailEventHandler<SpanClose>;
17553
17579
  spanUpdate?: TailEventHandler<SpanUpdate>;
17580
+ spanLinks?: TailEventHandler<SpanLinks>;
17554
17581
  diagnosticChannel?: TailEventHandler<DiagnosticChannelEvent>;
17555
17582
  exception?: TailEventHandler<Exception>;
17556
17583
  log?: TailEventHandler<Log>;
package/index.ts CHANGED
@@ -1116,6 +1116,7 @@ export declare class Blob {
1116
1116
  }
1117
1117
  export interface BlobOptions {
1118
1118
  type?: string;
1119
+ endings?: "transparent" | "native";
1119
1120
  }
1120
1121
  /**
1121
1122
  * The **`File`** interface provides information about files and allows JavaScript in a web page to access their content.
@@ -1144,6 +1145,7 @@ export declare class File extends Blob {
1144
1145
  export interface FileOptions {
1145
1146
  type?: string;
1146
1147
  lastModified?: number;
1148
+ endings?: "transparent" | "native";
1147
1149
  }
1148
1150
  /**
1149
1151
  * The Cache API allows fine grained control of reading and writing from the Cloudflare global network cache.
@@ -3147,7 +3149,7 @@ export declare class CompressionStream extends TransformStream<
3147
3149
  ArrayBuffer | ArrayBufferView,
3148
3150
  Uint8Array
3149
3151
  > {
3150
- constructor(format: "gzip" | "deflate" | "deflate-raw");
3152
+ constructor(format: "gzip" | "deflate" | "deflate-raw" | "brotli");
3151
3153
  }
3152
3154
  /**
3153
3155
  * The **`DecompressionStream`** interface of the Compression Streams API decompresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
@@ -3158,7 +3160,7 @@ export declare class DecompressionStream extends TransformStream<
3158
3160
  ArrayBuffer | ArrayBufferView,
3159
3161
  Uint8Array
3160
3162
  > {
3161
- constructor(format: "gzip" | "deflate" | "deflate-raw");
3163
+ constructor(format: "gzip" | "deflate" | "deflate-raw" | "brotli");
3162
3164
  }
3163
3165
  /**
3164
3166
  * The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
@@ -4200,6 +4202,11 @@ export interface Tracing {
4200
4202
  ): T;
4201
4203
  Span: typeof Span;
4202
4204
  }
4205
+ export interface TracingSpanLink {
4206
+ context: TracingSpanContext;
4207
+ attributes?: Record<string, boolean | number | string | undefined>;
4208
+ droppedAttributesCount?: number;
4209
+ }
4203
4210
  export declare abstract class Span {
4204
4211
  get isTraced(): boolean;
4205
4212
  spanContext(): TracingSpanContext;
@@ -4232,6 +4239,8 @@ export declare abstract class Span {
4232
4239
  updateName(name: string): this;
4233
4240
  setStatus(status: TracingSpanStatus): this;
4234
4241
  end(): void;
4242
+ addLink(link: TracingSpanLink): this;
4243
+ addLinks(links: readonly TracingSpanLink[]): this;
4235
4244
  }
4236
4245
  export type TracingSpanStatusCode = "unset" | "ok" | "error";
4237
4246
  export interface TracingSpanStatus {
@@ -17341,6 +17350,22 @@ export declare namespace TailStream {
17341
17350
  readonly type: "spanUpdate";
17342
17351
  readonly info: SpanUpdateInfo;
17343
17352
  }
17353
+ /** A causal relationship to a span, including spans in another trace. */
17354
+ interface SpanLink {
17355
+ readonly context: {
17356
+ readonly traceId: string;
17357
+ readonly spanId: string;
17358
+ readonly traceFlags: number;
17359
+ };
17360
+ readonly attributes: readonly Attribute[];
17361
+ /** Attributes dropped before this link was recorded. */
17362
+ readonly droppedAttributesCount: number;
17363
+ }
17364
+ /** Links added to the receiver identified by the event's spanContext. */
17365
+ interface SpanLinks {
17366
+ readonly type: "spanLinks";
17367
+ readonly links: readonly SpanLink[];
17368
+ }
17344
17369
  interface DiagnosticChannelEvent {
17345
17370
  readonly type: "diagnosticChannel";
17346
17371
  readonly channel: string;
@@ -17411,6 +17436,7 @@ export declare namespace TailStream {
17411
17436
  | SpanOpen
17412
17437
  | SpanClose
17413
17438
  | SpanUpdate
17439
+ | SpanLinks
17414
17440
  | DiagnosticChannelEvent
17415
17441
  | Exception
17416
17442
  | Log
@@ -17454,6 +17480,7 @@ export declare namespace TailStream {
17454
17480
  spanOpen?: TailEventHandler<SpanOpen>;
17455
17481
  spanClose?: TailEventHandler<SpanClose>;
17456
17482
  spanUpdate?: TailEventHandler<SpanUpdate>;
17483
+ spanLinks?: TailEventHandler<SpanLinks>;
17457
17484
  diagnosticChannel?: TailEventHandler<DiagnosticChannelEvent>;
17458
17485
  exception?: TailEventHandler<Exception>;
17459
17486
  log?: TailEventHandler<Log>;
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": "5.20261117.1"
10
+ "version": "5.20261119.1"
11
11
  }