jazz-tools 0.7.35-new-auth.0 → 0.7.35-unique.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,157 @@
1
+
2
+ > jazz-tools@0.7.35-new-auth.0 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) 35ms
9
+ ❯ src/tests/coMap.test.ts (0 test)
10
+ stdout | unknown test
11
+ TestMap schema undefined
12
+ { uniqueness: { name: 'Alice' } }
13
+
14
+ ✓ src/tests/deepLoading.test.ts (3 tests) 48ms
15
+ ✓ src/tests/coList.test.ts (10 tests) 80ms
16
+ stdout | src/tests/coList.test.ts > Simple CoList operations > Mutation > splice
17
+ [ 'bread', 'onion' ] 0
18
+ [ 'bread', 'salt', 'onion' ] 1
19
+
20
+ stdout | src/tests/coList.test.ts > CoList resolution > Subscription & auto-resolution
21
+ subscribedList?.[0]?.[0]?.[0] undefined
22
+ subscribedList?.[0]?.[0]?.[0] undefined
23
+ subscribedList?.[0]?.[0]?.[0] a
24
+ subscribedList?.[0]?.[0]?.[0] x
25
+ subscribedList?.[0]?.[0]?.[0] y
26
+ subscribedList?.[0]?.[0]?.[0] w
27
+
28
+ ✓ src/tests/coStream.test.ts (10 tests) 112ms
29
+ stdout | src/tests/coStream.test.ts > CoStream resolution > Subscription & auto-resolution
30
+ subscribedStream[me.id] {
31
+ value: [Getter],
32
+ ref: [Getter],
33
+ by: [Getter],
34
+ madeAt: 2024-09-02T15:58:37.233Z,
35
+ tx: {
36
+ sessionID: 'co_zcfiWRCYawAMLoR2whhpDpKXn1t_session_zgjgVWiVqbKN',
37
+ txIndex: 0
38
+ }
39
+ }
40
+ subscribedStream[me.id]?.value?.[me.id]?.value undefined
41
+ subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value undefined
42
+ subscribedStream[me.id] {
43
+ value: [Getter],
44
+ ref: [Getter],
45
+ by: [Getter],
46
+ madeAt: 2024-09-02T15:58:37.233Z,
47
+ tx: {
48
+ sessionID: 'co_zcfiWRCYawAMLoR2whhpDpKXn1t_session_zgjgVWiVqbKN',
49
+ txIndex: 0
50
+ }
51
+ }
52
+ subscribedStream[me.id]?.value?.[me.id]?.value null
53
+ subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value undefined
54
+ subscribedStream[me.id] {
55
+ value: [Getter],
56
+ ref: [Getter],
57
+ by: [Getter],
58
+ madeAt: 2024-09-02T15:58:37.233Z,
59
+ tx: {
60
+ sessionID: 'co_zcfiWRCYawAMLoR2whhpDpKXn1t_session_zgjgVWiVqbKN',
61
+ txIndex: 0
62
+ }
63
+ }
64
+ subscribedStream[me.id]?.value?.[me.id]?.value {
65
+ id: 'co_zD7LEqeGULHGVhuTADKb4QZ8dCk',
66
+ _type: 'CoStream',
67
+ perSession: undefined,
68
+ co_zcfiWRCYawAMLoR2whhpDpKXn1t: 'milk',
69
+ in: { co_zcfiWRCYawAMLoR2whhpDpKXn1t_session_zgjgVWiVqbKN: 'milk' }
70
+ }
71
+ subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value milk
72
+ subscribedStream[me.id] {
73
+ value: [Getter],
74
+ ref: [Getter],
75
+ by: [Getter],
76
+ madeAt: 2024-09-02T15:58:37.233Z,
77
+ tx: {
78
+ sessionID: 'co_zcfiWRCYawAMLoR2whhpDpKXn1t_session_zgjgVWiVqbKN',
79
+ txIndex: 0
80
+ }
81
+ }
82
+ subscribedStream[me.id]?.value?.[me.id]?.value {
83
+ id: 'co_zD7LEqeGULHGVhuTADKb4QZ8dCk',
84
+ _type: 'CoStream',
85
+ perSession: undefined,
86
+ co_zcfiWRCYawAMLoR2whhpDpKXn1t: 'bread',
87
+ in: {
88
+ co_zcfiWRCYawAMLoR2whhpDpKXn1t_session_zgjgVWiVqbKN: 'milk',
89
+ co_zcfiWRCYawAMLoR2whhpDpKXn1t_session_zJtVGvKSSDZS: 'bread'
90
+ }
91
+ }
92
+ subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value bread
93
+ subscribedStream[me.id] {
94
+ value: [Getter],
95
+ ref: [Getter],
96
+ by: [Getter],
97
+ madeAt: 2024-09-02T15:58:37.243Z,
98
+ tx: {
99
+ sessionID: 'co_zcfiWRCYawAMLoR2whhpDpKXn1t_session_zJtVGvKSSDZS',
100
+ txIndex: 0
101
+ }
102
+ }
103
+ subscribedStream[me.id]?.value?.[me.id]?.value {
104
+ id: 'co_zJ1jXP9StL3983bfdStM2e9UgMz',
105
+ _type: 'CoStream',
106
+ perSession: undefined,
107
+ co_zcfiWRCYawAMLoR2whhpDpKXn1t: 'butter',
108
+ in: { co_zcfiWRCYawAMLoR2whhpDpKXn1t_session_zJtVGvKSSDZS: 'butter' }
109
+ }
110
+ subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value butter
111
+ subscribedStream[me.id] {
112
+ value: [Getter],
113
+ ref: [Getter],
114
+ by: [Getter],
115
+ madeAt: 2024-09-02T15:58:37.243Z,
116
+ tx: {
117
+ sessionID: 'co_zcfiWRCYawAMLoR2whhpDpKXn1t_session_zJtVGvKSSDZS',
118
+ txIndex: 0
119
+ }
120
+ }
121
+ subscribedStream[me.id]?.value?.[me.id]?.value {
122
+ id: 'co_zJ1jXP9StL3983bfdStM2e9UgMz',
123
+ _type: 'CoStream',
124
+ perSession: undefined,
125
+ co_zcfiWRCYawAMLoR2whhpDpKXn1t: 'jam',
126
+ in: { co_zcfiWRCYawAMLoR2whhpDpKXn1t_session_zJtVGvKSSDZS: 'jam' }
127
+ }
128
+ subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value jam
129
+
130
+
131
+ ⎯⎯⎯⎯⎯⎯ Failed Suites 1 ⎯⎯⎯⎯⎯⎯⎯
132
+
133
+ FAIL src/tests/coMap.test.ts [ src/tests/coMap.test.ts ]
134
+ AssertionError: expected 'co_zaQaTtTxJoCWMFtuph2MUA5Y89B' to deeply equal 'co_zgryUM2xk2PqvUuyfZjQHs7umXm'
135
+
136
+ - Expected
137
+ + Received
138
+
139
+ - co_zgryUM2xk2PqvUuyfZjQHs7umXm
140
+ + co_zaQaTtTxJoCWMFtuph2MUA5Y89B
141
+
142
+ ❯ src/tests/coMap.test.ts:762:24
143
+ 760| }, me.id, me);
144
+ 761|
145
+ 762| expect(foundAlice).toEqual(alice.id);
146
+ | ^
147
+ 763| });
148
+ 764|
149
+
150
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
151
+
152
+ Test Files 1 failed | 4 passed (5)
153
+ Tests 24 passed (24)
154
+ Start at 16:58:36
155
+ Duration 801ms (transform 547ms, setup 0ms, collect 1.78s, tests 275ms, environment 1ms, prepare 400ms)
156
+
157
+  ELIFECYCLE  Test failed. See above for more details.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # jazz-autosub
2
2
 
