chore(deps): update node-patch-updates to v2.0.18 #2017

Open
renovate wants to merge 1 commit from renovate/node-patch-updates into main
Collaborator

This PR contains the following updates:

Package Change Age Confidence
@rspress/core (source) 2.0.172.0.18 age confidence
@rspress/plugin-client-redirects (source) 2.0.172.0.18 age confidence
@rspress/plugin-sitemap (source) 2.0.172.0.18 age confidence

Release Notes

web-infra-dev/rspress (@​rspress/core)

v2.0.18

Compare Source

Highlights
🤖 Customize llms.txt and Guide LLMs to Markdown

Enable llms to generate llms.txt, llms-full.txt, and a Markdown copy of every page. You can now use llms.llmsTxt to control the complete llms.txt output with site metadata and navigation-ordered pages. Rspress also injects the following hidden hint into generated HTML pages so LLMs can discover these files:

<div style="display:none" hidden="" aria-hidden="true">Are you an LLM? View https://example.com/llms.txt for optimized Markdown documentation, or https://example.com/llms-full.txt for full documentation bundle. This page is also available as Markdown at https://example.com/guide/index.md</div>

The hint is enabled by default. Use injectLlmsHint: false to disable it independently; the configuration below also shows how to customize llms.txt:

import { defineConfig } from '@&#8203;rspress/core';

export default defineConfig({
  llms: {
    llmsTxt: ({ title = 'Documentation', sections }) => {
      const pages = sections
        .flatMap(section => section.pages)
        .map(page => `- [${page.title}](${page.link})`)
        .join('\n');

      return `# ${title}\n\n${pages}`;
    },
  },
  themeConfig: {
    llmsUI: {
      injectLlmsHint: false,
    },
  },
});

Documentation: SSG-MD · injectLlmsHint

Related PRs: #​3527 · #​3526

🌍 Add Language Alternatives Automatically

For pages with existing translations, Rspress now adds reciprocal language links to <head>, helping search engines send readers to the right language:

<link rel="alternate" hreflang="en" href="https://example.com/docs/guide.html">
<link rel="alternate" hreflang="zh" href="https://example.com/docs/zh/guide.html">

Only translations that actually exist are included. Generated URLs automatically respect base, siteOrigin, and route.cleanUrls.

Documentation: Customizing head tags

Related PR: #​3524

Start Loading Page Code Before Hydration

Each generated page now preloads its own async route chunk:

<link rel="preload" href="/static/js/async/route-<hash>.js" as="script">

This lets the browser fetch the page code before the client runtime starts hydration, removing an extra network waterfall. Preload URLs support base, CDN asset prefixes, and assetPrefix: 'auto'.

Documentation: Customizing head tags

Related PR: #​3518

What's Changed
New Features 🎉
Performance 🚀
Bug Fixes 🐞
Refactor 🔨
Other Changes
New Contributors

