jazz-tools 0.7.0-alpha.9 → 0.7.3

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.
Files changed (73) hide show
  1. package/.eslintrc.cjs +3 -10
  2. package/.prettierrc.js +9 -0
  3. package/.turbo/turbo-build.log +14 -15
  4. package/.turbo/turbo-lint.log +4 -0
  5. package/.turbo/turbo-test.log +140 -0
  6. package/CHANGELOG.md +331 -27
  7. package/LICENSE.txt +1 -1
  8. package/README.md +10 -2
  9. package/dist/coValues/account.js +86 -41
  10. package/dist/coValues/account.js.map +1 -1
  11. package/dist/coValues/coList.js +75 -48
  12. package/dist/coValues/coList.js.map +1 -1
  13. package/dist/coValues/coMap.js +167 -44
  14. package/dist/coValues/coMap.js.map +1 -1
  15. package/dist/coValues/coStream.js +192 -35
  16. package/dist/coValues/coStream.js.map +1 -1
  17. package/dist/coValues/deepLoading.js +60 -0
  18. package/dist/coValues/deepLoading.js.map +1 -0
  19. package/dist/coValues/extensions/imageDef.js +10 -7
  20. package/dist/coValues/extensions/imageDef.js.map +1 -1
  21. package/dist/coValues/group.js +73 -13
  22. package/dist/coValues/group.js.map +1 -1
  23. package/dist/coValues/interfaces.js +58 -35
  24. package/dist/coValues/interfaces.js.map +1 -1
  25. package/dist/implementation/devtoolsFormatters.js +114 -0
  26. package/dist/implementation/devtoolsFormatters.js.map +1 -0
  27. package/dist/implementation/refs.js +58 -18
  28. package/dist/implementation/refs.js.map +1 -1
  29. package/dist/implementation/schema.js +58 -0
  30. package/dist/implementation/schema.js.map +1 -0
  31. package/dist/implementation/subscriptionScope.js +19 -1
  32. package/dist/implementation/subscriptionScope.js.map +1 -1
  33. package/dist/implementation/symbols.js +5 -0
  34. package/dist/implementation/symbols.js.map +1 -0
  35. package/dist/index.js +4 -5
  36. package/dist/index.js.map +1 -1
  37. package/dist/internal.js +5 -2
  38. package/dist/internal.js.map +1 -1
  39. package/dist/tests/coList.test.js +51 -48
  40. package/dist/tests/coList.test.js.map +1 -1
  41. package/dist/tests/coMap.test.js +131 -74
  42. package/dist/tests/coMap.test.js.map +1 -1
  43. package/dist/tests/coStream.test.js +56 -41
  44. package/dist/tests/coStream.test.js.map +1 -1
  45. package/dist/tests/deepLoading.test.js +188 -0
  46. package/dist/tests/deepLoading.test.js.map +1 -0
  47. package/dist/tests/groupsAndAccounts.test.js +83 -0
  48. package/dist/tests/groupsAndAccounts.test.js.map +1 -0
  49. package/package.json +17 -9
  50. package/src/coValues/account.ts +186 -128
  51. package/src/coValues/coList.ts +156 -107
  52. package/src/coValues/coMap.ts +272 -148
  53. package/src/coValues/coStream.ts +388 -87
  54. package/src/coValues/deepLoading.ts +229 -0
  55. package/src/coValues/extensions/imageDef.ts +17 -13
  56. package/src/coValues/group.ts +166 -59
  57. package/src/coValues/interfaces.ts +189 -160
  58. package/src/implementation/devtoolsFormatters.ts +110 -0
  59. package/src/implementation/inspect.ts +1 -1
  60. package/src/implementation/refs.ts +80 -28
  61. package/src/implementation/schema.ts +141 -0
  62. package/src/implementation/subscriptionScope.ts +48 -12
  63. package/src/implementation/symbols.ts +11 -0
  64. package/src/index.ts +19 -8
  65. package/src/internal.ts +7 -3
  66. package/src/tests/coList.test.ts +77 -62
  67. package/src/tests/coMap.test.ts +201 -114
  68. package/src/tests/coStream.test.ts +113 -84
  69. package/src/tests/deepLoading.test.ts +304 -0
  70. package/src/tests/groupsAndAccounts.test.ts +91 -0
  71. package/dist/implementation/encoding.js +0 -26
  72. package/dist/implementation/encoding.js.map +0 -1
  73. package/src/implementation/encoding.ts +0 -105
