From 6935a0cdd10add8cc4ad85e5dc45397356b92e07 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 1 Feb 2024 16:33:16 +1100 Subject: [PATCH] deprecation(semver): postpone removals to 0.215.0 (#4257) --- semver/comparator_format.ts | 2 +- semver/comparator_intersects.ts | 2 +- semver/comparator_max.ts | 2 +- semver/comparator_min.ts | 2 +- semver/eq.ts | 2 +- semver/gt.ts | 2 +- semver/gte.ts | 2 +- semver/is_comparator.ts | 2 +- semver/lt.ts | 2 +- semver/lte.ts | 2 +- semver/neq.ts | 2 +- semver/parse_comparator.ts | 2 +- semver/range_format.ts | 2 +- semver/sort.ts | 2 +- semver/test_comparator.ts | 2 +- semver/try_parse_comparator.ts | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/semver/comparator_format.ts b/semver/comparator_format.ts index ec37f3d5698d..00ed63411c9a 100644 --- a/semver/comparator_format.ts +++ b/semver/comparator_format.ts @@ -8,7 +8,7 @@ import { format } from "./format.ts"; * @param comparator * @returns A string representation of the comparator * - * @deprecated (will be removed in 0.214.0) Use {@linkcode SemVerRange} instead of {@linkcode Comparator} and {@linkcode formatRange} for formatting it. + * @deprecated (will be removed in 0.215.0) Use {@linkcode SemVerRange} instead of {@linkcode Comparator} and {@linkcode formatRange} for formatting it. */ export function comparatorFormat(comparator: Comparator): string { const { semver, operator } = comparator; diff --git a/semver/comparator_intersects.ts b/semver/comparator_intersects.ts index 6f7deb4c7eb8..97d81dea4005 100644 --- a/semver/comparator_intersects.ts +++ b/semver/comparator_intersects.ts @@ -10,7 +10,7 @@ import { comparatorMax } from "./comparator_max.ts"; * @param c1 The right side comparator * @returns True if any part of the comparators intersect * - * @deprecated (will be removed in 0.214.0) Use {@linkcode rangeIntersects} instead. + * @deprecated (will be removed in 0.215.0) Use {@linkcode rangeIntersects} instead. */ export function comparatorIntersects( c0: Comparator, diff --git a/semver/comparator_max.ts b/semver/comparator_max.ts index 28823617ae6d..b2cbc99bd616 100644 --- a/semver/comparator_max.ts +++ b/semver/comparator_max.ts @@ -9,7 +9,7 @@ import { ANY, INVALID, MAX } from "./constants.ts"; * an out of range semver will be returned. * @returns the version, the MAX version or the next smallest patch version * - * @deprecated (will be removed in 0.214.0) Use {@linkcode rangeMax} instead. + * @deprecated (will be removed in 0.215.0) Use {@linkcode rangeMax} instead. */ export function comparatorMax(semver: SemVer, operator: Operator): SemVer { if (semver === ANY) { diff --git a/semver/comparator_min.ts b/semver/comparator_min.ts index 76787655e373..7e9a0f66fc23 100644 --- a/semver/comparator_min.ts +++ b/semver/comparator_min.ts @@ -10,7 +10,7 @@ import { increment } from "./increment.ts"; * @param operator The operator of the comparator * @returns The minimum valid semantic version * - * @deprecated (will be removed in 0.214.0) Use {@linkcode rangeMin} instead. + * @deprecated (will be removed in 0.215.0) Use {@linkcode rangeMin} instead. */ export function comparatorMin(semver: SemVer, operator: Operator): SemVer { if (semver === ANY) { diff --git a/semver/eq.ts b/semver/eq.ts index a1350c7530b7..44818fd89edc 100644 --- a/semver/eq.ts +++ b/semver/eq.ts @@ -5,7 +5,7 @@ import { SemVer } from "./types.ts"; /** * Returns `true` if they're logically equivalent, even if they're not the exact same version object. * - * @deprecated (will be removed after 0.213.0) Use {@linkcode equals} instead. + * @deprecated (will be removed in 0.215.0) Use {@linkcode equals} instead. */ export function eq(s0: SemVer, s1: SemVer): boolean { return equals(s0, s1); diff --git a/semver/gt.ts b/semver/gt.ts index 8782f6b3fcda..7a030737bb80 100644 --- a/semver/gt.ts +++ b/semver/gt.ts @@ -6,7 +6,7 @@ import { SemVer } from "./types.ts"; /** * Greater than comparison * - * @deprecated (will be removed after 0.213.0) Use {@linkcode greaterThan} instead. + * @deprecated (will be removed in 0.215.0) Use {@linkcode greaterThan} instead. */ export function gt(s0: SemVer, s1: SemVer): boolean { return greaterThan(s0, s1); diff --git a/semver/gte.ts b/semver/gte.ts index 07c0b37101fd..5f633a0243b7 100644 --- a/semver/gte.ts +++ b/semver/gte.ts @@ -6,7 +6,7 @@ import { SemVer } from "./types.ts"; /** * Greater than or equal to comparison * - * @deprecated (will be removed after 0.213.0) Use {@linkcode greaterOrEqual} instead. + * @deprecated (will be removed in 0.215.0) Use {@linkcode greaterOrEqual} instead. */ export function gte(s0: SemVer, s1: SemVer): boolean { return greaterOrEqual(s0, s1); diff --git a/semver/is_comparator.ts b/semver/is_comparator.ts index 7509dbf6eec3..9c959b675d47 100644 --- a/semver/is_comparator.ts +++ b/semver/is_comparator.ts @@ -14,7 +14,7 @@ import { ALL, NONE } from "./constants.ts"; * @param value The value to check if its a Comparator * @returns True if the object is a Comparator otherwise false * - * @deprecated (will be removed in 0.214.0) Use {@linkcode isSemVerRange} instead. + * @deprecated (will be removed in 0.215.0) Use {@linkcode isSemVerRange} instead. */ export function isComparator(value: unknown): value is Comparator { if ( diff --git a/semver/lt.ts b/semver/lt.ts index 903c76ab0b2d..77b3592f998a 100644 --- a/semver/lt.ts +++ b/semver/lt.ts @@ -6,7 +6,7 @@ import { SemVer } from "./types.ts"; /** * Less than comparison * - * @deprecated (will be removed after 0.213.0) Use {@linkcode lessThan} instead. + * @deprecated (will be removed in 0.215.0) Use {@linkcode lessThan} instead. */ export function lt(s0: SemVer, s1: SemVer): boolean { return lessThan(s0, s1); diff --git a/semver/lte.ts b/semver/lte.ts index 894e8293a37e..69130f4c5dcf 100644 --- a/semver/lte.ts +++ b/semver/lte.ts @@ -6,7 +6,7 @@ import { SemVer } from "./types.ts"; /** * Less than or equal to comparison * - * @deprecated (will be removed after 0.213.0) Use {@linkcode lessOrEqual} instead. + * @deprecated (will be removed in 0.215.0) Use {@linkcode lessOrEqual} instead. */ export function lte(s0: SemVer, s1: SemVer): boolean { return lessOrEqual(s0, s1); diff --git a/semver/neq.ts b/semver/neq.ts index 13a73ad9f3c7..a00ff6533f1c 100644 --- a/semver/neq.ts +++ b/semver/neq.ts @@ -6,7 +6,7 @@ import { SemVer } from "./types.ts"; /** * Not equal comparison * - * @deprecated (will be removed after 0.213.0) Use {@linkcode notEquals} instead. + * @deprecated (will be removed in 0.215.0) Use {@linkcode notEquals} instead. */ export function neq(s0: SemVer, s1: SemVer): boolean { return notEquals(s0, s1); diff --git a/semver/parse_comparator.ts b/semver/parse_comparator.ts index c0094abbe1be..e16a86615845 100644 --- a/semver/parse_comparator.ts +++ b/semver/parse_comparator.ts @@ -22,7 +22,7 @@ type REGEXP_GROUPS = { * @param comparator * @returns A valid Comparator * - * @deprecated (will be removed in 0.214.0) Use {@linkcode parseRange} instead. + * @deprecated (will be removed in 0.215.0) Use {@linkcode parseRange} instead. */ export function parseComparator(comparator: string): Comparator { const match = comparator.match(COMPARATOR_REGEXP); diff --git a/semver/range_format.ts b/semver/range_format.ts index 73db5b555ce3..7dd4c6ad6e32 100644 --- a/semver/range_format.ts +++ b/semver/range_format.ts @@ -9,7 +9,7 @@ import { Range, SemVerRange } from "./types.ts"; * @param range The range to format * @returns A string representation of the range * - * @deprecated (will be removed after 0.213.0) Use {@linkcode formatRange} instead. + * @deprecated (will be removed in 0.215.0) Use {@linkcode formatRange} instead. */ export function rangeFormat(range: SemVerRange | Range): string { return formatRange(range); diff --git a/semver/sort.ts b/semver/sort.ts index 8792193e95f2..d07815a57c09 100644 --- a/semver/sort.ts +++ b/semver/sort.ts @@ -5,7 +5,7 @@ import { compare } from "./compare.ts"; /** * 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. + * @deprecated (will be removed in 0.215.0) Use `list.sort(compare)` with {@linkcode compare} instead. */ export function sort( list: SemVer[], diff --git a/semver/test_comparator.ts b/semver/test_comparator.ts index 7835962b6804..eb7d2a2f1bea 100644 --- a/semver/test_comparator.ts +++ b/semver/test_comparator.ts @@ -13,7 +13,7 @@ import { neq } from "./neq.ts"; * @param comparator The comparator * @returns True if the version is within the comparators set otherwise false * - * @deprecated (will be removed in 0.214.0) Use {@linkcode testRange} instead. + * @deprecated (will be removed in 0.215.0) Use {@linkcode testRange} instead. */ export function testComparator( version: SemVer, diff --git a/semver/try_parse_comparator.ts b/semver/try_parse_comparator.ts index f9309fce9dfd..c6a9d4874695 100644 --- a/semver/try_parse_comparator.ts +++ b/semver/try_parse_comparator.ts @@ -7,7 +7,7 @@ import { parseComparator } from "./parse_comparator.ts"; * @param comparator * @returns A valid Comparator or undefined * - * @deprecated (will be removed in 0.214.0) Use {@linkcode tryParseRange} instead. + * @deprecated (will be removed in 0.215.0) Use {@linkcode tryParseRange} instead. */ export function tryParseComparator( comparator: string,