@rspress/shared 0.0.0-next-20241120053136 → 0.0.0-next-20241121094341

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.
package/dist/index.d.ts CHANGED
@@ -779,7 +779,6 @@ declare const DEFAULT_HIGHLIGHT_LANGUAGES: string[][];
779
779
  declare const isSCM: () => boolean;
780
780
  declare const isProduction: () => boolean;
781
781
  declare const isDebugMode: () => boolean;
782
- declare const isDevDebugMode: () => boolean;
783
782
  declare const cleanUrl: (url: string) => string;
784
783
  declare function slash(str: string): string;
785
784
  declare function removeHash(str: string): string;
@@ -820,4 +819,4 @@ declare function removeBase(url: string, base: string): string;
820
819
  declare function withoutHash(url: string): string;
821
820
  declare const mergeDocConfig: (...configs: UserConfig[]) => UserConfig;
822
821
 
823
- export { APPEARANCE_KEY, type AdditionalPage, type BaseRuntimePageInfo, type Config, DEFAULT_HIGHLIGHT_LANGUAGES, type Config$1 as DefaultThemeConfig, type DocFooter, type EditLink, type Feature, type FilterConfig, type Footer, type FrontMatterMeta, HASH_REGEXP, type Header, type Hero, type Image, type LocalSearchOptions, type Locale, type LocaleConfig, type LocaleLink, type LocaleLinks, MDX_REGEXP, type MarkdownOptions, type MdxRsOptions, type Nav, type NavItem, type NavItemWithChildren, type NavItemWithLink, type NavItemWithLinkAndChildren, type NormalizedConfig, type NormalizedConfig as NormalizedDefaultThemeConfig, type NormalizedLocales, type NormalizedSidebar, type NormalizedSidebarGroup, type PageData, type PageIndexInfo, type PageModule, type PageType, type RspressPlugin as Plugin, QUERY_REGEXP, RSPRESS_TEMP_DIR, type RemotePageInfo, type RemoteSearchIndexInfo, type RemoteSearchOptions, type ReplaceRule, type Route, type RouteMeta, type RouteOptions, type RspressPlugin, SEARCH_INDEX_NAME, type SSGConfig, type SearchHooks, type SearchOptions, type Sidebar, type SidebarDivider, type SidebarGroup, type SidebarItem, type SidebarSectionHeader, type SiteData, type SocialLink, type SocialLinkIcon, type UserConfig, addLeadingSlash, addTrailingSlash, cleanUrl, inBrowser, isDataUrl, isDebugMode, isDevDebugMode, isExternalUrl, isProduction, isSCM, mergeDocConfig, normalizeHref, normalizePosixPath, normalizeSlash, omit, parseUrl, removeBase, removeHash, removeLeadingSlash, removeTrailingSlash, replaceLang, replaceVersion, slash, withBase, withoutBase, withoutHash, withoutLang };
822
+ export { APPEARANCE_KEY, type AdditionalPage, type BaseRuntimePageInfo, type Config, DEFAULT_HIGHLIGHT_LANGUAGES, type Config$1 as DefaultThemeConfig, type DocFooter, type EditLink, type Feature, type FilterConfig, type Footer, type FrontMatterMeta, HASH_REGEXP, type Header, type Hero, type Image, type LocalSearchOptions, type Locale, type LocaleConfig, type LocaleLink, type LocaleLinks, MDX_REGEXP, type MarkdownOptions, type MdxRsOptions, type Nav, type NavItem, type NavItemWithChildren, type NavItemWithLink, type NavItemWithLinkAndChildren, type NormalizedConfig, type NormalizedConfig as NormalizedDefaultThemeConfig, type NormalizedLocales, type NormalizedSidebar, type NormalizedSidebarGroup, type PageData, type PageIndexInfo, type PageModule, type PageType, type RspressPlugin as Plugin, QUERY_REGEXP, RSPRESS_TEMP_DIR, type RemotePageInfo, type RemoteSearchIndexInfo, type RemoteSearchOptions, type ReplaceRule, type Route, type RouteMeta, type RouteOptions, type RspressPlugin, SEARCH_INDEX_NAME, type SSGConfig, type SearchHooks, type SearchOptions, type Sidebar, type SidebarDivider, type SidebarGroup, type SidebarItem, type SidebarSectionHeader, type SiteData, type SocialLink, type SocialLinkIcon, type UserConfig, addLeadingSlash, addTrailingSlash, cleanUrl, inBrowser, isDataUrl, isDebugMode, isExternalUrl, isProduction, isSCM, mergeDocConfig, normalizeHref, normalizePosixPath, normalizeSlash, omit, parseUrl, removeBase, removeHash, removeLeadingSlash, removeTrailingSlash, replaceLang, replaceVersion, slash, withBase, withoutBase, withoutHash, withoutLang };
package/dist/index.js CHANGED
@@ -33,7 +33,6 @@ __export(src_exports, {
33
33
  inBrowser: () => inBrowser,
34
34
  isDataUrl: () => isDataUrl,
35
35
  isDebugMode: () => isDebugMode,
36
- isDevDebugMode: () => isDevDebugMode,
37
36
  isExternalUrl: () => isExternalUrl,
38
37
  isProduction: () => isProduction,
39
38
  isSCM: () => isSCM,
@@ -1136,7 +1135,6 @@ var isDebugMode = () => {
1136
1135
  const values = process.env.DEBUG?.toLocaleLowerCase().split(",") ?? [];
1137
1136
  return ["rsbuild", "builder", "*"].some((key) => values.includes(key));
1138
1137
  };
1139
- var isDevDebugMode = () => process.env.DEBUG === "rspress-dev";
1140
1138
  var cleanUrl = (url) => url.replace(HASH_REGEXP, "").replace(QUERY_REGEXP, "");
1141
1139
  function slash(str) {
1142
1140
  return str.replace(/\\/g, "/");
@@ -1330,7 +1328,6 @@ var mergeDocConfig = (...configs) => mergeWith_default({}, ...configs, (target,
1330
1328
  inBrowser,
1331
1329
  isDataUrl,
1332
1330
  isDebugMode,
1333
- isDevDebugMode,
1334
1331
  isExternalUrl,
1335
1332
  isProduction,
1336
1333
  isSCM,
package/dist/index.mjs CHANGED
@@ -1077,7 +1077,6 @@ var isDebugMode = () => {
1077
1077
  const values = process.env.DEBUG?.toLocaleLowerCase().split(",") ?? [];
1078
1078
  return ["rsbuild", "builder", "*"].some((key) => values.includes(key));
1079
1079
  };
1080
- var isDevDebugMode = () => process.env.DEBUG === "rspress-dev";
1081
1080
  var cleanUrl = (url) => url.replace(HASH_REGEXP, "").replace(QUERY_REGEXP, "");
1082
1081
  function slash(str) {
1083
1082
  return str.replace(/\\/g, "/");
@@ -1270,7 +1269,6 @@ export {
1270
1269
  inBrowser,
1271
1270
  isDataUrl,
1272
1271
  isDebugMode,
1273
- isDevDebugMode,
1274
1272
  isExternalUrl,
1275
1273
  isProduction,
1276
1274
  isSCM,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/shared",
3
- "version": "0.0.0-next-20241120053136",
3
+ "version": "0.0.0-next-20241121094341",
4
4
  "types": "./dist/index.d.ts",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -42,7 +42,7 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "@rsbuild/core": "~1.1.3",
45
+ "@rsbuild/core": "~1.0.19",
46
46
  "chalk": "5.3.0",
47
47
  "execa": "5.1.1",
48
48
  "fs-extra": "11.2.0",
@@ -61,6 +61,7 @@
61
61
  "lodash-es": "^4.17.21",
62
62
  "medium-zoom": "1.1.0",
63
63
  "rimraf": "^3.0.2",
64
+ "ts-node": "^10.9.2",
64
65
  "typescript": "^5.5.3"
65
66
  },
66
67
  "sideEffects": [],