Skip to main content

Class: CanaryPublishApplier

@pvm/plugin-core.CanaryPublishApplier

Hierarchy

Constructors

constructor

• new CanaryPublishApplier(repo, publishedPackages, flags)

Parameters

NameType
repoRepository
publishedPackagesPkgSet<Pkg>
flagsFlags

Overrides

AbstractPublishApplier.constructor

Defined in

src/plugins/core/publish/publish-applier/canary.ts:23

Properties

canaryVersionCalcTasks

• Private canaryVersionCalcTasks: PkgMap<PromiseLike<string>, Pkg>

Defined in

src/plugins/core/publish/publish-applier/canary.ts:18


canaryVersions

• Private canaryVersions: PkgMap<string, Pkg>

Defined in

src/plugins/core/publish/publish-applier/canary.ts:17


flags

• Private flags: Flags

Defined in

src/plugins/core/publish/publish-applier/canary.ts:20


publishedPackages

• Private publishedPackages: PkgSet<Pkg>

Defined in

src/plugins/core/publish/publish-applier/canary.ts:19


repo

• repo: Repository

Inherited from

AbstractPublishApplier.repo

Defined in

src/plugins/core/publish/publish-applier/abstract.ts:11

Methods

applyActualDeps

â–¸ applyActualDeps(pkg): Promise<AppliedPkg>

Parameters

NameType
pkgPkg

Returns

Promise<AppliedPkg>

Inherited from

AbstractPublishApplier.applyActualDeps

Defined in

src/plugins/core/publish/publish-applier/abstract.ts:23


applyForPublish

â–¸ applyForPublish(pkg): Promise<AppliedPkg>

Parameters

NameType
pkgPkg

Returns

Promise<AppliedPkg>

Inherited from

AbstractPublishApplier.applyForPublish

Defined in

src/plugins/core/publish/publish-applier/abstract.ts:38


asyncSafeCalcCanaryVersion

â–¸ asyncSafeCalcCanaryVersion(pkg, unifiedBaseCanaryIndex): Promise<string>

Parameters

NameType
pkgPkg
unifiedBaseCanaryIndexundefined | number

Returns

Promise<string>

Defined in

src/plugins/core/publish/publish-applier/canary.ts:70


calcCanaryVersion

â–¸ calcCanaryVersion(pkg, registry, preid, unifiedBaseCanaryIndex): Promise<string>

Parameters

NameType
pkgPkg
registrystring
preidstring
unifiedBaseCanaryIndexundefined | number

Returns

Promise<string>

Defined in

src/plugins/core/publish/publish-applier/canary.ts:82


getPkgPublishVersion

â–¸ getPkgPublishVersion(pkg): Promise<string>

Parameters

NameType
pkgPkg

Returns

Promise<string>

Overrides

AbstractPublishApplier.getPkgPublishVersion

Defined in

src/plugins/core/publish/publish-applier/canary.ts:66


prepare

â–¸ prepare(): Promise<void>

Returns

Promise<void>

Overrides

AbstractPublishApplier.prepare

Defined in

src/plugins/core/publish/publish-applier/canary.ts:29


prepareUnifiedCanaryVersion

â–¸ prepareUnifiedCanaryVersion(unifiedBaseCanaryIndex): Promise<void>

Algorithm in here - taking max canary version index across all packages with given preid. Then incrementing it and use as common canary index that fits to all packages.

Parameters

NameType
unifiedBaseCanaryIndexundefined | number

Returns

Promise<void>

Defined in

src/plugins/core/publish/publish-applier/canary.ts:39


getNextCanaryIndex

â–¸ Static Private getNextCanaryIndex(versionString, preid): number

Parameters

NameType
versionStringstring
preidstring

Returns

number

Defined in

src/plugins/core/publish/publish-applier/canary.ts:151