@modern-js/plugin-docsite 0.0.0-canary-20220816022911 → 0.0.0-canary-20220816024001

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,20 +1,13 @@
1
1
  # @modern-js/plugin-docsite
2
2
 
3
- ## 0.0.0-canary-20220816022911
4
-
5
- ### Minor Changes
6
-
7
- - 60a86f223: chore: upgrade react 18
8
-
9
- chore: 支持 React 18
3
+ ## 0.0.0-canary-20220816024001
10
4
 
11
5
  ### Patch Changes
12
6
 
13
- - Updated dependencies [60a86f223]
14
- - Updated dependencies [05d4a4f2e]
15
- - Updated dependencies [37cd15973]
16
- - @modern-js/webpack@0.0.0-canary-20220816022911
17
- - @modern-js/utils@0.0.0-canary-20220816022911
7
+ - Updated dependencies [05d4a4f2]
8
+ - Updated dependencies [37cd1597]
9
+ - @modern-js/utils@0.0.0-canary-20220816024001
10
+ - @modern-js/webpack@0.0.0-canary-20220816024001
18
11
 
19
12
  ## 1.2.13
20
13
 
@@ -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-20220816022911",
14
+ "version": "0.0.0-canary-20220816024001",
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-20220816022911",
41
- "@modern-js/webpack": "^0.0.0-canary-20220816022911",
40
+ "@modern-js/utils": "^0.0.0-canary-20220816024001",
41
+ "@modern-js/webpack": "^0.0.0-canary-20220816024001",
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,14 +59,16 @@
59
59
  "styled-components": "^5.3.5"
60
60
  },
61
61
  "devDependencies": {
62
- "@modern-js/core": "0.0.0-canary-20220816022911",
63
- "@scripts/build": "0.0.0-canary-20220816022911",
64
- "@scripts/jest-config": "0.0.0-canary-20220816022911",
62
+ "@modern-js/core": "0.0.0-canary-20220816024001",
63
+ "@scripts/build": "0.0.0-canary-20220816024001",
64
+ "@scripts/jest-config": "0.0.0-canary-20220816024001",
65
65
  "@types/core-js": "^2.5.5",
66
66
  "@types/github-slugger": "^1.3.0",
67
67
  "@types/glob": "^7.1.4",
68
68
  "@types/jest": "^27",
69
69
  "@types/node": "^14",
70
+ "@types/react": "^17",
71
+ "@types/react-dom": "^17",
70
72
  "@types/webpack-dev-server": "^4.1.0",
71
73
  "jest": "^27",
72
74
  "typescript": "^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'));