package/.eslintrc.cjs CHANGED
@@ -3,6 +3,7 @@ module.exports = {
3
3
  "eslint:recommended",
4
4
  "plugin:@typescript-eslint/recommended",
5
5
  "plugin:require-extensions/recommended",
6
+ "prettier"
6
7
  ],
7
8
  parser: "@typescript-eslint/parser",
8
9
  plugins: ["@typescript-eslint", "require-extensions"],
@@ -10,7 +11,7 @@ module.exports = {
10
11
  project: "./tsconfig.json",
11
12
  tsconfigRootDir: __dirname,
12
13
  },
13
- ignorePatterns: [".eslint.cjs", "**/tests/*"],
14
+ ignorePatterns: [".eslint.cjs"],
14
15
  root: true,
15
16
  rules: {
16
17
  "no-unused-vars": "off",
@@ -19,13 +20,5 @@ module.exports = {
19
20
  { argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
20
21
  ],
21
22
  "@typescript-eslint/no-floating-promises": "error",
22
- "@typescript-eslint/no-explicit-any": "warn",
23
- "@typescript-eslint/consistent-type-imports": [
24
- "error",
25
- {
26
- prefer: "type-imports",
27
- disallowTypeAnnotations: false,
28
- },
29
- ],
30
23
  },
31
- };
24
+ }
package/.prettierrc.js ADDED
@@ -0,0 +1,9 @@
1
+ /** @type {import("prettier").Config} */
2
+ const config = {
3
+ trailingComma: "all",
4
+ tabWidth: 4,
5
+ semi: true,
6
+ singleQuote: false,
7
+ };
8
+
9
+ export default config;
@@ -1,24 +1,23 @@
1
1
 
2
- > jazz-js@0.6.1 build /Users/anselm/jazz/jazz/packages/jazz-js
2
+ > jazz-tools@0.7.1 build /Users/anselm/jazz/jazz/packages/jazz-tools
3
3
  > npm run lint && rm -rf ./dist && tsc --sourceMap --outDir dist
4
4
 
5
5
 
6
- > jazz-js@0.6.1 lint
7
- > eslint src/**/*.ts
6
+ > jazz-tools@0.7.1 lint
7
+ > eslint . --ext ts,tsx
8
8
 
9
9
 
10
- /Users/anselm/jazz/jazz/packages/jazz-js/src/tests/binaryCoStream.test.ts
11
- 0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
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
12
13
 
13
- /Users/anselm/jazz/jazz/packages/jazz-js/src/tests/coList.test.ts
14
- 0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
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
15
16
 
16
- /Users/anselm/jazz/jazz/packages/jazz-js/src/tests/coMap.test.ts
17
- 0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
17
+ ✖ 3 problems (3 errors, 0 warnings)
18
18
 
