Skip to content

Commit dfbef91

Browse files
Copiloticlanton
andauthored
Add deprecated minimumReleaseAge getter redirecting to minimumReleaseAgeMinutes
Agent-Logs-Url: https://github.com/microsoft/rushstack/sessions/07a558e7-f3d4-48ad-bc91-096719653f7b Co-authored-by: iclanton <5010588+iclanton@users.noreply.github.com>
1 parent bb86359 commit dfbef91

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

common/reviews/api/rush-lib.api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,8 @@ export class PnpmOptionsConfiguration extends PackageManagerOptionsConfiguration
11911191
static loadFromJsonFileOrThrow(jsonFilePath: string, commonTempFolder: string): PnpmOptionsConfiguration;
11921192
// @internal (undocumented)
11931193
static loadFromJsonObject(json: _IPnpmOptionsJson, commonTempFolder: string): PnpmOptionsConfiguration;
1194+
// @deprecated (undocumented)
1195+
get minimumReleaseAge(): number | undefined;
11941196
readonly minimumReleaseAgeExclude: string[] | undefined;
11951197
readonly minimumReleaseAgeMinutes: number | undefined;
11961198
readonly pnpmLockfilePolicies: IPnpmLockfilePolicies | undefined;

libraries/rush-lib/src/logic/pnpm/PnpmOptionsConfiguration.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,13 @@ export class PnpmOptionsConfiguration extends PackageManagerOptionsConfiguration
314314
*/
315315
public readonly minimumReleaseAgeMinutes: number | undefined;
316316

317+
/**
318+
* @deprecated Use {@link PnpmOptionsConfiguration.minimumReleaseAgeMinutes} instead.
319+
*/
320+
public get minimumReleaseAge(): number | undefined {
321+
return this.minimumReleaseAgeMinutes;
322+
}
323+
317324
/**
318325
* List of package names or patterns that are excluded from the minimumReleaseAge check.
319326
* These packages will always install the newest version immediately, even if minimumReleaseAgeMinutes is set.

0 commit comments

Comments
 (0)