@depository/react 0.49.0 → 0.53.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +4 -5
- package/src/index.js +4 -0
- package/src/{hooks/useData.js → useData.js} +0 -0
- package/src/{hooks/useData.spec.js → useData.spec.js} +1 -1
- package/src/{hooks/useDispatch.js → useDispatch.js} +0 -0
- package/src/{hooks/useStore.js → useStore.js} +1 -1
- package/src/hooks/index.js +0 -4
package/package.json
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"type": "module",
|
3
3
|
"name": "@depository/react",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.53.0",
|
5
5
|
"description": "React bindings for depository",
|
6
6
|
"module": "./src/index.js",
|
7
7
|
"exports": {
|
8
8
|
".": "./src/index.js",
|
9
|
-
"./hooks": "./src/hooks/index.js",
|
10
9
|
"./html": "./src/html.js"
|
11
10
|
},
|
12
11
|
"sideEffects": false,
|
@@ -28,8 +27,8 @@
|
|
28
27
|
"access": "public"
|
29
28
|
},
|
30
29
|
"devDependencies": {
|
31
|
-
"@depository/function-middleware": "^0.
|
32
|
-
"@depository/store": "^0.
|
30
|
+
"@depository/function-middleware": "^0.53.0",
|
31
|
+
"@depository/store": "^0.53.0",
|
33
32
|
"htm": "^3.0.4",
|
34
33
|
"jsdom": "^16.4.0",
|
35
34
|
"mocha": "8.3.2",
|
@@ -49,5 +48,5 @@
|
|
49
48
|
"engines": {
|
50
49
|
"node": ">=12"
|
51
50
|
},
|
52
|
-
"gitHead": "
|
51
|
+
"gitHead": "83f8abae154b748392074472331a840fdffaa74a"
|
53
52
|
}
|
package/src/index.js
CHANGED
@@ -2,6 +2,10 @@ import { createElement, Component } from "react";
|
|
2
2
|
import { StoreContext } from "./StoreContext.js";
|
3
3
|
import { createBinding } from "./createBinding.js";
|
4
4
|
export { StoreProvider } from "./StoreProvider.js";
|
5
|
+
export { useDispatch } from "./useDispatch.js";
|
6
|
+
export { useData } from "./useData.js";
|
7
|
+
export { useStore } from "./useStore.js";
|
8
|
+
export { html, h, render } from "./html.js";
|
5
9
|
|
6
10
|
export const connect = createBinding({
|
7
11
|
createElement,
|
File without changes
|
@@ -4,7 +4,7 @@ import unexpectedReaction from "unexpected-reaction";
|
|
4
4
|
import { Store } from "@depository/store";
|
5
5
|
import { functionMiddleware } from "@depository/function-middleware";
|
6
6
|
import { StoreProvider, useData, useDispatch } from "./index.js";
|
7
|
-
import { html } from "
|
7
|
+
import { html } from "./html.js";
|
8
8
|
|
9
9
|
const simulate = unexpectedReaction.simulate;
|
10
10
|
const mount = unexpectedReaction.mount;
|
File without changes
|
package/src/hooks/index.js
DELETED