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 9.3.0-beta.0 to 9.3.0-candidate.1

build/src/updaters/rust/cargo-lock.d.ts

2

build/src/github-release.js

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

? package_branch_prefix_1.packageBranchPrefix(this.packageName, this.releaseType)
: undefined);
: undefined, true, 'updated');
if (!gitHubReleasePR) {

@@ -59,0 +59,0 @@ checkpoint_1.checkpoint('no recent release PRs found', checkpoint_1.CheckpointType.Failure);

@@ -78,3 +78,3 @@ import { Octokit } from '@octokit/rest';

private allTags;
findMergedReleasePR(labels: string[], perPage?: number, branchPrefix?: string | undefined, preRelease?: boolean): Promise<GitHubReleasePR | undefined>;
findMergedReleasePR(labels: string[], perPage?: number, branchPrefix?: string | undefined, preRelease?: boolean, sort?: string): Promise<GitHubReleasePR | undefined>;
private hasAllLabels;

@@ -81,0 +81,0 @@ findOpenReleasePRs(labels: string[], perPage?: number): Promise<PullsListResponseItems>;

@@ -384,7 +384,7 @@ "use strict";

// TODO: make this handle more than 100 results using async iterator.
async findMergedReleasePR(labels, perPage = 100, branchPrefix = undefined, preRelease = true) {
async findMergedReleasePR(labels, perPage = 100, branchPrefix = undefined, preRelease = true, sort = 'created') {
branchPrefix = (branchPrefix === null || branchPrefix === void 0 ? void 0 : branchPrefix.endsWith('-')) ? branchPrefix.replace(/-$/, '')
: branchPrefix;
const baseLabel = await this.getBaseLabel();
const pullsResponse = (await this.request(`GET /repos/:owner/:repo/pulls?state=closed&per_page=${perPage}${this.proxyKey ? `&key=${this.proxyKey}` : ''}&sort=updated&direction=desc`, {
const pullsResponse = (await this.request(`GET /repos/:owner/:repo/pulls?state=closed&per_page=${perPage}${this.proxyKey ? `&key=${this.proxyKey}` : ''}&sort=${sort}&direction=desc`, {
owner: this.owner,

@@ -391,0 +391,0 @@ repo: this.repo,

import { ReleasePR } from '../release-pr';
import { Commit } from '../graphql-to-commits';
import { CargoManifest } from '../updaters/cargo-toml';
import { CargoManifest } from '../updaters/rust/common';
export declare class Rust extends ReleasePR {

@@ -10,2 +10,3 @@ static releaserName: string;

protected getWorkspaceManifest(): Promise<CargoManifest | null>;
protected exists(path: string): Promise<boolean>;
}

@@ -12,0 +13,0 @@ interface GetCommitsOptions {

@@ -23,3 +23,5 @@ "use strict";

// Cargo.toml support
const cargo_toml_1 = require("../updaters/cargo-toml");
const cargo_toml_1 = require("../updaters/rust/cargo-toml");
const cargo_lock_1 = require("../updaters/rust/cargo-lock");
const common_1 = require("../updaters/rust/common");
class Rust extends release_pr_1.ReleasePR {

@@ -68,3 +70,4 @@ async _run() {

}));
const paths = [];
const manifestPaths = [];
let lockPath;
if (workspaceManifest &&

@@ -76,4 +79,5 @@ workspaceManifest.workspace &&

for (const member of members) {
paths.push(`${member}/Cargo.toml`);
manifestPaths.push(`${member}/Cargo.toml`);
}
lockPath = 'Cargo.lock';
}

@@ -83,7 +87,8 @@ else {

checkpoint_1.checkpoint(`single crate found, updating ${manifestPath}`, checkpoint_1.CheckpointType.Success);
paths.push(this.addPath('Cargo.toml'));
manifestPaths.push(this.addPath('Cargo.toml'));
lockPath = this.addPath('Cargo.lock');
}
const versions = new Map();
versions.set(this.packageName, candidate.version);
for (const path of paths) {
for (const path of manifestPaths) {
updates.push(new cargo_toml_1.CargoToml({

@@ -97,2 +102,11 @@ path,

}
if (await this.exists(lockPath)) {
updates.push(new cargo_lock_1.CargoLock({
path: lockPath,
changelogEntry,
version: 'unused',
versions,
packageName: this.packageName,
}));
}
return await this.openPR({

@@ -147,4 +161,13 @@ sha: commits[0].sha,

}
return cargo_toml_1.parseCargoManifest(content.parsedContent);
return common_1.parseCargoManifest(content.parsedContent);
}
async exists(path) {
try {
await this.gh.getFileContents(path);
return true;
}
catch (_e) {
return false;
}
}
}

@@ -151,0 +174,0 @@ exports.Rust = Rust;

{
"name": "release-please",
"version": "9.3.0-beta.0",
"version": "9.3.0-candidate.1",
"description": "generate release PRs based on the conventionalcommits.org spec",

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

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