Skip to main content

@pvm/core

Enumerations

Classes

Interfaces

Type aliases

SafeIterationResult

ฦฌ SafeIterationResult<T>: [T, null] | [undefined, Error]

Type parameters

Name
T

Defined in

packages/pvm-core/lib/iter/index.ts:35

Variables

debug

โ€ข debug: any

Defined in

packages/pvm-core/lib/logger.ts:52


defaultConfig

โ€ข defaultConfig: Config

Defined in

packages/pvm-core/pvm-defaults.ts:3


env

โ€ข env: Env

Defined in

packages/pvm-core/lib/env.ts:70


envDefaults

โ€ข envDefaults: Env

Defined in

packages/pvm-core/env-defaults.ts:3


error

โ€ข error: any

Defined in

packages/pvm-core/lib/logger.ts:53


features

โ€ข features: Object

Type declaration

NameType
attributeReleaseDatastring
commitsToNotesstring
notifyScriptsPathstring
preReleaseHookstring
releaseInfoFromReleaseCtxstring
releaseInfoFromVcsstring
releaseTypestring
releaseTypeBuilderstring
releaseTypeByCommitsstring

Defined in

packages/pvm-core/lib/plugins/index.ts:28


getTagsPointsAt

โ€ข getTagsPointsAt: MemoizedFunction<[cwd: string, ref: string], string[]>

Defined in

packages/pvm-core/lib/git/commands.ts:169


isBranchExists

โ€ข isBranchExists: MemoizedFunction<[cwd: string, branchName: string], boolean>

Defined in

packages/pvm-core/lib/git/commands.ts:151


isRemoteBranchExists

โ€ข isRemoteBranchExists: MemoizedFunction<[cwd: string, branchName: string], boolean>

Defined in

packages/pvm-core/lib/git/commands.ts:160


isShallowRepository

โ€ข isShallowRepository: MemoizedFunction<[cwd: string], boolean>

Defined in

packages/pvm-core/lib/git/commands.ts:130


isTag

โ€ข isTag: MemoizedFunction<[cwd: string, ref: string], boolean>

Defined in

packages/pvm-core/lib/git/commands.ts:142


issueRe

โ€ข issueRe: RegExp

Defined in

packages/pvm-core/lib/text/jira.ts:1


log

โ€ข log: any

Defined in

packages/pvm-core/lib/logger.ts:54


logger

โ€ข logger: SignaleType<"debug" | "silly" | "deprecate", string>

Defined in

packages/pvm-core/lib/logger.ts:24


mrkdwnLinkRe

โ€ข mrkdwnLinkRe: RegExp

Defined in

packages/pvm-core/lib/text/markdown.ts:2


pagingMeta

โ€ข pagingMeta: typeof pagingMeta

Defined in

packages/pvm-core/lib/vcs-meta.ts:2


pkgTagRe

โ€ข pkgTagRe: RegExp

Defined in

packages/pvm-core/lib/tag-meta.ts:6


releaseMark

โ€ข releaseMark: "-- release commit --"

Defined in

packages/pvm-core/lib/consts.ts:1


releaseTypes

โ€ข releaseTypes: Object

Type declaration

NameType
eq(a: PvmReleaseType, b: PvmReleaseType) => boolean
gt(a: PvmReleaseType, b: PvmReleaseType) => boolean
gte(a: PvmReleaseType, b: PvmReleaseType) => boolean
lt(a: PvmReleaseType, b: PvmReleaseType) => boolean
lte(a: PvmReleaseType, b: PvmReleaseType) => boolean
max<T>(...args: T) => T extends [] ? undefined : PvmReleaseType

Defined in

packages/pvm-core/lib/semver-extra.ts:32


releaseTypesInAscendingOrder

โ€ข releaseTypesInAscendingOrder: PvmReleaseType[]

Defined in

packages/pvm-core/lib/semver-extra.ts:4


taggedCacheManager

โ€ข taggedCacheManager: TaggedCacheManager

Defined in

packages/pvm-core/lib/memoize/tagged-cache-manager.ts:124


tags

โ€ข tags: RegExp[]

Defined in

packages/pvm-core/lib/analyzer/simple.ts:23


tagsCache

โ€ข tagsCache: CwdCache<string>

Defined in

packages/pvm-core/lib/git/last-release-tag.ts:9


versioningFile

โ€ข versioningFile: Object

Type declaration

NameType
clearCache() => void
existsForRef(config: Config, ref: undefined | string) => boolean
load(config: Config, ref: undefined | string) => false | Record<string, string>
lookupPkgVersion(pkg: Pkg, ref: undefined | string) => string | void
save(config: Config, versions: Record<string, string>, index: boolean) => void
stringify(versions: Record<string, string>) => string

Defined in

packages/pvm-core/lib/dedicated-versions-file.ts:56

Functions

addTag

โ–ธ addTag(cwd, __namedParameters): void

Parameters

