versionary 0.11.0 → 0.11.1

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.
@@ -23,6 +23,7 @@ function createSimplePlan(cwd = process.cwd()) {
23
23
  const changelogFile = loaded.config["changelog-file"] ?? "CHANGELOG.md";
24
24
  const releaseBranchPrefix = loaded.config["release-branch"] ?? "versionary/release";
25
25
  const baselineSha = (0, state_js_1.readBaselineSha)(cwd) ?? loaded.config["bootstrap-sha"] ?? null;
26
+ const releaseTargetByPath = new Map((0, state_js_1.readReleaseTargets)(cwd).map((target) => [target.path, target]));
26
27
  const allowStableMajor = loaded.config["allow-stable-major"] ?? false;
27
28
  const configuredPackages = Object.entries(loaded.config.packages ?? {}).map(([pkgPath, cfg]) => ({
28
29
  path: pkgPath,
@@ -59,7 +60,7 @@ function createSimplePlan(cwd = process.cwd()) {
59
60
  .map((pkg) => {
60
61
  const packageContext = (0, package_context_js_1.resolvePackageStrategyContext)(loaded.config, pkg.path, pkg);
61
62
  const packageCurrentVersion = packageContext.strategy.readVersion(cwd, packageContext.config);
62
- const parsedCommits = (0, commits_js_1.getParsedCommitsForPath)(cwd, baselineSha, pkg.path, pkg["exclude-paths"] ?? []);
63
+ const parsedCommits = (0, commits_js_1.getParsedCommitsForPath)(cwd, releaseTargetByPath.get(pkg.path)?.tag ?? baselineSha, pkg.path, pkg["exclude-paths"] ?? []);
63
64
  const effectiveCommits = (0, commits_js_1.applyRevertSuppression)(parsedCommits);
64
65
  const commits = effectiveCommits;
65
66
  const releaseType = (0, commits_js_1.analyzeParsedCommits)(parsedCommits);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "versionary",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Automatic release framework based on conventional commits and semantic versioning",
5
5
  "keywords": [
6
6
  "releasing",