Skip to content

starlight-plugin-show-latest-version@0.3.0

Compare
Choose a tag to compare
@github-actions github-actions released this 01 Jan 13:57
· 55 commits to main since this release
e0ca7c4

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! - Use server:defer in the SiteTitle.astro override component if showInSiteTitle is set to "deferred".

    ⚠️ BREAKING CHANGE: You now have to use some server adapter if you set showInSiteTitle to "deferred".

    If you set the showInSiteTitle configuration option to "deferred", you have to add a server adapter because the plugin override now uses server: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 new source 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