Skip to content

Commit

Permalink
rm filter
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge authored May 17, 2023
1 parent 5f1034d commit 5d6108e
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions upgrade/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,7 @@ export const getT3Versions = async () => {

return parsed.data
.map((release) => release.tag_name.split("@")[1] ?? "")
.filter((v) => v !== "")
.filter((v) => {
console.log(v);
// Looks like we only have diffs starting 6.11.5
// Filter out older versions
const [major, minor, patch] = v.split(".").map(Number);
if (!major || !minor || !patch) return false;

if (major > 6) return true;
if (major === 6 && minor > 11) return true;
if (major === 6 && minor === 11 && patch >= 5) return true;
return false;
});
.filter((v) => v !== "");
};

export const getT3VersionsGroupedByMajor = async () => {
Expand Down

1 comment on commit 5d6108e

@vercel
Copy link

@vercel vercel bot commented on 5d6108e May 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

create-t3-app-cli – ./upgrade

create-t3-app-cli-git-t3-upgrade-t3-oss.vercel.app
t3-upgrade.vercel.app
create-t3-app-cli-t3-oss.vercel.app

Please sign in to comment.