bun-types breaking changes
Updated December 4, 2026
On this page
Latest version 1.4.5, released November 19, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 0.8.0 to 1.4.4: 1,228 breaking changes in 61 versions.
- From 0.7.0 to 1.4.4: 1,277 breaking changes in 62 versions.
bun-types 1.4.4 breaking changes
- Removed
"bun:sqlite".native
"bun:sqlite".native was removed in bun-types 1.4.4 npmjs.com - Signature changed
"bun:sqlite".Database.deserialize
Was static deserialize(serialized: NodeJS.TypedArray | ArrayBufferLike, options?: {readonly?: boolean; strict?: boolean; safeIntegers?: boolean}): Database; now static deserialize(serialized: NodeJS.TypedArray | ArrayBufferLike, options?... npmjs.com - Signature changed
"bun:sqlite".Database.fileControl
Was fileControl(op: number, arg?: ArrayBufferView | number): number fileControl(zDbName: string, op: number, arg?: ArrayBufferView | number): number; now fileControl(op: number, arg?: ArrayBufferView | number | null): number... npmjs.com - Signature changed
"bun:sqlite".DatabaseOptions.create
Was create?: boolean; now create?: boolean | undefined. npmjs.com - Signature changed
"bun:sqlite".DatabaseOptions.readonly
Was readonly?: boolean; now readonly?: boolean | undefined. npmjs.com - Signature changed
"bun:sqlite".DatabaseOptions.readwrite
Was readwrite?: boolean; now readwrite?: boolean | undefined. npmjs.com - Signature changed
"bun:sqlite".DatabaseOptions.safeIntegers
Was safeIntegers?: boolean; now safeIntegers?: boolean | undefined. npmjs.com - Signature changed
"bun:sqlite".DatabaseOptions.strict
Was strict?: boolean; now strict?: boolean | undefined. npmjs.com - Signature changed
"bun:sqlite".SQLQueryBindings
Was type SQLQueryBindings = | string | bigint | NodeJS.TypedArray | number | boolean | null | Record<string, string | bigint | NodeJS.TypedArray | number | boolean | null>; now type SQLQueryBindings = | string | bigint | NodeJS.TypedArray... npmjs.com - Signature changed
"bun:sqlite".Statement.values
Was values(...params: ParamsType): Array<Array<string | bigint | number | boolean | Uint8Array>>; now values(...params: ParamsType): Array<Array<string | bigint | number | Uint8Array | null>>. npmjs.com - Signature changed
"bun".__internal.LibEmptyOrBunWebSocket.binaryType
Was binaryType: "arraybuffer" | "nodebuffer"; now binaryType: "arraybuffer" | "blob" | "nodebuffer". npmjs.com - Signature changed
"bun".__internal.LibEmptyOrBunWebSocket.onerror
Was onerror: ((this: WebSocket, ev: Event) => any) | null; now onerror: ((this: WebSocket, ev: ErrorEvent) => any) | null. npmjs.com - Signature changed
"bun".__internal.LibEmptyOrBunWebSocket.onmessage
Was onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null; now onmessage: ((this: WebSocket, ev: globalThis.MessageEvent) => any) | null. npmjs.com - Signature changed
"bun".__internal.LibEmptyOrBunWebSocket.ping
Was ping(data?: string | ArrayBufferLike | ArrayBufferView): void; now ping(data?: string | ArrayBufferLike | ArrayBufferView | Blob): void. npmjs.com - Signature changed
"bun".__internal.LibEmptyOrBunWebSocket.pong
Was pong(data?: string | ArrayBufferLike | ArrayBufferView): void; now pong(data?: string | ArrayBufferLike | ArrayBufferView | Blob): void. npmjs.com - Signature changed
"bun".__internal.LibEmptyOrBunWebSocket.readyState
Was readonly readyState: | typeof WebSocket.CONNECTING | typeof WebSocket.OPEN | typeof WebSocket.CLOSING | typeof WebSocket.CLOSED; now readonly readyState: typeof WebSocket.CONNECTING | typeof WebSocket.OPEN | typeof WebSocket.CLOSING |... npmjs.com - Signature changed
"bun".__internal.LibEmptyOrBunWebSocket.send
Was send(data: string | ArrayBufferLike | ArrayBufferView): void; now send(data: string | ArrayBufferLike | ArrayBufferView | Blob): void. npmjs.com - Signature changed
"bun".ArrayBufferView
Was type ArrayBufferView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> = | NodeJS.TypedArray<TArrayBuffer> | DataView<TArrayBuffer>; now type ArrayBufferView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> =... npmjs.com - Signature changed
"bun".ArrayType
Was type ArrayType = | "BOOLEAN" | "BYTEA" | "CHAR" | "NAME" | "TEXT" | "CHAR" | "VARCHAR" | "SMALLINT" | "INT2VECTOR" | "INTEGER" | "INT" | "BIGINT" | "REAL" | "DOUBLE PRECISION" | "NUMERIC" | "MONEY" | "OID" | "TID" | "XID" | "CID" |... npmjs.com - Signature changed
"bun".BunLockFileBasePackageInfo
Was type BunLockFileBasePackageInfo = {dependencies?: Record<string, string>; devDependencies?: Record<string, string>; optionalDependencies?: Record<string, string>; peerDependencies?: Record<string, string>; optionalPeers?: string[]... npmjs.com - Signature changed
"bun".BunLockFilePackageInfo
Was type BunLockFilePackageInfo = BunLockFileBasePackageInfo & {os?: string | string[]; cpu?: string | string[]; bundled?: true;}; now type BunLockFilePackageInfo = BunLockFileBasePackageInfo & {os?: string | string[]; cpu?: string |... npmjs.com - Signature changed
"bun".FileSystemRouter.assetPrefix
Was readonly assetPrefix: string; now readonly assetPrefix: string | null. npmjs.com - Signature changed
"bun".FileSystemRouter.constructor
Was constructor(options: {dir: string; style: "nextjs"; assetPrefix?: string; origin?: string; fileExtensions?: string[];}); now constructor(options: FileSystemRouterOptions). npmjs.com - Signature changed
"bun".FileSystemRouter.origin
Was readonly origin: string; now readonly origin: string | null. npmjs.com - Signature changed
"bun".FileSystemRouter.reload
Was reload(): void; now reload(): this. npmjs.com - Signature changed
"bun".FileSystemRouter.style
Was readonly style: string; now readonly style: "nextjs". npmjs.com - Signature changed
"bun".hash
Was const hash: ((data: string | ArrayBufferView | ArrayBuffer | SharedArrayBuffer, seed?: number | bigint) => number | bigint) & Hash; now const hash: ((data: string | ArrayBufferView | ArrayBuffer | SharedArrayBuffer, seed?: number |... npmjs.com - Signature changed
"bun".indexOfLine
Was function indexOfLine(buffer: ArrayBufferView | ArrayBufferLike, offset?: number): number; now function indexOfLine(buffer: ArrayBufferView | ArrayBufferLike, offset?: number | bigint): number. npmjs.com - Signature changed
"bun".mmap
Was function mmap(path: PathLike, opts?: MMapOptions): Uint8Array<ArrayBuffer>; now function mmap(path: string, opts?: MMapOptions): Uint8Array<ArrayBuffer>. npmjs.com - Signature changed
"bun".MMapOptions.offset
Was offset?: number; now offset?: number | bigint. npmjs.com - Signature changed
"bun".MMapOptions.size
Was size?: number; now size?: number | bigint. npmjs.com - Signature changed
"bun".Platform
Was type Platform = | "aix" | "android" | "darwin" | "freebsd" | "haiku" | "linux" | "openbsd" | "sunos" | "win32" | "cygwin" | "netbsd"; now type Platform = "aix" | "android" | "darwin" | "freebsd" | "haiku" | "linux" | "openbsd" |... npmjs.com - Signature changed
"bun".ReadableStreamDefaultReadResult
Was type ReadableStreamDefaultReadResult<T> = | ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult; now type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> |... npmjs.com - Signature changed
"bun".ReservedSQL.release
Was release(): void; now release(): Promise<void>. npmjs.com - Signature changed
"bun".ResourceUsage.cpuTime
Was cpuTime: {user: number; system: number; total: number;}; now cpuTime: {user: bigint; system: bigint; total: bigint;}. npmjs.com - Signature changed
"bun".ResourceUsage.cpuTime.system
Was system: number; now system: bigint. npmjs.com - Signature changed
"bun".ResourceUsage.cpuTime.total
Was total: number; now total: bigint. npmjs.com - Signature changed
"bun".ResourceUsage.cpuTime.user
Was user: number; now user: bigint. npmjs.com - Signature changed
"bun".SavepointSQL
Was interface SavepointSQL extends SQL; now interface SavepointSQL extends TransactionSQL. npmjs.com - Signature changed
"bun".ServerWebSocket.cork
Was cork<T = unknown>(callback: (ws: ServerWebSocket<T>) => T): T; now cork<R = unknown>(callback: (ws: ServerWebSocket<T>) => R): R. npmjs.com - Signature changed
"bun".SQL.array
Was array(values: any[], typeNameOrTypeID?: number | ArrayType): SQLArrayParameter; now array(values: any[] | NodeJS.TypedArray, typeNameOrTypeID?: number | ArrayType): SQLArrayParameter. npmjs.com - Signature changed
"bun".SQL.Query
Was interface Query<T> extends Promise<T>; now interface Query<T> extends Promise<T & ResultMetadata>. npmjs.com - Signature changed
"bun".SQLArrayParameter.arrayType
Was arrayType: ArrayType; now arrayType: ArrayType | undefined. npmjs.com - Signature changed
"bun".TransactionSQL.savepoint
Was savepoint<T>(fn: SQL.SavepointContextCallback<T>): Promise<T> savepoint<T>(name: string, fn: SQL.SavepointContextCallback<T>): Promise<T>; now savepoint<T>(fn: SQL.SavepointContextCallback<T>): Promise<SQL.ContextCallbackResult<T>>... npmjs.com - Signature changed
"bun".WebSocketCompressor
Was type WebSocketCompressor = | "disable" | "shared" | "dedicated" | "3KB" | "4KB" | "8KB" | "16KB" | "32KB" | "64KB" | "128KB" | "256KB"; now type WebSocketCompressor = "disable" | "shared" | "dedicated" | "3KB" | "4KB" | "8KB" | "16KB"... npmjs.com - Signature changed
"bun".WebSocketEventMap.error
Was error: Event; now error: ErrorEvent. npmjs.com - Signature changed
"bun".WebSocketEventMap.message
Was message: MessageEvent; now message: globalThis.MessageEvent. npmjs.com - Signature changed
"bun".WebSocketHandler.message
Was message(ws: ServerWebSocket<T>, message: string | Buffer<ArrayBuffer>): void | Promise<void>; now message?(ws: ServerWebSocket<T>, message: string | Buffer<ArrayBuffer>): void | Promise<void>. npmjs.com - Signature changed
"bun".WebSocketOptionsHeaders
Was type WebSocketOptionsHeaders = {headers?: import("node:http").OutgoingHttpHeaders;}; now type WebSocketOptionsHeaders = {headers?: import("node:http").OutgoingHttpHeaders | Headers | [string, string][];}. npmjs.com - Signature changed
"bun".WebSocketOptionsHeaders.headers
Was headers?: import("node:http").OutgoingHttpHeaders; now headers?: import("node:http").OutgoingHttpHeaders | Headers | [string, string][]. npmjs.com
And 7 more in this version. Sign up to see every change
bun-types 1.4.3 breaking changes
- Removed
"bun".WebView.back
"bun".WebView.back was removed in bun-types 1.4.3 npmjs.com - Removed
"bun".WebView.forward
"bun".WebView.forward was removed in bun-types 1.4.3 npmjs.com - Signature changed
"bun:test".Describe.each
Was each<T extends any[]>(table: readonly T[]): Describe<[...T]> each<const T>(table: T[]): Describe<[T]>; now each<T extends readonly any[]>(table: readonly T[]): Describe<[...T]> each<const T>(table: readonly T[]): Describe<[T]>. npmjs.com - Signature changed
"bun:test".Describe.skip
Was skip: Describe<T>; now skip: ((label: string | number) => void) & Describe<T>. npmjs.com - Signature changed
"bun:test".Describe.todo
Was todo: Describe<T>; now todo: ((label: string | number) => void) & Describe<T>. npmjs.com - Signature changed
"bun:test".Expect.__call
Was (actual?: never, customFailMessage?: string): Matchers<undefined>; now (): Matchers<undefined>. npmjs.com - Signature changed
"bun:test".Test.each
Was each<T extends unknown[]>(table: readonly T[]): Test<T> each<const T>(table: T[]): Test<[T]>; now each<T extends readonly unknown[]>(table: readonly T[]): Test<T> each<const T>(table: readonly T[]): Test<[T]>. npmjs.com - Signature changed
"bun:test".Test.skip
Was skip: Test<T>; now skip: ((label: string) => void) & Test<T>. npmjs.com - Signature changed
"bun:test".Test.todo
Was todo: Test<T>; now todo: ((label: string) => void) & Test<T>. npmjs.com - Signature changed
"bun".BuildMetafile.inputs
Was inputs: {[path: string]: {bytes: number; imports: Array<{path: string; kind: ImportKind; original?: string; external?: boolean; with?: Record<string, string>;}>; format?: "esm" | "cjs" | "json" | "css";};}; now inputs: {[path: string]... npmjs.com
And 14 more in this version. Sign up to see every change
bun-types 1.4.1 breaking changes
- Signature changed
"bun".BunFile.write
Was write(data: string | ArrayBufferView | ArrayBuffer | SharedArrayBuffer | Request | Response | BunFile, options?: {highWaterMark?: number}): Promise<number>; now write(data: string | ArrayBufferView | ArrayBuffer | SharedArrayBuffer |... npmjs.com - Signature changed
"bun".Encoding
Was type Encoding = "utf-8" | "windows-1252" | "utf-16"; now type Encoding = | "unicode-1-1-utf-8" | "unicode11utf8" | "unicode20utf8" | "utf-8" | "utf8" | "x-unicode20utf8" | "866" | "cp866" | "csibm866" | "ibm866" | "csisolatin2" |... npmjs.com - Signature changed
"bun".ServerWebSocket.binaryType
Was binaryType?: "nodebuffer" | "arraybuffer" | "uint8array"; now binaryType?: "nodebuffer" | "arraybuffer" | "uint8array" | "blob". npmjs.com - Signature changed
"bun".write
Was function write(destination: BunFile | S3File | PathLike, input: Blob | NodeJS.TypedArray | ArrayBufferLike | string | BlobPart[] | Archive, options?: {mode?: number; createPath?: boolean;}): Promise<number> function write(destination... npmjs.com - Signature changed
BunFetchRequestInit.protocol
Was protocol?: "http2" | "http1.1" | "h2" | "h1"; now protocol?: "http2" | "http1.1" | "http3" | "h2" | "h1" | "h3". npmjs.com - Signature changed
Event
Was interface Event; now interface Event extends Bun.__internal.LibEmptyOrBunEvent. npmjs.com - Signature changed
EventTarget
Was interface EventTarget; now interface EventTarget extends Bun.__internal.LibEmptyOrBunEventTarget. npmjs.com - Signature changed
EventTarget.addEventListener
Was addEventListener(type: string, listener: EventListener | EventListenerObject, options?: AddEventListenerOptions | boolean): void; now addEventListener(type: string, listener: Bun.EventListener | Bun.EventListenerObject, options?... npmjs.com - Signature changed
EventTarget.removeEventListener
Was removeEventListener(type: string, listener: EventListener | EventListenerObject, options?: Bun.EventListenerOptions | boolean): void; now removeEventListener(type: string, listener: Bun.EventListener | Bun.EventListenerObject... npmjs.com
bun-types 1.4.0 breaking changes
- Removed
"bun:ffi".CString.[Symbol.iterator]
"bun:ffi".CString.[Symbol.iterator] was removed in bun-types 1.4.0 npmjs.com - Removed
"bun:ffi".CString.anchor
"bun:ffi".CString.anchor was removed in bun-types 1.4.0 npmjs.com - Removed
"bun:ffi".CString.arrayBuffer
"bun:ffi".CString.arrayBuffer was removed in bun-types 1.4.0 npmjs.com - Removed
"bun:ffi".CString.at
"bun:ffi".CString.at was removed in bun-types 1.4.0 npmjs.com - Removed
"bun:ffi".CString.big
"bun:ffi".CString.big was removed in bun-types 1.4.0 npmjs.com - Removed
"bun:ffi".CString.blink
"bun:ffi".CString.blink was removed in bun-types 1.4.0 npmjs.com - Removed
"bun:ffi".CString.bold
"bun:ffi".CString.bold was removed in bun-types 1.4.0 npmjs.com - Removed
"bun:ffi".CString.byteLength
"bun:ffi".CString.byteLength was removed in bun-types 1.4.0 npmjs.com - Removed
"bun:ffi".CString.byteOffset
"bun:ffi".CString.byteOffset was removed in bun-types 1.4.0 npmjs.com - Removed
"bun:ffi".CString.charAt
"bun:ffi".CString.charAt was removed in bun-types 1.4.0 npmjs.com
And 115 more in this version. Sign up to see every change
bun-types 1.3.14 breaking changes
- Signature changed
"bun:ffi".FFITypeToArgsType.1
The signature of "bun:ffi".FFITypeToArgsType.1 changed in bun-types 1.3.14 npmjs.com - Signature changed
"bun:ffi".FFITypeToArgsType.10
The signature of "bun:ffi".FFITypeToArgsType.10 changed in bun-types 1.3.14 npmjs.com - Signature changed
"bun:ffi".FFITypeToArgsType.12
The signature of "bun:ffi".FFITypeToArgsType.12 changed in bun-types 1.3.14 npmjs.com - Signature changed
"bun:ffi".FFITypeToArgsType.2
The signature of "bun:ffi".FFITypeToArgsType.2 changed in bun-types 1.3.14 npmjs.com - Signature changed
"bun:ffi".FFITypeToArgsType.3
The signature of "bun:ffi".FFITypeToArgsType.3 changed in bun-types 1.3.14 npmjs.com - Signature changed
"bun:ffi".FFITypeToArgsType.4
The signature of "bun:ffi".FFITypeToArgsType.4 changed in bun-types 1.3.14 npmjs.com - Signature changed
"bun:ffi".FFITypeToArgsType.5
The signature of "bun:ffi".FFITypeToArgsType.5 changed in bun-types 1.3.14 npmjs.com - Signature changed
"bun:ffi".FFITypeToArgsType.6
The signature of "bun:ffi".FFITypeToArgsType.6 changed in bun-types 1.3.14 npmjs.com - Signature changed
"bun:ffi".FFITypeToArgsType.7
The signature of "bun:ffi".FFITypeToArgsType.7 changed in bun-types 1.3.14 npmjs.com - Signature changed
"bun:ffi".FFITypeToArgsType.8
The signature of "bun:ffi".FFITypeToArgsType.8 changed in bun-types 1.3.14 npmjs.com
And 15 more in this version. Sign up to see every change
bun-types 1.3.12 breaking changes
- Signature changed
"bun".cron
Was const cron: {(path: string, schedule: CronWithAutocomplete, title: string): Promise<void>; remove(title: string): Promise<void>; parse(expression: CronWithAutocomplete, relativeDate?: Date | number): Date | null;}; now const cron... npmjs.com - Signature changed
"bun".udp.ConnectedSocketHandler.data
Was data?(socket: ConnectedSocket<DataBinaryType>, data: BinaryTypeList[DataBinaryType], port: number, address: string): void | Promise<void>; now data?(socket: ConnectedSocket<DataBinaryType>, data: BinaryTypeList[DataBinaryType], port... npmjs.com - Signature changed
"bun".udp.SocketHandler.data
Was data?(socket: Socket<DataBinaryType>, data: BinaryTypeList[DataBinaryType], port: number, address: string): void | Promise<void>; now data?(socket: Socket<DataBinaryType>, data: BinaryTypeList[DataBinaryType], port: number, address... npmjs.com - Signature changed
"bun".WebAssembly.ImportExportKind
Was type ImportExportKind = "function" | "global" | "memory" | "table"; now type ImportExportKind = "function" | "global" | "memory" | "table" | "tag". npmjs.com - Signature changed
WebAssembly.Instance
Was var Instance: {prototype: Instance; new (module: Module, importObject?: Bun.WebAssembly.Imports): Instance;}; now var Instance: Bun.__internal.UseLibDomIfAvailable<"WebAssembly", {Instance: {prototype: Instance; new (module: Module... npmjs.com
Older versions
57 older versions, each with its first changes. Sign up to see every change
Show 57 older versions
bun-types 1.3.11 breaking changes
- Signature changed
"bun".JSONL.parseChunk
Was function parseChunk(input: NodeJS.TypedArray | DataView<ArrayBuffer> | ArrayBufferLike, start?: number, end?: number): ParseChunkResult function parseChunk(input: string): ParseChunkResult; now function parseChunk(input: string |... npmjs.com - Signature changed
"bun".markdown.RenderCallbacks.listItem
Was listItem?: (children: string, meta?: ListItemMeta) => string | null | undefined; now listItem?: (children: string, meta: ListItemMeta) => string | null | undefined. npmjs.com
bun-types 1.3.10 breaking changes
- Removed
"bun".BuildConfigBase
"bun".BuildConfigBase was removed in bun-types 1.3.10 npmjs.com - Removed
"bun".CompileBuildConfig
"bun".CompileBuildConfig was removed in bun-types 1.3.10 npmjs.com
And 3 more in this version.
bun-types 1.3.9 breaking changes
- Signature changed
"bun".Build.CompileTarget
Was type CompileTarget = | `bun-darwin-${Architecture}` | `bun-darwin-x64-${SIMD}` | `bun-linux-${Architecture}` | `bun-linux-${Architecture}-${Libc}` | "bun-windows-x64" | `bun-windows-x64-${SIMD}` | `bun-linux-x64-${SIMD}-${Libc}`; now... npmjs.com - Signature changed
"bun".Hash.crc32
Was crc32: (data: string | ArrayBufferView | ArrayBuffer | SharedArrayBuffer) => number; now crc32: (data: string | ArrayBufferView | ArrayBuffer | SharedArrayBuffer, seed?: number) => number. npmjs.com
And 2 more in this version.
bun-types 1.3.7 breaking changes
- Renamed
"bun".Build.Target
Use "bun".Build.CompileTarget instead. npmjs.com - Signature changed
"bun".CompileBuildConfig.compile
Was compile: boolean | Bun.Build.Target | CompileBuildOptions; now compile: boolean | Bun.Build.CompileTarget | CompileBuildOptions. npmjs.com
And 1 more in this version.
bun-types 1.3.6 breaking changes
- Removed
"bun".WebSocketOptionsTLS.tls.rejectUnauthorized
"bun".WebSocketOptionsTLS.tls.rejectUnauthorized was removed in bun-types 1.3.6 npmjs.com - Signature changed
"bun".FileSink.write
Was write(chunk: string | ArrayBufferView | ArrayBuffer | SharedArrayBuffer): number; now write(chunk: string | ArrayBufferView | ArrayBuffer | SharedArrayBuffer): number | Promise<number>. npmjs.com
And 6 more in this version.
bun-types 1.3.5 breaking changes
- Removed
"bun".__internal.NodeCryptoWebcryptoSubtleCrypto
"bun".__internal.NodeCryptoWebcryptoSubtleCrypto was removed in bun-types 1.3.5 npmjs.com - Signature changed
"bun:test".MatchersBuiltin.toContainAllKeys
Was toContainAllKeys(expected: Array<keyof T>): void toContainAllKeys<X = T>(expected: NoInfer<Array<keyof X>>): void; now toContainAllKeys(expected: Array<__internal.IfNeverThenElse<keyof T, PropertyKey>>): void toContainAllKeys<X =... npmjs.com
And 9 more in this version.
bun-types 1.3.4 breaking changes
- Signature changed
"bun:test".jest.useFakeTimers
Was function useFakeTimers(): void; now function useFakeTimers(options?: {now?: number | Date}): typeof vi. npmjs.com - Signature changed
"bun:test".jest.useRealTimers
Was function useRealTimers(): void; now function useRealTimers(): typeof vi. npmjs.com
And 3 more in this version.
bun-types 1.3.3 breaking changes
- Removed
"bun".__experimental
"bun".__experimental was removed in bun-types 1.3.3 npmjs.com - Signature changed
"bun".BunLockFile
Was type BunLockFile = {lockfileVersion: 0 | 1; workspaces: {[workspace: string]: BunLockFileWorkspacePackage;}; overrides?: Record<string, string>; patchedDependencies?: Record<string, string>; trustedDependencies?: string[]; catalog?... npmjs.com
And 6 more in this version.
bun-types 1.3.2 breaking changes
- Signature changed
"bun:test".Describe.each
Was each<T>(table: T[]): Describe<[T]>; now each<const T>(table: T[]): Describe<[T]>. npmjs.com - Signature changed
"bun:test".Test.each
Was each<T>(table: T[]): Test<[T]>; now each<const T>(table: T[]): Test<[T]>. npmjs.com
And 5 more in this version.
bun-types 1.3.1 breaking changes
- Signature changed
"bun".$.ShellPromise.quiet
Was quiet(): this; now quiet(isQuiet?: boolean): this. npmjs.com
bun-types 1.3.0 breaking changes
- Removed
"bun".GenericServeOptions
"bun".GenericServeOptions was removed in bun-types 1.3.0 npmjs.com - Removed
"bun".RouterTypes
"bun".RouterTypes was removed in bun-types 1.3.0 npmjs.com
And 46 more in this version.
bun-types 1.2.23 breaking changes
- Signature changed
"bun:test".afterAll
Was function afterAll(fn: (() => void | Promise<unknown>) | ((done: (err?: unknown) => void) => void)): void; now function afterAll(fn: (() => void | Promise<unknown>) | ((done: (err?: unknown) => void) => void), options?: HookOptions)... npmjs.com - Signature changed
"bun:test".afterEach
Was function afterEach(fn: (() => void | Promise<unknown>) | ((done: (err?: unknown) => void) => void)): void; now function afterEach(fn: (() => void | Promise<unknown>) | ((done: (err?: unknown) => void) => void), options?: HookOptions)... npmjs.com
And 29 more in this version.
bun-types 1.2.22 breaking changes
- Signature changed
"bun:test".Expect.__call
Was <T = unknown>(actual?: T, customFailMessage?: string): Matchers<T>; now (actual?: never, customFailMessage?: string): Matchers<undefined> <T = unknown>(actual: T, customFailMessage?: string): Matchers<T> <T = unknown>(actual?: T... npmjs.com - Signature changed
"bun:test".MatchersBuiltin.toBeOneOf
Was toBeOneOf(expected: Array<unknown> | Iterable<unknown>): void; now toBeOneOf(expected: Iterable<T>): void toBeOneOf<X = T>(expected: NoInfer<Iterable<X>>): void. npmjs.com
And 36 more in this version.
bun-types 1.2.21 breaking changes
- Removed
"bun".BuildConfig.banner
"bun".BuildConfig.banner was removed in bun-types 1.2.21 npmjs.com - Removed
"bun".BuildConfig.bytecode
"bun".BuildConfig.bytecode was removed in bun-types 1.2.21 npmjs.com
And 61 more in this version.
bun-types 1.2.20 breaking changes
- Signature changed
"bun:sqlite".Database.transaction
Was transaction(insideTransaction: (...args: any) => void): CallableFunction & {deferred: (...args: any) => void; immediate: (...args: any) => void; exclusive: (...args: any) => void;}; now transaction<A extends any[]... npmjs.com - Signature changed
"bun:test".mock
Was const mock: {<T extends (...args: any[]) => any>(Function?: T): Mock<T>; module(id: string, factory: () => any): void | Promise<void>; restore(): void;}; now const mock: {<T extends (...args: any[]) => any>(Function?: T): Mock<T>... npmjs.com
And 30 more in this version.
bun-types 1.2.19 breaking changes
- Removed
"bun".__internal.NodeWorkerThreadsWorker
"bun".__internal.NodeWorkerThreadsWorker was removed in bun-types 1.2.19 npmjs.com - Removed
"bun".BunFile.readable
"bun".file().readable was removed in bun-types 1.2.19 npmjs.com
And 65 more in this version.
bun-types 1.2.18 breaking changes
- Signature changed
"bun".BunFile.readable
Was readonly readable: ReadableStream; now readonly readable: BunReadableStream. npmjs.com - Signature changed
"bun".RouterTypes.RouteValue
Was type RouteValue<T extends string> = Response | false | RouteHandler<T> | RouteHandlerObject<T>; now type RouteValue<T extends string> = Response | false | RouteHandler<T> | RouteHandlerObject<T> | HTMLBundle. npmjs.com
And 1 more in this version.
bun-types 1.2.17 breaking changes
- Signature changed
"bun".RedisClient.del
Was del(key: RedisClient.KeyLike, ...keys: RedisClient.KeyLike[]): Promise<number>; now del(...keys: RedisClient.KeyLike[]): Promise<number>. npmjs.com
bun-types 1.2.16 breaking changes
- Signature changed
"bun:test".jest
The signature of "bun:test".jest changed in bun-types 1.2.16 npmjs.com - Signature changed
"bun".dns.prefetch
Was function prefetch(hostname: string): void; now function prefetch(hostname: string, port?: number): void. npmjs.com
And 59 more in this version.
bun-types 1.2.15 breaking changes
- Signature changed
"bun:test".spyOn
Was function spyOn<T extends object, K extends keyof T>(obj: T, methodOrPropertyValue: K): Mock<T[K] extends (...args: any[]) => any ? T[K] : never>; now function spyOn<T extends object, K extends keyof T>(obj: T, methodOrPropertyValue... npmjs.com - Signature changed
"bun".GenericServeOptions.development
Was development?: | boolean | {hmr?: boolean; console?: boolean;}; now development?: | boolean | {hmr?: boolean; console?: boolean; chromeDevToolsAutomaticWorkspaceFolders?: boolean;}. npmjs.com
bun-types 1.2.14 breaking changes
- Signature changed
"bun".BunLockFile
Was type BunLockFile = {lockfileVersion: 0 | 1; workspaces: {[workspace: string]: BunLockFileWorkspacePackage;}; overrides?: Record<string, string>; patchedDependencies?: Record<string, string>; trustedDependencies?: string[]; packages... npmjs.com
bun-types 1.2.13 breaking changes
- Removed
"bun:sqlite".SQLiteError.prepareStackTrace
"bun:sqlite".SQLiteError.prepareStackTrace was removed in bun-types 1.2.13 npmjs.com - Removed
"bun".$.ShellError.prepareStackTrace
"bun".$.ShellError.prepareStackTrace was removed in bun-types 1.2.13 npmjs.com
And 15 more in this version.
bun-types 1.2.12 breaking changes
- Signature changed
"bun".GenericServeOptions.development
Was development?: | boolean | {hmr?: boolean;}; now development?: | boolean | {hmr?: boolean; console?: boolean;}. npmjs.com - Signature changed
"bun".Subprocess
Was interface Subprocess<In extends SpawnOptions.Writable, Out extends SpawnOptions.Readable, Err extends SpawnOptions.Readable> extends AsyncDisposable; now interface Subprocess<In extends SpawnOptions.Writable = SpawnOptions.Writable... npmjs.com
And 1 more in this version.
bun-types 1.2.11 breaking changes
- Removed
"bun".origin
"bun".origin was removed in bun-types 1.2.11 npmjs.com - Removed
"bun".Peek
"bun".Peek was removed in bun-types 1.2.11 npmjs.com
And 40 more in this version.
bun-types 1.2.10 breaking changes
- Removed
"bun".__internal.LibEmptyOrNodeTransformStream
"bun".__internal.LibEmptyOrNodeTransformStream was removed in bun-types 1.2.10 npmjs.com - Removed
"bun".__internal.NodePerfHooksPerformance
"bun".__internal.NodePerfHooksPerformance was removed in bun-types 1.2.10 npmjs.com
And 28 more in this version.
bun-types 1.2.9 breaking changes
- Removed
"*.svg"
"*.svg" was removed in bun-types 1.2.9 npmjs.com - Signature changed
"bun".env
Was const env: Env & NodeJS.ProcessEnv; now const env: Env & NodeJS.ProcessEnv & ImportMetaEnv. npmjs.com
And 3 more in this version.
bun-types 1.2.8 breaking changes
- Removed
"bun".__internal.LibWorkerOrNodeWorkerThreadsWorker
"bun".__internal.LibWorkerOrNodeWorkerThreadsWorker was removed in bun-types 1.2.8 npmjs.com - Removed
"bun".__internal.NodeUtilTextDecoder
"bun".__internal.NodeUtilTextDecoder was removed in bun-types 1.2.8 npmjs.com
And 21 more in this version.
bun-types 1.2.7 breaking changes
- Removed
_BunTLSOptions
_BunTLSOptions was removed in bun-types 1.2.7 npmjs.com - Removed
"bun:ffi".CString.isWellFormed
"bun:ffi".CString.isWellFormed was removed in bun-types 1.2.7 npmjs.com
And 171 more in this version.
bun-types 1.2.6 breaking changes
- Removed
_ShellError
_ShellError was removed in bun-types 1.2.6 npmjs.com - Signature changed
"bun".serve
Was function serve<T, R extends {[K in keyof R]: RouterTypes.RouteValue<K & string>}>(options: (| (DistributedOmit<Serve, "fetch"> & {routes: R; fetch?: (this: Server, request: Request, server: Server) => Response | Promise<Response>;}) |... npmjs.com
And 4 more in this version.
bun-types 1.2.5 breaking changes
- Removed
"bun".ShellError.captureStackTrace
"bun".ShellError.captureStackTrace was removed in bun-types 1.2.5 npmjs.com - Removed
"bun".ShellError.isError
"bun".ShellError.isError was removed in bun-types 1.2.5 npmjs.com
And 30 more in this version.
bun-types 1.2.4 breaking changes
- Signature changed
"bun".PluginBuilder.module
Was module(specifier: string, callback: () => OnLoadResult | Promise<OnLoadResult>): void; now module(specifier: string, callback: () => OnLoadResult | Promise<OnLoadResult>): this. npmjs.com - Signature changed
"bun".PluginBuilder.onBeforeParse
Was onBeforeParse(constraints: PluginConstraints, callback: {napiModule: unknown; symbol: string; external?: unknown | undefined;}): void; now onBeforeParse(constraints: PluginConstraints, callback: {napiModule: unknown; symbol: string... npmjs.com
And 3 more in this version.
bun-types 1.2.3 breaking changes
- Removed
"bun".GenericServeOptions.static
"bun".GenericServeOptions.static was removed in bun-types 1.2.3 npmjs.com - Signature changed
"bun".GenericServeOptions.development
Was development?: boolean; now development?: | boolean | {hmr?: boolean;}. npmjs.com
And 18 more in this version.
bun-types 1.2.1 breaking changes
- Signature changed
"bun".BunLockFile
Was type BunLockFile = {lockfileVersion: 0; workspaces: {[workspace: string]: BunLockFileWorkspacePackage;}; overrides?: Record<string, string>; patchedDependencies?: Record<string, string>; trustedDependencies?: string[]; packages: {[pkg... npmjs.com - Signature changed
"bun".BunLockFile.lockfileVersion
Was lockfileVersion: 0; now lockfileVersion: 0 | 1. npmjs.com
And 4 more in this version.
bun-types 1.2.0 breaking changes
- Removed
"bun".BuildConfig.experimentalCss
"bun".BuildConfig.experimentalCss was removed in bun-types 1.2.0 npmjs.com - Removed
"bun".BuildConfig.html
"bun".BuildConfig.html was removed in bun-types 1.2.0 npmjs.com
And 2 more in this version.
bun-types 1.1.44 breaking changes
- Removed
BufferEncodingOption
BufferEncodingOption was removed in bun-types 1.1.44 npmjs.com - Signature changed
"bun".dns
Was const dns: {lookup(hostname: string, options?: {family?: 4 | 6 | 0 | "IPv4" | "IPv6" | "any"; socketType?: "udp" | "tcp"; flags?: number; port?: number; backend?: "libc" | "c-ares" | "system" | "getaddrinfo";}): Promise<DNSLookup[]>... npmjs.com
And 1 more in this version.
bun-types 1.1.43 breaking changes
- Signature changed
"bun".generateHeapSnapshot
Was function generateHeapSnapshot(): HeapSnapshot; now function generateHeapSnapshot(format: "v8"): string function generateHeapSnapshot(format?: "jsc"): HeapSnapshot. npmjs.com - Signature changed
"bun".Loader
Was type Loader = | "js" | "jsx" | "ts" | "tsx" | "json" | "toml" | "file" | "napi" | "wasm" | "text" | "css"; now type Loader = | "js" | "jsx" | "ts" | "tsx" | "json" | "toml" | "file" | "napi" | "wasm" | "text" | "css" | "html". npmjs.com
And 1 more in this version.
bun-types 1.1.41 breaking changes
- Signature changed
"bun".BuildConfig.sourcemap
Was sourcemap?: "none" | "linked" | "inline" | "external" | "linked"; now sourcemap?: "none" | "linked" | "inline" | "external" | "linked" | boolean. npmjs.com
bun-types 1.1.39 breaking changes
- Signature changed
"bun:ffi".ConvertFns
Was type ConvertFns<Fns extends Symbols> = {[K in keyof Fns]: (...args: Fns[K]["args"] extends infer A extends readonly FFITypeOrString[] ? {[L in keyof A]: FFITypeToArgsType[ToFFIType<A[L]>]} : [unknown] extends [Fns[K]["args"]] ? []... npmjs.com - Signature changed
"bun".OnLoadResult
Was type OnLoadResult = OnLoadResultSourceCode | OnLoadResultObject | undefined; now type OnLoadResult = | OnLoadResultSourceCode | OnLoadResultObject | undefined | void. npmjs.com
bun-types 1.1.35 breaking changes
- Signature changed
"bun".Loader
Was type Loader = | "js" | "jsx" | "ts" | "tsx" | "json" | "toml" | "file" | "napi" | "wasm" | "text"; now type Loader = | "js" | "jsx" | "ts" | "tsx" | "json" | "toml" | "file" | "napi" | "wasm" | "text" | "css". npmjs.com
bun-types 1.1.32 breaking changes
- Signature changed
"bun".color
Was function color(input: ColorInput, outputFormat?: | "ansi" | "ansi256" | "hex" | "rgb" | "rgba" | "hsl" | "lab" | "css" | "lab" | "HEX"): string | null; now function color(input: ColorInput, outputFormat?: | "ansi" | "ansi-16" |... npmjs.com - Signature changed
"bun".DigestEncoding
Was type DigestEncoding = "hex" | "base64"; now type DigestEncoding = | "utf8" | "ucs2" | "utf16le" | "latin1" | "ascii" | "base64" | "base64url" | "hex". npmjs.com
bun-types 1.1.31 breaking changes
- Signature changed
"bun".BunPlugin.name
Was name?: string; now name: string. npmjs.com
bun-types 1.1.30 breaking changes
- Removed
"bun".ModuleFormat
"bun".ModuleFormat was removed in bun-types 1.1.30 npmjs.com - Signature changed
"bun".BuildArtifact.kind
Was kind: "entry-point" | "chunk" | "asset" | "sourcemap"; now kind: "entry-point" | "chunk" | "asset" | "sourcemap" | "bytecode". npmjs.com
And 4 more in this version.
bun-types 1.1.27 breaking changes
- Signature changed
"bun:sqlite".Database.constructor
Was constructor(filename?: string, options?: | number | {readonly?: boolean; create?: boolean; readwrite?: boolean; safeInteger?: boolean; strict?: boolean;}); now constructor(filename?: string, options?: | number | {readonly?: boolean... npmjs.com
bun-types 1.1.21 breaking changes
- Signature changed
"bun".deflateSync
Was function deflateSync(data: Uint8Array | string | ArrayBuffer, options?: ZlibCompressionOptions): Uint8Array; now function deflateSync(data: Uint8Array | string | ArrayBuffer, options?: ZlibCompressionOptions |... npmjs.com - Signature changed
"bun".gunzipSync
Was function gunzipSync(data: Uint8Array | string | ArrayBuffer): Uint8Array; now function gunzipSync(data: Uint8Array | string | ArrayBuffer, options?: ZlibCompressionOptions | LibdeflateCompressionOptions): Uint8Array. npmjs.com
And 4 more in this version.
bun-types 1.1.19 breaking changes
- Signature changed
"bun:jsc".profile
Was function profile(callback: CallableFunction, sampleInterval?: number): {functions: string; bytecodes: string; stackTraces: string[];}; now function profile<T extends (...args: any[]) => any>(callback: T, sampleInterval?: number... npmjs.com
bun-types 1.1.18 breaking changes
- Signature changed
"bun".Semver.order
Was order(v1: StringLike, v2: StringLike): -1 | 0 | 1; now order(this: void, v1: StringLike, v2: StringLike): -1 | 0 | 1. npmjs.com
bun-types 1.1.16 breaking changes
- Signature changed
"bun".BuildConfig.sourcemap
Was sourcemap?: "none" | "inline" | "external"; now sourcemap?: "none" | "linked" | "inline" | "external". npmjs.com
bun-types 1.1.14 breaking changes
- Signature changed
"bun:sqlite".Database.constructor
Was constructor(filename?: string, options?: | number | {readonly?: boolean; create?: boolean; readwrite?: boolean;}); now constructor(filename?: string, options?: | number | {readonly?: boolean; create?: boolean; readwrite?: boolean... npmjs.com - Signature changed
"bun:sqlite".Database.exec
Was exec<ParamsType extends SQLQueryBindings[]>(sqlQuery: string, ...bindings: ParamsType[]): void; now exec<ParamsType extends SQLQueryBindings[]>(sqlQuery: string, ...bindings: ParamsType[]): Changes. npmjs.com
And 2 more in this version.
bun-types 1.1.13 breaking changes
- Signature changed
"bun:test".Expect.__call
Was <T = unknown>(actual?: T): Matchers<T>; now <T = unknown>(actual?: T, customFailMessage?: string): Matchers<T>. npmjs.com - Signature changed
"test".Expect.__call
Was <T = unknown>(actual?: T): Matchers<T>; now <T = unknown>(actual?: T, customFailMessage?: string): Matchers<T>. npmjs.com
bun-types 1.1.11 breaking changes
- Signature changed
"bun".CryptoHasher.digest
Was digest(hashInto?: NodeJS.TypedArray): NodeJS.TypedArray; now digest(): Buffer digest(hashInto: NodeJS.TypedArray): NodeJS.TypedArray. npmjs.com - Signature changed
"bun".CryptoHasher.hash
Was static hash(algorithm: SupportedCryptoAlgorithms, input: Bun.BlobOrStringOrBuffer, hashInto?: NodeJS.TypedArray): NodeJS.TypedArray; now static hash(algorithm: SupportedCryptoAlgorithms, input: Bun.BlobOrStringOrBuffer): Buffer static... npmjs.com
bun-types 1.1.9 breaking changes
- Signature changed
"bun".concatArrayBuffers
Was function concatArrayBuffers(buffers: Array<ArrayBufferView | ArrayBufferLike>): ArrayBuffer; now function concatArrayBuffers(buffers: Array<ArrayBufferView | ArrayBufferLike>, maxLength: number, asUint8Array: false): ArrayBuffer... npmjs.com - Signature changed
"bun".dns
Was const dns: {lookup(hostname: string, options?: {family?: 4 | 6 | 0 | "IPv4" | "IPv6" | "any"; socketType?: "udp" | "tcp"; flags?: number; port?: number; backend?: "libc" | "c-ares" | "system" | "getaddrinfo";}): Promise<DNSLookup[]>;}... npmjs.com
And 3 more in this version.
bun-types 1.1.7 breaking changes
- Removed
"bun".parseArgs
"bun".parseArgs was removed in bun-types 1.1.7 npmjs.com
bun-types 1.1.5 breaking changes
- Removed
"bun".TLSServeOptions.serverNames
"bun".TLSServeOptions.serverNames was removed in bun-types 1.1.5 npmjs.com - Removed
"bun".UnixTLSServeOptions.serverNames
"bun".UnixTLSServeOptions.serverNames was removed in bun-types 1.1.5 npmjs.com
And 6 more in this version.
bun-types 1.1.4 breaking changes
- Signature changed
"bun:sqlite".constants
Was const constants: {SQLITE_OPEN_READONLY: number; SQLITE_OPEN_READWRITE: number; SQLITE_OPEN_CREATE: number; SQLITE_OPEN_DELETEONCLOSE: number; SQLITE_OPEN_EXCLUSIVE: number; SQLITE_OPEN_AUTOPROXY: number; SQLITE_OPEN_URI: number... npmjs.com - Signature changed
"bun:sqlite".Database
Was class Database; now class Database implements Disposable. npmjs.com
And 3 more in this version.
bun-types 1.0.0 breaking changes
- Removed
"*.toml"
"*.toml" was removed in bun-types 1.0.0 npmjs.com - Removed
"*.txt"
"*.txt" was removed in bun-types 1.0.0 npmjs.com
And 158 more in this version.
bun-types 0.8.0 breaking changes
- Signature changed
"bun:ffi".ConvertFns
Was type ConvertFns<Fns extends Record<string, FFIFunction>> = {[K in keyof Fns]: (...args: Fns[K]["args"] extends infer A extends FFITypeOrString[] ? {[L in keyof A]: FFITypeToType[ToFFIType<A[L]>]} : never) =>... npmjs.com - Signature changed
"bun:ffi".FFIFunction.args
Was args?: FFITypeOrString[]; now readonly args?: readonly FFITypeOrString[]. npmjs.com
And 47 more in this version.
bun-types 0.7.0 breaking changes
- Signature changed
"bun:ffi".FFITypeToType.10
Was [FFIType.f32]: UNTYPED [FFIType.float]: UNTYPED; now [FFIType.f32]: number [FFIType.float]: number. npmjs.com - Signature changed
"bun:ffi".FFITypeToType.13
Was [FFIType.void]: UNTYPED; now [FFIType.void]: void. npmjs.com
And 29 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.