diff --git a/.changeset/landing-version.md b/.changeset/landing-version.md new file mode 100644 index 000000000..bddaab797 --- /dev/null +++ b/.changeset/landing-version.md @@ -0,0 +1,5 @@ +--- +"react-magma-landing": patch +--- + +fix: Remove card with version `^15.0.0` \ No newline at end of file diff --git a/website/react-magma-landing/scripts/build.js b/website/react-magma-landing/scripts/build.js index f9de42e56..dd36823c3 100644 --- a/website/react-magma-landing/scripts/build.js +++ b/website/react-magma-landing/scripts/build.js @@ -33,10 +33,12 @@ const versionsByReactDependency = ({ versions, time, tags }) => { var versionsByReactDep = new Map(); allVersions.forEach(versionObj => { - if (!versionsByReactDep.has(versionObj?.reactDependency)) { - versionsByReactDep.set(versionObj?.reactDependency, []); + if (!versionObj?.reactDependency.includes('^15.0.0')) { + if (!versionsByReactDep.has(versionObj?.reactDependency)) { + versionsByReactDep.set(versionObj?.reactDependency, []); + } + versionsByReactDep.get(versionObj?.reactDependency).push(versionObj); } - versionsByReactDep.get(versionObj?.reactDependency).push(versionObj); }); const latestVersions = [];