NameType
cwdstring
__namedParametersAddTagOptions

Returns

void

Defined in

packages/pvm-core/lib/git/commands.ts:221


bindToCwd

โ–ธ bindToCwd<O, F>(cwd, fn): (cmd: string, opts?: O) => ReturnType<F>

Type parameters

NameType
Oextends object
Fextends (cmd: string, opts?: O) => any

Parameters

NameType
cwdstring
fnF

Returns

fn

โ–ธ (cmd, opts?): ReturnType<F>

Parameters
NameType
cmdstring
opts?O
Returns

ReturnType<F>

Defined in

packages/pvm-core/lib/shell/index.ts:89


cachedRealPath

โ–ธ Const cachedRealPath(...args): string

Parameters

NameType
...args[dir: string]

Returns

string

Defined in

packages/pvm-core/lib/fs.ts:19


checkEnv

โ–ธ checkEnv(checks, action, __namedParameters?): boolean

Parameters

NameTypeDefault value
checksEnvCheck | EnvCheck[]undefined
actionstringundefined
__namedParametersObjectundefined
__namedParameters.loggerObjectundefined
__namedParameters.logger.info(message?: any, ...optionalParams: any[]) => voidconsole.info
__namedParameters.silentbooleantrue

Returns

boolean

Defined in

packages/pvm-core/lib/env.ts:13


clearConfigCacheFor

โ–ธ clearConfigCacheFor(cwd): void

Parameters

NameType
cwdstring

Returns

void

Defined in

packages/pvm-core/lib/config/get-config.ts:312


cmdOption

โ–ธ cmdOption(name, value?): string

Parameters

NameType
namestring
value?string | number

Returns

string

Defined in

packages/pvm-core/lib/utils/cmd.ts:1


cmpReleaseTypes

โ–ธ cmpReleaseTypes(a, b): -1 | 0 | 1

Parameters

NameType
anull | PvmReleaseType
bnull | PvmReleaseType

Returns

-1 | 0 | 1

Defined in

packages/pvm-core/lib/semver-extra.ts:20


cmpStr

โ–ธ cmpStr(a, b): number

Parameters

NameType
astring
bstring

Returns

number

Defined in

packages/pvm-core/lib/utils/string.ts:1


collectItemsToRecord

โ–ธ collectItemsToRecord<T>(asyncIterator, key): Promise<Record<string, T>>

Type parameters

Name
T

Parameters

NameType
asyncIteratorAsyncIterable<T>
key(x: T) => string

Returns

Promise<Record<string, T>>

Defined in

packages/pvm-core/lib/iter/collect-items.ts:2


concatPackages

โ–ธ concatPackages(left, right): Pkg[]

Parameters

NameType
leftIterable<Pkg>
rightIterable<Pkg>

Returns

Pkg[]

Defined in

packages/pvm-core/lib/pkg.ts:473


cutText

โ–ธ cutText(text, maxLen): string

Parameters

NameType
textstring
maxLennumber

Returns

string

Defined in

packages/pvm-core/lib/text/index.ts:3


cwdShell

โ–ธ cwdShell(cmd, opts?): string

Parameters

NameType
cmdstring
optsExecSyncOptions

Returns

string

Defined in

packages/pvm-core/lib/shell/index.ts:77


cwdToGitRelativity

โ–ธ cwdToGitRelativity(cwd, p, getWorktreeRootCustom?): string

Parameters

NameTypeDefault value
cwdstringundefined
pstringundefined
getWorktreeRootCustom(...args: [cwd: string]) => stringgetWorktreeRoot

Returns

string

Defined in

packages/pvm-core/lib/git/worktree.ts:38


default

โ–ธ default(messages, defaultLevel?): PvmReleaseType

Parameters

NameTypeDefault value
messagesstring[]undefined
defaultLevelPvmReleaseType'minor'

Returns

PvmReleaseType

Defined in

packages/pvm-core/lib/analyzer/simple.ts:6


defaultsFromProvider

โ–ธ defaultsFromProvider(provider): RecursivePartial<Config> | undefined

Parameters

NameType
providerPvmProviderInfo

Returns

RecursivePartial<Config> | undefined

Defined in

packages/pvm-core/lib/config/get-config.ts:365


deleteTag

โ–ธ deleteTag(cwd, tagName): void

Parameters

NameType
cwdstring
tagNamestring

Returns

void

Defined in

packages/pvm-core/lib/git/commands.ts:214


dottifyList

โ–ธ dottifyList(text, symbolItem?): string

Parameters

NameTypeDefault value
textstringundefined
symbolItemstring'-'

Returns

string

Defined in

packages/pvm-core/lib/text/markdown.ts:18


drainWhileResolves

โ–ธ drainWhileResolves<T>(asyncIterable): Promise<DrainResult<T>>

Type parameters

Name
T

Parameters

NameType
asyncIterableAsyncIterable<T>

Returns

Promise<DrainResult<T>>

Defined in

