@vingy/nimver 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +21 -1
  2. package/bin/nimver.js +2313 -1977
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -147,7 +147,7 @@ A breaking change will always be treated as a major bump.
147
147
 
148
148
  Each commit is read under the configuration *it* was made with, taken from its own tree — so changing a mapping today does not rewrite what last week's commits meant, and a package added mid-cycle cannot claim changes made before it existed.
149
149
 
150
- Any commit type not listed here is rejected by the `commit-msg` hook. Add your own types (and adjust bump levels) as needed.
150
+ Any commit type not listed here is rejected by the `commit-msg` hook (this behavior can be adjusted, see [Allowing unknown types](#allowing-unknown-types) for details). Add your own types (and adjust bump levels) as needed.
151
151
 
152
152
  The default types are:
153
153
 
@@ -168,6 +168,26 @@ version = ignore
168
168
  wip = ignore
169
169
  ```
170
170
 
171
+ ### Allowing unknown types
172
+
173
+ By default any type not listed under `[types]` is refused by the `commit-msg` hook,
174
+ and skipped with a warning when a release reads the history back. You can instead allow unknown types to be treated as any of the standard types.
175
+
176
+ ```ini
177
+ [commits]
178
+ unknownType = patch ; or reject (the default) | ignore | none | minor | major
179
+ ```
180
+
181
+ ### Release notes
182
+
183
+ By default, the commit messages subject is used for the changelog, but a `Release-Note:` footer can override it.
184
+
185
+ ```
186
+ fix(parser): tighten the scope regex
187
+
188
+ Release-Note: Scopes may now contain digits, slashes and dots.
189
+ ```
190
+
171
191
  ## CLI reference
172
192
 
173
193
  ```