Class: UpdateState
@pvm/update.UpdateState
Constructors
constructor
• new UpdateState(repo
, changedContext
, updateContext
)
Parameters
Name | Type |
---|---|
repo | Repository |
changedContext | ChangedContext |
updateContext | HintsContext |
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
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
Name | Type |
---|---|
pkgGroup | ImmutablePkgSet <Pkg > |
baselineVersion | string |
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
Name | Type |
---|---|
pkgGroup | Iterable <Pkg > |
Returns
string
Defined in
packages/pvm-update/lib/update-state.ts:116
getEffectiveReleaseType
â–¸ getEffectiveReleaseType(pkg
): null
| SemverReleaseType
Parameters
Name | Type |
---|---|
pkg | Pkg |
Returns
null
| SemverReleaseType
Defined in
packages/pvm-update/lib/update-state.ts:214
getLikelyReleaseTypeFor
â–¸ getLikelyReleaseTypeFor(pkg
): null
| SemverReleaseType
Parameters
Name | Type |
---|---|
pkg | Pkg |
Returns
null
| SemverReleaseType
Defined in
packages/pvm-update/lib/update-state.ts:120
getLikelyVersionFor
â–¸ getLikelyVersionFor(pkg
): null
| string
Parameters
Name | Type |
---|---|
pkg | Pkg |
Returns
null
| string
Defined in
packages/pvm-update/lib/update-state.ts:128
getNewVersionOrCurrent
â–¸ getNewVersionOrCurrent(pkg
): string
Parameters
Name | Type |
---|---|
pkg | Pkg |
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
Name | Type |
---|---|
pkgName | string |
Returns
undefined
| UpdateReasonType
Defined in
packages/pvm-update/lib/update-state.ts:250
hasNewVersionOrReleaseType
â–¸ hasNewVersionOrReleaseType(pkg
): boolean
Parameters
Name | Type |
---|---|
pkg | Pkg |
Returns
boolean
Defined in
packages/pvm-update/lib/update-state.ts:181
hasSameVersion
â–¸ hasSameVersion(pkg
): boolean
Parameters
Name | Type |
---|---|
pkg | Pkg |
Returns
boolean
Defined in
packages/pvm-update/lib/update-state.ts:226
isPkgChanged
â–¸ isPkgChanged(pkgName
): boolean
Parameters
Name | Type |
---|---|
pkgName | string |
Returns
boolean
Defined in
packages/pvm-update/lib/update-state.ts:257
isPkgChangedOrNotFound
â–¸ isPkgChangedOrNotFound(pkgName
, notFoundValue
): boolean
Parameters
Name | Type |
---|---|
pkgName | string |
notFoundValue | boolean |
Returns
boolean
Defined in
packages/pvm-update/lib/update-state.ts:265
pvmInc
â–¸ pvmInc(pkg
, releaseType
): null
| string
Parameters
Name | Type |
---|---|
pkg | Pkg |
releaseType | PvmReleaseType |
Returns
null
| string
Defined in
packages/pvm-update/lib/update-state.ts:185
wantedToSemver
â–¸ wantedToSemver(pkg
): null
| SemverReleaseType
Parameters
Name | Type |
---|---|
pkg | Pkg |
Returns
null
| SemverReleaseType