packages/pvm-core/lib/iter/index.ts:11


enpl

โ–ธ enpl(forms, count, ...args): string

Parameters

NameType
formsstring[]
countnumber
...argsany[]

Returns

string

Defined in

packages/pvm-core/lib/text/plural.ts:9


escapeFilePath

โ–ธ escapeFilePath(fp): string

Parameters

NameType
fpstring

Returns

string

Defined in

packages/pvm-core/lib/fs.ts:12


expDropRight

โ–ธ expDropRight<T>(list, filterFn): T[]

Type parameters

Name
T

Parameters

NameType
listT[]
filterFn(entry: T, index: number) => boolean

Returns

T[]

Defined in

packages/pvm-core/lib/utils/array.ts:1


extractDomain

โ–ธ extractDomain(url): string | null

Parameters

NameType
urlstring

Returns

string | null

Defined in

packages/pvm-core/lib/git/commands.ts:108


extractVersionFromSemverTag

โ–ธ extractVersionFromSemverTag(semverTag): string

Parameters

NameType
semverTagstring

Returns

string

Defined in

packages/pvm-core/lib/tag-meta.ts:25


extractVersionsFromAnnotation

โ–ธ extractVersionsFromAnnotation(annotation): Map<string, string>

Parameters

NameType
annotationstring

Returns

Map<string, string>

Defined in

packages/pvm-core/lib/versioning.ts:46


fetchTags

โ–ธ fetchTags(cwd): void

Parameters

NameType
cwdstring

Returns

void

Defined in

packages/pvm-core/lib/git/last-release-tag.ts:11


fsEscape

โ–ธ fsEscape(tagName): string

Parameters

NameType
tagNamestring

Returns

string

Defined in

packages/pvm-core/lib/tag-meta.ts:108


getApp

โ–ธ getApp(cwd?, opts?): Pvm

Parameters

NameType
cwdstring
optsGetConfigOpts

Returns

Pvm

Defined in

packages/pvm-core/lib/config/get-config.ts:415


getConfigWithoutIncludes

โ–ธ Const getConfigWithoutIncludes(cwd?, opts?): Config

deprecated Please use getConfig instead

Parameters

NameType
cwdstring
opts?GetConfigOpts

Returns

Config

Defined in

packages/pvm-core/lib/config/get-config.ts:422


getContents

โ–ธ getContents(cwd, filePath, opts?): string | null

Parameters

NameType
cwdstring
filePathstring
optsGetContentsOpts

Returns

string | null

Defined in

packages/pvm-core/lib/git/commands.ts:25


getCurrentBranchIgnoreEnv

โ–ธ getCurrentBranchIgnoreEnv(cwd): string | undefined

Parameters

NameType
cwdstring

Returns

string | undefined

Defined in

packages/pvm-core/lib/git/commands.ts:51


getDefault

โ–ธ getDefault(mod): any

Parameters

NameType
modany

Returns

any

Defined in

packages/pvm-core/lib/interop.ts:1


getEnv

โ–ธ getEnv(): Env

Returns

Env

Defined in

packages/pvm-core/lib/env.ts:38


getGitVersion

โ–ธ Const getGitVersion(): undefined | string

Returns

undefined | string

Defined in

packages/pvm-core/lib/runtime-env/versions.ts:19


getHostApi

โ–ธ getHostApi(cwd?): Promise<HostApi>

Parameters

NameType
cwdstring

Returns

Promise<HostApi>

Defined in

packages/pvm-core/lib/plugins/index.ts:303


getHostUrl

โ–ธ getHostUrl(cwd): string | void

Parameters

NameType
cwdstring

Returns

string | void

Defined in

packages/pvm-core/lib/git/commands.ts:98


getMainWorktreePath

โ–ธ getMainWorktreePath(dir): string

ะ”ะปั ะทะฐะณั€ัƒะทะบะธ ะบะพะฝั„ะธะณะพะฒ ะธ ะฟะปะฐะณะธะฝะพะฒ ะฝัƒะถะฝะพ ัƒะผะตั‚ัŒ ะธัะบะฐั‚ัŒ ะธัั…ะพะดะฝะพะต ั€ะฐะฑะพั‡ะตะต ะดะตั€ะตะฒะพ ั‚.ะบ. ะฒ ั‚ะตะบัƒั‰ะตะผ ะผะพะถะตั‚ ะฝะต ะฑั‹ั‚ัŒ ะฝัƒะถะฝั‹ั… ะบะพะฝั„ะธะณัƒั€ะฐั†ะธะพะฝะฝั‹ั… ั„ะฐะนะปะพะฒ ะธ node_modules

Parameters

NameType
dirstring

Returns

string

Defined in

packages/pvm-core/lib/git/worktree.ts:10


getNpmVersion

โ–ธ Const getNpmVersion(): undefined | string

Returns

undefined | string

Defined in

packages/pvm-core/lib/runtime-env/versions.ts:20


