storybook 9.0.16 → 9.0.18

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.
@@ -37827,7 +37827,8 @@ var MG = /* @__PURE__ */ s(async (e, t) => {
37827
37827
  ...c
37828
37828
  }).filter(
37829
37829
  ([g]) => Al.versions[g] || mT[g]
37830
- ).map(([g, b]) => b).find((g) => g && qo.default.validRange(g) && !qo.default.satisfies(r, g)), f = Al.versions[u], d, m;
37830
+ ).map(([g, b]) => b).find((g) => g && // We can't check compatibility for 0.x packages, so we skip them
37831
+ !/^[~^]?0\./.test(g) && qo.default.validRange(g) && !qo.default.satisfies(r, g)), f = Al.versions[u], d, m;
37831
37832
  return f && a && qo.default.gt(r, a) && (d = r), f && a && qo.default.gt(a, r) && (m = a), {
37832
37833
  packageName: u,
37833
37834
  packageVersion: a,
@@ -37844,6 +37845,8 @@ var MG = /* @__PURE__ */ s(async (e, t) => {
37844
37845
  ), { packageName: e };
37845
37846
  }
37846
37847
  }, "checkPackageCompatibility"), DT = /* @__PURE__ */ s(async (e) => {
37848
+ if (e.currentStorybookVersion.includes("0.0.0"))
37849
+ return [];
37847
37850
  let t = e.packageManager.getAllDependencies(), r = Object.keys(t).filter((i) => i.includes("storybook"));
37848
37851
  if (r.length === 0 && !e.skipErrors)
37849
37852
  throw new Error("No Storybook dependencies found in the package.json");
@@ -37886,7 +37886,8 @@ var tX = /* @__PURE__ */ s(async (e, t) => {
37886
37886
  ...c
37887
37887
  }).filter(
37888
37888
  ([g]) => Qm[g] || pk[g]
37889
- ).map(([g, b]) => b).find((g) => g && Yu.validRange(g) && !Yu.satisfies(r, g)), f = Qm[u], d, m;
37889
+ ).map(([g, b]) => b).find((g) => g && // We can't check compatibility for 0.x packages, so we skip them
37890
+ !/^[~^]?0\./.test(g) && Yu.validRange(g) && !Yu.satisfies(r, g)), f = Qm[u], d, m;
37890
37891
  return f && a && Yu.gt(r, a) && (d = r), f && a && Yu.gt(a, r) && (m = a), {
37891
37892
  packageName: u,
37892
37893
  packageVersion: a,
@@ -37903,6 +37904,8 @@ var tX = /* @__PURE__ */ s(async (e, t) => {
37903
37904
  ), { packageName: e };
37904
37905
  }
37905
37906
  }, "checkPackageCompatibility"), hk = /* @__PURE__ */ s(async (e) => {
37907
+ if (e.currentStorybookVersion.includes("0.0.0"))
37908
+ return [];
37906
37909
  let t = e.packageManager.getAllDependencies(), r = Object.keys(t).filter((i) => i.includes("storybook"));
37907
37910
  if (r.length === 0 && !e.skipErrors)
37908
37911
  throw new Error("No Storybook dependencies found in the package.json");