19
- /Users/anselm/jazz/jazz/packages/jazz-js/src/tests/coStream.test.ts
20
- 0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
21
-
22
- 4 problems (0 errors, 4 warnings)
23
-
24
-  ELIFECYCLE  Command failed.
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.
@@ -0,0 +1,4 @@
1
+
2
+ > jazz-tools@0.7.3 lint /Users/anselm/jazz/jazz/packages/jazz-tools
3
+ > eslint . --ext ts,tsx
4
+
@@ -0,0 +1,140 @@
1
+
2
+ > jazz-tools@0.7.1 test /Users/anselm/jazz/jazz/packages/jazz-tools
3
+ > vitest --run
4
+
5
+
6
+ RUN v0.34.6 /Users/anselm/jazz/jazz/packages/jazz-tools
7
+
8
+ ✓ src/tests/groupsAndAccounts.test.ts (1 test) 39ms
9
+ ✓ src/tests/deepLoading.test.ts (3 tests) 81ms
10
+ stdout | unknown test
11
+ TestMap schema undefined
12
+
13
+ ✓ src/tests/coList.test.ts (10 tests) 148ms
14
+ stdout | src/tests/coList.test.ts > Simple CoList operations > Mutation > splice
15
+ [ 'bread', 'onion' ] 0
16
+ [ 'bread', 'salt', 'onion' ] 1
17
+
18
+ stdout | src/tests/coList.test.ts > CoList resolution > Subscription & auto-resolution
19
+ subscribedList?.[0]?.[0]?.[0] undefined
20
+ subscribedList?.[0]?.[0]?.[0] undefined
21
+ subscribedList?.[0]?.[0]?.[0] a
22
+ subscribedList?.[0]?.[0]?.[0] x
23
+ subscribedList?.[0]?.[0]?.[0] y
24
+ subscribedList?.[0]?.[0]?.[0] w
25
+
26
+ stdout | src/tests/coStream.test.ts > CoStream resolution > Subscription & auto-resolution
27
+ subscribedStream[me.id] {
28
+ value: [Getter],
29
+ ref: [Getter],
30
+ by: [Getter],
31
+ madeAt: 2024-05-26T15:11:48.997Z,
32
+ tx: {
33
+ sessionID: 'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty',
34
+ txIndex: 0
35
+ }
36
+ }
37
+ subscribedStream[me.id]?.value?.[me.id]?.value undefined
38
+ subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value undefined
39
+ subscribedStream[me.id] {
40
+ value: [Getter],
41
+ ref: [Getter],
42
+ by: [Getter],
43
+ madeAt: 2024-05-26T15:11:48.997Z,
44
+ tx: {
45
+ sessionID: 'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty',
46
+ txIndex: 0
47
+ }
48
+ }
49
+ subscribedStream[me.id]?.value?.[me.id]?.value null
50
+ subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value undefined
51
+ subscribedStream[me.id] {
52
+ value: [Getter],
53
+ ref: [Getter],
54
+ by: [Getter],
55
+ madeAt: 2024-05-26T15:11:48.997Z,
56
+ tx: {
57
+ sessionID: 'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty',
58
+ txIndex: 0
59
+ }
60
+ }
61
+ subscribedStream[me.id]?.value?.[me.id]?.value {
62
+ id: 'co_zEKrWtTzkzefunWDtiVtBvacn7V',
63
+ _type: 'CoStream',
64
+ co_zV2tG6EASXsWMi2TdwukBxyb23u: 'milk',
65
+ in: { co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty: 'milk' }
66
+ }
67
+ subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value milk
68
+ subscribedStream[me.id] {
69
+ value: [Getter],
70
+ ref: [Getter],
71
+ by: [Getter],
72
+ madeAt: 2024-05-26T15:11:48.997Z,
73
+ tx: {
74
+ sessionID: 'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty',
75
+ txIndex: 0
76
+ }
77
+ }
78
+ subscribedStream[me.id]?.value?.[me.id]?.value {
79
+ id: 'co_zEKrWtTzkzefunWDtiVtBvacn7V',
80
+ _type: 'CoStream',
81
+ co_zV2tG6EASXsWMi2TdwukBxyb23u: 'bread',
82
+ in: {
83
+ co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zPYMTSkySdty: 'milk',
84
+ co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zLRSquERuYQs: 'bread'
85
+ }
86
+ }
87
+ subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value bread
88
+ subscribedStream[me.id] {
89
+ value: [Getter],
90
+ ref: [Getter],
91
+ by: [Getter],
92
+ madeAt: 2024-05-26T15:11:49.013Z,
93
+ tx: {
94
+ sessionID: 'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zLRSquERuYQs',
95
+ txIndex: 0
96
+ }
97
+ }
98
+ subscribedStream[me.id]?.value?.[me.id]?.value {
99
+ id: 'co_zC5woKjv4Tb6sbidj7j4fYfPkJY',
100
+ _type: 'CoStream',
101
+ co_zV2tG6EASXsWMi2TdwukBxyb23u: 'butter',
102
+ in: { co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zLRSquERuYQs: 'butter' }
103
+ }
104
+ subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value butter
105
+ subscribedStream[me.id] {
106
+ value: [Getter],
107
+ ref: [Getter],
108
+ by: [Getter],
109
+ madeAt: 2024-05-26T15:11:49.013Z,
110
+ tx: {
111
+ sessionID: 'co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zLRSquERuYQs',
112
+ txIndex: 0
113
+ }
114
+ }
115
+ subscribedStream[me.id]?.value?.[me.id]?.value {
116
+ id: 'co_zC5woKjv4Tb6sbidj7j4fYfPkJY',
117
+ _type: 'CoStream',
118
+ co_zV2tG6EASXsWMi2TdwukBxyb23u: 'jam',
119
+ in: { co_zV2tG6EASXsWMi2TdwukBxyb23u_session_zLRSquERuYQs: 'jam' }
120
+ }
121
+ subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value jam
122
+
123
+ ✓ src/tests/coStream.test.ts (10 tests) 168ms
124
+ ✓ src/tests/coMap.test.ts (11 tests) 188ms
125
+ stdout | src/tests/coMap.test.ts > CoMap resolution > Subscription & auto-resolution
126
+ subscribedMap.nested?.twiceNested?.taste undefined
127
+ subscribedMap.nested?.twiceNested?.taste undefined
128
+ subscribedMap.nested?.twiceNested?.taste sour
129
+ subscribedMap.nested?.twiceNested?.taste sour
130
+ subscribedMap.nested?.twiceNested?.taste sweet
131
+ subscribedMap.nested?.twiceNested?.taste sweet
132
+ subscribedMap.nested?.twiceNested?.taste salty
133
+ subscribedMap.nested?.twiceNested?.taste umami
134
+
135
+
136
+ Test Files 5 passed (5)
137
+ Tests 35 passed (35)
138
+ Start at 16:11:48
139
+ Duration 799ms (transform 323ms, setup 0ms, collect 2.23s, tests 624ms, environment 0ms, prepare 217ms)
140
+
package/CHANGELOG.md CHANGED
@@ -1,102 +1,406 @@
1
1
  # jazz-autosub
