---
title: "@types/diff 6.0.0 Breaking Changes on npm | Since.dev"
description: "What each @types/diff release removed, renamed or changed: 20 breaking changes in 1 version on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@types/diff
last_updated: 2026-12-04
---

# @types/diff breaking changes

@types/diff 6.0.0 (October 30, 2024) is its newest release with breaking changes, 20 of them. The first: Removed Hunk.linedelimiters. Every breaking API change we have recorded in @types/diff on npm: 20 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 `8.0.0`, released May 17, 2025. 

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

## @types/diff 6.0.0 breaking changes

@types/diff 6.0.0, released October 30, 2024: 20 breaking changes.

- **Removed** `Hunk.linedelimiters`  

Hunk.linedelimiters was removed in @types/diff 6.0.0 [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `Callback`  

Was type Callback = (err: undefined, value?: Change\[\]) => void; now type Callback\<T> = (value: T) => void. [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `CallbackOptions`  

Was interface CallbackOptions; now interface CallbackOptions\<T>. [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `CallbackOptions.callback`  

Was callback: Callback; now callback: Callback\<T>. [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `Change.added`  

Was added?: boolean | undefined; now added: boolean. [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `Change.removed`  

Was removed?: boolean | undefined; now removed: boolean. [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `Diff.castInput`  

Was castInput(value: any): any; now castInput(value: any, options: any): any. [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `Diff.diff`  

Was diff(oldString: string, newString: string, options?: Callback | (ArrayOptions\<any, any> & Partial\<CallbackOptions>)): Change\[\]; now diff(oldString: string, newString: string, options?: Callback\<Change\[\]> | (ArrayOptions\<any, any> &... [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `Diff.equals`  

Was equals(left: any, right: any): boolean; now equals(left: any, right: any, options: any): boolean. [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `Diff.join`  

Was join(chars: string\[\]): string; now join(tokens: string\[\]): string. [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `Diff.tokenize`  

Was tokenize(value: string): any; now tokenize(value: string, options: any): any. [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `diffChars`  

Was function diffChars(oldStr: string, newStr: string, options: Callback | (BaseOptions & CallbackOptions)): void; now function diffChars(oldStr: string, newStr: string, options: Callback\<Change\[\]> | (BaseOptions &... [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `diffCss`  

Was function diffCss(oldStr: string, newStr: string, options: Callback | (BaseOptions & CallbackOptions)): void; now function diffCss(oldStr: string, newStr: string, options: Callback\<Change\[\]> | (BaseOptions & CallbackOptions\<Change\[\]>))... [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `diffJson`  

Was function diffJson(oldObj: string | object, newObj: string | object, options: Callback | (JsonOptions & CallbackOptions)): void; now function diffJson(oldObj: string | object, newObj: string | object, options: Callback\<Change\[\]> |... [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `diffLines`  

Was function diffLines(oldStr: string, newStr: string, options: Callback | (LinesOptions & CallbackOptions)): void; now function diffLines(oldStr: string, newStr: string, options: Callback\<Change\[\]> | (LinesOptions &... [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `diffSentences`  

Was function diffSentences(oldStr: string, newStr: string, options: Callback | (BaseOptions & CallbackOptions)): void; now function diffSentences(oldStr: string, newStr: string, options: Callback\<Change\[\]> | (BaseOptions &... [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `diffTrimmedLines`  

Was function diffTrimmedLines(oldStr: string, newStr: string, options: Callback | (LinesOptions & CallbackOptions)): void; now function diffTrimmedLines(oldStr: string, newStr: string, options: Callback\<Change\[\]> | (LinesOptions &... [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `diffWords`  

Was function diffWords(oldStr: string, newStr: string, options: Callback | (WordsOptions & CallbackOptions)): void; now function diffWords(oldStr: string, newStr: string, options: Callback\<Change\[\]> | (WordsOptions &... [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `diffWordsWithSpace`  

Was function diffWordsWithSpace(oldStr: string, newStr: string, options: Callback | (WordsOptions & CallbackOptions)): void; now function diffWordsWithSpace(oldStr: string, newStr: string, options: Callback\<Change\[\]> | (WordsOptions &... [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)
- **Signature changed** `parsePatch`  

Was function parsePatch(diffStr: string, options?: {strict?: boolean | undefined}): ParsedDiff\[\]; now function parsePatch(uniDiff: string): ParsedDiff\[\]. [npmjs.com](https://www.npmjs.com/package/@types/diff/v/6.0.0)

## Related packages

- [@types/archiver](https://since.dev/packages/npm/@types/archiver.md)
- [@types/async-retry](https://since.dev/packages/npm/@types/async-retry.md)
- [@types/better-sqlite3](https://since.dev/packages/npm/@types/better-sqlite3.md)
- [@types/bootstrap](https://since.dev/packages/npm/@types/bootstrap.md)
- [@types/chai](https://since.dev/packages/npm/@types/chai.md)
- [@types/chrome](https://since.dev/packages/npm/@types/chrome.md)

## 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.
