@docusaurus/core 4.0.0-canary-6998 → 4.0.0-canary-7001

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.
Files changed (2) hide show
  1. package/lib/webpack/base.js +18 -9
  2. package/package.json +12 -12
@@ -67,15 +67,24 @@ async function createBaseConfig({ props, isServer, minify, configureWebpackUtils
67
67
  }
68
68
  // When the version string changes, the cache is evicted
69
69
  function getCacheVersion() {
70
- // Because Webpack does not evict the cache on alias/swizzle changes,
71
- // See https://github.com/webpack/webpack/issues/13627
72
- const themeAliasesHash = (0, utils_1.md5Hash)(JSON.stringify(themeAliases));
73
- // Loader and minimizer options are not part of the cache key
74
- // Changing the Browserslist config must evict the cache
75
- const browserslistHash = (0, utils_1.md5Hash)(JSON.stringify((0, bundler_1.getBrowserslistQueries)()));
76
- // Asset module parser options are not part of the cache key
77
- // Changing the asset inline max size must evict the cache
78
- return `${siteMetadata.docusaurusVersion}-${themeAliasesHash}-${browserslistHash}-${utils_1.ASSET_INLINE_MAX_SIZE}`;
70
+ const versionParts = [
71
+ siteMetadata.docusaurusVersion,
72
+ // Because Webpack does not evict the cache on alias/swizzle changes,
73
+ // See https://github.com/webpack/webpack/issues/13627
74
+ themeAliases,
75
+ // Loader and minimizer options are not part of the cache key
76
+ // Changing the target browsers or Node.js version must evict the cache
77
+ // The same Browserslist queries can match other browsers over time and
78
+ // after data upgrades, for example "baseline widely available"
79
+ (0, bundler_1.getTargets)({ isServer, bundlerName: props.currentBundler.name }),
80
+ // The plugin code computing loader options is not a build dependency
81
+ // Upgrading a third-party plugin must evict the cache
82
+ siteMetadata.pluginVersions,
83
+ // Asset module parser options are not part of the cache key
84
+ // Changing the asset inline max size must evict the cache
85
+ utils_1.ASSET_INLINE_MAX_SIZE,
86
+ ];
87
+ return (0, utils_1.md5Hash)(JSON.stringify(versionParts));
79
88
  }
80
89
  // When one of those modules/dependencies change (including transitive
81
90
  // deps), cache is invalidated
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-6998",
4
+ "version": "4.0.0-canary-7001",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -27,15 +27,15 @@
27
27
  "url": "https://github.com/facebook/docusaurus/issues"
28
28
  },
29
29
  "dependencies": {
30
- "@docusaurus/babel": "4.0.0-canary-6998",
31
- "@docusaurus/bundler": "4.0.0-canary-6998",
32
- "@docusaurus/fs": "4.0.0-canary-6998",
33
- "@docusaurus/glob": "4.0.0-canary-6998",
34
- "@docusaurus/logger": "4.0.0-canary-6998",
35
- "@docusaurus/mdx-loader": "4.0.0-canary-6998",
36
- "@docusaurus/utils": "4.0.0-canary-6998",
37
- "@docusaurus/utils-common": "4.0.0-canary-6998",
38
- "@docusaurus/utils-validation": "4.0.0-canary-6998",
30
+ "@docusaurus/babel": "4.0.0-canary-7001",
31
+ "@docusaurus/bundler": "4.0.0-canary-7001",
32
+ "@docusaurus/fs": "4.0.0-canary-7001",
33
+ "@docusaurus/glob": "4.0.0-canary-7001",
34
+ "@docusaurus/logger": "4.0.0-canary-7001",
35
+ "@docusaurus/mdx-loader": "4.0.0-canary-7001",
36
+ "@docusaurus/utils": "4.0.0-canary-7001",
37
+ "@docusaurus/utils-common": "4.0.0-canary-7001",
38
+ "@docusaurus/utils-validation": "4.0.0-canary-7001",
39
39
  "@rspack/core": "^2.2.3",
40
40
  "@rspack/dev-server": "^2.2.1",
41
41
  "boxen": "^9.0.0",
@@ -68,8 +68,8 @@
68
68
  "webpack-merge": "^6.0.1"
69
69
  },
70
70
  "devDependencies": {
71
- "@docusaurus/module-type-aliases": "4.0.0-canary-6998",
72
- "@docusaurus/types": "4.0.0-canary-6998",
71
+ "@docusaurus/module-type-aliases": "4.0.0-canary-7001",
72
+ "@docusaurus/types": "4.0.0-canary-7001",
73
73
  "@total-typescript/shoehorn": "^0.1.2",
74
74
  "@types/escape-html": "^1.0.4",
75
75
  "@types/history": "^4.7.11",