cozy-client 41.7.0 → 41.7.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/CozyClient.js
CHANGED
|
@@ -2703,7 +2703,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2703
2703
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2704
2704
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2705
2705
|
|
|
2706
|
-
CozyClient.version = "41.7.
|
|
2706
|
+
CozyClient.version = "41.7.1";
|
|
2707
2707
|
|
|
2708
2708
|
_microee.default.mixin(CozyClient);
|
|
2709
2709
|
|
|
@@ -663,3 +663,79 @@ Object {
|
|
|
663
663
|
},
|
|
664
664
|
}
|
|
665
665
|
`;
|
|
666
|
+
|
|
667
|
+
exports[`queries reducer updates should update a query with a partiel index 1`] = `
|
|
668
|
+
Object {
|
|
669
|
+
"a": Object {
|
|
670
|
+
"bookmark": null,
|
|
671
|
+
"count": 3,
|
|
672
|
+
"data": Array [
|
|
673
|
+
"todo_1",
|
|
674
|
+
"todo_2",
|
|
675
|
+
"todo_3",
|
|
676
|
+
],
|
|
677
|
+
"definition": QueryDefinition {
|
|
678
|
+
"bookmark": undefined,
|
|
679
|
+
"cursor": undefined,
|
|
680
|
+
"doctype": "io.cozy.todos",
|
|
681
|
+
"fields": undefined,
|
|
682
|
+
"id": undefined,
|
|
683
|
+
"ids": undefined,
|
|
684
|
+
"includes": undefined,
|
|
685
|
+
"indexedFields": undefined,
|
|
686
|
+
"limit": undefined,
|
|
687
|
+
"partialFilter": undefined,
|
|
688
|
+
"referenced": undefined,
|
|
689
|
+
"selector": undefined,
|
|
690
|
+
"skip": undefined,
|
|
691
|
+
"sort": undefined,
|
|
692
|
+
},
|
|
693
|
+
"fetchStatus": "loaded",
|
|
694
|
+
"fetchedPagesCount": 1,
|
|
695
|
+
"hasMore": false,
|
|
696
|
+
"id": "a",
|
|
697
|
+
"isFetching": null,
|
|
698
|
+
"lastError": null,
|
|
699
|
+
"lastErrorUpdate": null,
|
|
700
|
+
"lastFetch": 1337,
|
|
701
|
+
"lastUpdate": 1337,
|
|
702
|
+
"options": null,
|
|
703
|
+
},
|
|
704
|
+
"b": Object {
|
|
705
|
+
"bookmark": null,
|
|
706
|
+
"count": 2,
|
|
707
|
+
"data": Array [
|
|
708
|
+
"todo_1",
|
|
709
|
+
"todo_2",
|
|
710
|
+
],
|
|
711
|
+
"definition": QueryDefinition {
|
|
712
|
+
"bookmark": undefined,
|
|
713
|
+
"cursor": undefined,
|
|
714
|
+
"doctype": "io.cozy.todos",
|
|
715
|
+
"fields": undefined,
|
|
716
|
+
"id": undefined,
|
|
717
|
+
"ids": undefined,
|
|
718
|
+
"includes": undefined,
|
|
719
|
+
"indexedFields": undefined,
|
|
720
|
+
"limit": undefined,
|
|
721
|
+
"partialFilter": Object {
|
|
722
|
+
"done": false,
|
|
723
|
+
},
|
|
724
|
+
"referenced": undefined,
|
|
725
|
+
"selector": undefined,
|
|
726
|
+
"skip": undefined,
|
|
727
|
+
"sort": undefined,
|
|
728
|
+
},
|
|
729
|
+
"fetchStatus": "pending",
|
|
730
|
+
"fetchedPagesCount": 0,
|
|
731
|
+
"hasMore": false,
|
|
732
|
+
"id": "b",
|
|
733
|
+
"isFetching": null,
|
|
734
|
+
"lastError": null,
|
|
735
|
+
"lastErrorUpdate": null,
|
|
736
|
+
"lastFetch": null,
|
|
737
|
+
"lastUpdate": 1337,
|
|
738
|
+
"options": null,
|
|
739
|
+
},
|
|
740
|
+
}
|
|
741
|
+
`;
|
|
@@ -208,7 +208,23 @@ describe('queries reducer', () => {
|
|
|
208
208
|
)
|
|
209
209
|
expect(state).toMatchSnapshot()
|
|
210
210
|
})
|
|
211
|
-
|
|
211
|
+
it('should update a query with a partiel index', () => {
|
|
212
|
+
applyAction(initQuery('a', Q('io.cozy.todos')))
|
|
213
|
+
applyAction(
|
|
214
|
+
initQuery(
|
|
215
|
+
'b',
|
|
216
|
+
Q('io.cozy.todos').partialIndex({
|
|
217
|
+
done: false
|
|
218
|
+
})
|
|
219
|
+
)
|
|
220
|
+
)
|
|
221
|
+
applyAction(
|
|
222
|
+
receiveQueryResult('a', {
|
|
223
|
+
data: [TODO_1, TODO_2, TODO_3]
|
|
224
|
+
})
|
|
225
|
+
)
|
|
226
|
+
expect(state).toMatchSnapshot()
|
|
227
|
+
})
|
|
212
228
|
it('should correctly update a sorted query with a deleted document', () => {
|
|
213
229
|
const query = Q('io.cozy.todos')
|
|
214
230
|
applyAction(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "41.7.
|
|
3
|
+
"version": "41.7.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"react-native-ios11-devicecheck": "https://github.com/cozy/react-native-devicecheck#app-attest-v0.1"
|
|
76
76
|
},
|
|
77
77
|
"sideEffects": false,
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "df34927987e59d91d47e215d3a8af5843cd161f7"
|
|
79
79
|
}
|