Huge News!Announcing our $40M Series B led by Abstract Ventures.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 13.9.0 to 13.10.0

2

build/src/bin/release-please.js

@@ -293,3 +293,3 @@ #!/usr/bin/env node

const manifestOptions = extractManifestOptions(argv);
manifest = await manifest_1.Manifest.fromManifest(github, targetBranch, argv.configFile, argv.manifestFile, manifestOptions);
manifest = await manifest_1.Manifest.fromManifest(github, targetBranch, argv.configFile, argv.manifestFile, manifestOptions, argv.path, argv.releaseAs);
}

@@ -296,0 +296,0 @@ if (argv.dryRun) {

@@ -195,5 +195,6 @@ import { ChangelogSection } from './changelog-notes';

* @param {string} manifestFile Optional. The path to the manifest versions file
* @param {string} path The single path to check. Optional
* @returns {Manifest}
*/
static fromManifest(github: GitHub, targetBranch: string, configFile?: string, manifestFile?: string, manifestOptionOverrides?: ManifestOptions): Promise<Manifest>;
static fromManifest(github: GitHub, targetBranch: string, configFile?: string, manifestFile?: string, manifestOptionOverrides?: ManifestOptions, path?: string, releaseAs?: string): Promise<Manifest>;
/**

@@ -200,0 +201,0 @@ * Create a Manifest from explicit config in code. This assumes that the

@@ -94,7 +94,8 @@ "use strict";

* @param {string} manifestFile Optional. The path to the manifest versions file
* @param {string} path The single path to check. Optional
* @returns {Manifest}
*/
static async fromManifest(github, targetBranch, configFile = exports.DEFAULT_RELEASE_PLEASE_CONFIG, manifestFile = exports.DEFAULT_RELEASE_PLEASE_MANIFEST, manifestOptionOverrides = {}) {
static async fromManifest(github, targetBranch, configFile = exports.DEFAULT_RELEASE_PLEASE_CONFIG, manifestFile = exports.DEFAULT_RELEASE_PLEASE_MANIFEST, manifestOptionOverrides = {}, path, releaseAs) {
const [{ config: repositoryConfig, options: manifestOptions }, releasedVersions,] = await Promise.all([
parseConfig(github, configFile, targetBranch),
parseConfig(github, configFile, targetBranch, path, releaseAs),
parseReleasedVersions(github, manifestFile, targetBranch),

@@ -694,4 +695,6 @@ ]);

* @param {string} branch Branch to fetch the config file from
* @param {string} onlyPath Optional. Use only the given package
* @param {string} releaseAs Optional. Override release-as and use the given version
*/
async function parseConfig(github, configFile, branch) {
async function parseConfig(github, configFile, branch, onlyPath, releaseAs) {
const config = await github.getFileJson(configFile, branch);

@@ -701,3 +704,8 @@ const defaultConfig = extractReleaserConfig(config);

for (const path in config.packages) {
if (onlyPath && onlyPath !== path)
continue;
repositoryConfig[path] = mergeReleaserConfig(defaultConfig, extractReleaserConfig(config.packages[path]));
if (releaseAs) {
repositoryConfig[path].releaseAs = releaseAs;
}
}

@@ -704,0 +712,0 @@ const configLabel = config['label'];

@@ -91,6 +91,12 @@ "use strict";

else {
const manifestPath = this.addPath('Cargo.toml');
logger_1.logger.info(`single crate found, updating ${manifestPath}`);
logger_1.logger.info('single crate found, updating Cargo.toml');
const packageName = await this.getDefaultPackageName();
if (packageName) {
versionsMap.set(packageName, version);
}
else {
logger_1.logger.warn('No crate package name found');
}
updates.push({
path: manifestPath,
path: this.addPath('Cargo.toml'),
createIfMissing: false,

@@ -97,0 +103,0 @@ updater: new cargo_toml_1.CargoToml({

{
"name": "release-please",
"version": "13.9.0",
"version": "13.10.0",
"description": "generate release PRs based on the conventionalcommits.org spec",

@@ -5,0 +5,0 @@ "main": "./build/src/index.js",

Sorry, the diff of this file is too big to display

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