Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

v2.0.0

Compare
Choose a tag to compare
@tunnckoCore tunnckoCore released this 25 Jul 02:22

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

v1.1.2...v2.0.0