jazz-tools 0.9.19 → 0.9.20

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.
@@ -29,7 +29,7 @@ import {
29
29
  parseInviteLink,
30
30
  randomSessionProvider,
31
31
  subscribeToCoValue
32
- } from "./chunk-LRDIS2Q2.js";
32
+ } from "./chunk-D7BVHLME.js";
33
33
 
34
34
  // src/index.native.ts
35
35
  import {
package/dist/index.web.js CHANGED
@@ -29,7 +29,7 @@ import {
29
29
  parseInviteLink,
30
30
  randomSessionProvider,
31
31
  subscribeToCoValue
32
- } from "./chunk-LRDIS2Q2.js";
32
+ } from "./chunk-D7BVHLME.js";
33
33
 
34
34
  // src/index.web.ts
35
35
  import { cojsonInternals, MAX_RECOMMENDED_TX_SIZE, WasmCrypto } from "cojson";
package/dist/testing.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  Account,
3
3
  activeAccountContext,
4
4
  createAnonymousJazzContext
5
- } from "./chunk-LRDIS2Q2.js";
5
+ } from "./chunk-D7BVHLME.js";
6
6
 
7
7
  // src/testing.ts
8
8
  import { LocalNode } from "cojson";
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "type": "module",
25
25
  "license": "MIT",
26
- "version": "0.9.19",
26
+ "version": "0.9.20",
27
27
  "dependencies": {
28
28
  "cojson": "0.9.19"
29
29
  },
@@ -5,6 +5,7 @@ import {
5
5
  type CoValueClass,
6
6
  CoValueFromRaw,
7
7
  ItemsSym,
8
+ JazzToolsSymbol,
8
9
  MembersSym,
9
10
  SchemaInit,
10
11
  isCoValueClass,
@@ -23,7 +24,9 @@ export type CoMarker = { readonly __co: unique symbol };
23
24
  export type co<T> = T | (T & CoMarker);
24
25
  export type IfCo<C, R> = C extends infer _A | infer B
25
26
  ? B extends CoMarker
26
- ? R
27
+ ? R extends JazzToolsSymbol // Exclude symbol properties like co.items or co.members from the refs/init types
28
+ ? never
29
+ : R
27
30
  : never
28
31
  : never;
29
32
  export type UnCo<T> = T extends co<infer A> ? A : T;
@@ -1,8 +1,10 @@
1
- export const SchemaInit = Symbol.for("SchemaInit");
1
+ export type JazzToolsSymbol = SchemaInit | ItemsSym | MembersSym;
2
+
3
+ export const SchemaInit = "$SchemaInit$";
2
4
  export type SchemaInit = typeof SchemaInit;
3
5
 
4
- export const ItemsSym = Symbol.for("items");
6
+ export const ItemsSym = "$items$";
5
7
  export type ItemsSym = typeof ItemsSym;
6
8
 
7
- export const MembersSym = Symbol.for("members");
9
+ export const MembersSym = "$members$";
8
10
  export type MembersSym = typeof MembersSym;