# What changed in os-name

> 4 changes in os-name 5 to 7 from its official release notes, upgrade guides and advisories: 2 breaking. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/os-name/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## os-name 7

### Breaking changes

- Node.js 20 is now required to use the package. (3.0.0 … 7.0.0) — [release notes](https://github.com/sindresorhus/os-name/releases/tag/v7.0.0), [release notes](https://github.com/sindresorhus/os-name/releases/tag/v3.0.0), [release notes](https://github.com/sindresorhus/os-name/releases/tag/v4.0.0), [release notes](https://github.com/sindresorhus/os-name/releases/tag/v5.0.0), [release notes](https://github.com/sindresorhus/os-name/releases/tag/v6.0.0)

### Behavior and default changes

- Uses the Linux distro name when available. (7.0.0) — [release notes](https://github.com/sindresorhus/os-name/releases/tag/v7.0.0)

### Fixes and other changes

- The type declaration now accepts a platform without a release. (7.0.1) — [release notes](https://github.com/sindresorhus/os-name/releases/tag/v7.0.1)

## os-name 5

### Breaking changes

- The package is now pure ESM, changing how developers import and load it. (5.0.0) — [release notes](https://github.com/sindresorhus/os-name/releases/tag/v5.0.0)
