Skip to content

Commit

Permalink
fix: deprecate url utility methods
Browse files Browse the repository at this point in the history
  • Loading branch information
penovicp committed Jul 30, 2024
1 parent 91493bb commit bbbf3d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const localhostDomainRE = /^localhost[:?\d]*(?:[^:?\d]\S*)?$/;
const nonLocalhostDomainRE = /^[^\s.]+\.\S{2,}$/;

/**
* @deprecated
*
* Loosely validate a URL `string`.
*
* @param {string} s - The URL to check for
Expand Down Expand Up @@ -55,6 +57,8 @@ export function isUrl(s?: string): boolean {
}

/**
* @deprecated
*
* Builds a URL using the provided base URL, default path, and optional URL or path.
*
* @param {string} baseUrl - The base URL of the URL being built.
Expand Down

0 comments on commit bbbf3d8

Please sign in to comment.