@modern-js/plugin-docsite 0.0.0-canary-20220815044326 → 0.0.0-canary-20220816055613

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,19 +1,20 @@
1
1
  # @modern-js/plugin-docsite
2
2
 
3
- ## 0.0.0-canary-20220815044326
3
+ ## 0.0.0-canary-20220816055613
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - c43d6b778: chore: upgrade react 18
7
+ - 42dab19e2: chore: support react 18
8
8
 
9
9
  chore: 支持 React 18
10
10
 
11
11
  ### Patch Changes
12
12
 
13
- - Updated dependencies [c43d6b778]
13
+ - Updated dependencies [42dab19e2]
14
+ - Updated dependencies [05d4a4f2e]
14
15
  - Updated dependencies [37cd15973]
15
- - @modern-js/webpack@0.0.0-canary-20220815044326
16
- - @modern-js/utils@0.0.0-canary-20220815044326
16
+ - @modern-js/webpack@0.0.0-canary-20220816055613
17
+ - @modern-js/utils@0.0.0-canary-20220816055613
17
18
 
18
19
  ## 1.2.13
19
20
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import ReactDOM from 'react-dom/client';
2
+ import { render } from 'react-dom';
3
3
  import styled from 'styled-components';
4
4
  import { BrowserRouter as Router } from 'react-router-dom';
5
5
  import DocsNav from './DocsNav';
@@ -38,5 +38,4 @@ const App = () => (
38
38
  const root = document.createElement('div');
39
39
  root.setAttribute('id', 'root');
40
40
  document.body.append(root);
41
- const root = ReactDOM.createRoot(document.querySelector('#root'));
42
- root.render(<App />);
41
+ render(<App />, document.querySelector('#root'));
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-canary-20220815044326",
14
+ "version": "0.0.0-canary-20220816055613",
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-20220815044326",
41
- "@modern-js/webpack": "^0.0.0-canary-20220815044326",
40
+ "@modern-js/utils": "^0.0.0-canary-20220816055613",
41
+ "@modern-js/webpack": "^0.0.0-canary-20220816055613",
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": "^18",
51
- "react-dom": "^18",
50
+ "react": "^17",
51
+ "react-dom": "^17",
52
52
  "react-live": "^2.3.0",
53
53
  "react-router-dom": "^5.3.0",
54
54
  "sort-paths": "^1.1.1",
@@ -59,9 +59,9 @@
59
59
  "styled-components": "^5.3.5"
60
60
  },
61
61
  "devDependencies": {
62
- "@modern-js/core": "0.0.0-canary-20220815044326",
63
- "@scripts/build": "0.0.0-canary-20220815044326",
64
- "@scripts/jest-config": "0.0.0-canary-20220815044326",
62
+ "@modern-js/core": "0.0.0-canary-20220816055613",
63
+ "@scripts/build": "0.0.0-canary-20220816055613",
64
+ "@scripts/jest-config": "0.0.0-canary-20220816055613",
65
65
  "@types/core-js": "^2.5.5",
66
66
  "@types/github-slugger": "^1.3.0",
67
67
  "@types/glob": "^7.1.4",
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import ReactDOM from 'react-dom/client';
2
+ import { render } from 'react-dom';
3
3
  import styled from 'styled-components';
4
4
  import { BrowserRouter as Router } from 'react-router-dom';
5
5
  import DocsNav from './DocsNav';
@@ -38,5 +38,4 @@ const App = () => (
38
38
  const root = document.createElement('div');
39
39
  root.setAttribute('id', 'root');
40
40
  document.body.append(root);
41
- const root = ReactDOM.createRoot(document.querySelector('#root'));
42
- root.render(<App />);
41
+ render(<App />, document.querySelector('#root'));