adm-zip breaking changes
adm-zip 0.6.0 (July 10, 2026) is its newest release with breaking changes, 26 of them. The first: Removed DataHeader. Every breaking API change we have recorded in adm-zip on npm: 38 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.6.1, released September 11, 2026. Source repository
Its 0.6.0 release requires Node.js 14 or later. Node.js end of life dates.
adm-zip 0.6.0 breaking changes
- Removed
DataHeader
DataHeader was removed in adm-zip 0.6.0 npmjs.com - Removed
EntryHeader
EntryHeader was removed in adm-zip 0.6.0 npmjs.com - Removed
IZipEntry.packHeader
IZipEntry.packHeader was removed in adm-zip 0.6.0 npmjs.com - Behavior changed
extractEntryTo
extractEntryTo with maintainEntryPath set to false now preserves subdirectory structure in the target folder rather than writing every file directly into it by basename. Code relying on the flattened layout or on same-named files being... github.com - Configuration changed
The package now requires Node.js 14 or later; the engines field previously declared >=12 incorrectly. Users on Node.js 12 must upgrade their runtime. github.com - Signature changed
default.addFile
Was addFile(entryName: string, content: Buffer, comment?: string, attr?: number): AdmZip.IZipEntry; now addFile(entryName: string, content: Buffer | string, comment?: string, attr?: number | Stats): AdmZip.IZipEntry. npmjs.com - Signature changed
default.addLocalFolder
Was addLocalFolder(localPath: string, zipPath?: string, filter?: RegExp | ((filename: string) => boolean)): void; now addLocalFolder(localPath: string, zipPath?: string, filter?: AdmZip.EntryFilter): void. npmjs.com - Signature changed
default.addLocalFolderAsync
Was addLocalFolderAsync(localPath: string, callback: (success?: boolean, err?: string) => void, zipPath?: string, filter?: RegExp | ((filename: string) => boolean)): void; now addLocalFolderAsync(localPath: string, callback: (success?... npmjs.com - Signature changed
default.addLocalFolderPromise
Was addLocalFolderPromise(localPath: string, props: {zipPath?: string; filter?: RegExp | ((filename: string) => boolean)}): Promise<void>; now addLocalFolderPromise(localPath: string, props?: {zipPath?: string; filter?: AdmZip.EntryFilter... npmjs.com - Signature changed
default.deleteFile
Was deleteFile(entry: string | AdmZip.IZipEntry): void; now deleteFile(entry: string | AdmZip.IZipEntry, withSubfolders?: boolean): void. npmjs.com - Signature changed
default.extractAllTo
Was extractAllTo(targetPath: string, overwrite?: boolean, keepOriginalPermission?: boolean, password?: string | Buffer): void; now extractAllTo(targetPath: string, overwrite?: boolean, keepOriginalPermission?: boolean, pass?: string |... npmjs.com - Signature changed
default.extractAllToAsync
Was extractAllToAsync(targetPath: string, overwrite?: boolean, keepOriginalPermission?: boolean, callback?: (error?: Error) => void): void; now extractAllToAsync(targetPath: string, overwrite: boolean, keepOriginalPermission: boolean... npmjs.com - Signature changed
default.extractEntryTo
Was extractEntryTo(entryPath: string | AdmZip.IZipEntry, targetPath: string, maintainEntryPath?: boolean, overwrite?: boolean, keepOriginalPermission?: boolean, outFileName?: string): boolean; now extractEntryTo(entry: string |... npmjs.com - Signature changed
default.getEntries
Was getEntries(): AdmZip.IZipEntry[]; now getEntries(password?: string): AdmZip.IZipEntry[]. npmjs.com - Signature changed
default.readAsText
Was readAsText(fileName: string | AdmZip.IZipEntry, encoding?: string): string; now readAsText(entry: string | AdmZip.IZipEntry, encoding?: string): string. npmjs.com - Signature changed
default.readAsTextAsync
Was readAsTextAsync(fileName: string | AdmZip.IZipEntry, callback: (data: string, err: string) => void, encoding?: string): void; now readAsTextAsync(entry: string | AdmZip.IZipEntry, callback: (data: string, err?: string) => void... npmjs.com - Signature changed
default.readFileAsync
Was readFileAsync(entry: string | AdmZip.IZipEntry, callback: (data: Buffer | null, err: string) => void): void; now readFileAsync(entry: string | AdmZip.IZipEntry, callback: (data: Buffer | null, err?: string) => void): void. npmjs.com - Signature changed
default.test
Was test(password?: string | Buffer): boolean; now test(pass?: string | Buffer): boolean. npmjs.com - Signature changed
default.toBuffer
Was toBuffer(): Buffer<ArrayBuffer> toBuffer(onSuccess: (buffer: Buffer<ArrayBuffer>) => void, onFail?: (...args: any[]) => void, onItemStart?: (name: string) => void, onItemEnd?: (name: string) => void): void; now toBuffer(): Buffer... npmjs.com - Signature changed
default.toBufferPromise
Was toBufferPromise(): Promise<Buffer<ArrayBuffer>>; now toBufferPromise(): Promise<Buffer>. npmjs.com - Signature changed
default.writeZipPromise
Was writeZipPromise(targetFileName?: string, props?: {overwrite?: boolean; perm?: number}): Promise<boolean>; now writeZipPromise(targetFileName?: string, props?: {overwrite?: boolean; perm?: number}): Promise<void>. npmjs.com - Signature changed
InitOptions.fs
Was fs: null | typeof FS; now fs: unknown | null. npmjs.com - Signature changed
InitOptions.method
Was method: (typeof Constants)[keyof typeof Constants] | number; now method: number. npmjs.com - Signature changed
IZipEntry.getData
Was getData(): Buffer; now getData(pass?: string | Buffer): Buffer. npmjs.com - Signature changed
IZipEntry.getDataAsync
Was getDataAsync(callback: (data: Buffer, err: string) => void): void; now getDataAsync(callback: (data: Buffer, err?: string) => void, pass?: string | Buffer): void. npmjs.com - Signature changed
IZipEntry.header
Was readonly header: EntryHeader; now header: IZipEntryHeader. npmjs.com
adm-zip 0.5.0 breaking changes
- Signature changed
default.addFile
Was addFile(entryName: string, data: Buffer, comment?: string, attr?: number): void; now addFile(entryName: string, content: Buffer, comment?: string, attr?: number): AdmZip.IZipEntry. npmjs.com - Signature changed
default.addLocalFile
Was addLocalFile(localPath: string, zipPath?: string, zipName?: string): void; now addLocalFile(localPath: string, zipPath?: string, zipName?: string, comment?: string): void. npmjs.com - Signature changed
default.constructor
Was constructor(fileNameOrRawData?: string | Buffer); now constructor(fileNameOrRawData?: string | Buffer, options?: Partial<AdmZip.InitOptions>). npmjs.com - Signature changed
default.extractAllTo
Was extractAllTo(targetPath: string, overwrite?: boolean): void; now extractAllTo(targetPath: string, overwrite?: boolean, keepOriginalPermission?: boolean, password?: string | Buffer): void. npmjs.com - Signature changed
default.extractAllToAsync
Was extractAllToAsync(targetPath: string, overwrite?: boolean, callback?: (error: Error) => void): void; now extractAllToAsync(targetPath: string, overwrite?: boolean, keepOriginalPermission?: boolean, callback?: (error?: Error) => void)... npmjs.com - Signature changed
default.extractEntryTo
Was extractEntryTo(entryPath: string | AdmZip.IZipEntry, targetPath: string, maintainEntryPath?: boolean, overwrite?: boolean): boolean; now extractEntryTo(entryPath: string | AdmZip.IZipEntry, targetPath: string, maintainEntryPath?... npmjs.com - Signature changed
default.readAsTextAsync
Was readAsTextAsync(fileName: string | AdmZip.IZipEntry, callback: (data: string, err: string) => any, encoding?: string): void; now readAsTextAsync(fileName: string | AdmZip.IZipEntry, callback: (data: string, err: string) => void... npmjs.com - Signature changed
default.readFile
Was readFile(entry: string | AdmZip.IZipEntry): Buffer | null; now readFile(entry: string | AdmZip.IZipEntry, pass?: string | Buffer): Buffer | null. npmjs.com - Signature changed
default.readFileAsync
Was readFileAsync(entry: string | AdmZip.IZipEntry, callback: (data: Buffer | null, err: string) => any): void; now readFileAsync(entry: string | AdmZip.IZipEntry, callback: (data: Buffer | null, err: string) => void): void. npmjs.com - Signature changed
default.test
Was test(): boolean; now test(password?: string | Buffer): boolean. npmjs.com
And 2 more in this version. Sign up to see every change
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.