conventional-changelog-beemo
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -0,1 +1,9 @@ | ||
## 1.2.0 - 2019-04-10 | ||
#### 🚀 Updates | ||
- Added a new commit prefix type, `deps`, which can be used when bumping dependencies. This is a | ||
patch version bump. | ||
- Added space support to commit scopes. | ||
### 1.1.1 - 2019-04-08 | ||
@@ -2,0 +10,0 @@ |
export default function checkCommitFormat(commit) { | ||
const match = commit.match(/^(break|build|ci|docs|feature|fix|internal|misc|new|release|revert|security|style|test|update)(?:\(([a-zA-Z0-9\-.,]+)\))?:/u); | ||
const match = commit.match(/^(break|build|ci|deps|docs|feature|fix|internal|misc|new|release|revert|security|style|test|update)(?:\(([a-zA-Z0-9\-., ]+)\))?:/u); | ||
@@ -4,0 +4,0 @@ if (!match) { |
const options = { | ||
headerCorrespondence: ['type', 'scope', 'message'], | ||
headerPattern: /^(\w+)(?:\(([a-z0-9\-.,]+)\))?: (.*)$/u, | ||
headerPattern: /^(\w+)(?:\(([a-zA-Z0-9\-., ]+)\))?: (.*)$/u, | ||
mergeCorrespondence: ['pr', 'source'], | ||
@@ -5,0 +5,0 @@ mergePattern: /^Merged? pull request #(\d+) from (.*)/u, |
@@ -19,3 +19,3 @@ import parserOpts from './parserOpts'; | ||
} | ||
} else if (commit.type === 'fix' || commit.type === 'style' || commit.type === 'security' || commit.type === 'revert' || commit.type === 'misc') { | ||
} else if (commit.type === 'fix' || commit.type === 'deps' || commit.type === 'style' || commit.type === 'security' || commit.type === 'revert' || commit.type === 'misc') { | ||
if (level === null) { | ||
@@ -22,0 +22,0 @@ level = 2; |
@@ -5,6 +5,7 @@ import fs from 'fs'; | ||
Breaking: '💥', | ||
Dependencies: '📦', | ||
Docs: '📘', | ||
Fixes: '🐞', | ||
Internals: '🛠', | ||
Misc: '📦', | ||
Misc: '📋', | ||
Release: '🎉', | ||
@@ -24,2 +25,3 @@ Reverts: '⚙️', | ||
Docs: -2, | ||
Dependencies: -3, | ||
Misc: -3, | ||
@@ -101,2 +103,4 @@ Reverts: -4, | ||
commit.label = 'Fixes'; | ||
} else if (commit.type === 'deps') { | ||
commit.label = 'Dependencies'; | ||
} else if (commit.type === 'docs') { | ||
@@ -103,0 +107,0 @@ commit.label = 'Docs'; |
@@ -7,3 +7,3 @@ "use strict"; | ||
function checkCommitFormat(commit) { | ||
const match = commit.match(/^(break|build|ci|docs|feature|fix|internal|misc|new|release|revert|security|style|test|update)(?:\(([a-zA-Z0-9\-.,]+)\))?:/u); | ||
const match = commit.match(/^(break|build|ci|deps|docs|feature|fix|internal|misc|new|release|revert|security|style|test|update)(?:\(([a-zA-Z0-9\-., ]+)\))?:/u); | ||
@@ -10,0 +10,0 @@ if (!match) { |
@@ -7,3 +7,3 @@ "use strict"; | ||
headerCorrespondence: ['type', 'scope', 'message'], | ||
headerPattern: /^(\w+)(?:\(([a-z0-9\-.,]+)\))?: (.*)$/u, | ||
headerPattern: /^(\w+)(?:\(([a-zA-Z0-9\-., ]+)\))?: (.*)$/u, | ||
mergeCorrespondence: ['pr', 'source'], | ||
@@ -10,0 +10,0 @@ mergePattern: /^Merged? pull request #(\d+) from (.*)/u, |
@@ -27,3 +27,3 @@ "use strict"; | ||
} | ||
} else if (commit.type === 'fix' || commit.type === 'style' || commit.type === 'security' || commit.type === 'revert' || commit.type === 'misc') { | ||
} else if (commit.type === 'fix' || commit.type === 'deps' || commit.type === 'style' || commit.type === 'security' || commit.type === 'revert' || commit.type === 'misc') { | ||
if (level === null) { | ||
@@ -30,0 +30,0 @@ level = 2; |
@@ -15,4 +15,4 @@ export interface Note { | ||
} | ||
export declare type CommitType = 'break' | 'release' | 'new' | 'update' | 'feature' | 'fix' | 'docs' | 'style' | 'security' | 'revert' | 'ci' | 'build' | 'test' | 'internal' | 'misc'; | ||
export declare type CommitGroupLabel = 'Breaking' | 'Release' | 'Updates' | 'Fixes' | 'Docs' | 'Styles' | 'Security' | 'Reverts' | 'Internals' | 'Misc'; | ||
export declare type CommitType = 'break' | 'release' | 'new' | 'update' | 'feature' | 'fix' | 'deps' | 'docs' | 'style' | 'security' | 'revert' | 'ci' | 'build' | 'test' | 'internal' | 'misc'; | ||
export declare type CommitGroupLabel = 'Breaking' | 'Release' | 'Updates' | 'Fixes' | 'Dependencies' | 'Docs' | 'Styles' | 'Security' | 'Reverts' | 'Internals' | 'Misc'; | ||
export interface Commit { | ||
@@ -19,0 +19,0 @@ body: string | null; |
@@ -14,6 +14,7 @@ "use strict"; | ||
Breaking: '💥', | ||
Dependencies: '📦', | ||
Docs: '📘', | ||
Fixes: '🐞', | ||
Internals: '🛠', | ||
Misc: '📦', | ||
Misc: '📋', | ||
Release: '🎉', | ||
@@ -33,2 +34,3 @@ Reverts: '⚙️', | ||
Docs: -2, | ||
Dependencies: -3, | ||
Misc: -3, | ||
@@ -110,2 +112,4 @@ Reverts: -4, | ||
commit.label = 'Fixes'; | ||
} else if (commit.type === 'deps') { | ||
commit.label = 'Dependencies'; | ||
} else if (commit.type === 'docs') { | ||
@@ -112,0 +116,0 @@ commit.label = 'Docs'; |
{ | ||
"name": "conventional-changelog-beemo", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Conventional changelog preset for Beemo and associated projects.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -40,2 +40,3 @@ # conventional-changelog-beemo | ||
- `fix` - Fixes existing functionality. | ||
- `deps` - Bumps dependencies. | ||
- `docs` - Updates documentation. | ||
@@ -60,3 +61,4 @@ - `style` - Updates visual styles, like CSS. | ||
Scopes will appear in the changelog before each line item. | ||
Scopes will appear in the changelog before each line item and accept the following characters: | ||
`a-z`, `0-9`, `-`, `.`, `,`, and spaces. | ||
@@ -77,3 +79,3 @@ ### Message | ||
new(Button): Add new Button component | ||
update(Model): Refactor accessibility support | ||
update(Modal,Tooltip): Refactor accessibility support | ||
ci: Add DangerJS to pipeline | ||
@@ -93,3 +95,3 @@ test: Add missing tests for a handful of files | ||
- **[Button]** Add new Button component ([a1b2c3d][fake-commit]) | ||
- **[Modal]** Refactor accessibility support ([a1b2c3d][fake-commit]) | ||
- **[Modal,Tooltip]** Refactor accessibility support ([a1b2c3d][fake-commit]) | ||
@@ -96,0 +98,0 @@ #### 🐞 Fixes |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25079
558
104