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.
Files changed (37) hide show
  1. package/.turbo/turbo-build.log +15 -0
  2. package/.turbo/turbo-lint.log +1 -1
  3. package/.turbo/turbo-test.log +33 -33
  4. package/CHANGELOG.md +171 -165
  5. package/LICENSE.txt +1 -1
  6. package/dist/coValues/account.js +30 -3
  7. package/dist/coValues/account.js.map +1 -1
  8. package/dist/coValues/coList.js +29 -5
  9. package/dist/coValues/coList.js.map +1 -1
  10. package/dist/coValues/coMap.js +25 -1
  11. package/dist/coValues/coMap.js.map +1 -1
  12. package/dist/coValues/coStream.js +49 -1
  13. package/dist/coValues/coStream.js.map +1 -1
  14. package/dist/coValues/group.js +25 -1
  15. package/dist/coValues/group.js.map +1 -1
  16. package/dist/coValues/interfaces.js +32 -48
  17. package/dist/coValues/interfaces.js.map +1 -1
  18. package/dist/implementation/schema.js.map +1 -1
  19. package/dist/implementation/subscriptionScope.js.map +1 -1
  20. package/dist/index.js +1 -0
  21. package/dist/index.js.map +1 -1
  22. package/dist/tests/deepLoading.test.js +2 -2
  23. package/dist/tests/deepLoading.test.js.map +1 -1
  24. package/dist/tests/groupsAndAccounts.test.js +3 -3
  25. package/dist/tests/groupsAndAccounts.test.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/coValues/account.ts +82 -12
  28. package/src/coValues/coList.ts +78 -13
  29. package/src/coValues/coMap.ts +78 -7
  30. package/src/coValues/coStream.ts +128 -11
  31. package/src/coValues/group.ts +77 -4
  32. package/src/coValues/interfaces.ts +140 -211
  33. package/src/implementation/schema.ts +7 -4
  34. package/src/implementation/subscriptionScope.ts +3 -3
  35. package/src/index.ts +7 -0
  36. package/src/tests/deepLoading.test.ts +6 -3
  37. package/src/tests/groupsAndAccounts.test.ts +4 -4
@@ -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.
@@ -1,4 +1,4 @@
1
1
 
2
- > jazz-tools@0.7.0-alpha.37 lint /Users/anselm/jazz/jazz/packages/jazz-tools
2
+ > jazz-tools@0.7.3 lint /Users/anselm/jazz/jazz/packages/jazz-tools
3
3
  > eslint . --ext ts,tsx
4
4
 
@@ -1,16 +1,16 @@
1
1
 
2
- > jazz-tools@0.7.0-alpha.37 test /Users/anselm/jazz/jazz/packages/jazz-tools
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) 41ms
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 undefined
11
12
 
12
- ✓ src/tests/deepLoading.test.ts (3 tests) 86ms
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
  [ 'bread', 'onion' ] 0
16
16
  [ 'bread', 'salt', 'onion' ] 1
@@ -28,9 +28,9 @@ subscribedStream[me.id] {
28
28
  value: [Getter],
29
29
  ref: [Getter],
30
30
  by: [Getter],
31
- madeAt: 2024-05-24T20:46:44.463Z,
31
+ madeAt: 2024-05-26T15:11:48.997Z,
32
32
  tx: {
33
- sessionID: 'co_zNCLRSU2cPfqfz9aEAA1vL2JsF5_session_z75hUWuWjTuX',
33
+ sessionID: 'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty',
34
34
  txIndex: 0
35
35
  }
36
36
  }
@@ -40,9 +40,9 @@ subscribedStream[me.id] {
40
40
  value: [Getter],
41
41
  ref: [Getter],
42
42
  by: [Getter],
43
- madeAt: 2024-05-24T20:46:44.463Z,
43
+ madeAt: 2024-05-26T15:11:48.997Z,
44
44
  tx: {
45
- sessionID: 'co_zNCLRSU2cPfqfz9aEAA1vL2JsF5_session_z75hUWuWjTuX',
45
+ sessionID: 'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty',
46
46
  txIndex: 0
47
47
  }
48
48
  }
@@ -52,36 +52,36 @@ subscribedStream[me.id] {
52
52
  value: [Getter],
53
53
  ref: [Getter],
54
54
  by: [Getter],
55
- madeAt: 2024-05-24T20:46:44.463Z,
55
+ madeAt: 2024-05-26T15:11:48.997Z,
56
56
  tx: {
57
- sessionID: 'co_zNCLRSU2cPfqfz9aEAA1vL2JsF5_session_z75hUWuWjTuX',
57
+ sessionID: 'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty',
58
58
  txIndex: 0
59
59
  }
60
60
  }
