chore(deps): update dependency @astrojs/starlight to ^0.43.0 #17
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
javascript
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/shopify-icon-snippets!17
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/astrojs-starlight-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
^0.31.0→^0.43.0Release Notes
withastro/starlight (@astrojs/starlight)
v0.43.2Compare Source
Patch Changes
4eedd86Thanks @ismoil77! - Adds Tajik language supportv0.43.1Compare Source
Patch Changes
46a5020Thanks @trueberryless! - Fixes a regression where the icon of the<Aside>component was rendered smaller than the icon of Markdown asides.v0.43.0Compare Source
Minor Changes
#4190
3f2336bThanks @delucis! - ⚠️ BREAKING CHANGE: Adds support for any AstroscopedStyleStrategyconfiguration.Previously, Starlight forced the
"where"strategy, resulting in CSS selectors like:where(.astro-HASH). Starlight now respects the strategy set inastro.config.mjsand will default to Astro’s default"attribute"strategy, resulting in attribute selectors like[data-astro-cid-HASH].The new default can change some styling behaviour, so we recommend checking for visual changes in your site when updating. In particular, note the following:
Attribute selectors have a higher specificity than
:where()selectors. Check to ensure styles still apply and no CSS changes are needed to ensure the relative specificity of declarations remains the same.Astro’s
"attribute"strategy does not automatically pass along a parent component’s scope when passing aclassdown to a child component. If you have components that depended on this, you will need to update the child component to spread the parent’s data attribute where you are reusing the class name, for example:See “Passing a
classto a child component” in the Astro docs for more details.Alternatively, if you wish to continue using the previous scoping strategy in your site, set it explicitly in your Astro configuration file:
#3674
993ac27Thanks @controversial! - Adds support for Pagefind’sexcludeSelectorsandincludeCharactersconfiguration to customize how search indexes are built#4219
35abe4fThanks @delucis! - Refactors Starlight’s theme select menu to reduce its JavaScript use⚠️ Potentially breaking change: If your project or theme plugin overrides the
ThemeSelectcomponent, check that it still works after updating. The global API previously used by theme select components has been removed and callingStarlightThemeProvider.updatePickers()will no longer work.See
ThemeProvider.astro,ThemeSelect.astro, andLanguageSelect.astroon GitHub for the full source code of the updated components.#4385
c130349Thanks @delucis! - Updates dependencyi18nextto v27⚠️ Potentially breaking change: If you use Starlight’s translation APIs directly, see i18next’s migration guide for details. We don’t expect any changes to impact Starlight users, but let us know if they do.
Patch Changes
f8b072aThanks @Toyenzo! - Errors if an aside is passed an icon name that matchesObject.prototypeproperties, such asconstructorortoStringv0.42.11Patch Changes
ad19424Thanks @RaphaelFakhri! - Fixes thetwitter:sitemeta tag including a trailing slash when the configured X or Twitter social link ends with/v0.42.10Compare Source
Patch Changes
#4354
56b8587Thanks @jasikpark! - Improves the color contrast of the search input placeholder text#4337
c5d0a7fThanks @moonmeister! - Fixes search not loading when the search script runs after the page has finished loading, for example when a Content Security Policy requires scripts to be added dynamically#4352
3edab29Thanks @delucis! - Fixes the AstrotrailingSlashandbuild.formatoptions not being applied correctly to sidebar links that include a query string or hashv0.42.9Compare Source
Patch Changes
#4218
effea21Thanks @delucis! - Reduces install size by ~400 KB by switching the YAML parser used internally for projects using Astro 7.3.6 or later#4316
8679b1cThanks @clean99! - Fixes localized routes and language switcher links for pages in directories named likeObject.prototypeproperties, such asconstructor.#4341
e1ac1b4Thanks @delucis! - Prevents tables overflowing and clipping when printing a pagev0.42.8Compare Source
Patch Changes
#4309
3490c80Thanks @athulsreekumar! - Fixes autogenerated sidebar groups omitting directories whose names matchObject.prototypeproperties, such asconstructorortoString#4290
bf93823Thanks @RaphaelFakhri! - Fixes missing last-updated dates in production builds for pages whose file path contains special characters#4295
af9557eThanks @delucis! - Fixes a formatting issue in some error messages impacting projects with Zod ≥4.5 installed#4299
a103f38Thanks @clean99! - Fixes empty sidebars when autogenerating entries from the docs root directory usingdirectory: ''v0.42.7Compare Source
Patch Changes
#4264
94e0985Thanks @chrispezza! - Fixes a layout shift where the table of contents could be painted at the start of the content area and then jump to the end when a page's HTML arrived in several chunks#4285
6f22eddThanks @tunetheweb! - Improves hero image loading by addingfetchpriority="high"hint for browsersv0.42.6Compare Source
Patch Changes
#4252
40a2584Thanks @olafur-andri! - Adds Icelandic language support#4229
e4a3d82Thanks @HiDeoo! - Fixes a potential issue with icons being cut off in Firefox when pinch-zooming.#4226
fb562ddThanks @HiDeoo! - Fixes an issue where pages not importing components from@astrojs/starlight/componentsincluded styles of Starlight components used on other pages.#4250
531af7dThanks @HiDeoo! - FixesFailed to resolve dependencywarnings logged when running the development server in projects using the Cloudflare adapter.#4229
e4a3d82Thanks @HiDeoo! - Fixes thecodePenandnodeicons slightly extending beyond their bounding box.v0.42.5Patch Changes
5ba7a70Thanks @I90rche! - Adds Macedonian language supportv0.42.4Patch Changes
#4149
fa10e87Thanks @ematipico! - Optimizes rendering of large nested sidebars#4215
f791de6Thanks @HiDeoo! - Adds a newseti:coffeeicon for CoffeeScript files in the<FileTree>component.#4215
f791de6Thanks @HiDeoo! - Fixes<FileTree>icons for.ejsandnpm-debug.logfiles displaying the default file icon.v0.42.3Patch Changes
33e21ecThanks @HiDeoo! - Fixes a potential page freeze due to table of contents highlighting when a<PageTitle>component override does not render a heading with the requiredid="_top".v0.42.2Patch Changes
fafd989Thanks @linux-universe! - Add 1 new icon:fluxerv0.42.1Patch Changes
ad19424Thanks @RaphaelFakhri! - Fixes thetwitter:sitemeta tag including a trailing slash when the configured X or Twitter social link ends with/v0.42.0Compare Source
Minor Changes
#3572
292fb17Thanks @HiDeoo! - Distributes package as JavaScript files with dedicated type declaration files instead of TypeScript source files.#4121
2623ae6Thanks @delucis! - Simplifies markup for Starlight’s mobile menu toggle⚠️ Potentially breaking change: If you use a theme plugin, custom styles, or component overrides targeting the
MobileMenuTogglebutton orPageFramecomponents, you may need to adjust these for the new markup. The button is no longer wrapped in a<starlight-menu-button>custom element and no longer uses thearia-expandedattribute. Instead, you can use the.sl-menu-buttonclass name to target the button and the:popover-openpseudo-class to style the menu open state specifically.In the following example, custom styles for the menu button are updated for the new approach:
See
MobileMenuToggle.astroandPageFrame.astroon GitHub for the full source code of the updated components.#3572
292fb17Thanks @HiDeoo! - Removes thetaglineconfiguration option, which was never used.If your configuration included a
taglineoption, you can safely remove it without any replacement.#4134
6135f01Thanks @HiDeoo! - Updates internal@astrojs/mdx,@astrojs/markdown-satteri, andsatteridependencies.⚠️ BREAKING CHANGE: The following minimum versions are now required:
astrov7.2.10 or later@astrojs/markdown-satteri0.4.0 or later (if you use it)@astrojs/markdown-remark7.3.0 or later (if you use it)Please update Starlight and Astro together:
#4121
2623ae6Thanks @delucis! - Refactors Starlight’s mobile menu toggle to work when JavaScript fails or is disabled⚠️ BREAKING CHANGE: This release drops official support for Chromium-based browsers prior to version 116 (released August 2023), Safari-based browsers prior to version 17.0 (released September 2023), and Firefox prior to version 125 (released April 2024). You can find a list of currently supported browsers and their versions using this browserslist query.
This change also removes the
data-mobile-menu-expandedattribute, which was previously added to<body>while the mobile menu is open. If you have custom code that was depending on this attribute, you will need to update it to use a new selector to check if the mobile menu is open.In the following example, a custom background colour for the site header while the menu is open is updated for the new approach:
v0.41.11Compare Source
Patch Changes
#4167
32a5e29Thanks @HiDeoo! - Fixes a layout issue and anchor links appearing for hidden headings, e.g. footnote headings, whenmarkdown.headingLinksis enabled or the<AnchorHeading>component is used.#4148
cdfafd8Thanks @ematipico! - Optimizes sidebar data generation logic to speed up sites with large sidebarsv0.41.10Compare Source
Patch Changes
#4160
88442c3Thanks @ArmandPhilippot! - Adds the missing translations for Expressive Code in the following locales:ar,hi,it,ja,ko,pt,zh-CN, andzh-TW.#4156
57af92dThanks @pyxelr! - Adds 1 new icon:hypothesis#4159
a0e0ba2Thanks @trueberryless! - Adds 1 new icon:npmxv0.41.9Compare Source
Patch Changes
1c90d69Thanks @pyxelr! - Adds 1 new icon:goodreadsv0.41.8Compare Source
Patch Changes
#4142
cacbc9fThanks @alebelcor! - Adds 1 new icon:whatsApp#4133
3944311Thanks @delucis! - Internal refactor: numberedidattributes in the<Tabs>component are now page-specific instead of using a global counter#4138
cd4b665Thanks @delucis! - Fixes localisation of code block UI elements when using the Sätteri Markdown processorv0.41.7Compare Source
Patch Changes
3e486fbThanks @delucis! - Fixes processing of code examples in RTL languages when using Astro’s Sätteri Markdown processorv0.41.6Compare Source
Patch Changes
f1dddc0Thanks @delucis! - Adds 1 new icon:forgejov0.41.5Compare Source
Patch Changes
bb06434Thanks @HiDeoo! - Fixes a regression when using a union to extend Starlight’sdocsSchema().v0.41.4Compare Source
Patch Changes
#3936
712eeddThanks @miichom! - Fixes support for modifying Zod enums when passing anextendoption to Starlight’sdocsSchema()#4092
0896b91Thanks @delucis! - Fixes support for links containing a protocol likemailto:in the sidebar#4088
4486ba4Thanks @delucis! - Simplifies Starlight’s client-side sidebar state persistence script slightlyv0.41.3Compare Source
Patch Changes
1686eccThanks @timothyjordan! - Keeps keyboard focus inside the mobile menu while it is open, preventing focus moving to hidden interactive elements in page content.v0.41.2Compare Source
Patch Changes
#4008
58a3520Thanks @FrancoKaddour! - Fixes the table of contents overflowing the right edge of the viewport when a custom--sl-content-widthvalue exceeds available space#4015
bdbfffcThanks @delucis! - Fixes an issue where aside icons were rendered incorrectly in projects where Astro’s MDX integration had optimization disabledv0.41.1Compare Source
Patch Changes
#4167
32a5e29Thanks @HiDeoo! - Fixes a layout issue and anchor links appearing for hidden headings, e.g. footnote headings, whenmarkdown.headingLinksis enabled or the<AnchorHeading>component is used.#4148
cdfafd8Thanks @ematipico! - Optimizes sidebar data generation logic to speed up sites with large sidebarsv0.41.0Compare Source
Minor Changes
1202dd4Thanks @HiDeoo! - Adds support for Astro v7, drops support for Astro v6.Upgrade Astro and dependencies
⚠️ BREAKING CHANGE: Astro v6 is no longer supported. Make sure you update Astro and any other official integrations at the same time as updating Starlight:
Community Starlight plugins and Astro integrations may also need to be manually updated to work with Astro v7. If you encounter any issues, please reach out to the plugin or integration author to see if it is a known issue or if an updated version is being worked on.
⚠️ BREAKING CHANGE: This release drops official support for Chromium-based browsers prior to version 111 (released 07 March 2023) and Safari-based browsers prior to version 16.4 (released 27 March 2023). You can find a list of currently supported browsers and their versions using this browserslist query.
Patch Changes
a935d33Thanks @HiDeoo! - Fixes Starlight Markdown processing being potentially applied to files that should not be processed.v0.40.0Compare Source
Minor Changes
#3923
edf2e6bThanks @Princesseuh! - Adds support for Astro 6.4 and the new Sätteri Markdown processor.It is now possible to opt into using Astro's 6.4 Sätteri Markdown processor by installing the
@astrojs/markdown-satteripackage and configuring it in yourastro.config.mjsfile:⚠️ BREAKING CHANGE: The minimum supported version of Astro is now v6.4.5.
Please update Starlight and Astro together:
Community Starlight plugins and Astro integrations may also need to be manually updated to work with Sätteri. If you encounter any issues, please reach out to the plugin or integration author to see if it is a known issue or if an updated version is being worked on.
Patch Changes
edf2e6bThanks @Princesseuh! - Updates Expressive Code to version 0.43.1.v0.39.3Compare Source
Patch Changes
#3910
dddf405Thanks @andreialba! - Improves Romanian UI translations#3924
02f2ce1Thanks @BouRock! - Improves Turkish UI translations#3928
11a7ed2Thanks @delucis! - Updates Pagefind to v1.5 and adds support for Pagefind’s newdiacriticSimilarityandmetaWeightsadvanced ranking options#3927
e944870Thanks @HiDeoo! - Refactors internal file path handling for Starlight content collections.v0.39.2Compare Source
Patch Changes
2d05e18Thanks @tats-u! - Fixes CSS selector fortext-autospacestyles in Chromium browsersv0.39.1Compare Source
Patch Changes
#3885
010eed1Thanks @ArmandPhilippot! - Fixes the version mentioned in an error message related to autogenerated sidebar groups support.#3887
b3c6990Thanks @delucis! - Adds 13 new icons:clock,desktop,mobile-android,window,database,server,code-branch,notes,question,question-circle,analytics,padlock, andsolidjs.v0.39.0Compare Source
Minor Changes
#3618
dcf6d09Thanks @HiDeoo! - ⚠️ BREAKING CHANGE: This release changes how autogenerated links work in Starlight’s sidebar configuration.If you have sidebar groups using the
autogeneratekey, you must now wrap that configuration in anitemsarray:This change unlocks the possibility to mix autogenerated links and other links in a single group, for example:
This release also updates the shape of autogenerated sidebar entries in route data. Autogenerated links and groups in
Astro.locals.starlightRoute.sidebarnow include anautogenerateobject with the configureddirectoryvalue:#3618
dcf6d09Thanks @HiDeoo! - ⚠️ BREAKING CHANGE: This release changes the default collapsed state of autogenerated sidebar subgroups.Autogenerated subgroups no longer inherit the
collapsedvalue from their parent group. They are now expanded by default unless explicitly configured withautogenerate.collapsed.If your sidebar configuration relies on a collapsed parent group to also collapse its autogenerated subgroups, update your configuration to set
autogenerate.collapsedtotrue:#3845
4d755f5Thanks @delucis! - Adds a<link rel="alternate" hreflang="x-default" href="...">tag pointing to the default locale in multilingual sites. Thex-defaultalternate is used as a signal of which language to fall back to if no other is available. Learn more in Google’s SEO localization docs.#3862
ec70630Thanks @itrew! - Makes spacing of items in nested lists more consistent#3872
417a66cThanks @tats-u! - Enables the CSS propertytext-autospacein Chinese and Japanese documents.If you would prefer to disable autospacing in Chinese and Japanese pages, you can add the following custom CSS to your site:
#3797
9764ebdThanks @delucis! - Avoids the risk of layout shift when users expand and collapse sidebar groupsThis release can introduce additional padding to the site sidebar on certain devices to reserve space for scrollbars. You may wish to inspect your site sidebar visually when upgrading.
If you would prefer to keep the previous styling, you can add the following custom CSS to your site:
#3858
6672c35Thanks @delucis! - Updatesi18next, used for Starlight’s localization APIs, from v23 to v26There should not be any user-facing changes from this update
v0.38.5Compare Source
Patch Changes
ccf6000, #387747451bcThanks @delucis! - Updates internal dependenciesv0.38.4Compare Source
Patch Changes
#3828
342038bThanks @MangelMaxime! - Fixes aside styling when used without any content#3853
563e11bThanks @delucis! - Fixes a type-checking issue for users on newer versions of TypeScriptv0.38.3Compare Source
Patch Changes
#3799
313611bThanks @JosefJezek! - Improves Czech UI translations#3770
6e7bed1Thanks @gameroman! - Adds examples to the inline documentation fortitlein the Starlight configuration object#3801
fedd48bThanks @delucis! - Fixes missing draft content warning in dev on pages using the hero layoutv0.38.2Compare Source
Patch Changes
f24ce99ThanksConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
Security
View full report
All alerts resolved. Learn more about Socket for GitHub.
This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.
View full report
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.