@modern-js/main-doc 2.54.2 → 2.54.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ sidebar_position: 10
3
+ ---
4
+
5
+ # Deprecated Functions
6
+
7
+ This article will introduce the functions that were previously supported by Modern.js, but have now been deprecated, along with the recommended alternatives.
8
+
9
+ ## Creating a Monorepo using @modern-js/create
10
+
11
+ The Monorepo solution previously provided by Modern.js was implemented based on [pnpm Workspace](https://pnpm.io/workspaces) and did not offer substantial Monorepo management capabilities. In version [v2.53.0](https://github.com/web-infra-dev/modern.js/releases/tag/v2.53.0), the functionality to create Monorepo projects using `@modern-js/create` has been removed. It is recommended to directly use the Monorepo solutions provided by the community.
12
+
13
+ ## Enabling the test capability with the new command
14
+
15
+ The test capability previously provided by Modern.js was a simple wrapper based on Jest, which led to issues such as unintuitive Jest configuration and more complex user configuration. In version [v2.53.0](https://github.com/web-infra-dev/modern.js/releases/tag/v2.53.0), the option to enable the test feature in application and module projects has been removed. It is recommended to directly use the testing solutions provided by the community.
@@ -0,0 +1,15 @@
1
+ ---
2
+ sidebar_position: 10
3
+ ---
4
+
5
+ # 已下线功能
6
+
7
+ 本文将介绍 Modern.js 之前支持,但是现在已下线的功能及推荐替代方案。
8
+
9
+ ## 使用 @modern-js/create 创建 Monorepo
10
+
11
+ Modern.js 之前提供的 Monorepo 方案是基于 [pnpm Workspace](https://pnpm.io/workspaces) 实现的,并未提供实质性的 Monorepo 管理能力。在 [v2.53.0](https://github.com/web-infra-dev/modern.js/releases/tag/v2.53.0) 版本中,移除了使用 `@modern-js/create` 创建 Monorepo 项目的功能。推荐直接使用社区提供的 Monorepo 方案。
12
+
13
+ ## new 命令开启 test 能力
14
+
15
+ Modern.js 之前提供的测试能力是基于 Jest 的简单封装。该封装导致 Jest 配置不直观、用户配置更加复杂等问题。在 [v2.53.0](https://github.com/web-infra-dev/modern.js/releases/tag/v2.53.0) 版本中,移除了在应用项目和模块项目中开启 test 功能的选项。推荐直接使用社区提供的测试方案。
package/package.json CHANGED
@@ -15,17 +15,17 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.54.2",
18
+ "version": "2.54.4",
19
19
  "publishConfig": {
20
20
  "registry": "https://registry.npmjs.org/",
21
21
  "access": "public",
22
22
  "provenance": true
23
23
  },
24
24
  "dependencies": {
25
- "@modern-js/sandpack-react": "2.54.2"
25
+ "@modern-js/sandpack-react": "2.54.4"
26
26
  },
27
27
  "peerDependencies": {
28
- "@modern-js/builder-doc": "^2.54.2"
28
+ "@modern-js/builder-doc": "^2.54.4"
29
29
  },
30
30
  "devDependencies": {
31
31
  "classnames": "^2",
@@ -39,8 +39,8 @@
39
39
  "@rspress/shared": "1.18.2",
40
40
  "@types/node": "^16",
41
41
  "@types/fs-extra": "9.0.13",
42
- "@modern-js/builder-doc": "2.54.2",
43
- "@modern-js/doc-plugin-auto-sidebar": "2.54.2"
42
+ "@modern-js/builder-doc": "2.54.4",
43
+ "@modern-js/doc-plugin-auto-sidebar": "2.54.4"
44
44
  },
45
45
  "scripts": {
46
46
  "dev": "rspress dev",