New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@monodeploy/changelog

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@monodeploy/changelog - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

9

lib/changelog.d.ts
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;

2

lib/changelog.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc