Skip to content

Commit

Permalink
deprecation(semver): deprecate sort() (#4098)
Browse files Browse the repository at this point in the history
  • Loading branch information
timreichen authored Jan 5, 2024
1 parent 032e57c commit dba0e31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion semver/sort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
import type { SemVer } from "./types.ts";
import { compare } from "./compare.ts";

/** Sorts a list of semantic versions in ascending order. */
/**
* Sorts a list of semantic versions in ascending order.
*
* @deprecated (will be removed after 0.214.0) Use `list.sort(compare)` with {@linkcode compare} instead.
*/
export function sort(
list: SemVer[],
): SemVer[] {
Expand Down

0 comments on commit dba0e31

Please sign in to comment.