jazz-tools 0.7.1 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- package/.turbo/turbo-build.log +15 -0
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +33 -33
- package/CHANGELOG.md +171 -165
- package/LICENSE.txt +1 -1
- package/dist/coValues/account.js +30 -3
- package/dist/coValues/account.js.map +1 -1
- package/dist/coValues/coList.js +29 -5
- package/dist/coValues/coList.js.map +1 -1
- package/dist/coValues/coMap.js +25 -1
- package/dist/coValues/coMap.js.map +1 -1
- package/dist/coValues/coStream.js +49 -1
- package/dist/coValues/coStream.js.map +1 -1
- package/dist/coValues/group.js +25 -1
- package/dist/coValues/group.js.map +1 -1
- package/dist/coValues/interfaces.js +32 -48
- package/dist/coValues/interfaces.js.map +1 -1
- package/dist/implementation/schema.js.map +1 -1
- package/dist/implementation/subscriptionScope.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/tests/deepLoading.test.js +2 -2
- package/dist/tests/deepLoading.test.js.map +1 -1
- package/dist/tests/groupsAndAccounts.test.js +3 -3
- package/dist/tests/groupsAndAccounts.test.js.map +1 -1
- package/package.json +1 -1
- package/src/coValues/account.ts +82 -12
- package/src/coValues/coList.ts +78 -13
- package/src/coValues/coMap.ts +78 -7
- package/src/coValues/coStream.ts +128 -11
- package/src/coValues/group.ts +77 -4
- package/src/coValues/interfaces.ts +140 -211
- package/src/implementation/schema.ts +7 -4
- package/src/implementation/subscriptionScope.ts +3 -3
- package/src/index.ts +7 -0
- package/src/tests/deepLoading.test.ts +6 -3
- package/src/tests/groupsAndAccounts.test.ts +4 -4
package/.turbo/turbo-build.log
CHANGED
@@ -6,3 +6,18 @@
|
|
6
6
|
> jazz-tools@0.7.1 lint
|
7
7
|
> eslint . --ext ts,tsx
|
8
8
|
|
9
|
+
|
10
|
+
/Users/anselm/jazz/jazz/packages/jazz-tools/src/coValues/coStream.ts
|
11
|
+
671:9 error 'Cl' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars
|
12
|
+
686:9 error 'Cl' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars
|
13
|
+
|
14
|
+
/Users/anselm/jazz/jazz/packages/jazz-tools/src/coValues/interfaces.ts
|
15
|
+
56:12 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
16
|
+
|
17
|
+
✖ 3 problems (3 errors, 0 warnings)
|
18
|
+
|
19
|
+
npm ERR! Lifecycle script `lint` failed with error:
|
20
|
+
npm ERR! Error: command failed
|
21
|
+
npm ERR! in workspace: jazz-tools@0.7.1
|
22
|
+
npm ERR! at location: /Users/anselm/jazz/jazz/packages/jazz-tools
|
23
|
+
ELIFECYCLE Command failed with exit code 1.
|
package/.turbo/turbo-lint.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
|
2
|
-
> jazz-tools@0.7.
|
2
|
+
> jazz-tools@0.7.1 test /Users/anselm/jazz/jazz/packages/jazz-tools
|
3
3
|
> vitest --run
|
4
4
|
|
5
5
|
|
6
6
|
RUN v0.34.6 /Users/anselm/jazz/jazz/packages/jazz-tools
|
7
7
|
|
8
|
-
✓ src/tests/groupsAndAccounts.test.ts (1 test)
|
8
|
+
✓ src/tests/groupsAndAccounts.test.ts (1 test) 39ms
|
9
|
+
✓ src/tests/deepLoading.test.ts (3 tests) 81ms
|
9
10
|
stdout | unknown test
|
10
11
|
TestMap schema [90mundefined[39m
|
11
12
|
|
12
|
-
✓ src/tests/
|
13
|
-
✓ src/tests/coList.test.ts (10 tests) 160ms
|
13
|
+
✓ src/tests/coList.test.ts (10 tests) 148ms
|
14
14
|
stdout | src/tests/coList.test.ts > Simple CoList operations > Mutation > splice
|
15
15
|
[ [32m'bread'[39m, [32m'onion'[39m ] [33m0[39m
|
16
16
|
[ [32m'bread'[39m, [32m'salt'[39m, [32m'onion'[39m ] [33m1[39m
|
@@ -28,9 +28,9 @@ subscribedStream[me.id] {
|
|
28
28
|
value: [36m[Getter][39m,
|
29
29
|
ref: [36m[Getter][39m,
|
30
30
|
by: [36m[Getter][39m,
|
31
|
-
madeAt: [35m2024-05-
|
31
|
+
madeAt: [35m2024-05-26T15:11:48.997Z[39m,
|
32
32
|
tx: {
|
33
|
-
sessionID: [32m'
|
33
|
+
sessionID: [32m'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty'[39m,
|
34
34
|
txIndex: [33m0[39m
|
35
35
|
}
|
36
36
|
}
|
@@ -40,9 +40,9 @@ subscribedStream[me.id] {
|
|
40
40
|
value: [36m[Getter][39m,
|
41
41
|
ref: [36m[Getter][39m,
|
42
42
|
by: [36m[Getter][39m,
|
43
|
-
madeAt: [35m2024-05-
|
43
|
+
madeAt: [35m2024-05-26T15:11:48.997Z[39m,
|
44
44
|
tx: {
|
45
|
-
sessionID: [32m'
|
45
|
+
sessionID: [32m'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty'[39m,
|
46
46
|
txIndex: [33m0[39m
|
47
47
|
}
|
48
48
|
}
|
@@ -52,36 +52,36 @@ subscribedStream[me.id] {
|
|
52
52
|
value: [36m[Getter][39m,
|
53
53
|
ref: [36m[Getter][39m,
|
54
54
|
by: [36m[Getter][39m,
|
55
|
-
madeAt: [35m2024-05-
|
55
|
+
madeAt: [35m2024-05-26T15:11:48.997Z[39m,
|
56
56
|
tx: {
|
57
|
-
sessionID: [32m'
|
57
|
+
sessionID: [32m'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty'[39m,
|
58
58
|
txIndex: [33m0[39m
|
59
59
|
}
|
60
60
|
}
|
61
61
|
subscribedStream[me.id]?.value?.[me.id]?.value {
|
62
|
-
id: [32m'
|
62
|
+
id: [32m'co_zEKrWtTzkzefunWDtiVtBvacn7V'[39m,
|
63
63
|
_type: [32m'CoStream'[39m,
|
64
|
-
|
65
|
-
in: {
|
64
|
+
co_zV2tG6EASXsWMi2TdwukBxyb23u: [32m'milk'[39m,
|
65
|
+
in: { co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty: [32m'milk'[39m }
|
66
66
|
}
|
67
67
|
subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value milk
|
68
68
|
subscribedStream[me.id] {
|
69
69
|
value: [36m[Getter][39m,
|
70
70
|
ref: [36m[Getter][39m,
|
71
71
|
by: [36m[Getter][39m,
|
72
|
-
madeAt: [35m2024-05-
|
72
|
+
madeAt: [35m2024-05-26T15:11:48.997Z[39m,
|
73
73
|
tx: {
|
74
|
-
sessionID: [32m'
|
74
|
+
sessionID: [32m'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty'[39m,
|
75
75
|
txIndex: [33m0[39m
|
76
76
|
}
|
77
77
|
}
|
78
78
|
subscribedStream[me.id]?.value?.[me.id]?.value {
|
79
|
-
id: [32m'
|
79
|
+
id: [32m'co_zEKrWtTzkzefunWDtiVtBvacn7V'[39m,
|
80
80
|
_type: [32m'CoStream'[39m,
|
81
|
-
|
81
|
+
co_zV2tG6EASXsWMi2TdwukBxyb23u: [32m'bread'[39m,
|
82
82
|
in: {
|
83
|
-
|
84
|
-
|
83
|
+
co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty: [32m'milk'[39m,
|
84
|
+
co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zLRSquERuYQs: [32m'bread'[39m
|
85
85
|
}
|
86
86
|
}
|
87
87
|
subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value bread
|
@@ -89,39 +89,39 @@ subscribedStream[me.id] {
|
|
89
89
|
value: [36m[Getter][39m,
|
90
90
|
ref: [36m[Getter][39m,
|
91
91
|
by: [36m[Getter][39m,
|
92
|
-
madeAt: [35m2024-05-
|
92
|
+
madeAt: [35m2024-05-26T15:11:49.013Z[39m,
|
93
93
|
tx: {
|
94
|
-
sessionID: [32m'
|
94
|
+
sessionID: [32m'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zLRSquERuYQs'[39m,
|
95
95
|
txIndex: [33m0[39m
|
96
96
|
}
|
97
97
|
}
|
98
98
|
subscribedStream[me.id]?.value?.[me.id]?.value {
|
99
|
-
id: [32m'
|
99
|
+
id: [32m'co_zC5woKjv4Tb6sbidj7j4fYfPkJY'[39m,
|
100
100
|
_type: [32m'CoStream'[39m,
|
101
|
-
|
102
|
-
in: {
|
101
|
+
co_zV2tG6EASXsWMi2TdwukBxyb23u: [32m'butter'[39m,
|
102
|
+
in: { co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zLRSquERuYQs: [32m'butter'[39m }
|
103
103
|
}
|
104
104
|
subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value butter
|
105
105
|
subscribedStream[me.id] {
|
106
106
|
value: [36m[Getter][39m,
|
107
107
|
ref: [36m[Getter][39m,
|
108
108
|
by: [36m[Getter][39m,
|
109
|
-
madeAt: [35m2024-05-
|
109
|
+
madeAt: [35m2024-05-26T15:11:49.013Z[39m,
|
110
110
|
tx: {
|
111
|
-
sessionID: [32m'
|
111
|
+
sessionID: [32m'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zLRSquERuYQs'[39m,
|
112
112
|
txIndex: [33m0[39m
|
113
113
|
}
|
114
114
|
}
|
115
115
|
subscribedStream[me.id]?.value?.[me.id]?.value {
|
116
|
-
id: [32m'
|
116
|
+
id: [32m'co_zC5woKjv4Tb6sbidj7j4fYfPkJY'[39m,
|
117
117
|
_type: [32m'CoStream'[39m,
|
118
|
-
|
119
|
-
in: {
|
118
|
+
co_zV2tG6EASXsWMi2TdwukBxyb23u: [32m'jam'[39m,
|
119
|
+
in: { co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zLRSquERuYQs: [32m'jam'[39m }
|
120
120
|
}
|
121
121
|
subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value jam
|
122
122
|
|
123
|
-
✓ src/tests/coStream.test.ts (10 tests)
|
124
|
-
✓ src/tests/coMap.test.ts (11 tests)
|
123
|
+
✓ src/tests/coStream.test.ts (10 tests) 168ms
|
124
|
+
✓ src/tests/coMap.test.ts (11 tests) 188ms
|
125
125
|
stdout | src/tests/coMap.test.ts > CoMap resolution > Subscription & auto-resolution
|
126
126
|
subscribedMap.nested?.twiceNested?.taste [90mundefined[39m
|
127
127
|
subscribedMap.nested?.twiceNested?.taste [90mundefined[39m
|
@@ -135,6 +135,6 @@ subscribedMap.nested?.twiceNested?.taste umami
|
|
135
135
|
|
136
136
|
Test Files 5 passed (5)
|
137
137
|
Tests 35 passed (35)
|
138
|
-
Start at
|
139
|
-
Duration
|
138
|
+
Start at 16:11:48
|
139
|
+
Duration 799ms (transform 323ms, setup 0ms, collect 2.23s, tests 624ms, environment 0ms, prepare 217ms)
|
140
140
|
|