commit-and-tag-version 13.1.1 → 13.1.2
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.
- package/CHANGELOG.md +7 -0
- package/README.md +22 -0
- package/lib/updaters/types/openapi.js +1 -1
- package/lib/updaters/types/yaml.js +1 -1
- package/package.json +1 -1
- package/test/yaml-updaters.spec.js +20 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [13.1.2](https://github.com/absolute-version/commit-and-tag-version/compare/v13.1.1...v13.1.2) (2026-07-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **yaml:** preserve long scalar lines ([#313](https://github.com/absolute-version/commit-and-tag-version/issues/313)) ([8b968bc](https://github.com/absolute-version/commit-and-tag-version/commit/8b968bc1d98d85134c91efe66727bc2e1823a997))
|
|
11
|
+
|
|
5
12
|
## [13.1.1](https://github.com/absolute-version/commit-and-tag-version/compare/v13.1.0...v13.1.1) (2026-07-28)
|
|
6
13
|
|
|
7
14
|
|
package/README.md
CHANGED
|
@@ -299,6 +299,28 @@ commit-and-tag-version --prerelease xyz # Creates v1.4.3-xyz.1 (auto-incremente
|
|
|
299
299
|
|
|
300
300
|
This behavior applies to both named prereleases (e.g., `-alpha.0`, `-beta.1`) and unnamed prereleases (e.g., `-0`, `-1`), ensuring that you can safely cut multiple prerelease versions without encountering git tag conflicts.
|
|
301
301
|
|
|
302
|
+
#### Keeping Prereleases out of a Final Changelog
|
|
303
|
+
|
|
304
|
+
`commit-and-tag-version` does not currently provide a general-purpose option to
|
|
305
|
+
ignore every intermediary prerelease tag when generating a final release
|
|
306
|
+
changelog. The `releaseCount` option controls how many release sections are
|
|
307
|
+
generated; it does not exclude prerelease tags.
|
|
308
|
+
|
|
309
|
+
To keep a final changelog based on the previous stable release, maintain a
|
|
310
|
+
dedicated prerelease branch and merge the stable branch into it as product
|
|
311
|
+
changes land. Cut prereleases only from that branch, keeping their tagged
|
|
312
|
+
release commits unreachable from the stable branch. When the code is ready, cut
|
|
313
|
+
the stable release from the stable branch without merging the prerelease branch
|
|
314
|
+
back. If product changes exist only on the prerelease branch, transfer those
|
|
315
|
+
changes selectively instead of bringing its generated prerelease versions,
|
|
316
|
+
changelog entries, or release commits into stable history.
|
|
317
|
+
|
|
318
|
+
Avoid deleting prerelease tags locally, cutting the stable release, and then
|
|
319
|
+
fetching the tags again. That workaround makes changelog generation depend on
|
|
320
|
+
an incomplete local tag set, can affect tag-derived version calculations, and
|
|
321
|
+
temporarily puts local and remote tag state out of sync. Keeping the tags intact
|
|
322
|
+
and using separate branch histories makes the release inputs reproducible.
|
|
323
|
+
|
|
302
324
|
### Release as a Target Type Imperatively (`npm version`-like)
|
|
303
325
|
|
|
304
326
|
To forgo the automated version bump use `--release-as` with the argument `major`, `minor` or `patch`.
|
package/package.json
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { writeVersion as writeOpenApiVersion } from '../lib/updaters/types/openapi.js';
|
|
2
|
+
import { writeVersion as writeYamlVersion } from '../lib/updaters/types/yaml.js';
|
|
3
|
+
|
|
4
|
+
const description = 'word '.repeat(30).trim();
|
|
5
|
+
|
|
6
|
+
describe('YAML updaters', function () {
|
|
7
|
+
it('does not wrap long lines in YAML files', function () {
|
|
8
|
+
const contents = `version: 1.2.3\ndescription: ${description}\n`;
|
|
9
|
+
const expected = `version: 1.3.0\ndescription: ${description}\n`;
|
|
10
|
+
|
|
11
|
+
expect(writeYamlVersion(contents, '1.3.0')).toEqual(expected);
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it('does not wrap long lines in OpenAPI files', function () {
|
|
15
|
+
const contents = `openapi: 3.0.3\ninfo:\n title: Example\n version: 1.2.3\n description: ${description}\npaths: {}\n`;
|
|
16
|
+
const expected = `openapi: 3.0.3\ninfo:\n title: Example\n version: 1.3.0\n description: ${description}\npaths: {}\n`;
|
|
17
|
+
|
|
18
|
+
expect(writeOpenApiVersion(contents, '1.3.0')).toEqual(expected);
|
|
19
|
+
});
|
|
20
|
+
});
|