Skip to content

Commit

Permalink
deprecation(semver): deprecate ltr() and gtr() (denoland#4228)
Browse files Browse the repository at this point in the history
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
  • Loading branch information
3 people authored Feb 5, 2024
1 parent bcfec95 commit a6fe34b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion semver/gtr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ import type { Range, SemVer, SemVerRange } from "./types.ts";
import { rangeMax } from "./range_max.ts";
import { greaterThan } from "./greater_than.ts";

/** Checks to see if the version is greater than all possible versions of the range. */
/**
* Checks to see if the version is greater than all possible versions of the range.
* @deprecated (will be removed after 0.217.0) See
* {@link https://github.com/denoland/deno_std/issues/4273 | deno_std#4273}
* for details.
*/
export function gtr(
version: SemVer,
range: SemVerRange | Range,
Expand Down
7 changes: 6 additions & 1 deletion semver/ltr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ import type { Range, SemVer, SemVerRange } from "./types.ts";
import { lessThan } from "./less_than.ts";
import { rangeMin } from "./range_min.ts";

/** Less than range comparison */
/**
* Less than range comparison
* @deprecated (will be removed after 0.217.0) See
* {@link https://github.com/denoland/deno_std/issues/4273 | deno_std#4273}
* for details.
*/
export function ltr(
version: SemVer,
range: SemVerRange | Range,
Expand Down

0 comments on commit a6fe34b

Please sign in to comment.