@camunda8/cli 4.6.0-alpha.6 → 4.6.0-alpha.7

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.
@@ -12235,9 +12235,12 @@ function resolveSteps({
12235
12235
  };
12236
12236
  }
12237
12237
  } else if (targetRecipe && steps.length === 0 && targetVersion !== appliedVersion) {
12238
+ const known = recipeSourcesFor(targetRecipe, appliedId).length > 0;
12239
+ if (known && appliedVersion < targetVersion)
12240
+ return { steps, refusal: null };
12238
12241
  return {
12239
12242
  steps: [],
12240
- refusal: recipeSourcesFor(targetRecipe, appliedId).length === 0 ? `wrong source ID: the recipe has no upgrade entry for "${appliedId}"` : `no applicable upgrade: the recipe has no upgrade above applied version ${appliedVersion} through target version ${targetVersion}`
12243
+ refusal: known ? `no applicable upgrade: the recipe has no upgrade above applied version ${appliedVersion} through target version ${targetVersion}` : `wrong source ID: the recipe has no upgrade entry for "${appliedId}"`
12241
12244
  };
12242
12245
  }
12243
12246
  return { steps, refusal: null };
@@ -13834,10 +13837,8 @@ async function runMigrateInternal({ parsed, templateId, elementId, bpmnFilePath
13834
13837
  ...valuesOf2(result.element)
13835
13838
  ];
13836
13839
  const { report } = result;
13837
- if (recipe && (!report.usedRecipe || report.refusal)) {
13838
- throw new Error(
13839
- `Explicit recipe cannot be used: ${report.refusal ?? "no applicable source entry"}.`
13840
- );
13840
+ if (recipe && report.refusal) {
13841
+ throw new Error(`Explicit recipe cannot be used: ${report.refusal}.`);
13841
13842
  }
13842
13843
  outcomes.push({
13843
13844
  status: "updated",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda8/cli",
3
- "version": "4.6.0-alpha.6",
3
+ "version": "4.6.0-alpha.7",
4
4
  "description": "Camunda 8 CLI - minimal-dependency CLI for Camunda 8 operations",
5
5
  "type": "module",
6
6
  "engines": {