bun-types-no-globals 1.3.8-canary.20260130T141753 → 1.3.8-canary.20260201T140941

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 (2) hide show
  1. package/lib/bun.d.ts +10 -6
  2. package/package.json +1 -1
package/lib/bun.d.ts CHANGED
@@ -2433,12 +2433,13 @@ declare module "bun" {
2433
2433
  type SIMD = "baseline" | "modern";
2434
2434
  type CompileTarget =
2435
2435
  | `bun-darwin-${Architecture}`
2436
- | `bun-darwin-x64-${SIMD}`
2436
+ | `bun-darwin-${Architecture}-${SIMD}`
2437
2437
  | `bun-linux-${Architecture}`
2438
2438
  | `bun-linux-${Architecture}-${Libc}`
2439
+ | `bun-linux-${Architecture}-${SIMD}`
2440
+ | `bun-linux-${Architecture}-${SIMD}-${Libc}`
2439
2441
  | "bun-windows-x64"
2440
- | `bun-windows-x64-${SIMD}`
2441
- | `bun-linux-x64-${SIMD}-${Libc}`;
2442
+ | `bun-windows-x64-${SIMD}`;
2442
2443
  }
2443
2444
 
2444
2445
  /**
@@ -2593,7 +2594,10 @@ declare module "bun" {
2593
2594
  * start times, but will make the final output larger and slightly increase
2594
2595
  * memory usage.
2595
2596
  *
2596
- * Bytecode is currently only supported for CommonJS (`format: "cjs"`).
2597
+ * - CommonJS: works with or without `compile: true`
2598
+ * - ESM: requires `compile: true`
2599
+ *
2600
+ * Without an explicit `format`, defaults to CommonJS.
2597
2601
  *
2598
2602
  * Must be `target: "bun"`
2599
2603
  * @default false
@@ -5678,7 +5682,7 @@ declare module "bun" {
5678
5682
  *
5679
5683
  * This will apply to all sockets from the same {@link Listener}. it is per socket only for {@link Bun.connect}.
5680
5684
  */
5681
- reload(handler: SocketHandler): void;
5685
+ reload(options: Pick<SocketOptions<Data>, "socket">): void;
5682
5686
 
5683
5687
  /**
5684
5688
  * Get the server that created this socket
@@ -6021,7 +6025,7 @@ declare module "bun" {
6021
6025
  stop(closeActiveConnections?: boolean): void;
6022
6026
  ref(): void;
6023
6027
  unref(): void;
6024
- reload(options: Pick<Partial<SocketOptions>, "socket">): void;
6028
+ reload(options: Pick<SocketOptions<Data>, "socket">): void;
6025
6029
  data: Data;
6026
6030
  }
6027
6031
  interface TCPSocketListener<Data = unknown> extends SocketListener<Data> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bun-types-no-globals",
3
- "version": "1.3.8-canary.20260130T141753",
3
+ "version": "1.3.8-canary.20260201T140941",
4
4
  "main": "./generator/index.ts",
5
5
  "types": "./lib/index.d.ts",
6
6
  "description": "TypeScript type definitions for Bun without global types pollution",