Made with SvelteKit, TailwindCSS & shadcn-svelte.
The site makes requests to the GitHub API on the server side to get the latest releases for all the packages. It smartly caches the data, frequently invalidating it to always be up to date while avoiding hitting GitHub as much as possible.
Some computations are made to generate the badges, but everything else is a simple cosmetic wrapper around GitHub releases. No data alteration is performed by the site other than for styling and rendering purposes.
For more info, visit the v2 release blog.
If you think I missed a package, you can either open an issue or directly contribute.
CHANGELOG.md
file at the root of the repositoryFork the repo, edit the /src/lib/repositories.ts
file, and open a PR.
If the repo is not in the sveltejs
GitHub organization, please open an issue instead.
The code architecture is made to be as flexible as possible, here's how it works:
export const repos = {
svelte: {/* ... */},
kit: {/* ... */},
others: {
name: "Other",
repos: [
{
...
},
{
changesMode: "releases", // Optional line, the way to get the changes; either "releases" or "changelog", defaults to "releases"
repoName: "your-repo", // The name of the repo on GitHub, as it appears in the URL: https://github.com/sveltejs/your-repo
dataFilter: ({ tag_name }) => true, // Optional line, return false to exclude a version from its tag name
metadataFromTag: tag => ["package-name", "2.4.3"], // Return the package name and version from the tag name; the version must be a valid semver without any leading "v"
changelogContentsReplacer: contents => contents, // Optional line, replace the contents of the changelog file before parsing it; only used if `changesMode` is "changelog"
}
]
}
};
And that's it! The site will automatically adapt to the new package(s).