conventional-commits / parser

reference implementation of conventionalcommits.org spec
ISC License
46 stars 7 forks source link

refactor: Introduce Node builder #7

Closed bcoe closed 3 years ago

bcoe commented 3 years ago

The amount of ritual to setup a Node, update its value, and record its source position is becoming burdensome.

Let's introduce a Node builder that:

  1. provides a helper for rolling back go a prior source position, and or returning the Node.
  2. provides shortcuts for tracking source positions.

CC: @byCedric Refs #5