@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
On this page
Latest version 8.0.0, released May 17, 2025.
Packages on npm run on Node.js. Node.js end of life dates.
@types/diff 6.0.0 breaking changes
- Removed
Hunk.linedelimiters
Hunk.linedelimiters was removed in @types/diff 6.0.0 npmjs.com - Signature changed
Callback
Was type Callback = (err: undefined, value?: Change[]) => void; now type Callback<T> = (value: T) => void. npmjs.com - Signature changed
CallbackOptions
Was interface CallbackOptions; now interface CallbackOptions<T>. npmjs.com - Signature changed
CallbackOptions.callback
Was callback: Callback; now callback: Callback<T>. npmjs.com - Signature changed
Change.added
Was added?: boolean | undefined; now added: boolean. npmjs.com - Signature changed
Change.removed
Was removed?: boolean | undefined; now removed: boolean. npmjs.com - Signature changed
Diff.castInput
Was castInput(value: any): any; now castInput(value: any, options: any): any. npmjs.com - 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 - Signature changed
Diff.equals
Was equals(left: any, right: any): boolean; now equals(left: any, right: any, options: any): boolean. npmjs.com - Signature changed
Diff.join
Was join(chars: string[]): string; now join(tokens: string[]): string. npmjs.com - Signature changed
Diff.tokenize
Was tokenize(value: string): any; now tokenize(value: string, options: any): any. npmjs.com - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - Signature changed
parsePatch
Was function parsePatch(diffStr: string, options?: {strict?: boolean | undefined}): ParsedDiff[]; now function parsePatch(uniDiff: string): ParsedDiff[]. npmjs.com
Related packages
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.