---
title: "rotating-file-stream 4.0.0 Breaking Changes on npm"
description: "What each rotating-file-stream release removed, renamed or changed: 17 breaking changes in 1 version on npm, each with its source."
canonical_url: https://since.dev/packages/npm/rotating-file-stream
last_updated: 2026-12-04
---

# rotating-file-stream breaking changes

rotating-file-stream 4.0.0 (November 11, 2026) is its newest release with breaking changes, 17 of them. The first: Removed RotatingFileStreamError.code. Every breaking API change we have recorded in rotating-file-stream on npm: 17 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.0`, released November 11, 2026. [Source repository](https://github.com/iccicci/rotating-file-stream)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

## rotating-file-stream 4.0.0 breaking changes

rotating-file-stream 4.0.0, released November 11, 2026: 17 breaking changes.

- **Removed** `RotatingFileStreamError.code`  

RotatingFileStreamError.code was removed in rotating-file-stream 4.0.0 [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)
- **Removed** `RotatingFileStreamError.constructor`  

new RotatingFileStreamError() was removed in rotating-file-stream 4.0.0 [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)
- **Signature changed** `createStream`  

Was function createStream\<I extends string = string, MS extends string = string, RS extends string = string>(filename: string | Generator, options?: Options\<I, MS, RS>): RotatingFileStream; now function createStream\<I extends string =... [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)
- **Signature changed** `Generator`  

Was type Generator = (time: number | Date, index?: number) => string; now type Generator = ClassicalGenerator | StandardGenerator. [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)
- **Signature changed** `Options.compress`  

Was compress?: boolean | "gzip" | Compressor; now compress?: Compress. [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)
- **Signature changed** `RotatingFileStream._destroy`  

Was \_destroy(error: Error, callback: Callback): void; now \_destroy(error: Error | null, done: Callback): void. [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)
- **Signature changed** `RotatingFileStream._final`  

Was \_final(callback: Callback): void; now \_final(done: Callback): void. [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)
- **Signature changed** `RotatingFileStream._write`  

Was \_write(chunk: Buffer, encoding: BufferEncoding, callback: Callback): void; now \_write(chunk: Buffer, encoding: WriteEncoding, done: Callback): void. [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)
- **Signature changed** `RotatingFileStream._writev`  

Was \_writev(chunks: Chunk\[\], callback: Callback): void; now \_writev(chunks: Chunk\[\], done: Callback): void. [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)
- **Signature changed** `RotatingFileStream.addListener`  

Was addListener\<Event extends keyof RotatingFileStreamEvents>(event: Event, listener: RotatingFileStreamEvents\[Event\]): this; now addListener\<E extends keyof RotatingFileStreamEventMap>(event: E, listener: (...args... [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)
- **Signature changed** `RotatingFileStream.constructor`  

Was constructor(generator: Generator, options: Opts); now constructor(options: InternalOptions). [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)
- **Signature changed** `RotatingFileStream.emit`  

Was emit\<Event extends keyof RotatingFileStreamEvents>(event: Event, ...args: Parameters\<RotatingFileStreamEvents\[Event\]>): boolean; now emit\<E extends keyof RotatingFileStreamEventMap>(event: E, ...args: RotatingFileStreamEventMap\[E\])... [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)
- **Signature changed** `RotatingFileStream.on`  

Was on\<Event extends keyof RotatingFileStreamEvents>(event: Event, listener: RotatingFileStreamEvents\[Event\]): this; now on\<E extends keyof RotatingFileStreamEventMap>(event: E, listener: (...args: RotatingFileStreamEventMap\[E\]) => void)... [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)
- **Signature changed** `RotatingFileStream.once`  

Was once\<Event extends keyof RotatingFileStreamEvents>(event: Event, listener: RotatingFileStreamEvents\[Event\]): this; now once\<E extends keyof RotatingFileStreamEventMap>(event: E, listener: (...args: RotatingFileStreamEventMap\[E\]) =>... [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)
- **Signature changed** `RotatingFileStream.prependListener`  

Was prependListener\<Event extends keyof RotatingFileStreamEvents>(event: Event, listener: RotatingFileStreamEvents\[Event\]): this; now prependListener\<E extends keyof RotatingFileStreamEventMap>(event: E, listener: (...args... [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)
- **Signature changed** `RotatingFileStream.prependOnceListener`  

Was prependOnceListener\<Event extends keyof RotatingFileStreamEvents>(event: Event, listener: RotatingFileStreamEvents\[Event\]): this; now prependOnceListener\<E extends keyof RotatingFileStreamEventMap>(event: E, listener: (...args... [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)
- **Signature changed** `RotatingFileStream.removeListener`  

Was removeListener\<Event extends keyof RotatingFileStreamEvents>(event: Event, listener: RotatingFileStreamEvents\[Event\]): this; now removeListener\<E extends keyof RotatingFileStreamEventMap>(event: E, listener: (...args... [npmjs.com](https://www.npmjs.com/package/rotating-file-stream/v/4.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
