@hsu-react/ui 0.0.25 → 1.0.0

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.
Files changed (2) hide show
  1. package/README.md +8 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -12,9 +12,13 @@
12
12
  ```bash
13
13
  yarn add @hsu-react/ui
14
14
  # peerDependencies
15
- yarn add react react-dom antd @ant-design/icons mobx mobx-react-lite
15
+ yarn add react react-dom antd@^5 @ant-design/icons@^5 mobx mobx-react-lite
16
16
  ```
17
17
 
18
+ > **这是 1.x 线,对应 antd v5**,只收 bugfix。
19
+ >
20
+ > antd v6 请用 2.x —— 同一个包名,代码在 [VitaTsui/hsu-ui-v2](https://github.com/VitaTsui/hsu-ui-v2),文档在 <https://vitatsui.github.io/hsu-ui-v2>。`npm i @hsu-react/ui` 默认装的就是 2.x;要留在这条线请写 `npm i @hsu-react/ui@1`。
21
+
18
22
  ## 使用
19
23
 
20
24
  ```tsx
@@ -60,7 +64,9 @@ yarn docs:build # 构建文档站静态产物
60
64
 
61
65
  ## 贡献
62
66
 
63
- 日常开发在 `develop` 分支进行(feature 分支合入 `develop`),`main` 只接受来自 `develop` 的 PR;合入 `main` 后按 `package.json` 版本自动打 tag 并发布 npmPR 标题遵循 [Conventional Commits](https://www.conventionalcommits.org/)。
67
+ 日常开发在 `develop` 分支进行(feature 分支合入 `develop`),`main` 只接受来自 `develop` 的 PR;合入 `main` 后按 `package.json` 版本自动打 tag 并发布 npm(dist-tag 为 `latest`)。PR 标题遵循 [Conventional Commits](https://www.conventionalcommits.org/)。
68
+
69
+ 本仓库发布的 dist-tag 固定是 `legacy-<major>`(即 `legacy-1`),**永远不会动 `latest`** —— `latest` 归 2.x 仓库。否则一次 1.x 的补丁发布会把所有人的 `npm i @hsu-react/ui` 拽回 antd v5 线。安装本线用 `npm i @hsu-react/ui@1`,走的是 semver,与 dist-tag 无关。
64
70
 
65
71
  ## License
66
72
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hsu-react/ui",
3
- "version": "0.0.25",
3
+ "version": "1.0.0",
4
4
  "description": "一套基于 React + Ant Design 的中后台业务组件库",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -110,8 +110,8 @@
110
110
  "zxcvbn": "^4.4.2"
111
111
  },
112
112
  "peerDependencies": {
113
- "@ant-design/icons": ">=5",
114
- "antd": ">=5",
113
+ "@ant-design/icons": ">=5 <6",
114
+ "antd": ">=5 <6",
115
115
  "mobx": ">=6",
116
116
  "mobx-react-lite": ">=4",
117
117
  "react": ">=18",