2
2
 
3
+ ## 0.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Clean up loading & subscription API
8
+
9
+ ## 0.7.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Add runtime option for optional refs
14
+
15
+ ## 0.7.0
16
+
17
+ ### Minor Changes
18
+
19
+ - e299c3e: New simplified API
20
+
21
+ ### Patch Changes
22
+
23
+ - 8636319: Fix infinite recursion in subscriptionScope
24
+ - 8636319: Fix type of init param for CoMap.create
25
+ - 1a35307: Implement first devtools formatters
26
+ - 96c494f: Implement profile visibility based on groups & new migration signature
27
+ - 59c18c3: CoMap fix
28
+ - 19f52b7: Fixed bug with newRandomSessionID being called before crypto was ready
29
+ - 8636319: Implement deep loading, simplify API
30
+ - 19004b4: Add .all to CoStreamEntry
31
+ - a78f168: Make Account -> Profile a lazy ref schema
32
+ - 52675c9: Fix CoList.splice / RawCoList.append
33
+ - 129e2c1: More precise imports from @effect/schema
34
+ - 1cfa279: More superclass-compatible CoMaps
35
+ - 704af7d: Add maxWidth option for loading images
36
+ - 460478f: Use effect 3.0
37
+ - 6b0418f: Fix image resolution loading
38
+ - ed5643a: Fix CoMap \_refs for co.items
39
+ - bde684f: CoValue casting & auto-subbing \_owner
40
+ - c4151fc: Support stricter TS lint rules
41
+ - 63374cc: Relax types of CoMap.\_schema
42
+ - 01ac646: Make CoMaps even more subclassable
43
+ - a5e68a4: Make refs type more precise
44
+ - 952982e: Consistent proxy based API
45
+ - 1a35307: Add ability to declare minimum required data in subscribe & Improve property access tracing
46
+ - 5fa277c: Fix CoMap.Record.toJSON()
47
+ - 60d5ca2: Introduce jazz-tools CLI
48
+ - 21771c4: Reintroduce changes from main
49
+ - 77c2b56: Get rid of self generics, new create syntax
50
+ - 63374cc: Fix schema of Account & Group
51
+ - d2e03ff: Fix variance of ID.\_\_type
52
+ - 354bdcd: Even friendlier for subclassing CoMap
53
+ - 60d5ca2: Clean up exports
54
+ - 69ac514: Use effect schema much less
55
+ - f8a5c46: Fix CoStream types
56
+ - f0f6f1b: Clean up API more & re-add jazz-nodejs
57
+ - e5eed5b: Make refs on list more precise
58
+ - 1a44f87: Refactoring
59
+ - 627d895: Get rid of Co namespace
60
+ - 1200aae: Cache CoValue proxies
61
+ - 63374cc: Make sure delete on CoMaps deletes keys
62
+ - ece35b3: Make fast-check a direct dependency to help dev time resolution
63
+ - 38d4410: CoMap fixes and improvements
64
+ - 85d2b62: More subclass-friendly types in CoMap
65
+ - fd86c11: Extract jazz cli into jazz-run package
66
+ - 52675c9: Fix Costream[...].all
67
+ - Updated dependencies [1a35307]
68
+ - Updated dependencies [96c494f]
69
+ - Updated dependencies [19f52b7]
70
+ - Updated dependencies [d8fe2b1]
71
+ - Updated dependencies [1200aae]
72
+ - Updated dependencies [52675c9]
73
+ - Updated dependencies [1a35307]
74
+ - Updated dependencies [e299c3e]
75
+ - Updated dependencies [bf0f8ec]
76
+ - Updated dependencies [c4151fc]
77
+ - Updated dependencies [8636319]
78
+ - Updated dependencies [952982e]
79
+ - Updated dependencies [21771c4]
80
+ - Updated dependencies [69ac514]
81
+ - Updated dependencies [f0f6f1b]
82
+ - Updated dependencies [1a44f87]
83
+ - Updated dependencies [627d895]
84
+ - Updated dependencies [63374cc]
85
+ - Updated dependencies [a423eee]
86
+ - cojson@0.7.0
87
+ - cojson-transport-nodejs-ws@0.7.0
88
+
89
+ ## 0.7.0-alpha.42
90
+
91
+ ### Patch Changes
92
+
93
+ - Fixed bug with newRandomSessionID being called before crypto was ready
94
+ - Updated dependencies
95
+ - cojson@0.7.0-alpha.42
96
+ - cojson-transport-nodejs-ws@0.7.0-alpha.42
97
+
98
+ ## 0.7.0-alpha.41
99
+
100
+ ### Patch Changes
101
+
102
+ - Updated dependencies
103
+ - cojson-transport-nodejs-ws@0.7.0-alpha.41
104
+
105
+ ## 0.7.0-alpha.39
106
+
107
+ ### Patch Changes
108
+
109
+ - Updated dependencies
110
+ - cojson@0.7.0-alpha.39
111
+ - cojson-transport-nodejs-ws@0.7.0-alpha.39
112
+
113
+ ## 0.7.0-alpha.38
114
+
115
+ ### Patch Changes
116
+
117
+ - Fix infinite recursion in subscriptionScope
118
+ - Fix type of init param for CoMap.create
119
+ - Implement deep loading, simplify API
120
+ - Updated dependencies
121
+ - cojson@0.7.0-alpha.38
122
+ - cojson-transport-nodejs-ws@0.7.0-alpha.38
123
+
124
+ ## 0.7.0-alpha.37
125
+
126
+ ### Patch Changes
127
+
128
+ - Updated dependencies
129
+ - cojson@0.7.0-alpha.37
130
+ - cojson-transport-nodejs-ws@0.7.0-alpha.37
131
+
132
+ ## 0.7.0-alpha.36
133
+
134
+ ### Patch Changes
135
+
136
+ - 1a35307: Implement first devtools formatters
137
+ - 6b0418f: Fix image resolution loading
138
+ - 1a35307: Add ability to declare minimum required data in subscribe & Improve property access tracing
139
+ - Updated dependencies [1a35307]
140
+ - Updated dependencies [1a35307]
141
+ - cojson@0.7.0-alpha.36
142
+ - cojson-transport-nodejs-ws@0.7.0-alpha.36
143
+
144
+ ## 0.7.0-alpha.35
145
+
146
+ ### Patch Changes
147
+
148
+ - Cache CoValue proxies
149
+ - Updated dependencies
150
+ - cojson@0.7.0-alpha.35
151
+ - cojson-transport-nodejs-ws@0.7.0-alpha.35
152
+
153
+ ## 0.7.0-alpha.34
154
+
155
+ ### Patch Changes
156
+
157
+ - Extract jazz cli into jazz-run package
158
+
159
+ ## 0.7.0-alpha.32
160
+
161
+ ### Patch Changes
162
+
163
+ - Introduce jazz-tools CLI
164
+ - Clean up exports
165
+
166
+ ## 0.7.0-alpha.31
167
+
168
+ ### Patch Changes
169
+
170
+ - Get rid of self generics, new create syntax
171
+
172
+ ## 0.7.0-alpha.30
173
+
174
+ ### Patch Changes
175
+
176
+ - CoValue casting & auto-subbing \_owner
177
+
178
+ ## 0.7.0-alpha.29
179
+
180
+ ### Patch Changes
181
+
182
+ - Reintroduce changes from main
183
+ - Updated dependencies
184
+ - cojson@0.7.0-alpha.29
185
+
186
+ ## 0.7.0-alpha.28
187
+
188
+ ### Patch Changes
189
+
190
+ - Implement profile visibility based on groups & new migration signature
191
+ - Updated dependencies
192
+ - cojson@0.7.0-alpha.28
193
+
194
+ ## 0.7.0-alpha.27
195
+
196
+ ### Patch Changes
197
+
198
+ - Fix CoList.splice / RawCoList.append
199
+ - Fix Costream[...].all
200
+ - Updated dependencies
201
+ - cojson@0.7.0-alpha.27
202
+
203
+ ## 0.7.0-alpha.26
204
+
205
+ ### Patch Changes
206
+
207
+ - Fix CoMap.Record.toJSON()
208
+
209
+ ## 0.7.0-alpha.25
210
+
211
+ ### Patch Changes
212
+
213
+ - Make Account -> Profile a lazy ref schema
214
+
215
+ ## 0.7.0-alpha.24
216
+
217
+ ### Patch Changes
218
+
219
+ - Relax types of CoMap.\_schema
220
+ - Fix schema of Account & Group
221
+ - Make sure delete on CoMaps deletes keys
222
+ - Updated dependencies
223
+ - cojson@0.7.0-alpha.24
224
+
225
+ ## 0.7.0-alpha.23
226
+
227
+ ### Patch Changes
228
+
229
+ - CoMap fixes and improvements
230
+
231
+ ## 0.7.0-alpha.22
232
+
233
+ ### Patch Changes
234
+
235
+ - Fix CoMap \_refs for co.items
236
+
237
+ ## 0.7.0-alpha.21
238
+
239
+ ### Patch Changes
240
+
241
+ - Add maxWidth option for loading images
242
+
243
+ ## 0.7.0-alpha.20
244
+
245
+ ### Patch Changes
246
+
247
+ - Make fast-check a direct dependency to help dev time resolution
248
+
249
+ ## 0.7.0-alpha.19
250
+
251
+ ### Patch Changes
252
+
253
+ - More precise imports from @effect/schema
254
+
255
+ ## 0.7.0-alpha.17
256
+
257
+ ### Patch Changes
258
+
259
+ - Use effect 3.0
260
+
261
+ ## 0.7.0-alpha.16
262
+
263
+ ### Patch Changes
264
+
265
+ - Make CoMaps even more subclassable
266
+
267
+ ## 0.7.0-alpha.15
268
+
269
+ ### Patch Changes
270
+
271
+ - More superclass-compatible CoMaps
272
+
273
+ ## 0.7.0-alpha.14
274
+
275
+ ### Patch Changes
276
+
277
+ - Fix CoStream types
278
+
279
+ ## 0.7.0-alpha.13
280
+
281
+ ### Patch Changes
282
+
283
+ - Add .all to CoStreamEntry
284
+
285
+ ## 0.7.0-alpha.12
286
+
287
+ ### Patch Changes
288
+
289
+ - Fix variance of ID.\_\_type
290
+
291
+ ## 0.7.0-alpha.11
292
+
293
+ ### Patch Changes
294
+
295
+ - Support stricter TS lint rules
296
+ - Updated dependencies
297
+ - cojson@0.7.0-alpha.11
298
+
299
+ ## 0.7.0-alpha.10
300
+
301
+ ### Patch Changes
302
+
303
+ - Clean up API more & re-add jazz-nodejs
304
+ - Updated dependencies
305
+ - cojson@0.7.0-alpha.10
306
+
3
307
  ## 0.7.0-alpha.9
