---
title: "ufo 1.6.4 Breaking Changes on npm | Since.dev"
description: "What each ufo release removed, renamed or changed: 39 breaking changes in 14 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/ufo
last_updated: 2026-12-04
---

# ufo breaking changes

ufo 1.6.4 (April 29, 2026) is its newest release with breaking changes. The first: Signature changed isNonEmptyURL. Every breaking API change we have recorded in ufo on npm: 39 breaking changes in 14 versions. Below, its 14 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `1.6.4`, released April 29, 2026. [Source repository](https://github.com/unjs/ufo)

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

- From [0.8.2](#v-0-8-2) to [1.6.4](#v-1-6-4): 36 breaking changes in 11 versions.
- From [0.7.11](#v-0-7-11) to [1.6.4](#v-1-6-4): 38 breaking changes in 13 versions.

## ufo 1.6.4 breaking changes

ufo 1.6.4, released April 29, 2026: 1 breaking change.

- **Signature changed** `isNonEmptyURL`  

Was function isNonEmptyURL(url: string): boolean; now function isNonEmptyURL(url: string): boolean | "". [npmjs.com](https://www.npmjs.com/package/ufo/v/1.6.4)

## ufo 1.6.2 breaking changes

ufo 1.6.2, released January 6, 2026: 3 breaking changes.

- **Behavior changed**  

The exports condition order was changed to prefer ESM, with default as fallback, which may alter which build is resolved. [github.com](https://github.com/unjs/ufo/releases/tag/v1.6.2)
- **Behavior changed** `parsePath`  

The parsePath return type was corrected; code relying on the previous incorrect type may need adjustment. [github.com](https://github.com/unjs/ufo/releases/tag/v1.6.2)
- **Signature changed** `parsePath`  

Was function parsePath(input?: string): ParsedURL; now function parsePath(input?: string): ParsedPath. [npmjs.com](https://www.npmjs.com/package/ufo/v/1.6.2)

## ufo 1.6.0 breaking changes

ufo 1.6.0, released April 7, 2025: 2 breaking changes.

- **Behavior changed** `parseQuery`  

parseQuery results are created with a null prototype, so inherited object properties are no longer present on the result. Code relying on prototype methods of the parsed query object must change. [github.com](https://github.com/unjs/ufo/releases/tag/v1.6.0)
- **Signature changed** `parseFilename`  

Was function parseFilename(input: string, {strict}: {strict: any;}): string | undefined; now function parseFilename(input?: string, opts?: {strict?: boolean;}): string | undefined. [npmjs.com](https://www.npmjs.com/package/ufo/v/1.6.0)

## ufo 1.5.0 breaking changes

ufo 1.5.0, released March 15, 2024: 1 breaking change.

- **Behavior changed** `withoutTrailingSlash`  

withoutTrailingSlash now takes the query string into account when removing a trailing slash. Check callers that pass URLs with query parameters. [github.com](https://github.com/unjs/ufo/releases/tag/v1.5.0)

## ufo 1.4.0 breaking changes

ufo 1.4.0, released February 6, 2024: 2 breaking changes.

- **Behavior changed** `encodeQueryValue`  

encodeQueryValue now percent-encodes slashes in its output, so code that depends on raw slashes in encoded query values will see different results. [github.com](https://github.com/unjs/ufo/releases/tag/v1.4.0)
- **Signature changed** `resolveURL`  

Was function resolveURL(base: string, ...input: string\[\]): string; now function resolveURL(base?: string, ...inputs: string\[\]): string. [npmjs.com](https://www.npmjs.com/package/ufo/v/1.4.0)

## ufo 1.3.2 breaking changes

ufo 1.3.2, released November 15, 2023: 3 breaking changes.

- **Signature changed** `hasTrailingSlash`  

Was function hasTrailingSlash(input?: string, queryParameters?: boolean): boolean; now function hasTrailingSlash(input?: string, respectQueryAndFragment?: boolean): boolean. [npmjs.com](https://www.npmjs.com/package/ufo/v/1.3.2)
- **Signature changed** `withoutTrailingSlash`  

Was function withoutTrailingSlash(input?: string, queryParameters?: boolean): string; now function withoutTrailingSlash(input?: string, respectQueryAndFragment?: boolean): string. [npmjs.com](https://www.npmjs.com/package/ufo/v/1.3.2)
- **Signature changed** `withTrailingSlash`  

Was function withTrailingSlash(input?: string, queryParameters?: boolean): string; now function withTrailingSlash(input?: string, respectQueryAndFragment?: boolean): string. [npmjs.com](https://www.npmjs.com/package/ufo/v/1.3.2)

## Older versions

8 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### ufo 1.3.0 breaking changes

ufo 1.3.0, released August 24, 2023: 1 breaking change.

- **Signature changed** `stringifyParsedURL`  

Was function stringifyParsedURL(parsed: ParsedURL): string; now function stringifyParsedURL(parsed: Partial\<ParsedURL>): string. [npmjs.com](https://www.npmjs.com/package/ufo/v/1.3.0)

### ufo 1.2.0 breaking changes

ufo 1.2.0, released July 29, 2023: 5 breaking changes.

- **Behavior changed** `parseQuery`  

parseQuery decodes space characters in query keys, so keys previously read with raw spaces or encoded forms may now parse differently. [github.com](https://github.com/unjs/ufo/releases/tag/v1.2.0)
- **Behavior changed** `stringifyQuery`  

stringifyQuery drops query entries with empty values from its output. Code that relied on empty values appearing in the query string must handle their absence. [github.com](https://github.com/unjs/ufo/releases/tag/v1.2.0)

And 3 more in this version.

### ufo 1.1.0 breaking changes

ufo 1.1.0, released February 16, 2023: 5 breaking changes.

- **Behavior changed**  

Square brackets and curly braces in query values are now percent-encoded, so query strings built by the package will look different than before. [github.com](https://github.com/unjs/ufo/blob/v1.1.0/CHANGELOG.md)
- **Behavior changed** `parseHost`  

The port value is now a string rather than a number, so code that compares or does arithmetic on the port must be updated. [github.com](https://github.com/unjs/ufo/blob/v1.1.0/CHANGELOG.md)

And 3 more in this version.

### ufo 1.0.1 breaking changes

ufo 1.0.1, released November 29, 2022: 3 breaking changes.

- **Signature changed** `encodeQueryItem`  

Was function encodeQueryItem(key: string, value: QueryValue): string; now function encodeQueryItem(key: string, value: QueryValue | QueryValue\[\]): string. [npmjs.com](https://www.npmjs.com/package/ufo/v/1.0.1)
- **Signature changed** `QueryObject`  

Was type QueryObject = Record\<string, QueryValue>; now type QueryObject = Record\<string, QueryValue | QueryValue\[\]>. [npmjs.com](https://www.npmjs.com/package/ufo/v/1.0.1)

And 1 more in this version.

### ufo 1.0.0 breaking changes

ufo 1.0.0, released November 14, 2022: 10 breaking changes.

- **Behavior changed** `withQuery`  

withQuery now drops query parameters whose value is undefined instead of keeping them. Code that relied on undefined values appearing in the output must handle their absence. [github.com](https://github.com/unjs/ufo/blob/v1.0.0/CHANGELOG.md)
- **Signature changed** `encodeQueryItem`  

Was function encodeQueryItem(key: string, val: QueryValue): string; now function encodeQueryItem(key: string, value: QueryValue): string. [npmjs.com](https://www.npmjs.com/package/ufo/v/1.0.0)

And 8 more in this version.

### ufo 0.8.2 breaking changes

ufo 0.8.2, released March 31, 2022: 1 breaking change.

- **Behavior changed** `encodeQueryItem`  

Boolean values passed to encodeQueryItem are now converted to strings instead of being dropped or mishandled, so code relying on the old output may see different query strings. [github.com](https://github.com/unjs/ufo/blob/v0.8.2/CHANGELOG.md)

### ufo 0.8.0 breaking changes

ufo 0.8.0, released March 15, 2022: 1 breaking change.

- **Behavior changed** `hasProtocol`  

hasProtocol now also matches additional protocols, so inputs it previously treated as having no protocol may now return true. Review callers that depend on the old result. [github.com](https://github.com/unjs/ufo/blob/v0.8.0/CHANGELOG.md)

### ufo 0.7.11 breaking changes

ufo 0.7.11, released February 25, 2022: 1 breaking change.

- **Signature changed** `isNonEmptyURL`  

Was function isNonEmptyURL(url: string): boolean | ""; now function isNonEmptyURL(url: string): boolean. [npmjs.com](https://www.npmjs.com/package/ufo/v/0.7.11)

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