Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chronus/chronus

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chronus/chronus - npm Package Compare versions

Comparing version 0.12.1 to 0.13.0

dist/release-plan/current.d.ts

1

dist/cli/commands/show-status.d.ts

@@ -6,3 +6,2 @@ export interface ShowStatusOptions {

export declare function showStatus(cwd: string, options: ShowStatusOptions): Promise<void>;
export declare function showStatusAsMarkdown(cwd: string): Promise<string>;
//# sourceMappingURL=show-status.d.ts.map
import pc from "picocolors";
import { resolveCurrentReleasePlan } from "../../release-plan/current.js";
import { NodeChronusHost } from "../../utils/node-host.js";
import { loadChronusWorkspace } from "../../workspace/load.js";
import { resolveReleasePlan } from "./bump-versions.js";
function log(...args) {

@@ -10,3 +9,3 @@ // eslint-disable-next-line no-console

export async function showStatus(cwd, options) {
const releasePlan = await resolveCurrentReleasePlan(cwd, options);
const releasePlan = await resolveCurrentReleasePlan(NodeChronusHost, cwd, options);
let max = 50;

@@ -42,34 +41,2 @@ for (const action of releasePlan.actions) {

}
async function resolveCurrentReleasePlan(cwd, options) {
const host = NodeChronusHost;
const workspace = await loadChronusWorkspace(host, cwd);
return await resolveReleasePlan(host, workspace, options);
}
export async function showStatusAsMarkdown(cwd) {
const releasePlan = await resolveCurrentReleasePlan(cwd);
return [
"",
"## Change summary:",
"",
...typeAsMarkdown(releasePlan.actions, "major"),
"",
...typeAsMarkdown(releasePlan.actions, "minor"),
"",
...typeAsMarkdown(releasePlan.actions, "patch"),
"",
].join("\n");
}
function typeAsMarkdown(actions, type) {
const bold = (x) => `**${x}**`;
const filteredActions = actions.filter((x) => x.type === type);
if (filteredActions.length === 0) {
return [`### ${"No"} packages to be bumped at ${bold(type)}`];
}
else {
return [
`### ${filteredActions.length} packages to be bumped at ${bold(type)}:`,
...filteredActions.map((action) => `- ${action.packageName} \`${action.oldVersion}\` → \`${action.newVersion}\``),
];
}
}
//# sourceMappingURL=show-status.js.map
export type { AreaStatus, ChangeArea, ChangeStatus, PackageStatus } from "./change/find.js";
export { getWorkspaceStatus } from "./change/get-workspace-status.js";
export { renderReleasePlanAsMarkdown, resolveCurrentReleasePlan } from "./release-plan/index.js";
export { NodeChronusHost } from "./utils/node-host.js";

@@ -4,0 +5,0 @@ export { loadChronusWorkspace } from "./workspace/index.js";

export { getWorkspaceStatus } from "./change/get-workspace-status.js";
export { renderReleasePlanAsMarkdown, resolveCurrentReleasePlan } from "./release-plan/index.js";
export { NodeChronusHost } from "./utils/node-host.js";
export { loadChronusWorkspace } from "./workspace/index.js";
//# sourceMappingURL=index.js.map
export { assembleReleasePlan } from "./assemble-release-plan.js";
export { resolveCurrentReleasePlan } from "./current.js";
export { renderReleasePlanAsMarkdown } from "./markdown.js";
export type * from "./types.js";
//# sourceMappingURL=index.d.ts.map
export { assembleReleasePlan } from "./assemble-release-plan.js";
export { resolveCurrentReleasePlan } from "./current.js";
export { renderReleasePlanAsMarkdown } from "./markdown.js";
//# sourceMappingURL=index.js.map
{
"name": "@chronus/chronus",
"version": "0.12.1",
"version": "0.13.0",
"type": "module",

@@ -50,3 +50,3 @@ "description": "chronus",

"@types/micromatch": "^4.0.9",
"@types/node": "^22.5.4",
"@types/node": "^22.5.5",
"@types/node-fetch": "^2.6.11",

@@ -62,3 +62,3 @@ "@types/pacote": "^11.1.8",

"typescript": "^5.6.2",
"vitest": "^2.0.5",
"vitest": "^2.1.1",
"@chronus/registry-mock": "0.0.1"

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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