@jumentix/cana-react 0.1.0 → 0.1.1
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/dist/index.mjs +4 -4
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -32,7 +32,7 @@ function applyCanaEventToRecords(records, event, options) {
|
|
|
32
32
|
return [];
|
|
33
33
|
const getKey = options.getKey ?? defaultGetKey;
|
|
34
34
|
if (event.type === "deleted") {
|
|
35
|
-
return records.filter((
|
|
35
|
+
return records.filter((record) => !sameKey(getKey(record), event.key));
|
|
36
36
|
}
|
|
37
37
|
if (!event.record)
|
|
38
38
|
return [...records];
|
|
@@ -165,8 +165,8 @@ function useCanaLiveQuery(options) {
|
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
167
|
export {
|
|
168
|
-
|
|
169
|
-
useCanaLiveQuery,
|
|
168
|
+
applyCanaEventToRecords,
|
|
170
169
|
useCanaClient,
|
|
171
|
-
|
|
170
|
+
useCanaLiveQuery,
|
|
171
|
+
useCanaSubscription
|
|
172
172
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jumentix/cana-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "React hooks and Redux-friendly helpers for @jumentix/cana.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"react": ">=18.0.0 || >=19.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@jumentix/cana": "0.1.
|
|
37
|
-
"@types/react": "19.
|
|
36
|
+
"@jumentix/cana": "0.1.1",
|
|
37
|
+
"@types/react": "19.3.0",
|
|
38
38
|
"@types/react-test-renderer": "19.3.0",
|
|
39
|
-
"react": "19.
|
|
39
|
+
"react": "19.3.0",
|
|
40
40
|
"react-test-renderer": "19.3.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|