Full Changelog: https://github.com/web-infra-dev/rspress/compare/v2.0.17...v2.0.18


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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 these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@rspress/core](https://github.com/web-infra-dev/rspress) ([source](https://github.com/web-infra-dev/rspress/tree/HEAD/packages/core)) | [`2.0.17` → `2.0.18`](https://renovatebot.com/diffs/npm/@rspress%2fcore/2.0.17/2.0.18) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@rspress%2fcore/2.0.18?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@rspress%2fcore/2.0.17/2.0.18?slim=true) | | [@rspress/plugin-client-redirects](https://github.com/web-infra-dev/rspress) ([source](https://github.com/web-infra-dev/rspress/tree/HEAD/packages/plugin-client-redirects)) | [`2.0.17` → `2.0.18`](https://renovatebot.com/diffs/npm/@rspress%2fplugin-client-redirects/2.0.17/2.0.18) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@rspress%2fplugin-client-redirects/2.0.18?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@rspress%2fplugin-client-redirects/2.0.17/2.0.18?slim=true) | | [@rspress/plugin-sitemap](https://github.com/web-infra-dev/rspress) ([source](https://github.com/web-infra-dev/rspress/tree/HEAD/packages/plugin-sitemap)) | [`2.0.17` → `2.0.18`](https://renovatebot.com/diffs/npm/@rspress%2fplugin-sitemap/2.0.17/2.0.18) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@rspress%2fplugin-sitemap/2.0.18?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@rspress%2fplugin-sitemap/2.0.17/2.0.18?slim=true) | --- ### Release Notes <details> <summary>web-infra-dev/rspress (@&#8203;rspress/core)</summary> ### [`v2.0.18`](https://github.com/web-infra-dev/rspress/releases/tag/v2.0.18) [Compare Source](https://github.com/web-infra-dev/rspress/compare/v2.0.17...v2.0.18) ##### Highlights ##### 🤖 Customize `llms.txt` and Guide LLMs to Markdown Enable `llms` to generate `llms.txt`, `llms-full.txt`, and a Markdown copy of every page. You can now use `llms.llmsTxt` to control the complete `llms.txt` output with site metadata and navigation-ordered pages. Rspress also injects the following hidden hint into generated HTML pages so LLMs can discover these files: ```html <div style="display:none" hidden="" aria-hidden="true">Are you an LLM? View https://example.com/llms.txt for optimized Markdown documentation, or https://example.com/llms-full.txt for full documentation bundle. This page is also available as Markdown at https://example.com/guide/index.md</div> ``` The hint is enabled by default. Use `injectLlmsHint: false` to disable it independently; the configuration below also shows how to customize `llms.txt`: ```ts import { defineConfig } from '@&#8203;rspress/core'; export default defineConfig({ llms: { llmsTxt: ({ title = 'Documentation', sections }) => { const pages = sections .flatMap(section => section.pages) .map(page => `- [${page.title}](${page.link})`) .join('\n'); return `# ${title}\n\n${pages}`; }, }, themeConfig: { llmsUI: { injectLlmsHint: false, }, }, }); ``` **Documentation:** [SSG-MD](https://rspress.rs/guide/basic/ssg-md) · [`injectLlmsHint`](https://rspress.rs/api/config/config-theme#injectllmshint) **Related PRs:** [#&#8203;3527](https://github.com/web-infra-dev/rspress/pull/3527) · [#&#8203;3526](https://github.com/web-infra-dev/rspress/pull/3526) ##### 🌍 Add Language Alternatives Automatically For pages with existing translations, Rspress now adds reciprocal language links to `<head>`, helping search engines send readers to the right language: ```html <link rel="alternate" hreflang="en" href="https://example.com/docs/guide.html"> <link rel="alternate" hreflang="zh" href="https://example.com/docs/zh/guide.html"> ``` Only translations that actually exist are included. Generated URLs automatically respect `base`, `siteOrigin`, and `route.cleanUrls`. **Documentation:** [Customizing head tags](https://rspress.rs/guide/advanced/custom-head) **Related PR:** [#&#8203;3524](https://github.com/web-infra-dev/rspress/pull/3524) ##### ⚡ Start Loading Page Code Before Hydration Each generated page now preloads its own async route chunk: ```html <link rel="preload" href="/static/js/async/route-<hash>.js" as="script"> ``` This lets the browser fetch the page code before the client runtime starts hydration, removing an extra network waterfall. Preload URLs support `base`, CDN asset prefixes, and `assetPrefix: 'auto'`. **Documentation:** [Customizing head tags](https://rspress.rs/guide/advanced/custom-head) **Related PR:** [#&#8203;3518](https://github.com/web-infra-dev/rspress/pull/3518) ##### What's Changed ##### New Features 🎉 - feat(plugin-algolia): Integrate `startTransition` for navigation and refactor `preconnect` logic 🔍 by [@&#8203;sanjaiyan-dev](https://github.com/sanjaiyan-dev) in [#&#8203;3508](https://github.com/web-infra-dev/rspress/pull/3508) - feat(plugin-algolia): Add Tamil (தமிழ்) translations for Algolia search interface 📜 by [@&#8203;sanjaiyan-dev](https://github.com/sanjaiyan-dev) in [#&#8203;3509](https://github.com/web-infra-dev/rspress/pull/3509) - feat(SEO/i18n): add alternate links for multilingual pages by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;3524](https://github.com/web-infra-dev/rspress/pull/3524) - feat(ssg-md): support custom llms.txt rendering by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;3527](https://github.com/web-infra-dev/rspress/pull/3527) - feat(theme/Llms): add injectLlmsHint option to guide LLMs to Markdown by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;3526](https://github.com/web-infra-dev/rspress/pull/3526) ##### Performance 🚀 - perf(runtime): preload current route chunks with link tag by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;3518](https://github.com/web-infra-dev/rspress/pull/3518) ##### Bug Fixes 🐞 - fix(theme/Nav): add :hover as onMouseEnter fallback before hydration by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;3515](https://github.com/web-infra-dev/rspress/pull/3515) - fix(create-rspress): preserve skill names in prompts by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;3522](https://github.com/web-infra-dev/rspress/pull/3522) - fix(theme/HomeFeature): fix shine not rotating with card causing gap by [@&#8203;HenryZ119](https://github.com/HenryZ119) in [#&#8203;3511](https://github.com/web-infra-dev/rspress/pull/3511) - fix(theme/Llms): hide "Open in chat" row when no chat-openable option… by [@&#8203;cloudmoonocus](https://github.com/cloudmoonocus) in [#&#8203;3517](https://github.com/web-infra-dev/rspress/pull/3517) - fix(create-rspress): add TypeScript dependency to templates by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;3525](https://github.com/web-infra-dev/rspress/pull/3525) - fix(theme/Llms): align view options behavior by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;3523](https://github.com/web-infra-dev/rspress/pull/3523) ##### Refactor 🔨 - refactor(create-rspress): improve custom theme home gradient by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;3519](https://github.com/web-infra-dev/rspress/pull/3519) ##### Other Changes - chore(deps): update all patch dependencies by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;3513](https://github.com/web-infra-dev/rspress/pull/3513) - chore(deps): update rstack by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;3514](https://github.com/web-infra-dev/rspress/pull/3514) - chore(infra/github): require screenshots for visual changes by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;3521](https://github.com/web-infra-dev/rspress/pull/3521) - chore(ci/rsdoctor): restore Rsdoctor diff comments by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;3528](https://github.com/web-infra-dev/rspress/pull/3528) - Release v2.0.18 by [@&#8203;SoonIter](https://github.com/SoonIter) in [#&#8203;3529](https://github.com/web-infra-dev/rspress/pull/3529) ##### New Contributors - [@&#8203;HenryZ119](https://github.com/HenryZ119) made their first contribution in [#&#8203;3511](https://github.com/web-infra-dev/rspress/pull/3511) - [@&#8203;cloudmoonocus](https://github.com/cloudmoonocus) made their first contribution in [#&#8203;3517](https://github.com/web-infra-dev/rspress/pull/3517) **Full Changelog**: <https://github.com/web-infra-dev/rspress/compare/v2.0.17...v2.0.18> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **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 these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNjAuMiIsInVwZGF0ZWRJblZlciI6IjQzLjI2MC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJEZXBlbmRlbmNpZXMiLCJEZXBlbmRlbmNpZXMvUmVub3ZhdGUiXX0=-->
chore(deps): update node-patch-updates to v2.0.18
All checks were successful
Auto Labeler / Apply labels based on changed files (pull_request_target) Successful in 3s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m26s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m31s
Checks / Prek / Check changed files (pull_request) Successful in 5s
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 6s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
a805848b16
renovate force-pushed renovate/node-patch-updates from a805848b16
All checks were successful
Auto Labeler / Apply labels based on changed files (pull_request_target) Successful in 3s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m26s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m31s
Checks / Prek / Check changed files (pull_request) Successful in 5s
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 6s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
to 76a88908de
All checks were successful
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 6s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m5s
Checks / Prek / Check changed files (pull_request) Successful in 6s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m2s
Update flake hashes / update-flake-hashes (pull_request) Successful in 1m10s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
2026-07-21 05:23:59 +00:00
Compare
All checks were successful
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 6s
Required
Details
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m5s
Checks / Prek / Check changed files (pull_request) Successful in 6s
Required
Details
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m2s
Required
Details
Update flake hashes / update-flake-hashes (pull_request) Successful in 1m10s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Required
Details
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/node-patch-updates:renovate/node-patch-updates
git switch renovate/node-patch-updates
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
continuwuation/continuwuity!2017
No description provided.