@docusaurus/core 4.0.0-canary-6830 → 4.0.0-canary-6832

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/bin/beforeCli.mjs +4 -3
  2. package/package.json +14 -14
package/bin/beforeCli.mjs CHANGED
@@ -60,11 +60,12 @@ export default async function beforeCli() {
60
60
  // Note: the notification will only happen in the 2nd run
61
61
  // See https://github.com/yeoman/update-notifier/issues/209
62
62
  try {
63
+ // Note: notifier.config is undefined when the notifier is disabled
64
+ const lastUpdateCheck = notifier.config?.get('lastUpdateCheck');
63
65
  if (
64
66
  notifier.config &&
65
- // @ts-expect-error: this is an internal API
66
- !notifier.disabled &&
67
- Date.now() - notifier.config.get('lastUpdateCheck') < 50
67
+ typeof lastUpdateCheck === 'number' &&
68
+ Date.now() - lastUpdateCheck < 50
68
69
  ) {
69
70
  notifier.config.set('lastUpdateCheck', 0);
70
71
  notifier.check();
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-6830",
4
+ "version": "4.0.0-canary-6832",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -33,14 +33,14 @@
33
33
  "url": "https://github.com/facebook/docusaurus/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@docusaurus/babel": "4.0.0-canary-6830",
37
- "@docusaurus/bundler": "4.0.0-canary-6830",
38
- "@docusaurus/logger": "4.0.0-canary-6830",
39
- "@docusaurus/mdx-loader": "4.0.0-canary-6830",
40
- "@docusaurus/utils": "4.0.0-canary-6830",
41
- "@docusaurus/utils-common": "4.0.0-canary-6830",
42
- "@docusaurus/utils-validation": "4.0.0-canary-6830",
43
- "boxen": "^6.2.1",
36
+ "@docusaurus/babel": "4.0.0-canary-6832",
37
+ "@docusaurus/bundler": "4.0.0-canary-6832",
38
+ "@docusaurus/logger": "4.0.0-canary-6832",
39
+ "@docusaurus/mdx-loader": "4.0.0-canary-6832",
40
+ "@docusaurus/utils": "4.0.0-canary-6832",
41
+ "@docusaurus/utils-common": "4.0.0-canary-6832",
42
+ "@docusaurus/utils-validation": "4.0.0-canary-6832",
43
+ "boxen": "^8.0.1",
44
44
  "chokidar": "^3.6.0",
45
45
  "cli-table3": "^0.6.5",
46
46
  "combine-promises": "^1.2.0",
@@ -69,15 +69,15 @@
69
69
  "serve-handler": "^6.1.7",
70
70
  "tinypool": "^2.1.2",
71
71
  "tslib": "^2.8.1",
72
- "update-notifier": "^6.0.2",
72
+ "update-notifier": "^7.3.1",
73
73
  "webpack": "^5.111.0",
74
74
  "webpack-bundle-analyzer": "^5.3.2",
75
75
  "webpack-dev-server": "^6.0.0",
76
76
  "webpack-merge": "^6.0.1"
77
77
  },
78
78
  "devDependencies": {
79
- "@docusaurus/module-type-aliases": "4.0.0-canary-6830",
80
- "@docusaurus/types": "4.0.0-canary-6830",
79
+ "@docusaurus/module-type-aliases": "4.0.0-canary-6832",
80
+ "@docusaurus/types": "4.0.0-canary-6832",
81
81
  "@total-typescript/shoehorn": "^0.1.2",
82
82
  "@types/escape-html": "^1.0.4",
83
83
  "@types/history": "^4.7.11",
@@ -91,7 +91,7 @@
91
91
  "tree-node-cli": "^3.0.0"
92
92
  },
93
93
  "peerDependencies": {
94
- "@docusaurus/faster": "4.0.0-canary-6830",
94
+ "@docusaurus/faster": "4.0.0-canary-6832",
95
95
  "@mdx-js/react": "^3.1.1",
96
96
  "react": "^19.3.0",
97
97
  "react-dom": "^19.3.0"
@@ -104,5 +104,5 @@
104
104
  "engines": {
105
105
  "node": ">=24.21"
106
106
  },
107
- "gitHead": "e1c6575fb4ad74f0062e58df77654fe710f81062"
107
+ "gitHead": "47a6f8eaceb71fb9ab4f9a54d69352a7fb16dd96"
108
108
  }