getOldestDescendantCommitRef

โ–ธ getOldestDescendantCommitRef(cwd, currentBranch, targetRef): string

Parameters

NameType
cwdstring
currentBranchundefined | string
targetRefstring

Returns

string

Defined in

packages/pvm-core/lib/git/commands.ts:187


getPersistentRef

โ–ธ getPersistentRef(config, ref): string

Parameters

NameType
configConfig
refstring

Returns

string

Defined in

packages/pvm-core/lib/git/commands.ts:178


getRefContent

โ–ธ getRefContent(cwd, ref): string

Parameters

NameType
cwdstring
refstring

Returns

string

Defined in

packages/pvm-core/lib/git/commands.ts:63


getReleaseCommits

โ–ธ getReleaseCommits(config, target?): Promise<Commit[] | void>

Parameters

NameTypeDefault value
configConfigundefined
targetstring'HEAD'

Returns

Promise<Commit[] | void>

Defined in

packages/pvm-core/lib/git/release-commits.ts:60


getReleaseRefs

โ–ธ getReleaseRefs(config, target?): [string, string] | void

Parameters

NameTypeDefault value
configConfigundefined
targetstring'HEAD'

Returns

[string, string] | void

Defined in

packages/pvm-core/lib/git/release-commits.ts:17


getRemoteUrl

โ–ธ getRemoteUrl(cwd): string | void

Parameters

NameType
cwdstring

Returns

string | void

Defined in

packages/pvm-core/lib/git/commands.ts:81


getStagedFiles

โ–ธ getStagedFiles(cwd): string[]

Parameters

NameType
cwdstring

Returns

string[]

Defined in

packages/pvm-core/lib/git/commands.ts:34


getTagAnnotation

โ–ธ getTagAnnotation(cwd, tagName): string

Parameters

NameType
cwdstring
tagNamestring

Returns

string

Defined in

packages/pvm-core/lib/git/commands.ts:70


getVersionsFromTagCached

โ–ธ getVersionsFromTagCached(cwd, tagName): Map<string, string>

Parameters

NameType
cwdstring
tagNamestring

Returns

Map<string, string>

Defined in

packages/pvm-core/lib/versioning.ts:76


getWorkspaces

โ–ธ getWorkspaces(cwd?): Promise<string[]>

Parameters

NameType
cwdstring

Returns

Promise<string[]>

Defined in

packages/pvm-core/lib/workspaces.ts:104


getWorkspacesFromRef

โ–ธ getWorkspacesFromRef(ref, cwd?): string[]

Parameters

NameType
refstring
cwdstring

Returns

string[]

Defined in

packages/pvm-core/lib/workspaces.ts:92


getWorkspacesSync

โ–ธ getWorkspacesSync(cwd?): string[]

Parameters

NameType
cwdstring

Returns

string[]

Defined in

packages/pvm-core/lib/workspaces.ts:83


getWorktreeRoot

โ–ธ Const getWorktreeRoot(...args): string

ะ”ะปั ะทะฐะณั€ัƒะทะบะธ ะบะพะฝั„ะธะณะพะฒ ะธ ะฟะปะฐะณะธะฝะพะฒ ะฝัƒะถะฝะพ ัƒะผะตั‚ัŒ ะธัะบะฐั‚ัŒ ะธัั…ะพะดะฝะพะต ั€ะฐะฑะพั‡ะตะต ะดะตั€ะตะฒะพ ั‚.ะบ. ะฒ ั‚ะตะบัƒั‰ะตะผ ะผะพะถะตั‚ ะฝะต ะฑั‹ั‚ัŒ ะฝัƒะถะฝั‹ั… ะบะพะฝั„ะธะณัƒั€ะฐั†ะธะพะฝะฝั‹ั… ั„ะฐะนะปะพะฒ ะธ node_modules

Parameters

NameType
...args[cwd: string]

Returns

string

Defined in

packages/pvm-core/lib/git/worktree.ts:28


gitAuthorDate

โ–ธ gitAuthorDate(cwd, ref): Date

Parameters

NameType
cwdstring
refstring

Returns

Date

Defined in

packages/pvm-core/lib/git/commands.ts:138


gitFetch

โ–ธ gitFetch(cwd, __namedParameters?): void

Parameters

NameType
cwdstring
__namedParametersFetchOptions

Returns

void

Defined in

packages/pvm-core/lib/git/commands.ts:240


gitToCwdRelativity

โ–ธ gitToCwdRelativity(cwd, p, getWorktreeRootCustom?): string

Parameters

NameTypeDefault value
cwdstringundefined
pstringundefined
getWorktreeRootCustom(...args: [cwd: string]) => stringgetWorktreeRoot

Returns

string

Defined in

packages/pvm-core/lib/git/worktree.ts:51


gracefullyTruncateText

โ–ธ gracefullyTruncateText(text, maxLen, suffix?): string

Parameters

