Skip to content

Commit

Permalink
deprecation(semver): deprecate reverseSort() (denoland#4280)
Browse files Browse the repository at this point in the history
* initial commit

* update
  • Loading branch information
timreichen authored Feb 7, 2024
1 parent 897b86d commit 8623f4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion semver/reverse_sort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import type { SemVer } from "./types.ts";
import { compare } from "./compare.ts";

/** Sorts a list of semantic versions in descending order. */
/**
* Sorts a list of semantic versions in descending order.
* @deprecated (will be removed in 0.217.0) Use `versions.sort((a, b) => compare(b, a))` instead.
*/
export function reverseSort(
versions: SemVer[],
): SemVer[] {
Expand Down

0 comments on commit 8623f4b

Please sign in to comment.