Skip to main content

Class: ChangedContext

@pvm/update.ChangedContext

Implements

Constructors

constructor

• new ChangedContext(changedFiles, options, derivatives)

Parameters

NameType
changedFilesChangedFiles
optionsChangedContextOptions
derivativesChangedContextAsyncDerivatives

Defined in

packages/pvm-update/lib/changed-context.ts:50

Properties

changedFiles

• changedFiles: ChangedFiles

Defined in

packages/pvm-update/lib/changed-context.ts:39


commits

• commits: Commit[]

Implementation of

ChangedContextState.commits

Defined in

packages/pvm-update/lib/changed-context.ts:36


options

• options: ChangedContextOptions

Defined in

packages/pvm-update/lib/changed-context.ts:41


packages

• packages: ImmutablePkgSet<Pkg>

Implementation of

ChangedContextState.packages

Defined in

packages/pvm-update/lib/changed-context.ts:37


prevPackages

• prevPackages: ImmutablePkgSet<Pkg>

Defined in

packages/pvm-update/lib/changed-context.ts:38

Accessors

files

• get files(): string[]

Returns

string[]

Implementation of

ChangedContextState.files

Defined in

packages/pvm-update/lib/changed-context.ts:66


fromRef

• get fromRef(): string

Returns

string

Implementation of

ChangedContextState.fromRef

Defined in

packages/pvm-update/lib/changed-context.ts:70


targetLoadRef

• get targetLoadRef(): undefined | string

Returns

undefined | string

Defined in

packages/pvm-update/lib/changed-context.ts:78


targetRef

• get targetRef(): string

Returns

string

Implementation of

ChangedContextState.targetRef

Defined in

packages/pvm-update/lib/changed-context.ts:74

Methods

getChangedFilesFor

â–¸ getChangedFilesFor(pkgName): string[]

Parameters

NameType
pkgNamestring

Returns

string[]

Defined in

packages/pvm-update/lib/changed-context.ts:96


getPrevVersion

â–¸ getPrevVersion(pkgName): undefined | string

Parameters

NameType
pkgNamestring

Returns

undefined | string

Defined in

packages/pvm-update/lib/changed-context.ts:82


pkgCommitsFor

â–¸ pkgCommitsFor(pkgName): Promise<Commit[]>

Parameters

NameType
pkgNamestring

Returns

Promise<Commit[]>

Defined in

packages/pvm-update/lib/changed-context.ts:88


make

â–¸ Static make(changedFiles, options): Promise<ChangedContext>

Parameters

NameType
changedFilesChangedFiles
optionsOmit<ChangedContextOptions, "commits">

Returns

Promise<ChangedContext>

Defined in

packages/pvm-update/lib/changed-context.ts:43