NameTypeDefault value
textstringundefined
maxLennumberundefined
suffixstring'\n...'

Returns

string

Defined in

packages/pvm-core/lib/utils/string.ts:10


handleDifferentComparisonRefs

โ–ธ handleDifferentComparisonRefs(logger, storedPkg, providedPkg): void

Parameters

NameType
loggerSignaleType<never, never>
storedPkgPkg
providedPkgPkg

Returns

void

Defined in

packages/pvm-core/lib/utils.ts:87


indexFile

โ–ธ indexFile(config, filepath): void

Parameters

NameType
configConfig
filepathstring

Returns

void

Defined in

packages/pvm-core/lib/git/commands.ts:46


inspectArgs

โ–ธ inspectArgs(args, maxSizePerArg?): string

Parameters

NameTypeDefault value
argsany[]undefined
maxSizePerArgnumber165

Returns

string

Defined in

packages/pvm-core/lib/inspect-args.ts:3


isArraysDeepEqual

โ–ธ isArraysDeepEqual(left, right): boolean

Parameters

NameType
leftunknown[]
rightunknown[]

Returns

boolean

Defined in

packages/pvm-core/lib/utils.ts:71


isDeepEqual

โ–ธ isDeepEqual(l, r): boolean

Parameters

NameType
lunknown
runknown

Returns

boolean

Defined in

packages/pvm-core/lib/utils.ts:49


isFlatArraysEqual

โ–ธ isFlatArraysEqual<T>(left, right): boolean

Type parameters

Name
T

Parameters

NameType
leftT[]
rightT[]

Returns

boolean

Defined in

packages/pvm-core/lib/utils.ts:7


isGenericTagUsed

โ–ธ isGenericTagUsed(config): boolean

Parameters

NameType
configConfig

Returns

boolean

Defined in

packages/pvm-core/lib/tag-meta.ts:14


isPkgFromMainUnifiedGroup

โ–ธ isPkgFromMainUnifiedGroup(config, pkg): boolean

Parameters

NameType
configConfig
pkgPkg

Returns

boolean

Defined in

packages/pvm-core/lib/versioning.ts:17


isPlainObject

โ–ธ isPlainObject(x): x is Record<string, unknown>

Parameters

NameType
xunknown

Returns

x is Record<string, unknown>

Defined in

packages/pvm-core/lib/app/index.ts:21


isRecordsDeepEqual

โ–ธ isRecordsDeepEqual(left, right): boolean

Parameters

NameType
leftRecord<string, unknown>
rightRecord<string, unknown>

Returns

boolean

Defined in

packages/pvm-core/lib/utils.ts:34


isReleaseCommit

โ–ธ isReleaseCommit(cwd, ref): boolean

Parameters

NameType
cwdstring
refstring

Returns

boolean

Defined in

packages/pvm-core/lib/versioning.ts:12


isReleaseTag

โ–ธ isReleaseTag(config, tag): boolean

Parameters

NameType
configConfig
tagstring

Returns

boolean

Defined in

packages/pvm-core/lib/tag-meta.ts:53


isSemverTag

โ–ธ isSemverTag(tagName): boolean

Parameters

NameType
tagNamestring

Returns

boolean

Defined in

packages/pvm-core/lib/tag-meta.ts:37


isSemverTagUsed

โ–ธ isSemverTagUsed(config): boolean

Parameters

NameType
configConfig

Returns

boolean

Defined in

packages/pvm-core/lib/tag-meta.ts:33


isStubVersion

โ–ธ isStubVersion(version): boolean

Parameters

NameType
versionstring

Returns

boolean

Defined in

packages/pvm-core/lib/tag-meta.ts:114


isTagAnnotated

โ–ธ isTagAnnotated(cwd, tagName): boolean

Parameters

NameType
cwdstring
tagNamestring

Returns

boolean

Defined in

packages/pvm-core/lib/git/commands.ts:59


isValidReleaseType

โ–ธ isValidReleaseType(releaseType): boolean

Parameters

NameType
releaseTypestring | void

Returns

boolean

Defined in

packages/pvm-core/lib/semver-extra.ts:7


isWorkingDirectoryClean

โ–ธ Const isWorkingDirectoryClean(cwd): boolean

Parameters

NameType
cwdstring

Returns

boolean

Defined in

packages/pvm-core/lib/git/commands.ts:174


โ–ธ issueToLink(jiraUrl, text): string

Parameters

NameType
jiraUrlstring
textstring

Returns

string

Defined in

packages/pvm-core/lib/text/jira.ts:9


โ–ธ issueToMdLink(jiraUrl, text): string

Parameters

NameType
jiraUrlstring
textstring

Returns

string

Defined in

packages/pvm-core/lib/text/jira.ts:3


โ–ธ issueToSlackLink(jiraUrl, text): string

Parameters

NameType
jiraUrlstring
textstring

Returns

string

Defined in

packages/pvm-core/lib/text/jira.ts:15


