@wp-typia/project-tools 0.24.10 → 0.24.11

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.
@@ -541,6 +541,9 @@ function formatRequirementSummary(requirements, floor) {
541
541
  .map((requirement) => requirement.label);
542
542
  return labels.length > 0 ? labels.join(", ") : "generated workspace features";
543
543
  }
544
+ function formatFeatureMinimumAction(floor) {
545
+ return `Update the plugin bootstrap \`Requires at least\` header to ${floor} or remove the features that require that floor.`;
546
+ }
544
547
  function createFeatureMinimumCheck(workspace, inventory, headers) {
545
548
  const { issues, requirements } = collectWordPressVersionRequirements(workspace, inventory);
546
549
  const highestFloor = pickHighestRequirementFloor(requirements, issues);
@@ -551,11 +554,11 @@ function createFeatureMinimumCheck(workspace, inventory, headers) {
551
554
  return createDoctorCheck("WordPress feature minimum", "pass", "No generated workspace features declare an additional WordPress hard floor.", WORDPRESS_VERSION_CHECK_CODES.featureMinimum);
552
555
  }
553
556
  if (!headers.requiresAtLeast) {
554
- return createDoctorCheck("WordPress feature minimum", "fail", `Plugin bootstrap is missing a Requires at least header but generated features require WordPress ${highestFloor}.`, WORDPRESS_VERSION_CHECK_CODES.featureMinimum);
557
+ return createDoctorCheck("WordPress feature minimum", "fail", `Plugin bootstrap is missing a Requires at least header but generated features require WordPress ${highestFloor}. ${formatFeatureMinimumAction(highestFloor)}`, WORDPRESS_VERSION_CHECK_CODES.featureMinimum);
555
558
  }
556
559
  try {
557
560
  if (compareVersionFloors(headers.requiresAtLeast, highestFloor) < 0) {
558
- return createDoctorCheck("WordPress feature minimum", "fail", `Requires at least ${headers.requiresAtLeast} is below generated feature floor ${highestFloor} (${formatRequirementSummary(requirements, highestFloor)}).`, WORDPRESS_VERSION_CHECK_CODES.featureMinimum);
561
+ return createDoctorCheck("WordPress feature minimum", "fail", `Requires at least ${headers.requiresAtLeast} is below generated feature floor ${highestFloor} (${formatRequirementSummary(requirements, highestFloor)}). ${formatFeatureMinimumAction(highestFloor)}`, WORDPRESS_VERSION_CHECK_CODES.featureMinimum);
559
562
  }
560
563
  }
561
564
  catch {
@@ -569,7 +572,7 @@ function createTestedTargetCheck(headers, targetVersion) {
569
572
  }
570
573
  try {
571
574
  if (compareVersionFloors(headers.testedUpTo, targetVersion) < 0) {
572
- return createDoctorCheck("WordPress tested target", "warn", `Tested up to ${headers.testedUpTo} is below the selected WordPress target ${targetVersion}.`, WORDPRESS_VERSION_CHECK_CODES.testedTarget);
575
+ return createDoctorCheck("WordPress tested target", "warn", `Tested up to ${headers.testedUpTo} is below the selected WordPress target ${targetVersion}. Update the plugin bootstrap \`Tested up to\` header when the workspace is verified against WordPress ${targetVersion}.`, WORDPRESS_VERSION_CHECK_CODES.testedTarget);
573
576
  }
574
577
  }
575
578
  catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-typia/project-tools",
3
- "version": "0.24.10",
3
+ "version": "0.24.11",
4
4
  "description": "Project orchestration and programmatic tooling for wp-typia",
5
5
  "packageManager": "bun@1.3.11",
6
6
  "type": "module",