@modern-js/plugin-docsite 0.0.0-canary-20220811022715 → 0.0.0-canary-20220812022037

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.
package/CHANGELOG.md CHANGED
@@ -1,22 +1,18 @@
1
1
  # @modern-js/plugin-docsite
2
2
 
3
- ## 0.0.0-canary-20220811022715
3
+ ## 0.0.0-canary-20220812022037
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - 5c7a4466a: chore: upgrade react 18
7
+ - 32f983df0: chore: upgrade react 18
8
8
 
9
9
  chore: 支持 React 18
10
10
 
11
11
  ### Patch Changes
12
12
 
13
- - Updated dependencies [79e83ef52]
14
- - Updated dependencies [5c7a4466a]
15
- - Updated dependencies [5f1a2314f]
16
- - Updated dependencies [22f4dca5c]
17
- - Updated dependencies [7b9067f23]
18
- - @modern-js/utils@0.0.0-canary-20220811022715
19
- - @modern-js/webpack@0.0.0-canary-20220811022715
13
+ - Updated dependencies [32f983df0]
14
+ - @modern-js/webpack@0.0.0-canary-20220812022037
15
+ - @modern-js/utils@0.0.0-canary-20220812022037
20
16
 
21
17
  ## 1.2.13
22
18
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { render } from 'react-dom';
2
+ import ReactDOM from 'react-dom/client';
3
3
  import styled from 'styled-components';
4
4
  import { BrowserRouter as Router } from 'react-router-dom';
5
5
  import DocsNav from './DocsNav';
@@ -38,4 +38,5 @@ const App = () => (
38
38
  const root = document.createElement('div');
39
39
  root.setAttribute('id', 'root');
40
40
  document.body.append(root);
41
- render(<App />, document.querySelector('#root'));
41
+ const root = ReactDOM.createRoot(document.querySelector('#root'));
42
+ root.render(<App />);
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-canary-20220811022715",
14
+ "version": "0.0.0-canary-20220812022037",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -37,8 +37,8 @@
37
37
  "@babel/runtime": "^7.18.0",
38
38
  "@mdx-js/mdx": "^1.6.22",
39
39
  "@mdx-js/react": "^1.6.22",
40
- "@modern-js/utils": "^0.0.0-canary-20220811022715",
41
- "@modern-js/webpack": "^0.0.0-canary-20220811022715",
40
+ "@modern-js/utils": "^0.0.0-canary-20220812022037",
41
+ "@modern-js/webpack": "^0.0.0-canary-20220812022037",
42
42
  "antd": "^4.16.13",
43
43
  "core-js": "^3.17.2",
44
44
  "github-slugger": "^1.4.0",
@@ -47,8 +47,8 @@
47
47
  "mdast-util-to-string": "^2.0.0",
48
48
  "path-browserify": "^1.0.1",
49
49
  "prism-react-renderer": "^1.2.1",
50
- "react": "^17",
51
- "react-dom": "^17",
50
+ "react": "^18",
51
+ "react-dom": "^18",
52
52
  "react-live": "^2.3.0",
53
53
  "react-router-dom": "^5.3.0",
54
54
  "sort-paths": "^1.1.1",
@@ -59,7 +59,7 @@
59
59
  "styled-components": "^5.3.5"
60
60
  },
61
61
  "devDependencies": {
62
- "@modern-js/core": "0.0.0-canary-20220811022715",
62
+ "@modern-js/core": "1.14.0",
63
63
  "@scripts/build": "0.0.0",
64
64
  "@scripts/jest-config": "0.0.0",
65
65
  "@types/core-js": "^2.5.5",
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { render } from 'react-dom';
2
+ import ReactDOM from 'react-dom/client';
3
3
  import styled from 'styled-components';
4
4
  import { BrowserRouter as Router } from 'react-router-dom';
5
5
  import DocsNav from './DocsNav';
@@ -38,4 +38,5 @@ const App = () => (
38
38
  const root = document.createElement('div');
39
39
  root.setAttribute('id', 'root');
40
40
  document.body.append(root);
41
- render(<App />, document.querySelector('#root'));
41
+ const root = ReactDOM.createRoot(document.querySelector('#root'));
42
+ root.render(<App />);