lastMatchedTag

โ–ธ lastMatchedTag(cwd, mask, target?): string

Parameters

NameType
cwdstring
maskstring
targetundefined | string

Returns

string

Defined in

packages/pvm-core/lib/git/last-release-tag.ts:44


lastReleaseTag

โ–ธ lastReleaseTag(config, targetRef?): string

Parameters

NameType
configConfig
targetRefundefined | string

Returns

string

Defined in

packages/pvm-core/lib/git/last-release-tag.ts:59


lastReleaseTagIgnoreEnv

โ–ธ lastReleaseTagIgnoreEnv(config, target?): string

Parameters

NameType
configConfig
targetundefined | string

Returns

string

Defined in

packages/pvm-core/lib/git/last-release-tag.ts:55


lazyCallee

โ–ธ lazyCallee(targetProto, propKey, desc): void

Parameters

NameType
targetProtoobject
propKeystring
descPropertyDescriptor

Returns

void

Defined in

packages/pvm-core/lib/class-helpers.ts:4


loadPkg

โ–ธ loadPkg(config, pkgPath, opts?): Pkg | null

Parameters

NameType
configConfig
pkgPathstring
optsLoadPkgOptions

Returns

Pkg | null

Defined in

packages/pvm-core/lib/pkg.ts:433


loadRawConfig

โ–ธ loadRawConfig(cwd, ref?): ConfigResult

Parameters

NameType
cwdstring
refundefined | string

Returns

ConfigResult

Defined in

packages/pvm-core/lib/config/get-config.ts:321


loggerFor

โ–ธ Const loggerFor(scope): SignaleType<"debug" | "silly" | "deprecate", never>

Parameters

NameType
scopestring

Returns

SignaleType<"debug" | "silly" | "deprecate", never>

Defined in

packages/pvm-core/lib/logger.ts:50


makeReleaseForTag

โ–ธ makeReleaseForTag(vcs, tagObject, prevRef): Promise<void>

Parameters

NameType
vcsVcsPlatform
tagObjectany
prevRefstring

Returns

Promise<void>

Defined in

packages/pvm-core/lib/release-notes.ts:23


makeReleaseForTagName

โ–ธ makeReleaseForTagName(vcs, tagName, prevRef, opts?): Promise<void>

Parameters

NameType
vcsVcsPlatform
tagNamestring
prevRefstring
optsMakeReleaseForTagNameOpts

Returns

Promise<void>

Defined in

packages/pvm-core/lib/release-notes.ts:37


makeSemverGetter

โ–ธ makeSemverGetter(cmd): () => string | undefined

Parameters

NameType
cmdstring

Returns

fn

โ–ธ (): string | undefined

Returns

string | undefined

Defined in

packages/pvm-core/lib/runtime-env/versions.ts:5


makeTagForPkg

โ–ธ makeTagForPkg(config, pkg): string

Parameters

NameType
configConfig
pkgPkg

Returns

string

Defined in

packages/pvm-core/lib/tag-meta.ts:100


makeUnifiedReleaseTagTest

โ–ธ makeUnifiedReleaseTagTest(config): (tagName: string) => boolean

Parameters

NameType
configConfig

Returns

fn

โ–ธ (tagName): boolean

Parameters
NameType
tagNamestring
Returns

boolean

Defined in

packages/pvm-core/lib/tag-meta.ts:41


matchAny

โ–ธ matchAny(pkg, patterns): boolean

Parameters

NameType
pkgPkg
patternsstring[] | readonly string[]

Returns

boolean

Defined in

packages/pvm-core/lib/pkg-match.ts:15


matchGroup

โ–ธ matchGroup<KeyType>(pkg, groups): KeyType | undefined

Type parameters

NameType
KeyTypeextends string

Parameters

NameType
pkgPkg
groupsPartial<Record<KeyType, string | string[]>>

Returns

KeyType | undefined

Defined in

packages/pvm-core/lib/pkg-match.ts:24


matchPackage

โ–ธ matchPackage(pkg, pattern): boolean

Parameters

NameType
pkgPkg
patternstring

Returns

boolean

Defined in

packages/pvm-core/lib/pkg-match.ts:4


mema

โ–ธ mema<A, R>(fn, arg?): (...args: A) => R

Type parameters

NameType
Aextends any[]
RR

Parameters

NameTypeDefault value
fn(...args: A) => Rundefined
argnumber0

Returns

fn

โ–ธ (...args): R

Parameters
NameType
...argsA
Returns

R

Defined in

packages/pvm-core/lib/memoize/mema.ts:1


memoize

โ–ธ memoize<A, R>(fn, tags): MemoizedFunction<A, R>

Type parameters

NameType
Aextends any[]
RR

Parameters

NameType
fn(...args: A) => R
tagsCacheTag[]

Returns

MemoizedFunction<A, R>

Defined in

packages/pvm-core/lib/memoize/tagged-cache-manager.ts:126


