@docusaurus/core 4.0.0-canary-6902 → 4.0.0-canary-6903

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.
@@ -47,12 +47,10 @@ exports.DEFAULT_STORAGE_CONFIG = {
47
47
  };
48
48
  exports.DEFAULT_FASTER_CONFIG = {
49
49
  rspackBundler: false,
50
- rspackPersistentCache: false,
51
50
  };
52
51
  // When using the "faster: true" shortcut
53
52
  exports.DEFAULT_FASTER_CONFIG_TRUE = {
54
53
  rspackBundler: true,
55
- rspackPersistentCache: true,
56
54
  };
57
55
  exports.DEFAULT_FUTURE_V4_CONFIG = {
58
56
  useCssCascadeLayers: false,
@@ -194,7 +192,6 @@ const I18N_CONFIG_SCHEMA = utils_validation_1.Joi.object({
194
192
  const FASTER_CONFIG_SCHEMA = utils_validation_1.Joi.alternatives()
195
193
  .try(utils_validation_1.Joi.object({
196
194
  rspackBundler: utils_validation_1.Joi.boolean(),
197
- rspackPersistentCache: utils_validation_1.Joi.boolean(),
198
195
  swcJsLoader: utils_validation_1.Joi.any()
199
196
  .forbidden()
200
197
  .messages({
@@ -421,10 +418,6 @@ Please migrate and move this option to code=${'siteConfig.markdown.hooks.onBroke
421
418
  // We erase the former one to ensure we don't use it anywhere
422
419
  config.onBrokenMarkdownLinks = undefined;
423
420
  }
424
- if (config.future.faster.rspackPersistentCache &&
425
- !config.future.faster.rspackBundler) {
426
- throw new Error(`Docusaurus config flag ${logger_1.default.code('future.faster.rspackPersistentCache')} requires the flag ${logger_1.default.code('future.faster.rspackBundler')} to be turned on.`);
427
- }
428
421
  }
429
422
  // TODO move to @docusaurus/utils-validation
430
423
  function validateConfig(config, siteConfigPath) {
@@ -86,19 +86,14 @@ async function createBaseConfig({ props, isServer, minify, configureWebpackUtils
86
86
  return disabledPersistentCacheValue;
87
87
  }
88
88
  if (props.currentBundler.name === 'rspack') {
89
- if (props.siteConfig.future.faster.rspackPersistentCache) {
90
- return {
91
- type: 'persistent',
92
- // Rspack doesn't have "cache.name" like Webpack
93
- // This is not ideal but work around is to merge name/version
94
- // See https://github.com/web-infra-dev/rspack/pull/8920#issuecomment-2658938695
95
- version: `${getCacheName()}-${getCacheVersion()}`,
96
- buildDependencies: getCacheBuildDependencies(),
97
- };
98
- }
99
- else {
100
- return disabledPersistentCacheValue;
101
- }
89
+ return {
90
+ type: 'persistent',
91
+ // Rspack doesn't have "cache.name" like Webpack
92
+ // This is not ideal but work around is to merge name/version
93
+ // See https://github.com/web-infra-dev/rspack/pull/8920#issuecomment-2658938695
94
+ version: `${getCacheName()}-${getCacheVersion()}`,
95
+ buildDependencies: getCacheBuildDependencies(),
96
+ };
102
97
  }
103
98
  return {
104
99
  type: 'filesystem',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@docusaurus/core",
3
3
  "description": "Easy to Maintain Open Source Documentation Websites",
4
- "version": "4.0.0-canary-6902",
4
+ "version": "4.0.0-canary-6903",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -33,15 +33,15 @@
33
33
  "url": "https://github.com/facebook/docusaurus/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@docusaurus/babel": "4.0.0-canary-6902",
37
- "@docusaurus/bundler": "4.0.0-canary-6902",
38
- "@docusaurus/fs": "4.0.0-canary-6902",
39
- "@docusaurus/glob": "4.0.0-canary-6902",
40
- "@docusaurus/logger": "4.0.0-canary-6902",
41
- "@docusaurus/mdx-loader": "4.0.0-canary-6902",
42
- "@docusaurus/utils": "4.0.0-canary-6902",
43
- "@docusaurus/utils-common": "4.0.0-canary-6902",
44
- "@docusaurus/utils-validation": "4.0.0-canary-6902",
36
+ "@docusaurus/babel": "4.0.0-canary-6903",
37
+ "@docusaurus/bundler": "4.0.0-canary-6903",
38
+ "@docusaurus/fs": "4.0.0-canary-6903",
39
+ "@docusaurus/glob": "4.0.0-canary-6903",
40
+ "@docusaurus/logger": "4.0.0-canary-6903",
41
+ "@docusaurus/mdx-loader": "4.0.0-canary-6903",
42
+ "@docusaurus/utils": "4.0.0-canary-6903",
43
+ "@docusaurus/utils-common": "4.0.0-canary-6903",
44
+ "@docusaurus/utils-validation": "4.0.0-canary-6903",
45
45
  "boxen": "^9.0.0",
46
46
  "cli-table3": "^0.6.5",
47
47
  "combine-promises": "^1.2.0",
@@ -72,8 +72,8 @@
72
72
  "webpack-merge": "^6.0.1"
73
73
  },
74
74
  "devDependencies": {
75
- "@docusaurus/module-type-aliases": "4.0.0-canary-6902",
76
- "@docusaurus/types": "4.0.0-canary-6902",
75
+ "@docusaurus/module-type-aliases": "4.0.0-canary-6903",
76
+ "@docusaurus/types": "4.0.0-canary-6903",
77
77
  "@total-typescript/shoehorn": "^0.1.2",
78
78
  "@types/escape-html": "^1.0.4",
79
79
  "@types/history": "^4.7.11",
@@ -87,7 +87,7 @@
87
87
  "utility-types": "^3.11.0"
88
88
  },
89
89
  "peerDependencies": {
90
- "@docusaurus/faster": "4.0.0-canary-6902",
90
+ "@docusaurus/faster": "4.0.0-canary-6903",
91
91
  "@mdx-js/react": "^3.1.1",
92
92
  "react": "^19.3.0",
93
93
  "react-dom": "^19.3.0"
@@ -100,5 +100,5 @@
100
100
  "engines": {
101
101
  "node": ">=24.21"
102
102
  },
103
- "gitHead": "c766d1c821e77b08a081823914f5f714d9d29f9f"
103
+ "gitHead": "01c23721ed00c463fedb89cf012d55e0c7e1ed7c"
104
104
  }