@docusaurus/core 0.0.0-4876 → 0.0.0-4887

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.
@@ -22,9 +22,7 @@ if (ExecutionEnvironment.canUseDOM) {
22
22
  // We also preload async component to avoid first-load loading screen.
23
23
  const renderMethod = process.env.NODE_ENV === 'production' ? ReactDOM.hydrate : ReactDOM.render;
24
24
  preload(window.location.pathname).then(() => {
25
- renderMethod(
26
- // @ts-expect-error: https://github.com/staylor/react-helmet-async/pull/165
27
- <HelmetProvider>
25
+ renderMethod(<HelmetProvider>
28
26
  <BrowserRouter>
29
27
  <App />
30
28
  </BrowserRouter>
@@ -56,7 +56,6 @@ async function doRender(locals) {
56
56
  const appHtml = ReactDOMServer.renderToString(
57
57
  // @ts-expect-error: we are migrating away from react-loadable anyways
58
58
  <Loadable.Capture report={(moduleName) => modules.add(moduleName)}>
59
- {/* @ts-expect-error: https://github.com/staylor/react-helmet-async/pull/165 */}
60
59
  <HelmetProvider context={helmetContext}>
61
60
  <StaticRouter location={location} context={routerContext}>
62
61
  <LinksCollectorProvider linksCollector={linksCollector}>
@@ -101,7 +101,7 @@ async function buildLocale({ siteDir, locale, cliOptions, forceTerminate, isLast
101
101
  new react_loadable_ssr_addon_v5_slorber_1.default({
102
102
  filename: clientManifestPath,
103
103
  }),
104
- ].filter(Boolean),
104
+ ].filter((x) => Boolean(x)),
105
105
  });
106
106
  const allCollectedLinks = {};
107
107
  const headTags = {};
@@ -175,7 +175,7 @@ You can also set the deploymentBranch property in docusaurus.config.js .`);
175
175
  if (!cliOptions.skipBuild) {
176
176
  // Build site, then push to deploymentBranch branch of specified repo.
177
177
  try {
178
- await runDeploy(await (0, build_1.build)(siteDir, cliOptions, false));
178
+ await (0, build_1.build)(siteDir, cliOptions, false).then(runDeploy);
179
179
  }
180
180
  catch (err) {
181
181
  logger_1.default.error('Deployment of the build output failed.');
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": "0.0.0-4876",
4
+ "version": "0.0.0-4887",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -41,13 +41,13 @@
41
41
  "@babel/runtime": "^7.17.9",
42
42
  "@babel/runtime-corejs3": "^7.17.9",
43
43
  "@babel/traverse": "^7.17.9",
44
- "@docusaurus/cssnano-preset": "0.0.0-4876",
45
- "@docusaurus/logger": "0.0.0-4876",
46
- "@docusaurus/mdx-loader": "0.0.0-4876",
44
+ "@docusaurus/cssnano-preset": "0.0.0-4887",
45
+ "@docusaurus/logger": "0.0.0-4887",
46
+ "@docusaurus/mdx-loader": "0.0.0-4887",
47
47
  "@docusaurus/react-loadable": "5.5.2",
48
- "@docusaurus/utils": "0.0.0-4876",
49
- "@docusaurus/utils-common": "0.0.0-4876",
50
- "@docusaurus/utils-validation": "0.0.0-4876",
48
+ "@docusaurus/utils": "0.0.0-4887",
49
+ "@docusaurus/utils-common": "0.0.0-4887",
50
+ "@docusaurus/utils-validation": "0.0.0-4887",
51
51
  "@slorber/static-site-generator-webpack-plugin": "^4.0.4",
52
52
  "@svgr/webpack": "^6.2.1",
53
53
  "autoprefixer": "^10.4.4",
@@ -56,11 +56,11 @@
56
56
  "boxen": "^6.2.1",
57
57
  "chokidar": "^3.5.3",
58
58
  "clean-css": "^5.3.0",
59
- "cli-table3": "^0.6.1",
59
+ "cli-table3": "^0.6.2",
60
60
  "combine-promises": "^1.1.0",
61
61
  "commander": "^5.1.0",
62
62
  "copy-webpack-plugin": "^10.2.4",
63
- "core-js": "^3.21.1",
63
+ "core-js": "^3.22.0",
64
64
  "css-loader": "^6.7.1",
65
65
  "css-minimizer-webpack-plugin": "^3.4.1",
66
66
  "cssnano": "^5.1.7",
@@ -69,7 +69,7 @@
69
69
  "escape-html": "^1.0.3",
70
70
  "eta": "^1.12.3",
71
71
  "file-loader": "^6.2.0",
72
- "fs-extra": "^10.0.1",
72
+ "fs-extra": "^10.1.0",
73
73
  "html-minifier-terser": "^6.1.0",
74
74
  "html-tags": "^3.2.0",
75
75
  "html-webpack-plugin": "^5.5.0",
@@ -81,8 +81,8 @@
81
81
  "postcss": "^8.4.12",
82
82
  "postcss-loader": "^6.2.1",
83
83
  "prompts": "^2.4.2",
84
- "react-dev-utils": "^12.0.0",
85
- "react-helmet-async": "^1.2.3",
84
+ "react-dev-utils": "^12.0.1",
85
+ "react-helmet-async": "^1.3.0",
86
86
  "react-loadable": "npm:@docusaurus/react-loadable@5.5.2",
87
87
  "react-loadable-ssr-addon-v5-slorber": "^1.0.1",
88
88
  "react-router": "^5.2.0",
@@ -90,7 +90,7 @@
90
90
  "react-router-dom": "^5.2.0",
91
91
  "remark-admonitions": "^1.2.1",
92
92
  "rtl-detect": "^1.0.4",
93
- "semver": "^7.3.6",
93
+ "semver": "^7.3.7",
94
94
  "serve-handler": "^6.1.3",
95
95
  "shelljs": "^0.8.5",
96
96
  "terser-webpack-plugin": "^5.3.1",
@@ -105,11 +105,11 @@
105
105
  "webpackbar": "^5.0.2"
106
106
  },
107
107
  "devDependencies": {
108
- "@docusaurus/module-type-aliases": "0.0.0-4876",
109
- "@docusaurus/types": "0.0.0-4876",
108
+ "@docusaurus/module-type-aliases": "0.0.0-4887",
109
+ "@docusaurus/types": "0.0.0-4887",
110
110
  "@types/detect-port": "^1.3.2",
111
111
  "@types/nprogress": "^0.2.0",
112
- "@types/react-dom": "^18.0.0",
112
+ "@types/react-dom": "^18.0.1",
113
113
  "@types/react-router-config": "^5.0.6",
114
114
  "@types/rtl-detect": "^1.0.0",
115
115
  "@types/serve-handler": "^6.1.1",
@@ -127,5 +127,5 @@
127
127
  "engines": {
128
128
  "node": ">=14"
129
129
  },
130
- "gitHead": "ed43a09bc7cd70a5035d8ec19eb53393fd83dc4f"
130
+ "gitHead": "87ce2a6c9491e474712d082a66491d46856f5d3f"
131
131
  }