@monodeploy/changelog
Advanced tools
Comparing version 0.5.0 to 0.5.1
import type { CommitMessage, MonodeployConfiguration, YarnContext } from '@monodeploy/types'; | ||
declare const generateChangelogEntry: (config: MonodeployConfiguration, context: YarnContext, packageName: string, previousVersion: string | null, newVersion: string, commits: CommitMessage[]) => Promise<string | null>; | ||
declare const generateChangelogEntry: ({ config, context, packageName, previousVersion, newVersion, commits, }: { | ||
config: MonodeployConfiguration; | ||
context: YarnContext; | ||
packageName: string; | ||
previousVersion: string | null; | ||
newVersion: string; | ||
commits: CommitMessage[]; | ||
}) => Promise<string | null>; | ||
export default generateChangelogEntry; |
@@ -12,3 +12,3 @@ "use strict"; | ||
const io_1 = require("@monodeploy/io"); | ||
const generateChangelogEntry = async (config, context, packageName, previousVersion, newVersion, commits) => { | ||
const generateChangelogEntry = async ({ config, context, packageName, previousVersion, newVersion, commits, }) => { | ||
if (!config.conventionalChangelogConfig) { | ||
@@ -15,0 +15,0 @@ return null; |
import { Workspace } from '@yarnpkg/core'; | ||
import type { ChangesetSchema, MonodeployConfiguration, YarnContext } from '@monodeploy/types'; | ||
declare const prependChangelogFile: (config: MonodeployConfiguration, context: YarnContext, changeset: ChangesetSchema, workspaces: Set<Workspace>) => Promise<void>; | ||
declare const prependChangelogFile: ({ config, context, changeset, workspaces, }: { | ||
config: MonodeployConfiguration; | ||
context: YarnContext; | ||
changeset: ChangesetSchema; | ||
workspaces: Set<Workspace>; | ||
}) => Promise<void>; | ||
export default prependChangelogFile; |
@@ -52,3 +52,3 @@ "use strict"; | ||
}; | ||
const prependChangelogFile = async (config, context, changeset, workspaces) => { | ||
const prependChangelogFile = async ({ config, context, changeset, workspaces, }) => { | ||
if (!config.changelogFilename) | ||
@@ -55,0 +55,0 @@ return; |
import type { ChangesetSchema, MonodeployConfiguration, PackageStrategyMap, PackageTagMap, YarnContext } from '@monodeploy/types'; | ||
declare const writeChangesetFile: (config: MonodeployConfiguration, context: YarnContext, previousTags: PackageTagMap, newTags: PackageTagMap, versionStrategies: PackageStrategyMap, createdGitTags?: Map<string, string> | undefined) => Promise<ChangesetSchema>; | ||
declare const writeChangesetFile: ({ config, context, previousTags, nextTags, versionStrategies, createdGitTags, }: { | ||
config: MonodeployConfiguration; | ||
context: YarnContext; | ||
previousTags: PackageTagMap; | ||
nextTags: PackageTagMap; | ||
versionStrategies: PackageStrategyMap; | ||
createdGitTags?: Map<string, string> | undefined; | ||
}) => Promise<ChangesetSchema>; | ||
export default writeChangesetFile; |
@@ -10,11 +10,18 @@ "use strict"; | ||
const changelog_1 = __importDefault(require("./changelog")); | ||
const writeChangesetFile = async (config, context, previousTags, newTags, versionStrategies, createdGitTags) => { | ||
const writeChangesetFile = async ({ config, context, previousTags, nextTags, versionStrategies, createdGitTags, }) => { | ||
const changesetData = {}; | ||
for (const [pkgName, newVersion] of newTags.entries()) { | ||
const previousVersion = previousTags.get(pkgName) ?? null; | ||
const changelog = await changelog_1.default(config, context, pkgName, previousVersion, newVersion, versionStrategies.get(pkgName)?.commits ?? []); | ||
changesetData[pkgName] = { | ||
for (const [packageName, newVersion] of nextTags.entries()) { | ||
const previousVersion = previousTags.get(packageName) ?? null; | ||
const changelog = await changelog_1.default({ | ||
config, | ||
context, | ||
packageName, | ||
previousVersion, | ||
newVersion, | ||
commits: versionStrategies.get(packageName)?.commits ?? [], | ||
}); | ||
changesetData[packageName] = { | ||
version: newVersion, | ||
changelog, | ||
tag: createdGitTags?.get(pkgName) ?? null, | ||
tag: createdGitTags?.get(packageName) ?? null, | ||
}; | ||
@@ -21,0 +28,0 @@ } |
{ | ||
"name": "@monodeploy/changelog", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"repository": "git@github.com:tophat/monodeploy.git", | ||
@@ -25,3 +25,3 @@ "author": "Top Hat Monocle Corp. <opensource@tophat.com>", | ||
"@monodeploy/git": "^0.2.0", | ||
"@monodeploy/io": "^0.2.8", | ||
"@monodeploy/io": "^0.2.9", | ||
"@monodeploy/logging": "^0.1.4", | ||
@@ -28,0 +28,0 @@ "@monodeploy/types": "^0.5.0", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15122
221
0
Updated@monodeploy/io@^0.2.9