Skip to main content

Class: UpdateState

@pvm/update.UpdateState

Constructors

constructor

• new UpdateState(repo, changedContext, updateContext)

Parameters

NameType
repoRepository
changedContextChangedContext
updateContextHintsContext

Defined in

packages/pvm-update/lib/update-state.ts:100

Properties

_appliedPackages

• Protected _appliedPackages: ImmutablePkgSet<AppliedPkg>

Defined in

packages/pvm-update/lib/update-state.ts:98


_processing

• Protected _processing: boolean = true

Defined in

packages/pvm-update/lib/update-state.ts:97


alwaysChangedPackages

• alwaysChangedPackages: ImmutablePkgSet<Pkg>

Defined in

packages/pvm-update/lib/update-state.ts:90


changedContext

• changedContext: ChangedContext

Defined in

packages/pvm-update/lib/update-state.ts:76


dependantOfMap

• dependantOfMap: Map<Pkg, Pkg[]>

Defined in

packages/pvm-update/lib/update-state.ts:87


newDeps

• newDeps: Map<Pkg, Map<string, string>>

Defined in

packages/pvm-update/lib/update-state.ts:88


newPackages

• newPackages: PkgSet<Pkg>

Defined in

packages/pvm-update/lib/update-state.ts:89


newVersions

• newVersions: Map<Pkg, string>

Defined in

packages/pvm-update/lib/update-state.ts:80


releaseFilesMap

• releaseFilesMap: Map<Pkg, string>

Defined in

packages/pvm-update/lib/update-state.ts:82


releaseNotes

• releaseNotes: Map<Pkg, string>

Defined in

packages/pvm-update/lib/update-state.ts:86


repo

• repo: Repository

Defined in

packages/pvm-update/lib/update-state.ts:75


updateContext

• updateContext: HintsContext

Defined in

packages/pvm-update/lib/update-state.ts:77


updateDepsFor

• updateDepsFor: Iterable<Pkg>

Defined in

packages/pvm-update/lib/update-state.ts:96


updateReasonMap

• updateReasonMap: Map<Pkg, UpdateReasonType>

Defined in

packages/pvm-update/lib/update-state.ts:84


wantedReleaseTypes

• wantedReleaseTypes: Map<Pkg, PvmReleaseType>

Defined in

packages/pvm-update/lib/update-state.ts:94

Accessors

isSomethingForRelease

• get isSomethingForRelease(): boolean

Returns

boolean

Defined in

packages/pvm-update/lib/update-state.ts:245

Methods

aboutToChange

â–¸ aboutToChange(): IterableIterator<Pkg>

Returns

IterableIterator<Pkg>

Defined in

packages/pvm-update/lib/update-state.ts:112


calcGroupReleaseType

â–¸ calcGroupReleaseType(pkgGroup, baselineVersion): null | PvmReleaseType

Parameters

NameType
pkgGroupImmutablePkgSet<Pkg>
baselineVersionstring

Returns

null | PvmReleaseType

Defined in

packages/pvm-update/lib/update-state.ts:145


finalize

â–¸ finalize(): Promise<UpdateState>

Returns

Promise<UpdateState>

Defined in

packages/pvm-update/lib/update-state.ts:193


getBaselineVersion

â–¸ getBaselineVersion(pkgGroup): string

Parameters

NameType
pkgGroupIterable<Pkg>

Returns

string

Defined in

packages/pvm-update/lib/update-state.ts:116


getEffectiveReleaseType

â–¸ getEffectiveReleaseType(pkg): null | SemverReleaseType

Parameters

NameType
pkgPkg

Returns

null | SemverReleaseType

Defined in

packages/pvm-update/lib/update-state.ts:214


getLikelyReleaseTypeFor

â–¸ getLikelyReleaseTypeFor(pkg): null | SemverReleaseType

Parameters

NameType
pkgPkg

Returns

null | SemverReleaseType

Defined in

packages/pvm-update/lib/update-state.ts:120


getLikelyVersionFor

â–¸ getLikelyVersionFor(pkg): null | string

Parameters

NameType
pkgPkg

Returns

null | string

Defined in

packages/pvm-update/lib/update-state.ts:128


getNewVersionOrCurrent

â–¸ getNewVersionOrCurrent(pkg): string

Parameters

NameType
pkgPkg

Returns

string

Defined in

packages/pvm-update/lib/update-state.ts:222


getReleasePackages

â–¸ getReleasePackages(): Map<Pkg, AppliedPkg>

Returns

Map<Pkg, AppliedPkg>

Defined in

packages/pvm-update/lib/update-state.ts:234


getUpdateReason

â–¸ getUpdateReason(pkgName): undefined | UpdateReasonType

Parameters

NameType
pkgNamestring

Returns

undefined | UpdateReasonType

Defined in

packages/pvm-update/lib/update-state.ts:250


hasNewVersionOrReleaseType

â–¸ hasNewVersionOrReleaseType(pkg): boolean

Parameters

NameType
pkgPkg

Returns

boolean

Defined in

packages/pvm-update/lib/update-state.ts:181


hasSameVersion

â–¸ hasSameVersion(pkg): boolean

Parameters

NameType
pkgPkg

Returns

boolean

Defined in

packages/pvm-update/lib/update-state.ts:226


isPkgChanged

â–¸ isPkgChanged(pkgName): boolean

Parameters

NameType
pkgNamestring

Returns

boolean

Defined in

packages/pvm-update/lib/update-state.ts:257


isPkgChangedOrNotFound

â–¸ isPkgChangedOrNotFound(pkgName, notFoundValue): boolean

Parameters

NameType
pkgNamestring
notFoundValueboolean

Returns

boolean

Defined in

packages/pvm-update/lib/update-state.ts:265


pvmInc

â–¸ pvmInc(pkg, releaseType): null | string

Parameters

NameType
pkgPkg
releaseTypePvmReleaseType

Returns

null | string

Defined in

packages/pvm-update/lib/update-state.ts:185


wantedToSemver

â–¸ wantedToSemver(pkg): null | SemverReleaseType

Parameters

NameType
pkgPkg

Returns

null | SemverReleaseType

Defined in

packages/pvm-update/lib/update-state.ts:136