@capture.dev/redux 0.0.2 → 0.0.4
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/README.md +6 -12
- package/package.json +3 -4
- package/LICENSE.txt +0 -7
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @capture.dev/redux
|
|
2
2
|
|
|
3
|
-
Redux middleware that automatically logs actions for
|
|
3
|
+
Redux middleware that automatically logs actions for bug reports created with [Capture.dev](https://capture.dev).
|
|
4
4
|
|
|
5
|
-
> **Note:** This middleware requires either the [Capture.dev SDK](https://docs.capture.dev/sdk) or [browser extension](https://docs.capture.dev/extension) to submit bug reports. Install one of those first
|
|
5
|
+
> **Note:** This middleware requires either the [Capture.dev SDK](https://docs.capture.dev/sdk) or [browser extension](https://docs.capture.dev/extension) to submit bug reports. Install one of those first.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -25,21 +25,15 @@ export const store = configureStore({
|
|
|
25
25
|
});
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
That's it. The middleware will automatically log actions that are performed on
|
|
28
|
+
That's it. The middleware will automatically log actions that are performed on your Redux store and include them in any bug reports submitted during that session.
|
|
29
29
|
|
|
30
30
|
## How It Works
|
|
31
31
|
|
|
32
|
-
The middleware keeps
|
|
32
|
+
The middleware keeps a log of each action and its payload as it is dispatched, along with a snapshot of the state after the action has been performed.
|
|
33
33
|
|
|
34
|
-
When a user submits a bug report, Capture automatically includes
|
|
34
|
+
When a user submits a bug report, Capture automatically includes these logs, allowing you to recreate the state of your store during their session.
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
All data is stored locally during a user's session. No data is sent to Capture.dev unless a bug report is created.
|
|
39
|
-
|
|
40
|
-
## Limitations
|
|
41
|
-
|
|
42
|
-
Your state must be JSON serializable to be captured. If Capture encounters a field that can't be serialized, it will first attempt to call `.toJSON()` on it, and will then omit the field if it still cannot be serialized.
|
|
36
|
+
During a normal session, No data is sent to Capture.dev unless a bug report is created.
|
|
43
37
|
|
|
44
38
|
## What is Capture.dev?
|
|
45
39
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capture.dev/redux",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
|
-
"dist/**"
|
|
17
|
-
"LICENSE.txt"
|
|
16
|
+
"dist/**"
|
|
18
17
|
],
|
|
19
18
|
"keywords": [
|
|
20
19
|
"capture",
|
|
@@ -44,7 +43,7 @@
|
|
|
44
43
|
"extends": "../../package.json"
|
|
45
44
|
},
|
|
46
45
|
"dependencies": {
|
|
47
|
-
"@capture.dev/event-logger": "0.0.
|
|
46
|
+
"@capture.dev/event-logger": "0.0.3"
|
|
48
47
|
},
|
|
49
48
|
"lint-staged": {
|
|
50
49
|
"**/*.{ts,tsx,js}": [
|