commit-and-tag-version 12.4.2 → 12.4.4

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 CHANGED
@@ -2,6 +2,20 @@
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
+ ## [12.4.4](https://github.com/absolute-version/commit-and-tag-version/compare/v12.4.3...v12.4.4) (2024-09-15)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * sanitize double quotes result from stdout ([#186](https://github.com/absolute-version/commit-and-tag-version/issues/186)) ([8dbeb79](https://github.com/absolute-version/commit-and-tag-version/commit/8dbeb794b960c6ea27527353ad2c55884f48b469))
11
+
12
+ ## [12.4.3](https://github.com/absolute-version/commit-and-tag-version/compare/v12.4.2...v12.4.3) (2024-09-09)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * Correct issue where downstream dependency would throw `options.debug is not a function` ([4280bcf](https://github.com/absolute-version/commit-and-tag-version/commit/4280bcf102b78d1995b24ec9238219db81730ebd))
18
+
5
19
  ## [12.4.2](https://github.com/absolute-version/commit-and-tag-version/compare/v12.4.1...v12.4.2) (2024-08-25)
6
20
 
7
21
 
@@ -13,6 +13,7 @@ const semver = require('semver');
13
13
  const writeFile = require('../write-file');
14
14
  const { resolveUpdaterObjectFromArgument } = require('../updaters');
15
15
  let configsToUpdate = {};
16
+ const sanitizeQuotesRegex = /['"]+/g;
16
17
 
17
18
  async function Bump(args, version) {
18
19
  // reset the cache of updated config files each
@@ -37,7 +38,7 @@ async function Bump(args, version) {
37
38
  await runLifecycleScript(args, 'prerelease');
38
39
  const stdout = await runLifecycleScript(args, 'prebump');
39
40
  if (stdout?.trim().length) {
40
- const prebumpString = stdout.trim();
41
+ const prebumpString = stdout.trim().replace(sanitizeQuotesRegex, '');
41
42
  if (semver.valid(prebumpString)) args.releaseAs = prebumpString;
42
43
  }
43
44
  if (!args.firstRelease) {
@@ -189,13 +190,18 @@ function bumpVersion(releaseAs, currentVersion, args) {
189
190
  }
190
191
  conventionalRecommendedBump(
191
192
  {
192
- debug:
193
- args.verbose &&
194
- console.info.bind(console, 'conventional-recommended-bump'),
195
193
  preset: presetOptions,
196
194
  path: args.path,
197
195
  tagPrefix: args.tagPrefix,
198
196
  lernaPackage: args.lernaPackage,
197
+ ...(args.verbose
198
+ ? {
199
+ debug: console.info.bind(
200
+ console,
201
+ 'conventional-recommended-bump',
202
+ ),
203
+ }
204
+ : {}),
199
205
  },
200
206
  args.parserOpts,
201
207
  function (err, release) {
@@ -58,11 +58,17 @@ function outputChangelog(args, newVersion) {
58
58
  const context = { version: newVersion };
59
59
  const changelogStream = conventionalChangelog(
60
60
  {
61
- debug:
62
- args.verbose && console.info.bind(console, 'conventional-changelog'),
63
61
  preset: presetLoader(args),
64
62
  tagPrefix: args.tagPrefix,
65
63
  releaseCount: args.releaseCount,
64
+ ...(args.verbose
65
+ ? {
66
+ debug: console.info.bind(
67
+ console,
68
+ 'conventional-recommended-bump',
69
+ ),
70
+ }
71
+ : {}),
66
72
  },
67
73
  context,
68
74
  { merges: null, path: args.path, showSignature: false },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commit-and-tag-version",
3
- "version": "12.4.2",
3
+ "version": "12.4.4",
4
4
  "description": "replacement for `npm version` with automatic CHANGELOG generation",
5
5
  "bin": "bin/cli.js",
6
6
  "scripts": {
@@ -49,7 +49,7 @@
49
49
  "figures": "^3.1.0",
50
50
  "find-up": "^5.0.0",
51
51
  "git-semver-tags": "^5.0.0",
52
- "jsdom": "^24.1.1",
52
+ "jsdom": "^25.0.0",
53
53
  "semver": "^7.6.3",
54
54
  "w3c-xmlserializer": "^5.0.0",
55
55
  "yaml": "^2.4.1",