reaxes-utils 2.0.1 → 2.0.2

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,2 +1,8 @@
1
+ # 2.0.3
2
+ * Fixed package.json exports issue.
3
+ # 2.0.2
4
+ * Most useless modules were removed.
5
+ * All new utility functions will be named starting with "x", such as `xImport()`.
6
+
1
7
  # 1.0.10
2
8
  - 修复由于react-hot-loader/babel引起的打包后产物出现__WEBPACK_EXTERNAL_MODULE的问题
package/package.json CHANGED
@@ -1,14 +1,21 @@
1
1
  {
2
2
  "name": "reaxes-utils",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "main": "esm/index.js",
5
5
  "module": "esm/index.js",
6
6
  "exports": {
7
- "./react-hooks": "./esm/react-hooks"
7
+ ".": {
8
+ "import": "./esm/index.js"
9
+ },
10
+ "./react-hooks": {
11
+ "import": "./esm/react-hooks/index.js"
12
+ }
8
13
  },
9
14
  "typesVersions": {
10
15
  "*": {
11
- "react-hooks/*": "types/react-hooks/*"
16
+ "react-hooks": [
17
+ "./types/react-hooks/index.d.ts"
18
+ ]
12
19
  }
13
20
  },
14
21
  "types": "./types/index.d.ts"
package/readme.md ADDED
@@ -0,0 +1,5 @@
1
+ # reaxes-utils是reaxes系列库内部使用的工具集
2
+
3
+ 与[`reaxes-toolkit`](https://www.npmjs.com/package/reaxes-toolkit)不同的是:
4
+ * `reaxes-utils`服务于`reaxes`内部,但也可以直接用于业务代码中,包含动态导入,更加通用
5
+ * `reaxes-toolkit`则是面向[`reaxes`](https://www.npmjs.com/package/reaxes)的使用者,提供了基于`reaxes`的能力封装的一些可服用局部业务逻辑(比如可用`rexaStatus`管理局部逻辑的的pending和error状态)