@rspress/core 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,8 +9,8 @@ import { setTimeout as promises_setTimeout } from "node:timers/promises";
9
9
  import { debuglog } from "node:util";
10
10
  import { node_process, node_os, constants } from "./9348.1beb3e25.js";
11
11
  import { node_path } from "./6289.29817fb4.js";
12
- import { node_url } from "./5485.d1bd4aec.js";
13
- import { createWriteStream, createReadStream, readFileSync } from "./6576.421b464f.js";
12
+ import { node_url } from "./5485.5f8db93a.js";
13
+ import { createWriteStream, createReadStream, readFileSync } from "./2577.421b464f.js";
14
14
  __webpack_require__.add({
15
15
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js" (module, __unused_rspack_exports, __webpack_require__) {
16
16
  const cp = __webpack_require__("child_process");
@@ -1,5 +1,5 @@
1
1
  var package_namespaceObject = {
2
- rE: "2.0.1"
2
+ rE: "2.0.2"
3
3
  };
4
4
  async function pMap(iterable, mapper, { concurrency = 1 / 0, stopOnError = true, signal } = {}) {
5
5
  return new Promise((resolve_, reject_)=>{
package/dist/cli/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { node_path, logger, join, picocolors } from "../6289.29817fb4.js";
2
2
  import { chokidar, cac } from "./index.44f3184c.js";
3
- import { package_namespaceObject } from "../5485.d1bd4aec.js";
3
+ import { package_namespaceObject } from "../5485.5f8db93a.js";
4
4
  import { loadConfigFile, resolveDocRoot } from "../config/loadConfigFile.js";
5
5
  import { dev } from "../node/dev.js";
6
6
  import { PUBLIC_DIR } from "../node/constants.js";
@@ -1,4 +1,4 @@
1
- import { node_fs, DEFAULT_CONFIG_EXTENSIONS, DEFAULT_CONFIG_NAME } from "../6576.421b464f.js";
1
+ import { node_fs, DEFAULT_CONFIG_EXTENSIONS, DEFAULT_CONFIG_NAME } from "../2577.421b464f.js";
2
2
  import { node_path, logger } from "../6289.29817fb4.js";
3
3
  const findConfig = (basePath)=>DEFAULT_CONFIG_EXTENSIONS.map((ext)=>basePath + ext).find(node_fs.existsSync);
4
4
  async function loadConfigFile(customConfigFile) {
@@ -118,6 +118,7 @@
118
118
  font-size: 14px;
119
119
  color: var(--rp-c-text-2);
120
120
  text-decoration: none;
121
+ word-break: normal;
121
122
  transition:
122
123
  color 0.2s ease,
123
124
  background-color 0.2s ease;
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ export { build } from "./node/build.js";
5
5
  export { defineConfig } from "./config/defineConfig.js";
6
6
  export { dev } from "./node/dev.js";
7
7
  export { logger } from "./6289.29817fb4.js";
8
- export { matchPath } from "./6576.421b464f.js";
8
+ export { matchPath } from "./2577.421b464f.js";
9
9
  export { remarkFileCodeBlock } from "./node/mdx/remarkPlugins/fileCodeBlock.js";
10
10
  export { remarkLink } from "./node/mdx/remarkPlugins/link.js";
11
11
  export { serve } from "./node/serve.js";
@@ -1,5 +1,5 @@
1
1
  import { node_path } from "../../6289.29817fb4.js";
2
- import { DEFAULT_PAGE_EXTENSIONS } from "../../6576.421b464f.js";
2
+ import { DEFAULT_PAGE_EXTENSIONS } from "../../2577.421b464f.js";
3
3
  import { processLocales, combineWalkResult } from "./locales.js";
4
4
  import { walk } from "./walk.js";
5
5
  async function runAutoNavSide(config, metaFileSet, mdFileSet) {
@@ -1,4 +1,4 @@
1
- import { createRequire, package_namespaceObject } from "../5485.d1bd4aec.js";
1
+ import { createRequire, package_namespaceObject } from "../5485.5f8db93a.js";
2
2
  import { node_path } from "../6289.29817fb4.js";
3
3
  const constants_require = createRequire(import.meta.url);
4
4
  const RSPRESS_VERSION = package_namespaceObject.rE;
@@ -1,7 +1,7 @@
1
- import { createRequire, fileURLToPath, package_namespaceObject } from "../5485.d1bd4aec.js";
1
+ import { createRequire, fileURLToPath, package_namespaceObject } from "../5485.5f8db93a.js";
2
2
  import { node_path } from "../6289.29817fb4.js";
3
3
  import { removeTrailingSlash, MDX_OR_MD_REGEXP, cwd } from "../9348.1beb3e25.js";
4
- import { PLUGIN_REACT_NAME, pluginReact, pluginVirtualModule } from "../6576.421b464f.js";
4
+ import { PLUGIN_REACT_NAME, pluginReact, pluginVirtualModule } from "../2577.421b464f.js";
5
5
  import { createError } from "./utils/error.js";
6
6
  import { PUBLIC_DIR, CSR_CLIENT_ENTRY, SSR_CLIENT_ENTRY, OUTPUT_DIR, SSG_MD_SERVER_ENTRY, inlineThemeScript, NODE_SSG_BUNDLE_FOLDER, isProduction, PACKAGE_ROOT, SSR_SERVER_ENTRY, TEMPLATE_PATH, NODE_SSG_MD_BUNDLE_FOLDER, DEFAULT_THEME, NODE_SSG_MD_BUNDLE_NAME, DEFAULT_TITLE, NODE_SSG_BUNDLE_NAME } from "./constants.js";
7
7
  import { hintBuilderPluginsBreakingChange, hintThemeBreakingChange } from "./logger/hint.js";
@@ -1,4 +1,4 @@
1
- import { execa } from "../../0~7675.ad8fe23f.js";
1
+ import { execa } from "../../0~7675.6e0caa9f.js";
2
2
  function transform(timestamp, lang) {
3
3
  return new Date(timestamp).toLocaleString(lang || 'zh');
4
4
  }
@@ -1,6 +1,6 @@
1
1
  import { node_path, promises } from "../../6289.29817fb4.js";
2
2
  import { RSPRESS_TEMP_DIR, removeTrailingSlash, addTrailingSlash } from "../../9348.1beb3e25.js";
3
- import { DEFAULT_PAGE_EXTENSIONS, glob } from "../../6576.421b464f.js";
3
+ import { DEFAULT_PAGE_EXTENSIONS, glob } from "../../2577.421b464f.js";
4
4
  import { PUBLIC_DIR } from "../constants.js";
5
5
  import { RoutePage, absolutePathToRoutePath, absolutePathToRelativePath } from "./RoutePage.js";
6
6
  import { createError } from "../utils/error.js";
@@ -1,6 +1,6 @@
1
1
  import { node_path, promises } from "../../6289.29817fb4.js";
2
2
  import { unified, visit, remark_gfm, loadFrontMatter, remark_stringify, MDX_OR_MD_REGEXP } from "../../9348.1beb3e25.js";
3
- import { remove, remark_parse } from "../../6576.421b464f.js";
3
+ import { remove, remark_parse } from "../../2577.421b464f.js";
4
4
  import { applyReplaceRules } from "../utils/applyReplaceRules.js";
5
5
  import { flattenMdxContent } from "../utils/flattenMdxContent.js";
6
6
  import { importStatementRegex } from "../constants.js";
@@ -1,5 +1,5 @@
1
1
  import { addTrailingSlash, addLeadingSlash } from "../../9348.1beb3e25.js";
2
- import { DEFAULT_PAGE_EXTENSIONS } from "../../6576.421b464f.js";
2
+ import { DEFAULT_PAGE_EXTENSIONS } from "../../2577.421b464f.js";
3
3
  const getRoutePathParts = (relativePath, lang, version, langs, versions)=>{
4
4
  const [versionPart, langPart, purePath] = splitRoutePathParts(relativePath, lang, version, langs, versions);
5
5
  return [
@@ -1,4 +1,4 @@
1
- import { createRequire } from "../../5485.d1bd4aec.js";
1
+ import { createRequire } from "../../5485.5f8db93a.js";
2
2
  import { picocolors, join, logger } from "../../6289.29817fb4.js";
3
3
  import { DEFAULT_I18N_TEXT } from "./DEFAULT_I18N_TEXT.js";
4
4
  import { createError } from "../utils/error.js";
@@ -1,5 +1,5 @@
1
1
  import { SEARCH_INDEX_NAME } from "../../../9348.1beb3e25.js";
2
- import { groupBy } from "../../../6576.421b464f.js";
2
+ import { groupBy } from "../../../2577.421b464f.js";
3
3
  import { extractPageData } from "../../route/extractPageData.js";
4
4
  import { createHash } from "../../utils/createHash.js";
5
5
  function deletePrivateField(obj) {
@@ -1,5 +1,5 @@
1
1
  import { logger } from "../../../6289.29817fb4.js";
2
- import { pluginVirtualModule } from "../../../6576.421b464f.js";
2
+ import { pluginVirtualModule } from "../../../2577.421b464f.js";
3
3
  import { createPageData } from "./createPageData.js";
4
4
  const rsbuildPluginDocVM = async ({ config, userDocRoot, routeService, pluginDriver })=>{
5
5
  const ref = {
@@ -1,4 +1,4 @@
1
- import { mergeRsbuildConfig } from "../6576.421b464f.js";
1
+ import { mergeRsbuildConfig } from "../2577.421b464f.js";
2
2
  import { PluginDriver } from "./PluginDriver.js";
3
3
  import { initRsbuild } from "./initRsbuild.js";
4
4
  import { RouteService } from "./route/RouteService.js";
@@ -1,4 +1,4 @@
1
- import { transformHtmlTemplate, pathToFileURL, createHead } from "../../5485.d1bd4aec.js";
1
+ import { transformHtmlTemplate, pathToFileURL, createHead } from "../../5485.5f8db93a.js";
2
2
  import { logger, picocolors } from "../../6289.29817fb4.js";
3
3
  import { hintSSGFailed } from "../logger/hint.js";
4
4
  import { renderHtmlTemplate } from "./renderHtmlTemplate.js";
@@ -1,6 +1,6 @@
1
1
  import { workerData } from "./renderPageWorker.165b5d46.js";
2
2
  import { createError } from "../utils/error.js";
3
- import { pMap } from "../../5485.d1bd4aec.js";
3
+ import { pMap } from "../../5485.5f8db93a.js";
4
4
  import { renderPage } from "./renderPage.js";
5
5
  const params = workerData?.[1]?.params;
6
6
  if (!params) throw createError('SSG Worker Thread workerData params missing');
@@ -1,8 +1,8 @@
1
1
  /*! For license information please see renderPages.js.LICENSE.txt */
2
2
  import { logger, picocolors } from "../../6289.29817fb4.js";
3
- import { chunk } from "../../6576.421b464f.js";
3
+ import { chunk } from "../../2577.421b464f.js";
4
4
  import { SSGWorkerThreadTaskSize, getNumberOfThreads, SSGWorkerThreadRecyclerMaxMemory, SSGConcurrency } from "./ssgEnv.js";
5
- import { pMap } from "../../5485.d1bd4aec.js";
5
+ import { pMap } from "../../5485.5f8db93a.js";
6
6
  import { renderPage } from "./renderPage.js";
7
7
  import { hintSSGFailed } from "../logger/hint.js";
8
8
  import { renderHtmlTemplate } from "./renderHtmlTemplate.js";
@@ -1,5 +1,5 @@
1
1
  import { getSidebarDataGroup } from "../../../9348.1beb3e25.js";
2
- import { matchPath } from "../../../6576.421b464f.js";
2
+ import { matchPath } from "../../../2577.421b464f.js";
3
3
  import { generateLlmsTxt, generateLlmsFullTxt } from "./llmsTxt.js";
4
4
  async function emitLlmsTxt(config, routeService, emitAsset, mdContents) {
5
5
  const base = config.base ?? '/';
@@ -1,4 +1,4 @@
1
- import { pathToFileURL, createHead } from "../../5485.d1bd4aec.js";
1
+ import { pathToFileURL, createHead } from "../../5485.5f8db93a.js";
2
2
  import { logger, picocolors } from "../../6289.29817fb4.js";
3
3
  import { hintSSGFailed } from "../logger/hint.js";
4
4
  async function renderPage(route, ssrBundlePath) {
@@ -1,5 +1,5 @@
1
1
  import { logger, picocolors } from "../../6289.29817fb4.js";
2
- import { pMap } from "../../5485.d1bd4aec.js";
2
+ import { pMap } from "../../5485.5f8db93a.js";
3
3
  import { renderPage } from "./renderPage.js";
4
4
  import { SSGConcurrency } from "../ssg/ssgEnv.js";
5
5
  const routePage2MdFilename = (routePath)=>{
@@ -1,4 +1,4 @@
1
- import { createHash as external_node_crypto_createHash } from "../../6576.421b464f.js";
1
+ import { createHash as external_node_crypto_createHash } from "../../2577.421b464f.js";
2
2
  function createHash(str) {
3
3
  return external_node_crypto_createHash('sha256').update(str).digest('hex').slice(0, 8);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { node_fs, core_rspack } from "../../6576.421b464f.js";
1
+ import { node_fs, core_rspack } from "../../2577.421b464f.js";
2
2
  import { node_path, logger } from "../../6289.29817fb4.js";
3
3
  import { createProcessor, MDX_OR_MD_REGEXP } from "../../9348.1beb3e25.js";
4
4
  import { createError } from "./error.js";
@@ -1,5 +1,5 @@
1
1
  import { node_path, logger, picocolors } from "../../6289.29817fb4.js";
2
- import { core_rspack } from "../../6576.421b464f.js";
2
+ import { core_rspack } from "../../2577.421b464f.js";
3
3
  import { pathExists, readJson } from "./fs.js";
4
4
  import { PACKAGE_ROOT } from "../constants.js";
5
5
  import { hintReactVersion } from "../logger/hint.js";
@@ -112,6 +112,7 @@
112
112
 
113
113
  .rp-overview-group__item__content__item__link {
114
114
  color: var(--rp-c-text-2);
115
+ word-break: normal;
115
116
  padding: 4px 8px;
116
117
  font-size: 14px;
117
118
  text-decoration: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/core",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "The Rspress Documentation Framework",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -63,8 +63,8 @@
63
63
  "dependencies": {
64
64
  "@mdx-js/mdx": "^3.1.1",
65
65
  "@mdx-js/react": "^3.1.1",
66
- "@rsbuild/core": "2.0.0-beta.0",
67
- "@rsbuild/plugin-react": "~1.4.4",
66
+ "@rsbuild/core": "2.0.0-beta.1",
67
+ "@rsbuild/plugin-react": "~1.4.5",
68
68
  "@shikijs/rehype": "^3.21.0",
69
69
  "@types/unist": "^3.0.3",
70
70
  "@unhead/react": "^2.1.2",
@@ -87,7 +87,7 @@
87
87
  "react-dom": "^19.2.4",
88
88
  "react-lazy-with-preload": "^2.2.1",
89
89
  "react-reconciler": "0.33.0",
90
- "react-router-dom": "^7.12.0",
90
+ "react-router-dom": "^7.13.0",
91
91
  "rehype-external-links": "^3.0.0",
92
92
  "rehype-raw": "^7.0.0",
93
93
  "remark-gfm": "^4.0.1",
@@ -102,13 +102,13 @@
102
102
  "unist-util-remove": "^4.0.0",
103
103
  "unist-util-visit": "^5.0.0",
104
104
  "unist-util-visit-children": "^3.0.0",
105
- "@rspress/shared": "2.0.1"
105
+ "@rspress/shared": "2.0.2"
106
106
  },
107
107
  "devDependencies": {
108
- "@microsoft/api-extractor": "^7.55.2",
108
+ "@microsoft/api-extractor": "^7.56.0",
109
109
  "@rsbuild/plugin-sass": "~1.5.0",
110
110
  "@rsbuild/plugin-svgr": "^1.3.0",
111
- "@rslib/core": "0.19.3",
111
+ "@rslib/core": "0.19.4",
112
112
  "@types/body-scroll-lock": "^3.1.2",
113
113
  "@types/hast": "^3.0.4",
114
114
  "@types/lodash-es": "^4.17.12",
@@ -118,7 +118,7 @@
118
118
  "@types/react": "^19.2.10",
119
119
  "@types/react-dom": "^19.2.3",
120
120
  "@types/react-reconciler": "^0.32.3",
121
- "@types/web": "^0.0.323",
121
+ "@types/web": "^0.0.325",
122
122
  "execa": "8.0.1",
123
123
  "mdast-util-directive": "^3.1.0",
124
124
  "mdast-util-mdx-expression": "^2.0.1",
File without changes