# What changed in url-join

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

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

## url-join 5

### Breaking changes

- The package is distributed as ECMAScript modules; support for other module formats has been dropped. (5.0.0) — [release notes](https://github.com/jfromaniello/url-join/releases/tag/v5.0.0)

### Performance

- The NPM package size has been reduced. (5.0.0) — [release notes](https://github.com/jfromaniello/url-join/releases/tag/v5.0.0)

## url-join 2

### Behavior and default changes

- Adds support for the file protocol when joining URLs. (2.0.0) — [release notes](https://github.com/jfromaniello/url-join/blob/HEAD/CHANGELOG.md)

### Fixes and other changes

- Fixes the split logic for files. (2.0.0) — [release notes](https://github.com/jfromaniello/url-join/blob/HEAD/CHANGELOG.md)
