Skip to content

Releases: HiDeoo/starlight-links-validator

starlight-links-validator@0.14.1

21 Dec 12:07
b0213da
Compare
Choose a tag to compare

Patch Changes

  • #82 b3cbee8 Thanks @HiDeoo! - Fixes regresion introduced in version 0.14.0 of the plugin regarding validation of links to pages with custom IDs/slugs.

    Note that you must use at least Astro version 5.1.1 to benefit from this fix.

  • #80 876cb50 Thanks @lukekarrys! - Fixes validation issues for pages ending in index, e.g. module_index.

starlight-links-validator@0.14.0

18 Dec 17:38
15f877f
Compare
Choose a tag to compare

Minor Changes

  • #77 486a379 Thanks @HiDeoo! - Adds support for Astro v5, drops support for Astro v4.

    ⚠️ BREAKING CHANGE: The minimum supported version of Starlight is now 0.30.0.

    Please follow the upgrade guide to update your project.

    When using the plugin with the Content Layer API, the plugin will now automatically invalidate the content layer cache so that all links can be properly validated. To avoid unnecessary cache invalidation, it is recommended to conditionally use the plugin only when necessary. Check out the new “Conditional Validation” guide for more information.

    ⚠️ BREAKING CHANGE: Due to a regression in Astro v5, links to pages with custom IDs/slugs can no longer be validated and will be flagged as invalid. If you rely on this feature, please stay on a previous version of Starlight and Astro in the meantime.

v0.13.4

02 Dec 10:54
v0.13.4
7b78f5d
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v0.13.3

27 Nov 14:34
v0.13.3
a02d026
Compare
Choose a tag to compare

   🚀 Features

  • Improves messages for errors related to the Astro trailingSlash option to indicate if a link is missing a trailing slash or if a link has a trailing slash when it should not  -  by @HiDeoo (a8776)
    View changes on GitHub

v0.13.2

10 Nov 14:53
v0.13.2
0e4f143
Compare
Choose a tag to compare

   🐞 Bug Fixes

  • Fixes a potential type-checking issue in some Starlight projects  -  by @HiDeoo (1e33b)
    View changes on GitHub

v0.13.1

10 Nov 13:34
v0.13.1
fb28487
Compare
Choose a tag to compare

   🐞 Bug Fixes

  • Refactors some internal types to prevent type issues with future Starlight versions  -  by @HiDeoo (11518)
    View changes on GitHub

v0.13.0

03 Nov 11:09
v0.13.0
b076fa0
Compare
Choose a tag to compare

   🚨 Breaking Changes

  • Adds errors for local links, e.g. URLs with a hostname of localhost or 127.0.0.1  -  by @HiDeoo (80636)

    In previous versions, such links were silently ignored. They are now considered as invalid links as they are usually used for development purposes and should not be present in production.
    If you want to preserve the previous behaviour, you can set the errorOnLocalLinks option to false in your astro.config.mjs file:

    export default defineConfig({
      integrations: [
        starlight({
          plugins: [
            starlightLinksValidator({
              errorOnLocalLinks: false,
            }),
          ],
        }),
      ],
    });
    View changes on GitHub

v0.12.4

30 Oct 14:00
v0.12.4
3182cfa
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v0.12.3

04 Oct 16:29
v0.12.3
b7563c8
Compare
Choose a tag to compare

   🐞 Bug Fixes

  • Fixes validation issues with links containing query strings  -  by @HiDeoo (47b38)
    View changes on GitHub

v0.12.2

01 Oct 14:05
v0.12.2
757833a
Compare
Choose a tag to compare

   🐞 Bug Fixes

  • Fixes validation issue with the Astro base option and a custom slug  -  by @HiDeoo (fe3d2)
    View changes on GitHub