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

@ackee/chris

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ackee/chris - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

8

CHANGELOG.md

@@ -8,2 +8,9 @@ # Changelog

## [0.5.1] - 2019-01-29
### Added
- Ignoring of story for transpilation
### Changed
- Changelog script support change type prefixes
## [0.5.0] - 2019-01-29

@@ -55,2 +62,3 @@ ### Added

[0.5.1]: https://github.com/AckeeCZ/chris/compare/v0.5.0...v0.5.1
[0.5.0]: https://github.com/AckeeCZ/chris/compare/v0.4.1...v0.5.0

@@ -57,0 +65,0 @@ [0.4.1]: https://github.com/AckeeCZ/chris/compare/v0.4.0...v0.4.1

4

package.json
{
"name": "@ackee/chris",
"version": "0.5.0",
"version": "0.5.1",
"description": "Useful additions for your redux - react-router based app",

@@ -8,3 +8,3 @@ "main": "lib/index.js",

"scripts": {
"build:js": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline",
"build:js": "babel src --out-dir lib --extensions \".ts,.tsx\" --ignore \"**/*.story.tsx,**/*.d.ts\" --source-maps inline",
"build:types": "tsc --project tsconfig.types.json --emitDeclarationOnly",

@@ -11,0 +11,0 @@ "build": "npm run clean && npm run type-check && npm run build:js && npm run build:types",

@@ -19,2 +19,4 @@ const { parser, Release } = require('keep-a-changelog');

const capitalizeFirst = string => string.charAt(0).toUpperCase() + string.slice(1);
if (repository) {

@@ -30,2 +32,9 @@ changelog.url = repository.url;

const typeRegexps = {
added: /^Add(ed)?\s/,
fixed: /^Fix(ed)?\s/,
removed: /^Remove(d)?\s/,
changed: /^(Change|Update)(d)?\s/,
};
commits

@@ -35,6 +44,17 @@ .toString()

.filter(Boolean)
.forEach(message => nextRelease.added(message));
.forEach(message => {
for (const type in typeRegexps) {
const regexp = typeRegexps[type];
const typeMatch = message.match(regexp);
if (typeMatch) {
return nextRelease[type](capitalizeFirst(message.replace(typeMatch[0], '')));
}
}
// type not matched, add to added in default
nextRelease.added(message);
});
changelog.addRelease(nextRelease);
fs.writeFileSync(changelogPath, changelog.toString());
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