Skip to content

Releases: yoyocharlie/nextMotion

v1.2.0

20 Sep 20:40
Compare
Choose a tag to compare

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