@docusaurus/core 4.0.0-canary-6967 → 4.0.0-canary-6968
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.
|
@@ -12,9 +12,10 @@ import { useLayoutEffect } from 'react';
|
|
|
12
12
|
* `useLayoutEffect` SSR warning, which React 19 removed.
|
|
13
13
|
* See https://github.com/facebook/react/pull/26395
|
|
14
14
|
*
|
|
15
|
-
* It is unnecessary since React 19: use `useLayoutEffect` directly.
|
|
16
15
|
* We only keep it for retro-compatibility, because third-party code might
|
|
17
16
|
* import `@docusaurus/useIsomorphicLayoutEffect`.
|
|
17
|
+
*
|
|
18
|
+
* @deprecated Use React's `useLayoutEffect` instead.
|
|
18
19
|
*/
|
|
19
20
|
declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
|
20
21
|
export default useIsomorphicLayoutEffect;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import { useLayoutEffect } from 'react';
|
|
8
|
+
// TODO Docusaurus v5: remove this deprecated hook
|
|
8
9
|
/**
|
|
9
10
|
* This hook is now just React's `useLayoutEffect`.
|
|
10
11
|
*
|
|
@@ -12,9 +13,10 @@ import { useLayoutEffect } from 'react';
|
|
|
12
13
|
* `useLayoutEffect` SSR warning, which React 19 removed.
|
|
13
14
|
* See https://github.com/facebook/react/pull/26395
|
|
14
15
|
*
|
|
15
|
-
* It is unnecessary since React 19: use `useLayoutEffect` directly.
|
|
16
16
|
* We only keep it for retro-compatibility, because third-party code might
|
|
17
17
|
* import `@docusaurus/useIsomorphicLayoutEffect`.
|
|
18
|
+
*
|
|
19
|
+
* @deprecated Use React's `useLayoutEffect` instead.
|
|
18
20
|
*/
|
|
19
21
|
const useIsomorphicLayoutEffect = useLayoutEffect;
|
|
20
22
|
export default useIsomorphicLayoutEffect;
|
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-
|
|
4
|
+
"version": "4.0.0-canary-6968",
|
|
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-
|
|
31
|
-
"@docusaurus/bundler": "4.0.0-canary-
|
|
32
|
-
"@docusaurus/fs": "4.0.0-canary-
|
|
33
|
-
"@docusaurus/glob": "4.0.0-canary-
|
|
34
|
-
"@docusaurus/logger": "4.0.0-canary-
|
|
35
|
-
"@docusaurus/mdx-loader": "4.0.0-canary-
|
|
36
|
-
"@docusaurus/utils": "4.0.0-canary-
|
|
37
|
-
"@docusaurus/utils-common": "4.0.0-canary-
|
|
38
|
-
"@docusaurus/utils-validation": "4.0.0-canary-
|
|
30
|
+
"@docusaurus/babel": "4.0.0-canary-6968",
|
|
31
|
+
"@docusaurus/bundler": "4.0.0-canary-6968",
|
|
32
|
+
"@docusaurus/fs": "4.0.0-canary-6968",
|
|
33
|
+
"@docusaurus/glob": "4.0.0-canary-6968",
|
|
34
|
+
"@docusaurus/logger": "4.0.0-canary-6968",
|
|
35
|
+
"@docusaurus/mdx-loader": "4.0.0-canary-6968",
|
|
36
|
+
"@docusaurus/utils": "4.0.0-canary-6968",
|
|
37
|
+
"@docusaurus/utils-common": "4.0.0-canary-6968",
|
|
38
|
+
"@docusaurus/utils-validation": "4.0.0-canary-6968",
|
|
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-
|
|
72
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
71
|
+
"@docusaurus/module-type-aliases": "4.0.0-canary-6968",
|
|
72
|
+
"@docusaurus/types": "4.0.0-canary-6968",
|
|
73
73
|
"@total-typescript/shoehorn": "^0.1.2",
|
|
74
74
|
"@types/escape-html": "^1.0.4",
|
|
75
75
|
"@types/history": "^4.7.11",
|