Skip to content

v1.2.0

Latest
Compare
Choose a tag to compare
@yoyocharlie yoyocharlie released this 20 Sep 20:40
· 7 commits to main since this release

Release Notes

New useGitHubRepoData hook

  • Arguments: owner: string, repo: string
  • Returns:
{
    url: string;
    starCount: number;
    repoName: string | undefined;
    icon: JSX.Element;
}

Breaking Changes

  • Adjusted the ProjectUrl type to:
type ProjectUrls = {
  site?: {
    url: string;
    icon: JSX.Element;
  };
  repo?: {
    owner: string;
    name: string;
    showStarCount: boolean;
  };
};

This allows us to use the useGitHubRepoData hook to display a star count, given that

project.projectUrls.repo.showStarCount === true

Fixes

  • fix: pointed to correct repo in readme by @pwhitdog in #1

New Contributors