Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
changeset-conventional-commits
Advanced tools
Changelog
0.2.5
#27 e526cfb
Thanks @mblackrittr! - fix: duplicate generation of changesets (#26)
The same changesets were generated again, because the duplicate detection failed on trailing line breaks (\n
) it got from git
.
const changesets = ...:
// Data from Commits
[
{
releases: [[Object], [Object]],
summary: "chore(root): add two test packages\n",
packagesChanged: [[Object], [Object]],
},
];
const currentChangesets = ...:
// Data from Changesets
[
{
releases: [[Object], [Object]],
summary: "chore(root): add two test packages",
packagesChanged: [[Object], [Object]],
},
];
Truncating the linebreak at line 165 of src/utils/index.ts
fixed it:
const compareChangeSet = (a: Changeset, b: Changeset): boolean => {
// return a.summary === b.summary && JSON.stringify(a.releases) == JSON.stringify(b.releases);
return (
a.summary.replace(/\n$/, "") === b.summary &&
JSON.stringify(a.releases) == JSON.stringify(b.releases)
);
};
</details>
Readme
Generate changesets based on the conventional commits.
pnpm dlx changeset-conventional-commits
npx changeset-conventional-commits
pnpm add -D changeset-conventional-commits
pnpm changeset-conventional
in the root.This will generate changeset for each commit.
This library is created based on this PR. There are issues created in changesets for this functionality and there is not update on this yet. So I created this library till that support is implemented.
FAQs
Generate Changesets from conventional commits
The npm package changeset-conventional-commits receives a total of 3,213 weekly downloads. As such, changeset-conventional-commits popularity was classified as popular.
We found that changeset-conventional-commits demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.