3
+ ## 0.7.35-unique.2
4
+
5
+ ### Patch Changes
6
+
7
+ - First sketch of API for creating and finding unique CoValues
8
+ - Updated dependencies
9
+ - cojson@0.7.35-unique.2
10
+
3
11
  ## 0.7.35-new-auth.0
4
12
 
5
13
  ### Patch Changes
@@ -1,3 +1,4 @@
1
+ import { cojsonInternals, } from "cojson";
1
2
  import { Account, CoValueBase, Ref, SchemaInit, inspect, makeRefs, subscriptionsScopes, ItemsSym, isRefEncoded, loadCoValue, subscribeToCoValue, ensureCoValueLoaded, subscribeToExistingCoValue, } from "../internal.js";
2
3
  /**
3
4
  * CoMaps are collaborative versions of plain objects, mapping string-like keys to values.
@@ -142,7 +143,9 @@ export class CoMap extends CoValueBase {
142
143
  **/
143
144
  static create(init, options) {
144
145
  const instance = new this();
145
- const raw = instance.rawFromInit(init, options.owner);
146
+ const raw = instance.rawFromInit(init, options.owner, options.unique === undefined
147
+ ? undefined
148
+ : { uniqueness: options.unique });
146
149
  Object.defineProperties(instance, {
147
150
  id: {
148
151
  value: raw.id,
@@ -189,7 +192,7 @@ export class CoMap extends CoValueBase {
189
192
  }
190
193
  /** @internal */
191
194
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
192
- rawFromInit(init, owner) {
195
+ rawFromInit(init, owner, uniqueness) {
193
196
  const rawOwner = owner._raw;
194
197
  const rawInit = {};
195
198
  if (init)
@@ -213,7 +216,7 @@ export class CoMap extends CoValueBase {
213
216
  initValue);
214
217
  }
215
218
  }
216
- return rawOwner.createMap(rawInit);
219
+ return rawOwner.createMap(rawInit, null, "private", uniqueness);
217
220
  }
218
221
  /**
219
222
  * Declare a Record-like CoMap schema, by extending `CoMap.Record(...)` and passing the value schema using `co`. Keys are always `string`.
@@ -295,6 +298,18 @@ export class CoMap extends CoValueBase {
295
298
  static subscribe(id, as, depth, listener) {
296
299
  return subscribeToCoValue(this, id, as, depth, listener);
297
300
  }
301
+ static findUnique(unique, ownerID, as) {
302
+ const header = {
303
+ type: "comap",
304
+ ruleset: {
305
+ type: "ownedByGroup",
306
+ group: ownerID,
307
+ },
308
+ meta: null,
309
+ uniqueness: unique,
310
+ };
311
+ return cojsonInternals.idforHeader(header, as._raw.core.crypto);
312
+ }
298
313
  /**
299
314
  * Given an already loaded `CoMap`, ensure that the specified fields are loaded to the specified depth.
300
315
  *
@@ -1 +1 @@
1
- {"version":3,"file":"coMap.js","sourceRoot":"","sources":["../../src/coValues/coMap.ts"],"names":[],"mappings":"AAaA,OAAO,EACH,OAAO,EACP,WAAW,EACX,GAAG,EACH,UAAU,EACV,OAAO,EACP,QAAQ,EACR,mBAAmB,EACnB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,GAC7B,MAAM,gBAAgB,CAAC;AAaxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgCM;AACN,MAAM,OAAO,KAAM,SAAQ,WAAW;IAOlC;QACI,IAAI,CAAC,SAAS,CAAC,KAAK,GA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,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC/C,CAAC;IACL,CAAC;CACJ,CAAC"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,uBAAuB,EACvB,UAAU,EACV,YAAY,GACf,MAAM,QAAQ,CAAC;AAYhB,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,KAAK,EAAkB,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAqB,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,WAAW,EAAqB,MAAM,eAAe,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EAGH,iBAAiB,EACjB,oBAAoB,GACvB,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,uBAAuB,EACvB,UAAU,EACV,YAAY,GACf,MAAM,QAAQ,CAAC;AAahB,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,KAAK,EAAkB,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAqB,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,WAAW,EAAqB,MAAM,eAAe,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EAGH,iBAAiB,EACjB,oBAAoB,GACvB,MAAM,eAAe,CAAC"}
@@ -1,27 +1,27 @@
1
1
  import { expect, describe, test } from "vitest";
2
2
  import { connectedPeers } from "cojson/src/streamUtils.js";
3
3
  import { Account, Encoders, CoMap, co, WasmCrypto, isControlledAccount, cojsonInternals, createJazzContext, fixedCredentialsAuth, } from "../index.js";
4
- import { randomSessionProvider } from "../internal.js";
4
+ import { Group, randomSessionProvider } from "../internal.js";
5
5
  const Crypto = await WasmCrypto.create();
6
+ class TestMap extends CoMap {
7
+ color = co.string;
8
+ _height = co.number;
9
+ birthday = co.encoded(Encoders.Date);
10
+ name = co.string;
11
+ nullable = co.optional.encoded({
12
+ encode: (value) => value || null,
13
+ decode: (value) => value || undefined,
14
+ });
15
+ optionalDate = co.optional.encoded(Encoders.Date);
16
+ get roughColor() {
17
+ return this.color + "ish";
18
+ }
19
+ }
6
20
  describe("Simple CoMap operations", async () => {
7
21
  const me = await Account.create({
8
22
  creationProps: { name: "Hermes Puggington" },
9
23
  crypto: Crypto,
10
24
  });
11
- class TestMap extends CoMap {
12
- color = co.string;
13
- _height = co.number;
14
- birthday = co.encoded(Encoders.Date);
15
- name = co.string;
16
- nullable = co.optional.encoded({
17
- encode: (value) => value || null,
18
- decode: (value) => value || undefined,
19
- });
20
- optionalDate = co.optional.encoded(Encoders.Date);
21
- get roughColor() {
22
- return this.color + "ish";
23
- }
24
- }
25
25
  console.log("TestMap schema", TestMap.prototype._schema);
26
26
  const birthday = new Date();
27
27
  const map = TestMap.create({
@@ -502,4 +502,23 @@ describe("CoMap applyDiff", async () => {
502
502
  expect(map.invalidField).toBeUndefined();
503
503
  });
504
504
  });
505
+ describe("Creating and finding unique CoMaps", async () => {
506
+ test("Creating and finding unique CoMaps", async () => {
507
+ const me = await Account.create({
508
+ creationProps: { name: "Tester McTesterson" },
509
+ crypto: Crypto,
510
+ });
511
+ const group = await Group.create({
512
+ owner: me,
513
+ });
514
+ const alice = TestMap.create({
515
+ name: "Alice",
516
+ _height: 100,
517
+ birthday: new Date("1990-01-01"),
518
+ color: "red",
519
+ }, { owner: group, unique: { name: "Alice" } });
520
+ const foundAlice = TestMap.findUnique({ name: "Alice" }, group.id, me);
521
+ expect(foundAlice).toEqual(alice.id);
522
+ });
523
+ });
505
524
  //# sourceMappingURL=coMap.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"coMap.test.js","sourceRoot":"","sources":["../../src/tests/coMap.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EACH,OAAO,EACP,QAAQ,EACR,KAAK,EACL,EAAE,EACF,UAAU,EACV,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,oBAAoB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,CAAC;AAEzC,QAAQ,CAAC,yBAAyB,EAAE,KAAK,IAAI,EAAE;IAC3C,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC;QAC5B,aAAa,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;QAC5C,MAAM,EAAE,MAAM;KACjB,CAAC,CAAC;IAEH,MAAM,OAAQ,SAAQ,KAAK;QACvB,KAAK,GAAG,EAAE,CAAC,MAA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AAO,CAAC,KAAK,CAAC,CAAC;QAChC,8DAA8D;QAC9D,MAAM,CAAE,GAAW,CAAC,YAAY,CAAC,CAAC,aAAa,EAAE,CAAC;IACtD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,oCAAoC,EAAE,KAAK,IAAI,EAAE;IACtD,IAAI,CAAC,oCAAoC,EAAE,KAAK,IAAI,EAAE;QAClD,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC;YAC5B,aAAa,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC7C,MAAM,EAAE,MAAM;SACjB,CAAC,CAAC;QAEH,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC;YAC7B,KAAK,EAAE,EAAE;SACZ,CAAC,CAAC;QAEH,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;YACzB,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,GAAG;YACZ,QAAQ,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;YAChC,KAAK,EAAE,KAAK;SAEf,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;QAEhD,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QAEvE,MAAM,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -5,10 +5,10 @@
5
5
  "types": "./src/index.ts",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
- "version": "0.7.35-new-auth.0",
8
+ "version": "0.7.35-unique.2",
9
9
  "dependencies": {
10
10
  "fast-check": "^3.17.2",
11
- "cojson": "0.7.34"
11
+ "cojson": "0.7.35-unique.2"
12
12
  },
13
13
  "devDependencies": {
14
14
  "typescript": "^5.3.3",
@@ -1,4 +1,9 @@
1
- import type { JsonValue, RawCoMap } from "cojson";
1
+ import {
2
+ cojsonInternals,
3
+ type CoValueUniqueness,
4
+ type JsonValue,
5
+ type RawCoMap,
6
+ } from "cojson";
2
7
  import type {
3
8
  CoValue,
4
9
  Schema,
@@ -35,8 +40,10 @@ type CoMapEdit<V> = {
35
40
  };
36
41
 
37
42
  export type Simplify<A> = {
38
- [K in keyof A]: A[K]
39
- } extends infer B ? B : never
43
+ [K in keyof A]: A[K];
44
+ } extends infer B
45
+ ? B
46
+ : never;
40
47
 
41
48
  /**
42
49
  * CoMaps are collaborative versions of plain objects, mapping string-like keys to values.
@@ -237,10 +244,19 @@ export class CoMap extends CoValueBase implements CoValue {
237
244
  static create<M extends CoMap>(
238
245
  this: CoValueClass<M>,
239
246
  init: Simplify<CoMapInit<M>>,
240
- options: { owner: Account | Group },
247
+ options: {
248
+ owner: Account | Group;
249
+ unique?: CoValueUniqueness["uniqueness"];
250
+ },
241
251
  ) {
242
252
  const instance = new this();
243
- const raw = instance.rawFromInit(init, options.owner);
253
+ const raw = instance.rawFromInit(
254
+ init,
255
+ options.owner,
256
+ options.unique === undefined
257
+ ? undefined
258
+ : { uniqueness: options.unique },
259
+ );
244
260
  Object.defineProperties(instance, {
245
261
  id: {
246
262
  value: raw.id,
@@ -293,6 +309,7 @@ export class CoMap extends CoValueBase implements CoValue {
293
309
  rawFromInit<Fields extends object = Record<string, any>>(
294
310
  init: Simplify<CoMapInit<Fields>> | undefined,
295
311
  owner: Account | Group,
312
+ uniqueness?: CoValueUniqueness,
296
313
  ) {
297
314
  const rawOwner = owner._raw;
298
315
 
@@ -326,7 +343,7 @@ export class CoMap extends CoValueBase implements CoValue {
326
343
  }
327
344
  }
328
345
 
329
- return rawOwner.createMap(rawInit);
346
+ return rawOwner.createMap(rawInit, null, "private", uniqueness);
330
347
  }
331
348
 
332
349
  /**
@@ -426,6 +443,27 @@ export class CoMap extends CoValueBase implements CoValue {
426
443
  return subscribeToCoValue<M, Depth>(this, id, as, depth, listener);
427
444
  }
428
445
 
446
+ static findUnique<M extends CoMap>(
447
+ this: CoValueClass<M>,
448
+ unique: CoValueUniqueness['uniqueness'],
449
+ ownerID: ID<Account> | ID<Group>,
450
+ as: Account | Group,
451
+ ) {
452
+ const header = {
453
+ type: "comap" as const,
454
+ ruleset: {
455
+ type: "ownedByGroup" as const,
456
+ group: ownerID,
457
+ },
458
+ meta: null,
459
+ uniqueness: unique,
460
+ };
461
+ return cojsonInternals.idforHeader(
462
+ header,
463
+ as._raw.core.crypto,
464
+ ) as ID<M>;
465
+ }
466
+
429
467
  /**
430
468
  * Given an already loaded `CoMap`, ensure that the specified fields are loaded to the specified depth.
431
469
  *
package/src/index.ts CHANGED
@@ -11,6 +11,7 @@ export type {
11
11
  AgentID,
12
12
  SyncMessage,
13
13
  CryptoProvider,
14
+ CoValueUniqueness,
14
15
  } from "cojson";
15
16
 
16
17
  export type { ID, CoValue } from "./internal.js";
@@ -11,32 +11,32 @@ import {
11
11
  createJazzContext,
12
12
  fixedCredentialsAuth,
13
13
  } from "../index.js";
14
- import { randomSessionProvider } from "../internal.js";
14
+ import { Group, randomSessionProvider } from "../internal.js";
15
15
 
16
16
  const Crypto = await WasmCrypto.create();
17
17
 
18
+ class TestMap extends CoMap {
19
+ color = co.string;
20
+ _height = co.number;
21
+ birthday = co.encoded(Encoders.Date);
22
+ name? = co.string;
23
+ nullable = co.optional.encoded<string | undefined>({
24
+ encode: (value: string | undefined) => value || null,
25
+ decode: (value: unknown) => (value as string) || undefined,
26
+ });
27
+ optionalDate = co.optional.encoded(Encoders.Date);
28
+
29
+ get roughColor() {
30
+ return this.color + "ish";
31
+ }
32
+ }
33
+
18
34
  describe("Simple CoMap operations", async () => {
19
35
  const me = await Account.create({
20
36
  creationProps: { name: "Hermes Puggington" },
21
37
  crypto: Crypto,
22
38
  });
23
39
 
24
- class TestMap extends CoMap {
25
- color = co.string;
26
- _height = co.number;
27
- birthday = co.encoded(Encoders.Date);
28
- name? = co.string;
29
- nullable = co.optional.encoded<string | undefined>({
30
- encode: (value: string | undefined) => value || null,
31
- decode: (value: unknown) => (value as string) || undefined,
32
- });
33
- optionalDate = co.optional.encoded(Encoders.Date);
34
-
35
- get roughColor() {
36
- return this.color + "ish";
37
- }
38
- }
39
-
40
40
  console.log("TestMap schema", TestMap.prototype._schema);
41
41
 
42
42
  const birthday = new Date();
@@ -738,3 +738,28 @@ describe("CoMap applyDiff", async () => {
738
738
  expect((map as any).invalidField).toBeUndefined();
739
739
  });
740
740
  });
741
+
742
+ describe("Creating and finding unique CoMaps", async () => {
743
+ test("Creating and finding unique CoMaps", async () => {
744
+ const me = await Account.create({
745
+ creationProps: { name: "Tester McTesterson" },
746
+ crypto: Crypto,
747
+ });
748
+
749
+ const group = await Group.create({
750
+ owner: me,
751
+ });
752
+
753
+ const alice = TestMap.create({
754
+ name: "Alice",
755
+ _height: 100,
756
+ birthday: new Date("1990-01-01"),
757
+ color: "red",
758
+
759
+ }, { owner: group, unique: { name: "Alice" } });
760
+
761
+ const foundAlice = TestMap.findUnique({ name: "Alice" }, group.id, me);
762
+
763
+ expect(foundAlice).toEqual(alice.id);
764
+ });
765
+ });