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

release-please

Package Overview
Dependencies
Maintainers
2
Versions
383
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

release-please - npm Package Compare versions

Comparing version 11.10.0 to 11.11.0-candidate.0

build/src/logger.d.ts

4

build/src/conventional-commits.js

@@ -19,3 +19,3 @@ "use strict";

const semver = require("semver");
const checkpoint_1 = require("./util/checkpoint");
const logger_1 = require("./util/logger");
const parser_1 = require("@conventional-commits/parser");

@@ -113,3 +113,3 @@ const to_conventional_changelog_format_1 = require("./util/to-conventional-changelog-format");

const bump = await this.guessReleaseType(preMajor);
checkpoint_1.checkpoint(`release as ${chalk.green(bump.releaseType)}: ${chalk.yellow(bump.reason)}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`release as ${chalk.green(bump.releaseType)}: ${chalk.yellow(bump.reason)}`);
return bump;

@@ -116,0 +116,0 @@ }

@@ -17,4 +17,4 @@ "use strict";

exports.GitHubRelease = exports.GITHUB_RELEASE_LABEL = void 0;
const checkpoint_1 = require("./util/checkpoint");
const semver_1 = require("semver");
const logger_1 = require("./util/logger");
exports.GITHUB_RELEASE_LABEL = 'autorelease: tagged';

@@ -41,3 +41,3 @@ class GitHubRelease {

else {
checkpoint_1.checkpoint('Unable to build candidate', checkpoint_1.CheckpointType.Failure);
logger_1.logger.error('Unable to build candidate');
return [undefined, undefined];

@@ -67,3 +67,3 @@ }

releaseResponse(params) {
checkpoint_1.checkpoint(`Created release: ${params.release.html_url}.`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`Created release: ${params.release.html_url}.`);
const parsedVersion = semver_1.parse(params.version, { loose: true });

@@ -70,0 +70,0 @@ if (parsedVersion) {

@@ -18,2 +18,3 @@ "use strict";

const code_suggester_1 = require("code-suggester");
const logger_1 = require("./util/logger");
const rest_1 = require("@octokit/rest");

@@ -27,3 +28,2 @@ const request_1 = require("@octokit/request");

const semver = require("semver");
const checkpoint_1 = require("./util/checkpoint");
const graphql_to_commits_1 = require("./graphql-to-commits");

@@ -802,6 +802,6 @@ const branch_name_1 = require("./util/branch-name");

if (this.fork) {
checkpoint_1.checkpoint('release labels were not added, due to PR being created from fork', checkpoint_1.CheckpointType.Failure);
logger_1.logger.error('release labels were not added, due to PR being created from fork');
return false;
}
checkpoint_1.checkpoint(`adding label ${chalk.green(labels.join(','))} to https://github.com/${this.owner}/${this.repo}/pull/${pr}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`adding label ${chalk.green(labels.join(','))} to https://github.com/${this.owner}/${this.repo}/pull/${pr}`);
await this.request('POST /repos/:owner/:repo/issues/:issue_number/labels', {

@@ -858,3 +858,3 @@ owner: this.owner,

if (openReleasePR && openReleasePR.body === options.body) {
checkpoint_1.checkpoint(`PR https://github.com/${this.owner}/${this.repo}/pull/${openReleasePR.number} remained the same`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(`PR https://github.com/${this.owner}/${this.repo}/pull/${openReleasePR.number} remained the same`);
return undefined;

@@ -874,6 +874,7 @@ }

message: options.title,
}, { level: 'error' });
logger: logger_1.logger,
});
// If a release PR was already open, update the title and body:
if (openReleasePR) {
checkpoint_1.checkpoint(`update pull-request #${openReleasePR.number}: ${chalk.yellow(options.title)}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`update pull-request #${openReleasePR.number}: ${chalk.yellow(options.title)}`);
await this.request('PATCH /repos/:owner/:repo/pulls/:pull_number', {

@@ -914,3 +915,3 @@ pull_number: openReleasePR.number,

if (!update.create) {
checkpoint_1.checkpoint(`file ${chalk.green(update.path)} did not exist`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(`file ${chalk.green(update.path)} did not exist`);
continue;

@@ -1042,3 +1043,3 @@ }

async createRelease(packageName, tagName, sha, releaseNotes, draft) {
checkpoint_1.checkpoint(`creating release ${tagName}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`creating release ${tagName}`);
const name = packageName ? `${packageName} ${tagName}` : tagName;

@@ -1060,3 +1061,3 @@ return (await this.request('POST /repos/:owner/:repo/releases', {

label = labels[i];
checkpoint_1.checkpoint(`removing label ${chalk.green(label)} from ${chalk.green('' + prNumber)}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`removing label ${chalk.green(label)} from ${chalk.green('' + prNumber)}`);
await this.request('DELETE /repos/:owner/:repo/issues/:issue_number/labels/:name', {

@@ -1187,3 +1188,3 @@ owner: this.owner,

async commentOnIssue(comment, number) {
checkpoint_1.checkpoint(`adding comment to https://github.com/${this.owner}/${this.repo}/issue/${number}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`adding comment to https://github.com/${this.owner}/${this.repo}/issue/${number}`);
return (await this.request('POST /repos/:owner/:repo/issues/:issue_number/comments', {

@@ -1190,0 +1191,0 @@ owner: this.owner,

@@ -84,1 +84,2 @@ import { OctokitAPIs, GitHub } from './github';

export { Ruby } from './releasers/ruby';
export { setLogger, Logger } from './util/logger';

@@ -29,2 +29,4 @@ "use strict";

Object.defineProperty(exports, "Ruby", { enumerable: true, get: function () { return ruby_1.Ruby; } });
var logger_1 = require("./util/logger");
Object.defineProperty(exports, "setLogger", { enumerable: true, get: function () { return logger_1.setLogger; } });
//# sourceMappingURL=index.js.map

@@ -19,3 +19,2 @@ "use strict";

const semver = require("semver");
const checkpoint_1 = require("./util/checkpoint");
const conventional_commits_1 = require("./conventional-commits");

@@ -26,2 +25,3 @@ const branch_name_1 = require("./util/branch-name");

const changelog_1 = require("./updaters/changelog");
const logger_1 = require("./util/logger");
class ReleasePR {

@@ -84,3 +84,3 @@ constructor(options) {

if (this.changelogEmpty(changelogEntry)) {
checkpoint_1.checkpoint(`no user facing commits found since ${latestTag ? latestTag.sha : 'beginning of time'}`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(`no user facing commits found since ${latestTag ? latestTag.sha : 'beginning of time'}`);
return undefined;

@@ -101,3 +101,3 @@ }

if (this.snapshot && !this.supportsSnapshots()) {
checkpoint_1.checkpoint('snapshot releases not supported for this releaser', checkpoint_1.CheckpointType.Failure);
logger_1.logger.error('snapshot releases not supported for this releaser');
return;

@@ -108,3 +108,3 @@ }

// a PR already exists in the autorelease: pending state.
checkpoint_1.checkpoint(`pull #${mergedPR.number} ${mergedPR.sha} has not yet been released`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(`pull #${mergedPR.number} ${mergedPR.sha} has not yet been released`);
return undefined;

@@ -151,3 +151,3 @@ }

}
checkpoint_1.checkpoint(`closing pull #${pr.number}`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(`closing pull #${pr.number}`);
await this.gh.closePR(pr.number);

@@ -217,6 +217,6 @@ }

if (commits.length) {
checkpoint_1.checkpoint(`found ${commits.length} commits since ${sha ? sha : 'beginning of time'}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`found ${commits.length} commits since ${sha ? sha : 'beginning of time'}`);
}
else {
checkpoint_1.checkpoint(`no commits found since ${sha}`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.warn(`no commits found since ${sha}`);
}

@@ -274,3 +274,3 @@ return commits;

await this.gh.addLabels(this.labels, pr);
checkpoint_1.checkpoint(`find stale PRs with label "${this.labels.join(',')}"`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`find stale PRs with label "${this.labels.join(',')}"`);
await this.closeStaleReleasePRs(pr, includePackageName);

@@ -332,3 +332,3 @@ }

if (!mergedPR) {
checkpoint_1.checkpoint('No merged release PR found', checkpoint_1.CheckpointType.Failure);
logger_1.logger.error('No merged release PR found');
return undefined;

@@ -339,3 +339,3 @@ }

if (!version) {
checkpoint_1.checkpoint('Unable to detect release version', checkpoint_1.CheckpointType.Failure);
logger_1.logger.error('Unable to detect release version');
return undefined;

@@ -342,0 +342,0 @@ }

@@ -19,5 +19,5 @@ "use strict";

const conventional_commits_1 = require("../conventional-commits");
const checkpoint_1 = require("../util/checkpoint");
// Generic
const changelog_1 = require("../updaters/changelog");
const logger_1 = require("../util/logger");
// Commits containing a scope prefixed with an item in this array will be

@@ -102,3 +102,3 @@ // ignored when generating a release PR for the parent module.

if (this.changelogEmpty(changelogEntry)) {
checkpoint_1.checkpoint(`no user facing commits found since ${latestTag ? latestTag.sha : 'beginning of time'}`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(`no user facing commits found since ${latestTag ? latestTag.sha : 'beginning of time'}`);
return undefined;

@@ -105,0 +105,0 @@ }

@@ -20,3 +20,2 @@ "use strict";

const versions_manifest_1 = require("../updaters/java/versions-manifest");
const checkpoint_1 = require("../util/checkpoint");
const conventional_commits_1 = require("../conventional-commits");

@@ -32,2 +31,3 @@ const version_1 = require("./java/version");

const bump_type_1 = require("./java/bump_type");
const logger_1 = require("../util/logger");
const CHANGELOG_SECTIONS = [

@@ -64,3 +64,3 @@ { type: 'feat', section: 'Features' },

else if (!snapshotNeeded) {
checkpoint_1.checkpoint('release asked for a snapshot, but no snapshot is needed', checkpoint_1.CheckpointType.Failure);
logger_1.logger.error('release asked for a snapshot, but no snapshot is needed');
return undefined;

@@ -85,3 +85,3 @@ }

if (commits.length === 0) {
checkpoint_1.checkpoint(`no commits found since ${latestTag ? latestTag.sha : 'beginning of time'}`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(`no commits found since ${latestTag ? latestTag.sha : 'beginning of time'}`);
return undefined;

@@ -115,3 +115,3 @@ }

if (this.changelogEmpty(changelogEntry) && !this.snapshot) {
checkpoint_1.checkpoint(`no user facing commits found since ${latestTag ? latestTag.sha : 'beginning of time'}`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(`no user facing commits found since ${latestTag ? latestTag.sha : 'beginning of time'}`);
return undefined;

@@ -118,0 +118,0 @@ }

@@ -19,3 +19,2 @@ "use strict";

const conventional_commits_1 = require("../conventional-commits");
const checkpoint_1 = require("../util/checkpoint");
const commit_split_1 = require("../commit-split");

@@ -30,2 +29,3 @@ const semver = require("semver");

const version_1 = require("../updaters/version");
const logger_1 = require("../util/logger");
const CHANGELOG_SECTIONS = [

@@ -132,3 +132,3 @@ { type: 'feat', section: 'Features' },

if (!candidate) {
checkpoint_1.checkpoint(`failed to update ${pkgKey} version`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(`failed to update ${pkgKey} version`);
continue;

@@ -135,0 +135,0 @@ }

@@ -21,6 +21,6 @@ "use strict";

const conventional_commits_1 = require("../conventional-commits");
const checkpoint_1 = require("../util/checkpoint");
const indent_commit_1 = require("../util/indent-commit");
const changelog_1 = require("../updaters/changelog");
const version_rb_1 = require("../updaters/version-rb");
const logger_1 = require("../util/logger");
const CHANGELOG_SECTIONS = [

@@ -50,3 +50,3 @@ { type: 'feat', section: 'Features' },

if (commits.length === 0) {
checkpoint_1.checkpoint(`no commits found since ${lastReleaseSha}`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(`no commits found since ${lastReleaseSha}`);
return undefined;

@@ -78,3 +78,3 @@ }

if (this.changelogEmpty(changelogEntry)) {
checkpoint_1.checkpoint(`no user facing commits found since ${lastReleaseSha ? lastReleaseSha : 'beginning of time'}`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(`no user facing commits found since ${lastReleaseSha ? lastReleaseSha : 'beginning of time'}`);
return undefined;

@@ -81,0 +81,0 @@ }

@@ -19,3 +19,2 @@ "use strict";

const conventional_commits_1 = require("../conventional-commits");
const checkpoint_1 = require("../util/checkpoint");
// Generic

@@ -27,2 +26,3 @@ const changelog_1 = require("../updaters/changelog");

const common_1 = require("../updaters/rust/common");
const logger_1 = require("../util/logger");
class Rust extends release_pr_1.ReleasePR {

@@ -55,3 +55,3 @@ async _run() {

if (this.changelogEmpty(changelogEntry)) {
checkpoint_1.checkpoint(`no user facing commits found since ${latestTag ? latestTag.sha : 'beginning of time'}`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(`no user facing commits found since ${latestTag ? latestTag.sha : 'beginning of time'}`);
return undefined;

@@ -73,3 +73,3 @@ }

const members = workspaceManifest.workspace.members;
checkpoint_1.checkpoint(`found workspace with ${members.length} members, upgrading all`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`found workspace with ${members.length} members, upgrading all`);
for (const member of members) {

@@ -82,3 +82,3 @@ manifestPaths.push(`${member}/Cargo.toml`);

const manifestPath = this.addPath('Cargo.toml');
checkpoint_1.checkpoint(`single crate found, updating ${manifestPath}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`single crate found, updating ${manifestPath}`);
manifestPaths.push(this.addPath('Cargo.toml'));

@@ -138,6 +138,6 @@ lockPath = this.addPath('Cargo.lock');

if (commits.length) {
checkpoint_1.checkpoint(`found ${commits.length} commits for ${path} since ${sha ? sha : 'beginning of time'}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`found ${commits.length} commits for ${path} since ${sha ? sha : 'beginning of time'}`);
}
else {
checkpoint_1.checkpoint(`no commits found since ${sha}`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(`no commits found since ${sha}`);
}

@@ -144,0 +144,0 @@ return commits;

@@ -17,3 +17,3 @@ "use strict";

exports.Changelog = void 0;
const checkpoint_1 = require("../util/checkpoint");
const logger_1 = require("../util/logger");
class Changelog {

@@ -32,8 +32,8 @@ constructor(options) {

if (lastEntryIndex === -1) {
checkpoint_1.checkpoint(`${this.path} not found`, checkpoint_1.CheckpointType.Failure);
checkpoint_1.checkpoint(`creating ${this.path}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.error(`${this.path} not found`);
logger_1.logger.info(`creating ${this.path}`);
return `${this.header()}\n${this.changelogEntry}\n`;
}
else {
checkpoint_1.checkpoint(`updating ${this.path}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`updating ${this.path}`);
const before = content.slice(0, lastEntryIndex);

@@ -40,0 +40,0 @@ const after = content.slice(lastEntryIndex);

@@ -17,4 +17,4 @@ "use strict";

exports.ChartYaml = void 0;
const checkpoint_1 = require("../../util/checkpoint");
const yaml = require("js-yaml");
const logger_1 = require("../../util/logger");
class ChartYaml {

@@ -34,3 +34,3 @@ constructor(options) {

const parsed = JSON.parse(JSON.stringify(data));
checkpoint_1.checkpoint(`updating ${this.path} from ${parsed.version} to ${this.version}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`updating ${this.path} from ${parsed.version} to ${this.version}`);
parsed.version = this.version;

@@ -37,0 +37,0 @@ return yaml.dump(parsed);

@@ -17,3 +17,3 @@ "use strict";

exports.DuneProject = void 0;
const checkpoint_1 = require("../../util/checkpoint");
const logger_1 = require("../../util/logger");
class DuneProject {

@@ -30,3 +30,3 @@ constructor(options) {

if (oldVersion) {
checkpoint_1.checkpoint(`updating ${this.path} from ${oldVersion[1]} to ${this.version}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`updating ${this.path} from ${oldVersion[1]} to ${this.version}`);
}

@@ -33,0 +33,0 @@ return content.replace(/^\(version ([A-Za-z0-9_\-+.~]+)\)$/m, `(version ${this.version})`);

@@ -17,3 +17,3 @@ "use strict";

exports.EsyJson = void 0;
const checkpoint_1 = require("../../util/checkpoint");
const logger_1 = require("../../util/logger");
class EsyJson {

@@ -29,3 +29,3 @@ constructor(options) {

const parsed = JSON.parse(content);
checkpoint_1.checkpoint(`updating ${this.path} from ${parsed.version} to ${this.version}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`updating ${this.path} from ${parsed.version} to ${this.version}`);
parsed.version = this.version;

@@ -32,0 +32,0 @@ return JSON.stringify(parsed, null, 2) + '\n';

@@ -17,3 +17,3 @@ "use strict";

exports.Opam = void 0;
const checkpoint_1 = require("../../util/checkpoint");
const logger_1 = require("../../util/logger");
class Opam {

@@ -30,3 +30,3 @@ constructor(options) {

if (oldVersion) {
checkpoint_1.checkpoint(`updating ${this.path} from ${oldVersion[1]} to ${this.version}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`updating ${this.path} from ${oldVersion[1]} to ${this.version}`);
}

@@ -33,0 +33,0 @@ return content.replace(/^version: "[A-Za-z0-9_\-+.~]+"$/m, `version: "${this.version}"`);

@@ -17,4 +17,4 @@ "use strict";

exports.PackageJson = void 0;
const checkpoint_1 = require("../util/checkpoint");
const package_json_stringify_1 = require("../util/package-json-stringify");
const logger_1 = require("../util/logger");
class PackageJson {

@@ -34,3 +34,3 @@ constructor(options) {

const parsed = JSON.parse(content);
checkpoint_1.checkpoint(`updating ${this.path} from ${parsed.version} to ${this.version}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`updating ${this.path} from ${parsed.version} to ${this.version}`);
this.updateVersion(parsed);

@@ -37,0 +37,0 @@ return package_json_stringify_1.packageJsonStringify(parsed);

@@ -17,3 +17,3 @@ "use strict";

exports.PHPManifest = void 0;
const checkpoint_1 = require("../util/checkpoint");
const logger_1 = require("../util/logger");
class PHPManifest {

@@ -30,3 +30,3 @@ constructor(options) {

if (!this.versions || this.versions.size === 0) {
checkpoint_1.checkpoint(`no updates necessary for ${this.path}`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(`no updates necessary for ${this.path}`);
return content;

@@ -40,3 +40,3 @@ }

if (module.name === key) {
checkpoint_1.checkpoint(`adding ${key}@${version} to manifest`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`adding ${key}@${version} to manifest`);
module.versions.unshift(`v${version}`);

@@ -43,0 +43,0 @@ }

@@ -17,3 +17,3 @@ "use strict";

exports.RootComposer = void 0;
const checkpoint_1 = require("../util/checkpoint");
const logger_1 = require("../util/logger");
class RootComposer {

@@ -30,3 +30,3 @@ constructor(options) {

if (!this.versions || this.versions.size === 0) {
checkpoint_1.checkpoint(`no updates necessary for ${this.path}`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(`no updates necessary for ${this.path}`);
return content;

@@ -39,3 +39,3 @@ }

version = version || '1.0.0';
checkpoint_1.checkpoint(`updating ${key} from ${parsed.replace[key]} to ${version}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`updating ${key} from ${parsed.replace[key]} to ${version}`);
parsed.replace[key] = version;

@@ -42,0 +42,0 @@ }

@@ -17,5 +17,5 @@ "use strict";

exports.CargoLock = void 0;
const checkpoint_1 = require("../../util/checkpoint");
const toml_edit_1 = require("./toml-edit");
const common_1 = require("./common");
const logger_1 = require("../../util/logger");
/**

@@ -40,3 +40,3 @@ * Updates `Cargo.lock` lockfiles, preserving formatting and comments.

if (!parsed.package) {
checkpoint_1.checkpoint(`${this.path} is not a Cargo lockfile`, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(`${this.path} is not a Cargo lockfile`);
throw new Error(`${this.path} is not a Cargo lockfile`);

@@ -62,3 +62,3 @@ }

const packageIndex = i.toString();
checkpoint_1.checkpoint(`updating ${pkg.name} in ${this.path}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`updating ${pkg.name} in ${this.path}`);
payload = toml_edit_1.replaceTomlValue(payload, ['package', packageIndex, 'version'], nextVersion);

@@ -65,0 +65,0 @@ }

@@ -17,5 +17,5 @@ "use strict";

exports.CargoToml = void 0;
const checkpoint_1 = require("../../util/checkpoint");
const toml_edit_1 = require("./toml-edit");
const common_1 = require("./common");
const logger_1 = require("../../util/logger");
/**

@@ -42,3 +42,3 @@ * Updates `Cargo.toml` manifests, preserving formatting and comments.

const msg = `${this.path} is not a package manifest (might be a cargo workspace)`;
checkpoint_1.checkpoint(msg, checkpoint_1.CheckpointType.Failure);
logger_1.logger.error(msg);
throw new Error(msg);

@@ -48,3 +48,3 @@ }

if (parsed.package.name === pkgName) {
checkpoint_1.checkpoint(`updating ${this.path}'s own version from ${(_a = parsed.package) === null || _a === void 0 ? void 0 : _a.version} to ${pkgVersion}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`updating ${this.path}'s own version from ${(_a = parsed.package) === null || _a === void 0 ? void 0 : _a.version} to ${pkgVersion}`);
payload = toml_edit_1.replaceTomlValue(payload, ['package', 'version'], pkgVersion);

@@ -63,6 +63,6 @@ continue; // to next [pkgName, pkgVersion] pair

if (typeof dep === 'string' || typeof dep.path === 'undefined') {
checkpoint_1.checkpoint(`skipping ${depKind}.${pkgName} in ${this.path}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`skipping ${depKind}.${pkgName} in ${this.path}`);
continue; // to next depKind
}
checkpoint_1.checkpoint(`updating ${this.path} ${depKind}.${pkgName} from ${dep.version} to ${pkgVersion}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`updating ${this.path} ${depKind}.${pkgName} from ${dep.version} to ${pkgVersion}`);
payload = toml_edit_1.replaceTomlValue(payload, [depKind, pkgName, 'version'], pkgVersion);

@@ -83,6 +83,6 @@ }

if (typeof dep === 'string' || typeof dep.path === 'undefined') {
checkpoint_1.checkpoint(`skipping target.${targetName}.${depKind}.${pkgName} in ${this.path}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`skipping target.${targetName}.${depKind}.${pkgName} in ${this.path}`);
continue; // to next depKind
}
checkpoint_1.checkpoint(`updating ${this.path} target.${targetName}.${depKind}.${pkgName} from ${dep.version} to ${pkgVersion}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`updating ${this.path} target.${targetName}.${depKind}.${pkgName} from ${dep.version} to ${pkgVersion}`);
payload = toml_edit_1.replaceTomlValue(payload, ['target', targetName, depKind, pkgName, 'version'], pkgVersion);

@@ -89,0 +89,0 @@ }

@@ -17,3 +17,3 @@ "use strict";

exports.SamplesPackageJson = void 0;
const checkpoint_1 = require("../util/checkpoint");
const logger_1 = require("../util/logger");
class SamplesPackageJson {

@@ -32,3 +32,3 @@ constructor(options) {

}
checkpoint_1.checkpoint(`updating ${this.packageName} dependency in ${this.path} from ${parsed.dependencies[this.packageName]} to ^${this.version}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`updating ${this.packageName} dependency in ${this.path} from ${parsed.dependencies[this.packageName]} to ^${this.version}`);
parsed.dependencies[this.packageName] = `^${this.version}`;

@@ -35,0 +35,0 @@ return JSON.stringify(parsed, null, 2) + '\n';

@@ -17,3 +17,3 @@ "use strict";

exports.ModuleVersion = void 0;
const checkpoint_1 = require("../../util/checkpoint");
const logger_1 = require("../../util/logger");
class ModuleVersion {

@@ -30,3 +30,3 @@ constructor(options) {

if (oldVersion) {
checkpoint_1.checkpoint(`updating ${this.path} from ${oldVersion} to v${this.version}`, checkpoint_1.CheckpointType.Success);
logger_1.logger.info(`updating ${this.path} from ${oldVersion} to v${this.version}`);
}

@@ -33,0 +33,0 @@ return content.replace(/v[0-9]+\.[0-9]+\.[0-9]+(-\w+)?/g, `v${this.version}`);

@@ -17,4 +17,3 @@ "use strict";

exports.checkpoint = exports.CheckpointType = void 0;
const chalk = require("chalk");
const figures = require("figures");
const logger_1 = require("./logger");
var CheckpointType;

@@ -26,9 +25,11 @@ (function (CheckpointType) {

exports.checkpoint = function (msg, type) {
const prefix = type === CheckpointType.Success
? chalk.green(figures.tick)
: chalk.red(figures.cross);
if (process.env.ENVIRONMENT !== 'test') {
console.info(`${prefix} ${msg}`);
if (type === CheckpointType.Success) {
logger_1.logger.info(msg);
}
else {
logger_1.logger.error(msg);
}
}
};
//# sourceMappingURL=checkpoint.js.map
{
"name": "release-please",
"version": "11.10.0",
"version": "11.11.0-candidate.0",
"description": "generate release PRs based on the conventionalcommits.org spec",

@@ -73,3 +73,3 @@ "main": "./build/src/index.js",

"chalk": "^4.0.0",
"code-suggester": "^1.4.0",
"code-suggester": "^2.0.0",
"conventional-changelog-conventionalcommits": "^4.6.0",

@@ -76,0 +76,0 @@ "conventional-changelog-writer": "^5.0.0",

Sorry, the diff of this file is not supported yet

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