kigumi 0.18.1 → 0.18.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.
@@ -792,7 +792,9 @@ async function installDependencies(options) {
792
792
  }
793
793
  const spinner = output.spinner("Installing dependencies...");
794
794
  const waPackage = getWebAwesomePackage(tier);
795
- const dependencies = [waPackage];
795
+ const waVersion = config.webAwesome?.version;
796
+ const waSpec = waVersion ? `${waPackage}@${waVersion}` : waPackage;
797
+ const dependencies = [waSpec];
796
798
  if (config.framework === "react") {
797
799
  dependencies.push("clsx");
798
800
  }
@@ -8634,7 +8636,15 @@ var VERSION_MAP = [
8634
8636
  }
8635
8637
  ];
8636
8638
  function getVersionEntry(version) {
8637
- return VERSION_MAP.find((e) => e.kigumiVersion === version);
8639
+ const exact = VERSION_MAP.find((e) => e.kigumiVersion === version);
8640
+ if (exact) return exact;
8641
+ let best;
8642
+ for (const entry of VERSION_MAP) {
8643
+ if (compareSemver2(entry.kigumiVersion, version) <= 0 && (!best || compareSemver2(entry.kigumiVersion, best.kigumiVersion) > 0)) {
8644
+ best = entry;
8645
+ }
8646
+ }
8647
+ return best;
8638
8648
  }
8639
8649
  function getBreakingChangesBetween(fromVersion, toVersion) {
8640
8650
  const changes = [];
@@ -9293,4 +9303,4 @@ process.on("unhandledRejection", (reason) => {
9293
9303
  process.exit(1);
9294
9304
  });
9295
9305
  program.parse();
9296
- //# sourceMappingURL=-X4IZLQ6Y.js.map
9306
+ //# sourceMappingURL=-DVMKE7OE.js.map