Skip to content

Commit 43cae8d

Browse files
committed
docs: Diff for changed action shape in release post
1 parent 64d2d76 commit 43cae8d

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

website/blog/2024-07-13-v0.14-release-announcement.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,75 @@ Action shapes are simplified and more consistent. [#3143](https://github.com/rea
5353
- `action.meta.nm` removed (unused)
5454
- `action.payload` -> `action.response` (for SET_RESPONSE)
5555

56+
57+
<DiffEditor>
58+
```json title="Before"
59+
{
60+
"type": "rdc/setresponse",
61+
"meta": {
62+
"key": "PATCH https://jsonplaceholder.typicode.com/todos/1",
63+
"payload": {
64+
"userId": 1,
65+
"id": 1,
66+
"title": "delectus aut autem",
67+
"completed": true
68+
},
69+
"args": [
70+
{ "id": 1 },
71+
{ "completed": true }
72+
],
73+
"nm": true,
74+
"endpoint": {
75+
"name": "Todo.partialUpdate",
76+
"schema": {
77+
"key": "Todo",
78+
"schema": {}
79+
},
80+
"sideEffect": true,
81+
},
82+
"fetchedAt": "12:44:24.206 PM",
83+
"date": "12:44:24.334 PM",
84+
"expiresAt": "1:44:24.334 PM"
85+
},
86+
"error": false
87+
}
88+
```
89+
90+
```json title="After"
91+
{
92+
"type": "rdc/setresponse",
93+
"key": "PATCH https://jsonplaceholder.typicode.com/todos/1",
94+
"response": {
95+
"userId": 1,
96+
"id": 1,
97+
"title": "delectus aut autem",
98+
"completed": true
99+
},
100+
"args": [
101+
{ "id": 1 },
102+
{ "completed": true }
103+
],
104+
"endpoint": {
105+
"name": "Todo.partialUpdate",
106+
"schema": {
107+
"key": "Todo",
108+
"schema": {}
109+
},
110+
"sideEffect": true,
111+
},
112+
"meta": {
113+
"fetchedAt": "12:44:24.206 PM",
114+
"date": "12:44:24.334 PM",
115+
"expiresAt": "1:44:24.334 PM"
116+
},
117+
"error": false
118+
}
119+
```
120+
</DiffEditor>
121+
122+
123+
124+
56125
### Manager.middleware {#manager-middleware}
57126

58127
Managers can now use a `middleware` property instead of `getMiddleware()` method. [#3164](https://github.com/reactive/data-client/pull/3164)

0 commit comments

Comments
 (0)