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

@changesets/changelog-github

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@changesets/changelog-github - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

9

CHANGELOG.md
# @changesets/changelog-github
## 0.2.8
### Patch Changes
- [`3436c53`](https://github.com/atlassian/changesets/commit/3436c53acf444c2ce19f8548920b7b73461a9c76) [#510](https://github.com/atlassian/changesets/pull/510) Thanks [@tuanddd](https://github.com/tuanddd)! - Added validation rule for invalid `repo` arguments.
- Updated dependencies [[`3436c53`](https://github.com/atlassian/changesets/commit/3436c53acf444c2ce19f8548920b7b73461a9c76)]:
- @changesets/get-github-info@0.4.5
## 0.2.7

@@ -4,0 +13,0 @@

10

dist/changelog-github.cjs.prod.js

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

if (0 === dependenciesUpdated.length) return "";
return [ `- Updated dependencies [${(await Promise.all(changesets.map(async cs => {
return [ `- Updated dependencies [${(await Promise.all(changesets.map((async cs => {
if (cs.commit) {

@@ -24,7 +24,7 @@ let {links: links} = await getGithubInfo.getInfo({

}
}))).filter(_ => _).join(", ")}]:`, ...dependenciesUpdated.map(dependency => ` - ${dependency.name}@${dependency.newVersion}`) ].join("\n");
})))).filter((_ => _)).join(", ")}]:`, ...dependenciesUpdated.map((dependency => ` - ${dependency.name}@${dependency.newVersion}`)) ].join("\n");
},
getReleaseLine: async (changeset, type, options) => {
if (!options || !options.repo) throw new Error('Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]');
const [firstLine, ...futureLines] = changeset.summary.split("\n").map(l => l.trimRight());
const [firstLine, ...futureLines] = changeset.summary.split("\n").map((l => l.trimRight()));
if (changeset.commit) {

@@ -35,5 +35,5 @@ let {links: links} = await getGithubInfo.getInfo({

});
return `\n\n- ${links.commit}${null === links.pull ? "" : ` ${links.pull}`}${null === links.user ? "" : ` Thanks ${links.user}!`} - ${firstLine}\n${futureLines.map(l => ` ${l}`).join("\n")}`;
return `\n\n- ${links.commit}${null === links.pull ? "" : " " + links.pull}${null === links.user ? "" : ` Thanks ${links.user}!`} - ${firstLine}\n${futureLines.map((l => " " + l)).join("\n")}`;
}
return `\n\n- ${firstLine}\n${futureLines.map(l => ` ${l}`).join("\n")}`;
return `\n\n- ${firstLine}\n${futureLines.map((l => " " + l)).join("\n")}`;
}

@@ -40,0 +40,0 @@ };

{
"name": "@changesets/changelog-github",
"version": "0.2.7",
"version": "0.2.8",
"description": "A changelog entry generator for GitHub that links to commits, PRs and users",

@@ -10,3 +10,3 @@ "main": "dist/changelog-github.cjs.js",

"dependencies": {
"@changesets/get-github-info": "^0.4.4",
"@changesets/get-github-info": "^0.4.5",
"@changesets/types": "^3.0.0",

@@ -13,0 +13,0 @@ "dotenv": "^8.1.0"

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