4
308
 
5
309
  ### Patch Changes
6
310
 
7
- - Even friendlier for subclassing CoMap
311
+ - Even friendlier for subclassing CoMap
8
312
 
9
313
  ## 0.7.0-alpha.8
10
314
 
11
315
  ### Patch Changes
12
316
 
13
- - More subclass-friendly types in CoMap
317
+ - More subclass-friendly types in CoMap
14
318
 
15
319
  ## 0.7.0-alpha.7
16
320
 
17
321
  ### Patch Changes
18
322
 
19
- - Consistent proxy based API
20
- - Updated dependencies
21
- - cojson@0.7.0-alpha.7
323
+ - Consistent proxy based API
324
+ - Updated dependencies
325
+ - cojson@0.7.0-alpha.7
22
326
 
23
327
  ## 0.7.0-alpha.6
24
328
 
25
329
  ### Patch Changes
26
330
 
27
- - CoMap fix
331
+ - CoMap fix
28
332
 
29
333
  ## 0.7.0-alpha.5
30
334
 
31
335
  ### Patch Changes
32
336
 
33
- - Refactoring
34
- - Updated dependencies
35
- - cojson@0.7.0-alpha.5
337
+ - Refactoring
338
+ - Updated dependencies
339
+ - cojson@0.7.0-alpha.5
36
340
 