mergeBase

โ–ธ mergeBase(cwd, from, to): string

Parameters

NameType
cwdstring
fromstring
tostring

Returns

string

Defined in

packages/pvm-core/lib/git/merge-base.ts:4


mergeDefaults

โ–ธ mergeDefaults<T>(a, b): T

Type parameters

NameType
Textends Record<string, any>

Parameters

NameType
aT
bRecord<string, any>

Returns

T

Defined in

packages/pvm-core/lib/config/get-config.ts:52


migrateDeprecated

โ–ธ migrateDeprecated(config): void

Parameters

NameType
configConfig

Returns

void

Defined in

packages/pvm-core/lib/config/get-config.ts:246


mkdirp

โ–ธ mkdirp(dir): void

Parameters

NameType
dirstring

Returns

void

Defined in

packages/pvm-core/lib/fs.ts:4


nameFromTag

โ–ธ nameFromTag(tag): string

Parameters

NameType
tagstring

Returns

string

Defined in

packages/pvm-core/lib/tag-meta.ts:82


noPackagesInMugError

โ–ธ noPackagesInMugError(): Error

Returns

Error

Defined in

packages/pvm-core/lib/behaviors/no-packages-in-mug.ts:2


nthIndex

โ–ธ nthIndex(str, pattern, n): number

Parameters

NameType
strstring
patternstring
nnumber

Returns

number

Defined in

packages/pvm-core/lib/text/index.ts:7


parseSubArgs

โ–ธ parseSubArgs(args?): Argv<Default>

Parameters

NameTypeDefault value
argsstring[][]

Returns

Argv<Default>

Defined in

packages/pvm-core/lib/text/sub-args.ts:11


parseSubArgsDashedCase

โ–ธ parseSubArgsDashedCase(opts?): Argv<Default>

Parameters

NameTypeDefault value
optsstring[][]

Returns

Argv<Default>

Defined in

packages/pvm-core/lib/text/sub-args.ts:7


pkgCommits

โ–ธ pkgCommits(pkg, from, to): Promise<Commit[]>

Parameters

NameType
pkgPkg
fromstring
tostring

Returns

Promise<Commit[]>

Defined in

packages/pvm-core/lib/git/pkg-commits.ts:5


pkgTagMask

โ–ธ pkgTagMask(config, pkg): string

Parameters

NameType
configConfig
pkgPkg

Returns

string

Defined in

packages/pvm-core/lib/tag-meta.ts:63


pprintPackages

โ–ธ pprintPackages(packages, columnsProvider): void

Parameters

NameType
packagesIterable<Pkg>
columnsProviderColumnsProvider<Pkg>

Returns

void

Defined in

packages/pvm-core/lib/utils/pprint.ts:10


prepareReleaseData

โ–ธ prepareReleaseData(cwd, targetTag, prevRef): Promise<ReleasePayload>

Parameters

NameType
cwdstring
targetTagstring
prevRefstring

Returns

Promise<ReleasePayload>

Defined in

packages/pvm-core/lib/release-notes.ts:9


prevReleaseTag

โ–ธ prevReleaseTag(config, target?): string

Parameters

NameTypeDefault value
configConfigundefined
targetstring'HEAD'

Returns

string

Defined in

packages/pvm-core/lib/git/last-release-tag.ts:69


โ–ธ pullOutLinks(text): string

Parameters

NameType
textstring

Returns

string

Defined in

packages/pvm-core/lib/text/markdown.ts:4


readEnv

โ–ธ readEnv(env?): Record<string, string>

Parameters

NameTypeDefault value
envProcessEnvprocess.env

Returns

Record<string, string>

Defined in

packages/pvm-core/lib/config/get-config.ts:111


releaseCommitsAsString

โ–ธ releaseCommitsAsString(config, opts?): string | void

Parameters

NameType
configConfig
optsReleaseCommitsOpts

Returns

string | void

Defined in

packages/pvm-core/lib/git/release-commits.ts:47


releaseTagFilter

โ–ธ releaseTagFilter(config): (string: any) => boolean

Parameters

NameType
configConfig

Returns

fn

โ–ธ (string): boolean

Parameters
NameType
stringany
Returns

boolean

Defined in

packages/pvm-core/lib/tag-meta.ts:49


releaseTagMask

โ–ธ releaseTagMask(config): string

Parameters

NameType
configConfig

Returns

string

Defined in

packages/pvm-core/lib/tag-meta.ts:57


releaseTagPrefix

โ–ธ releaseTagPrefix(config): string

Parameters

NameType
configConfig

Returns

string

Defined in

packages/pvm-core/lib/tag-meta.ts:67


โ–ธ replaceLinks(text, replacer): string

Parameters

NameType
textstring
replacerany

Returns

string

Defined in

packages/pvm-core/lib/text/markdown.ts:10


requestWithRetries

โ–ธ requestWithRetries(requestFn, retryOpts?, retryIndex?): any

