This repository was archived by the owner on Feb 21, 2020. It is now read-only.
Releases: tunnckoCoreLabs/parse-commit-message
Releases · tunnckoCoreLabs/parse-commit-message
v2.1.1
v2.1.0
v2.0.3
v2.0.2
v2.0.1
v2.0.0
v2.0.0 (2018-07-25)
😱 BREAKING CHANGES ‼️
- release: refactor and more tests (da4d07a)
type, scope and subject are no more in the returned object, but
in the commit.header
; header
property is no more a string, but object like {type, scope, subject, toString() }
, where toString is a function returning a concationation of type, scope and subject
Example
import { parse, plugins } from 'parse-commit-message';
const msg = `feat: foo bar baz
Some multiline body
Alleluah
So there is some updated things
fixes #34
resolves #225
`;
const commit = parse(msg, plugins);
// => {
// header: {
// type: 'feat',
// scope: undefined,
// subject: 'foo bar baz',
// toString: [Function: toString],
// },
// body: 'Some multiline body\nAlleluah',
// footer: 'So there is some updated things\nfixes #34\nresolves #225\n',
// increment: 'minor',
// isBreaking: false,
// }
resolves #27