ufo breaking changes
Updated December 4, 2026
On this page
Latest version 1.6.4, released April 29, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 0.8.2 to 1.6.4: 36 breaking changes in 11 versions.
- From 0.7.11 to 1.6.4: 38 breaking changes in 13 versions.
ufo 1.6.4 breaking changes
- Signature changed
isNonEmptyURL
Was function isNonEmptyURL(url: string): boolean; now function isNonEmptyURL(url: string): boolean | "". npmjs.com
ufo 1.6.2 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 - Behavior changed
parsePath
The parsePath return type was corrected; code relying on the previous incorrect type may need adjustment. github.com - Signature changed
parsePath
Was function parsePath(input?: string): ParsedURL; now function parsePath(input?: string): ParsedPath. npmjs.com
ufo 1.6.0 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 - 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
ufo 1.5.0 breaking changes
- 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
ufo 1.4.0 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 - Signature changed
resolveURL
Was function resolveURL(base: string, ...input: string[]): string; now function resolveURL(base?: string, ...inputs: string[]): string. npmjs.com
ufo 1.3.2 breaking changes
- Signature changed
hasTrailingSlash
Was function hasTrailingSlash(input?: string, queryParameters?: boolean): boolean; now function hasTrailingSlash(input?: string, respectQueryAndFragment?: boolean): boolean. npmjs.com - Signature changed
withoutTrailingSlash
Was function withoutTrailingSlash(input?: string, queryParameters?: boolean): string; now function withoutTrailingSlash(input?: string, respectQueryAndFragment?: boolean): string. npmjs.com - Signature changed
withTrailingSlash
Was function withTrailingSlash(input?: string, queryParameters?: boolean): string; now function withTrailingSlash(input?: string, respectQueryAndFragment?: boolean): string. npmjs.com
Older versions
8 older versions, each with its first changes. Sign up to see every change
Show 8 older versions
ufo 1.3.0 breaking changes
- Signature changed
stringifyParsedURL
Was function stringifyParsedURL(parsed: ParsedURL): string; now function stringifyParsedURL(parsed: Partial<ParsedURL>): string. npmjs.com
ufo 1.2.0 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 - 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
And 3 more in this version.
ufo 1.1.0 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 - 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
And 3 more in this version.
ufo 1.0.1 breaking changes
- Signature changed
encodeQueryItem
Was function encodeQueryItem(key: string, value: QueryValue): string; now function encodeQueryItem(key: string, value: QueryValue | QueryValue[]): string. npmjs.com - Signature changed
QueryObject
Was type QueryObject = Record<string, QueryValue>; now type QueryObject = Record<string, QueryValue | QueryValue[]>. npmjs.com
And 1 more in this version.
ufo 1.0.0 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 - Signature changed
encodeQueryItem
Was function encodeQueryItem(key: string, val: QueryValue): string; now function encodeQueryItem(key: string, value: QueryValue): string. npmjs.com
And 8 more in this version.
ufo 0.8.2 breaking changes
- 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
ufo 0.8.0 breaking changes
- 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
ufo 0.7.11 breaking changes
- Signature changed
isNonEmptyURL
Was function isNonEmptyURL(url: string): boolean | ""; now function isNonEmptyURL(url: string): boolean. npmjs.com
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.