@modern-js/main-doc 2.60.1-alpha.0 → 2.60.1

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.
@@ -249,19 +249,3 @@ Inspect config succeed, open following files to view the content:
249
249
  - Webpack Config (web): /root/my-project/dist/webpack.config.web.mjs
250
250
  - Webpack Config (node): /root/my-project/dist/webpack.config.node.mjs
251
251
  ```
252
-
253
- ## modern lint
254
-
255
- Run ESLint to check the syntax of the code.
256
-
257
- ```bash
258
- Usage: modern lint [options] [...files]
259
-
260
- Options:
261
- --no-fix disable auto fix source file
262
- -h, --help display help for command
263
- ```
264
-
265
- Normally, only the part of the code modified by this commit needs to be checked by `lint-staged` during the `git commit` phase.
266
-
267
- - `--no-fix` close auto fix by lint.
@@ -0,0 +1 @@
1
+ Modern.js also provides a runtime Polyfill solution based on browser [UA](https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/User-Agent) information. For detailed usage instructions, please refer to [Polyfill At Runtime](https://modernjs.dev/en/guides/advanced-features/compatibility.html#polyfill-at-runtime).
@@ -10,11 +10,5 @@
10
10
  "name": "model",
11
11
  "label": "reduck",
12
12
  "collapsed": true
13
- },
14
- {
15
- "type": "dir",
16
- "name": "generator",
17
- "label": "generator",
18
- "collapsed": true
19
13
  }
20
14
  ]
@@ -2,6 +2,11 @@
2
2
  sidebar_position: 1
3
3
  title: Quick Start
4
4
  ---
5
+
6
+ :::caution
7
+ New projects are no longer recommended to use Reduck. You can use state management tools from the community, such as [Jotai](https://jotai.org/), [zustand](https://zustand.docs.pmnd.rs/getting-started/introduction), [valtio](https://valtio.dev/docs/introduction/getting-started), etc.
8
+ :::
9
+
5
10
  # Quick Start
6
11
 
7
12
  import ReduckMigration from "@site-docs-en/components/reduck-migration"
@@ -249,21 +249,3 @@ Inspect config succeed, open following files to view the content:
249
249
  - Webpack Config (web): /root/my-project/dist/webpack.config.web.mjs
250
250
  - Webpack Config (node): /root/my-project/dist/webpack.config.node.mjs
251
251
  ```
252
-
253
- ## modern lint
254
-
255
- 运行 `ESLint` 进行代码语法检查。
256
-
257
- ```bash
258
- Usage: modern lint [options] [...files]
259
-
260
- lint and fix source files
261
-
262
- Options:
263
- --no-fix disable auto fix source file
264
- -h, --help display help for command
265
- ```
266
-
267
- 通常情况下,我们只需要在 `git commit` 阶段通过 `lint-staged` 检查本次提交修改的部分代码。
268
-
269
- - 设置 `--no-fix` 参数后可以关闭自动修复 lint 错误代码的能力。
@@ -0,0 +1 @@
1
+ Modern.js 还支持了基于浏览器 [UA](https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/User-Agent) 信息的运行时按需 Polyfill 方案,具体使用姿势可查看 [运行时按需 Polyfill](/guides/advanced-features/compatibility.html#运行时按需-polyfill)
@@ -10,11 +10,5 @@
10
10
  "name": "model",
11
11
  "label": "reduck",
12
12
  "collapsed": true
13
- },
14
- {
15
- "type": "dir",
16
- "name": "generator",
17
- "label": "generator",
18
- "collapsed": true
19
13
  }
20
14
  ]
@@ -2,6 +2,11 @@
2
2
  sidebar_position: 1
3
3
  title: 快速上手
4
4
  ---
5
+
6
+ :::caution
7
+ 新项目不再推荐使用 Reduck,可以使用社区中的状态管理工具,例如 [Jotai](https://jotai.org/)、[zustand](https://zustand.docs.pmnd.rs/getting-started/introduction)、[valtio](https://valtio.dev/docs/introduction/getting-started) 等。
8
+ :::
9
+
5
10
  # 快速上手
6
11
 
7
12
  import ReduckMigration from "@site-docs/components/reduck-migration"
package/package.json CHANGED
@@ -15,13 +15,14 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.60.1-alpha.0",
18
+ "version": "2.60.1",
19
19
  "publishConfig": {
20
20
  "registry": "https://registry.npmjs.org/",
21
- "access": "public"
21
+ "access": "public",
22
+ "provenance": true
22
23
  },
23
24
  "dependencies": {
24
- "@modern-js/sandpack-react": "2.60.0"
25
+ "@modern-js/sandpack-react": "2.60.1"
25
26
  },
26
27
  "devDependencies": {
27
28
  "@rspress/shared": "1.31.0",