37
341
  ## 0.7.0-alpha.4
38
342
 
39
343
  ### Patch Changes
40
344
 
41
- - Make refs on list more precise
345
+ - Make refs on list more precise
42
346
 
43
347
  ## 0.7.0-alpha.3
44
348
 
45
349
  ### Patch Changes
46
350
 
47
- - Make refs type more precise
351
+ - Make refs type more precise
48
352
 
49
353
  ## 0.7.0-alpha.2
50
354
 
51
355
  ### Patch Changes
52
356
 
53
- - Get rid of Co namespace
357
+ - Get rid of Co namespace
54
358
 
55
359
  ## 0.7.0-alpha.1
56
360
 
57
361
  ### Patch Changes
58
362
 
59
- - Use effect schema much less
60
- - Updated dependencies
61
- - cojson@0.7.0-alpha.1
363
+ - Use effect schema much less
364
+ - Updated dependencies
365
+ - cojson@0.7.0-alpha.1
62
366
 
63
367
  ## 0.7.0-alpha.0
64
368
 
65
369
  ### Minor Changes
66
370
 
67
- - New simplified API
371
+ - New simplified API
68
372
 
69
373
  ### Patch Changes
70
374
 
71
- - Updated dependencies
72
- - cojson@0.7.0-alpha.0
375
+ - Updated dependencies
376
+ - cojson@0.7.0-alpha.0
73
377
 