Parameters

NameTypeDefault value
requestFn() => anyundefined
retryOptsObject{}
retryOpts.retryCodes?number[]undefined
retryOpts.timeouts?number[]undefined
retryIndexnumber0

Returns

any

Defined in

packages/pvm-core/lib/httpreq.ts:140


requireDefault

โ–ธ requireDefault(path): any

Parameters

NameType
pathany

Returns

any

Defined in

packages/pvm-core/lib/interop.ts:5


resolvePvmProvider

โ–ธ Const resolvePvmProvider(cwd): undefined | PvmProviderInfo

Parameters

NameType
cwdstring

Returns

undefined | PvmProviderInfo

Defined in

packages/pvm-core/lib/plugins/provider.ts:15


revSafeParse

โ–ธ revSafeParse(ref, cwd): string | null

Parameters

NameType
refstring
cwdstring

Returns

string | null

Defined in

packages/pvm-core/lib/git/rev-parse.ts:37


safeIterate

โ–ธ safeIterate<T>(asyncIterable): AsyncIterableIterator<SafeIterationResult<T>>

Type parameters

Name
T

Parameters

NameType
asyncIterableAsyncIterable<T>

Returns

AsyncIterableIterator<SafeIterationResult<T>>

Defined in

packages/pvm-core/lib/iter/index.ts:37


searchAnnotatedVersionInDepth

โ–ธ searchAnnotatedVersionInDepth(config, fromTag, pkgName): string | undefined

Parameters

NameType
configConfig
fromTagstring
pkgNamestring

Returns

string | undefined

Defined in

packages/pvm-core/lib/versioning.ts:87


semverTag

โ–ธ semverTag(pkg): string

Parameters

NameType
pkgPkg

Returns

string

Defined in

packages/pvm-core/lib/tag-meta.ts:96


shell

โ–ธ shell(cmd, opts?): string

Parameters

NameType
cmdstring
optsExecSyncOptions

Returns

string

Defined in

packages/pvm-core/lib/shell/index.ts:29


shellOr

โ–ธ shellOr(def, cmd, opts?): string

Parameters

NameType
defstring
cmdstring
optsExecSyncOptions

Returns

string

Defined in

packages/pvm-core/lib/shell/index.ts:99


someSync

โ–ธ someSync<T>(seq, pred): boolean

Type parameters

Name
T

Parameters

NameType
seqIterable<T>
pred(item: T) => boolean

Returns

boolean

Defined in

packages/pvm-core/lib/iter/index.ts:60


splitTag

โ–ธ splitTag(tag): [string, string]

Parameters

NameType
tagstring

Returns

[string, string]

Defined in

packages/pvm-core/lib/tag-meta.ts:73


stringifyPkg

โ–ธ stringifyPkg(pkg, manifest?): string

Parameters

NameTypeDefault value
pkgPkgundefined
manifestPkgMetapkg.meta

Returns

string

Defined in

packages/pvm-core/lib/pkg.ts:469


stripPkgNamespace

โ–ธ stripPkgNamespace(pkgName): string

Parameters

NameType
pkgNamestring

Returns

string

Defined in

packages/pvm-core/lib/tag-meta.ts:86


stripServiceLabels

โ–ธ stripServiceLabels(text): string

Parameters

NameType
textstring

Returns

string

Defined in

packages/pvm-core/lib/text/commits.ts:3


takeFirstSync

โ–ธ takeFirstSync<T>(seq): T | undefined

Type parameters

Name
T

Parameters

NameType
seqIterable<T>

Returns

T | undefined

Defined in

packages/pvm-core/lib/iter/index.ts:54


validateAgainstSchema

โ–ธ validateAgainstSchema(config): void

Parameters

NameType
configConfig

Returns

void

Defined in

packages/pvm-core/lib/config/get-config.ts:195


validateUpdateHints

โ–ธ validateUpdateHints(config, hints): void

Parameters

NameType
configConfig
hintsRecord<string, any>

Returns

void

Defined in

packages/pvm-core/lib/hints-file.ts:148


verifyRequiredBins

โ–ธ verifyRequiredBins(): Promise<void>

Returns

Promise<void>

Defined in

packages/pvm-core/lib/app/required-bin-versions.ts:7


wdShell

โ–ธ wdShell(wd, cmd, opts?): string

Parameters

NameType
wdstring
cmdstring
optsExecSyncOptions

Returns

string

Defined in

packages/pvm-core/lib/shell/index.ts:81


wdmemoize

โ–ธ wdmemoize<A, R>(fn, tags, cwdArgPosition?): MemoizedFunction<A, R>

Type parameters

NameType
Aextends any[]
RR

Parameters

NameTypeDefault value
fn(...args: A) => Rundefined
tagsCacheTag[]undefined
cwdArgPositionnumber0

Returns

MemoizedFunction<A, R>

Defined in

packages/pvm-core/lib/memoize/tagged-cache-manager.ts:130