
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@bernierllc/changeset-manager
Advanced tools
Pure changeset management utilities for versioning and changelog generation
Pure changeset management utilities for versioning and changelog generation in monorepos.
npm install @bernierllc/changeset-manager
import { ChangesetManager } from '@bernierllc/changeset-manager';
// Initialize with custom changesets directory
const changesetManager = new ChangesetManager('.changeset');
// Create a new changeset
const result = changesetManager.createChangeset({
packages: ['@myorg/package-1', '@myorg/package-2'],
bumpType: 'minor',
summary: 'Add new feature to both packages'
});
// Read existing changesets
const changesets = changesetManager.readChangesets();
// Generate changelog
const changelog = changesetManager.generateChangelog(
changesets.changesets,
changesetManager.getPackageVersions('./')
);
new ChangesetManager(changesetsDir?: string, config?: Partial<ChangesetConfig>)
changesetsDir: Directory to store changeset files (default: .changeset)config: Optional configuration objectCreate a new changeset entry.
const result = changesetManager.createChangeset({
packages: ['@myorg/package-1'],
bumpType: 'patch',
summary: 'Fix critical bug',
breaking: false,
dependencies: ['@myorg/other-package'],
dryRun: false
});
Read all existing changeset files.
const result = changesetManager.readChangesets();
console.log(result.changesets); // Array of ChangesetEntry objects
Delete a specific changeset file.
const deleted = changesetManager.deleteChangeset('changeset-id');
Read package versions from npm workspace.
const packages = changesetManager.getPackageVersions('./');
console.log(packages); // Array of package information
Calculate version bumps for packages based on changesets.
const versionBumps = changesetManager.calculateVersionBumps(changesets, packages);
console.log(versionBumps.get('@myorg/package-1')); // 'major' | 'minor' | 'patch' | 'none'
Generate changelog content from changesets and package information.
const changelog = changesetManager.generateChangelog(changesets, packages);
console.log(changelog); // Markdown formatted changelog
Get current configuration.
const config = changesetManager.getConfig();
Update configuration.
changesetManager.updateConfig({
changelog: {
title: 'Custom Changelog'
}
});
interface ChangesetOptions {
packages?: string[]; // Package names to include
bumpType?: VersionBumpType; // Version bump type
summary?: string; // Changeset summary
breaking?: boolean; // Is this a breaking change?
dependencies?: string[]; // Dependent packages
dryRun?: boolean; // Don't write files
}
interface ChangesetEntry {
id: string; // Unique identifier
summary: string; // Changeset summary
packages: string[]; // Affected packages
bumpType: VersionBumpType; // Version bump type
timestamp: Date; // Creation timestamp
author?: string; // Author information
breaking?: boolean; // Breaking change flag
dependencies?: string[]; // Dependent packages
}
type VersionBumpType = 'major' | 'minor' | 'patch' | 'none';
interface ChangesetConfig {
baseBranch: string; // Git base branch
access: 'public' | 'restricted'; // Package access level
ignore: string[]; // Patterns to ignore
changelog: {
repo: string; // Repository URL
title: string; // Changelog title
};
commit: {
message: string; // Commit message template
};
linked: string[][]; // Linked packages
updateInternalDependencies: 'patch' | 'minor'; // Internal dependency updates
___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: {
onlyUpdatePeerDependentsWhenOutOfRange: boolean;
updateInternalDependents: 'always' | 'out-of-range';
};
}
import { ChangesetManager } from '@bernierllc/changeset-manager';
const manager = new ChangesetManager();
// Create a simple changeset
const result = manager.createChangeset({
packages: ['@myorg/core'],
bumpType: 'patch',
summary: 'Fix authentication bug'
});
if (result.success) {
console.log('Changeset created successfully');
}
// Create a breaking changeset
const breakingResult = manager.createChangeset({
packages: ['@myorg/api'],
bumpType: 'major',
summary: 'Remove deprecated API methods',
breaking: true
});
// Update multiple packages
const multiResult = manager.createChangeset({
packages: ['@myorg/core', '@myorg/utils', '@myorg/types'],
bumpType: 'minor',
summary: 'Add new utility functions to all packages'
});
// Generate a complete changelog
const changesets = manager.readChangesets();
const packages = manager.getPackageVersions('./');
const changelog = manager.generateChangelog(changesets.changesets, packages);
console.log(changelog);
const customManager = new ChangesetManager('.changeset', {
changelog: {
title: 'Release Notes',
repo: 'https://github.com/myorg/myrepo'
},
commit: {
message: 'chore: release packages'
}
});
The package includes comprehensive tests that use real filesystem operations:
npm test
Tests cover:
All methods return structured results with success flags and error arrays:
const result = manager.createChangeset({
packages: [],
summary: 'Test'
});
if (!result.success) {
console.error('Errors:', result.errors);
console.warn('Warnings:', result.warnings);
}
breaking: true for API changes that require major version bumpsdryRun: true to preview changes before applying themThis package follows the project's development standards:
This package is licensed under the same terms as the parent project.
FAQs
Pure changeset management utilities for versioning and changelog generation
We found that @bernierllc/changeset-manager demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.