starlight-plugin-show-latest-version@0.3.0
0.3.0
Special thanks to @HiDeoo for their valuable feedback, which helped shape many of the improvements in this release.
Minor Changes
-
#16
3de9964
Thanks @trueberryless! - Useserver:defer
in theSiteTitle.astro
override component ifshowInSiteTitle
is set to"deferred"
.⚠️ BREAKING CHANGE: You now have to use some server adapter if you setshowInSiteTitle
to"deferred"
.If you set the
showInSiteTitle
configuration option to"deferred"
, you have to add a server adapter because the plugin override now usesserver:defer
in order to fetch the latest version on-demand.Read more about Server Islands in this blog post or the Astro documentation.
-
#14
8b0c933
Thanks @trueberryless! - Add version support for NPM and GitLab.⚠️ BREAKING CHANGE: The configuration interface changed.Please follow the steps below to use the plugin like before or read the documentation for the newly defined API.
Change the removed
repo
configuration to the newsource
configuration object:// astro.config.ts starlightPluginShowLatestVersion({ - repo: "${slug}", + source: { + type: "github", + slug: "${slug}", + }, }),
Note that you can now use
"npm"
,"github"
or"gitlab"
as the source type. This means that the plugin can be better customised to where you publish and release your packages.
Patch Changes
-
#16
3de9964
Thanks @trueberryless! - Make override of StarlightSiteTitle.astro
optional. You now have to opt-in by setting the newshowInSiteTitle
configuration option to"true"
because it does not get overridden by default. -
#16
ae72935
Thanks @trueberryless! - Add simple fallback content for SiteTitle override Version Badge