74
378
  ## 0.6.1
75
379
 
76
380
  ### Patch Changes
77
381
 
78
- - Fix loading of accounts
79
- - Updated dependencies
80
- - cojson@0.6.5
382
+ - Fix loading of accounts
383
+ - Updated dependencies
384
+ - cojson@0.6.5
81
385
 
82
386
  ## 0.6.0
83
387
 
84
388
  ### Minor Changes
85
389
 
86
- - Make addMember and removeMember take loaded Accounts instead of just IDs
390
+ - Make addMember and removeMember take loaded Accounts instead of just IDs
87
391
 
88
392
  ### Patch Changes
89
393
 
90
- - Updated dependencies
91
- - cojson@0.6.0
394
+ - Updated dependencies
395
+ - cojson@0.6.0
92
396
 
93
397
  ## 0.5.0
94
398
 
95
399
  ### Minor Changes
96
400
 
97
- - Adding a lot of performance improvements to cojson, add a stresstest for the twit example and make that run smoother in a lot of ways.
401
+ - Adding a lot of performance improvements to cojson, add a stresstest for the twit example and make that run smoother in a lot of ways.
98
402
 
99
403
  ### Patch Changes
100
404
 
101
- - Updated dependencies
102
- - cojson@0.5.0
405
+ - Updated dependencies
406
+ - cojson@0.5.0
package/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2023, Garden Computing, Inc.
1
+ Copyright 2024, Garden Computing, Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,3 +1,11 @@
1
- # CoJSON
1
+ # `jazz-tools`
2
2
 
3
- [See the top-level README](../../README.md#cojson)
3
+ The base implementation for Jazz (see [jazz.tools](https://jazz.tools)), a framework for distributed state.
4
+
5
+ Provides a high-level API around the CoJSON protocol.
6
+
7
+ ## Environments and bindings
8
+
9
+ - `jazz-browser` (Vanilla JavaScript)
10
+ - `jazz-react` (React apps)
11
+ - `jazz-nodejs` (NodeJS or Bun server workers)