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

# diff breaking changes

Every breaking API change we have recorded in diff on npm: 5 breaking changes in 1 version. Below are its newest version, removals and renames first, each with its source.

Newest change April 13, 2026

## 9.0.0

5 breaking changes, first published April 13, 2026.

- **Removed**  

The package no longer supports ES5 environments. Users who need ES5 must stay on version 8. [github.com](https://github.com/kpdecker/jsdiff/blob/v9.0.0/release-notes.md)
- **Behavior changed** `formatPatch`  

If oldFileName or newFileName is undefined, formatPatch now omits the file headers instead of writing the word undefined. [github.com](https://github.com/kpdecker/jsdiff/blob/v9.0.0/release-notes.md)
- **Behavior changed** `parsePatch`  

A patch with only a --- header or only a +++ header now causes parsePatch to throw. Patches with both headers or no headers are still accepted. [github.com](https://github.com/kpdecker/jsdiff/blob/v9.0.0/release-notes.md)
- **Signature changed** `StructuredPatch.newFileName`  

The oldFileName and newFileName fields are typed string | undefined instead of string, so code relying on string-only types may need to handle undefined. [npmjs.com](https://www.npmjs.com/package/diff/v/9.0.0)
- **Signature changed** `StructuredPatch.oldFileName`  

The oldFileName and newFileName fields are typed string | undefined instead of string, so code relying on string-only types may need to handle undefined. [npmjs.com](https://www.npmjs.com/package/diff/v/9.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, not only the newest. On Team and up, a fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous management.

Scan a public repository now, or give your agent one line.

### See how out of date your code is.

[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`

---

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