61
61
  subscribedStream[me.id]?.value?.[me.id]?.value {
62
- id: 'co_zGQiwntfLWcU3pybwp6nq8VhcEr',
62
+ id: 'co_zEKrWtTzkzefunWDtiVtBvacn7V',
63
63
  _type: 'CoStream',
64
- co_zNCLRSU2cPfqfz9aEAA1vL2JsF5: 'milk',
65
- in: { co_zNCLRSU2cPfqfz9aEAA1vL2JsF5_session_z75hUWuWjTuX: 'milk' }
64
+ co_zV2tG6EASXsWMi2TdwukBxyb23u: 'milk',
65
+ in: { co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty: 'milk' }
66
66
  }
67
67
  subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value milk
68
68
  subscribedStream[me.id] {
69
69
  value: [Getter],
70
70
  ref: [Getter],
71
71
  by: [Getter],
72
- madeAt: 2024-05-24T20:46:44.463Z,
72
+ madeAt: 2024-05-26T15:11:48.997Z,
73
73
  tx: {
74
- sessionID: 'co_zNCLRSU2cPfqfz9aEAA1vL2JsF5_session_z75hUWuWjTuX',
74
+ sessionID: 'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty',
75
75
  txIndex: 0
76
76
  }
77
77
  }
78
78
  subscribedStream[me.id]?.value?.[me.id]?.value {
79
- id: 'co_zGQiwntfLWcU3pybwp6nq8VhcEr',
79
+ id: 'co_zEKrWtTzkzefunWDtiVtBvacn7V',
80
80
  _type: 'CoStream',
81
- co_zNCLRSU2cPfqfz9aEAA1vL2JsF5: 'bread',
81
+ co_zV2tG6EASXsWMi2TdwukBxyb23u: 'bread',
82
82
  in: {
83
- co_zNCLRSU2cPfqfz9aEAA1vL2JsF5_session_z75hUWuWjTuX: 'milk',
84
- co_zNCLRSU2cPfqfz9aEAA1vL2JsF5_session_zSWSUsvvX8KW: 'bread'
83
+ co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty: 'milk',
84
+ co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zLRSquERuYQs: 'bread'
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: [Getter],
90
90
  ref: [Getter],
91
91
  by: [Getter],
92
- madeAt: 2024-05-24T20:46:44.481Z,
92
+ madeAt: 2024-05-26T15:11:49.013Z,
93
93
  tx: {
94
- sessionID: 'co_zNCLRSU2cPfqfz9aEAA1vL2JsF5_session_zSWSUsvvX8KW',
94
+ sessionID: 'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zLRSquERuYQs',
95
95
  txIndex: 0
96
96
  }
97
97
  }
98
98
  subscribedStream[me.id]?.value?.[me.id]?.value {
99
- id: 'co_zhX5ZcvxQW4w2LJ99rBQ6NmBziS',
99
+ id: 'co_zC5woKjv4Tb6sbidj7j4fYfPkJY',
100
100
  _type: 'CoStream',
101
- co_zNCLRSU2cPfqfz9aEAA1vL2JsF5: 'butter',
102
- in: { co_zNCLRSU2cPfqfz9aEAA1vL2JsF5_session_zSWSUsvvX8KW: 'butter' }
101
+ co_zV2tG6EASXsWMi2TdwukBxyb23u: 'butter',
102
+ in: { co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zLRSquERuYQs: 'butter' }
103
103
  }
104
104
  subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value butter
105
105
  subscribedStream[me.id] {
106
106
  value: [Getter],
107
107
  ref: [Getter],
108
108
  by: [Getter],
109
- madeAt: 2024-05-24T20:46:44.481Z,
109
+ madeAt: 2024-05-26T15:11:49.013Z,
110
110
  tx: {
111
- sessionID: 'co_zNCLRSU2cPfqfz9aEAA1vL2JsF5_session_zSWSUsvvX8KW',
111
+ sessionID: 'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zLRSquERuYQs',
112
112
  txIndex: 0
113
113
  }
114
114
  }
115
115
  subscribedStream[me.id]?.value?.[me.id]?.value {
116
- id: 'co_zhX5ZcvxQW4w2LJ99rBQ6NmBziS',
116
+ id: 'co_zC5woKjv4Tb6sbidj7j4fYfPkJY',
117
117
  _type: 'CoStream',
118
- co_zNCLRSU2cPfqfz9aEAA1vL2JsF5: 'jam',
119
- in: { co_zNCLRSU2cPfqfz9aEAA1vL2JsF5_session_zSWSUsvvX8KW: 'jam' }
118
+ co_zV2tG6EASXsWMi2TdwukBxyb23u: 'jam',
119
+ in: { co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zLRSquERuYQs: 'jam' }
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) 181ms
124
- ✓ src/tests/coMap.test.ts (11 tests) 203ms
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 undefined
127
127
  subscribedMap.nested?.twiceNested?.taste undefined
@@ -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 21:46:43
139
- Duration 805ms (transform 212ms, setup 0ms, collect 2.19s, tests 671ms, environment 0ms, prepare 225ms)
138
+ Start at 16:11:48
139
+ Duration 799ms (transform 323ms, setup 0ms, collect 2.23s, tests 624ms, environment 0ms, prepare 217ms)
140
140