effect-zero 0.5.0-beta.1 → 0.5.0

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "effect-zero",
3
3
  "type": "module",
4
- "version": "0.5.0-beta.1",
4
+ "version": "0.5.0",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "url": "https://github.com/realms-labs/effect-zero"
@@ -32,40 +32,40 @@
32
32
  "effect": "^4.0.0-beta.78"
33
33
  },
34
34
  "exports": {
35
- "./mutators": {
35
+ "./snapshot": {
36
36
  "import": {
37
- "types": "./dist/mutators.d.ts",
38
- "default": "./dist/mutators.js"
37
+ "types": "./dist/snapshot.d.ts",
38
+ "default": "./dist/snapshot.js"
39
39
  }
40
40
  },
41
- "./client-transaction": {
41
+ "./query": {
42
42
  "import": {
43
- "types": "./dist/client-transaction.d.ts",
44
- "default": "./dist/client-transaction.js"
43
+ "types": "./dist/query.d.ts",
44
+ "default": "./dist/query.js"
45
45
  }
46
46
  },
47
- "./client": {
47
+ "./result": {
48
48
  "import": {
49
- "types": "./dist/client.d.ts",
50
- "default": "./dist/client.js"
49
+ "types": "./dist/result.d.ts",
50
+ "default": "./dist/result.js"
51
51
  }
52
52
  },
53
- "./server": {
53
+ "./client-transaction": {
54
54
  "import": {
55
- "types": "./dist/server.d.ts",
56
- "default": "./dist/server.js"
55
+ "types": "./dist/client-transaction.d.ts",
56
+ "default": "./dist/client-transaction.js"
57
57
  }
58
58
  },
59
- "./snapshot": {
59
+ "./mutators": {
60
60
  "import": {
61
- "types": "./dist/snapshot.d.ts",
62
- "default": "./dist/snapshot.js"
61
+ "types": "./dist/mutators.d.ts",
62
+ "default": "./dist/mutators.js"
63
63
  }
64
64
  },
65
- "./result": {
65
+ "./client": {
66
66
  "import": {
67
- "types": "./dist/result.d.ts",
68
- "default": "./dist/result.js"
67
+ "types": "./dist/client.d.ts",
68
+ "default": "./dist/client.js"
69
69
  }
70
70
  },
71
71
  "./server-transaction": {
@@ -74,22 +74,10 @@
74
74
  "default": "./dist/server-transaction.js"
75
75
  }
76
76
  },
77
- "./query": {
78
- "import": {
79
- "types": "./dist/query.d.ts",
80
- "default": "./dist/query.js"
81
- }
82
- },
83
- "./types/common": {
84
- "import": {
85
- "types": "./dist/types/common.d.ts",
86
- "default": "./dist/types/common.js"
87
- }
88
- },
89
- "./types/push": {
77
+ "./server": {
90
78
  "import": {
91
- "types": "./dist/types/push.d.ts",
92
- "default": "./dist/types/push.js"
79
+ "types": "./dist/server.d.ts",
80
+ "default": "./dist/server.js"
93
81
  }
94
82
  },
95
83
  "./types/queries": {
@@ -98,11 +86,23 @@
98
86
  "default": "./dist/types/queries.js"
99
87
  }
100
88
  },
89
+ "./types/common": {
90
+ "import": {
91
+ "types": "./dist/types/common.d.ts",
92
+ "default": "./dist/types/common.js"
93
+ }
94
+ },
101
95
  "./types/error": {
102
96
  "import": {
103
97
  "types": "./dist/types/error.d.ts",
104
98
  "default": "./dist/types/error.js"
105
99
  }
100
+ },
101
+ "./types/push": {
102
+ "import": {
103
+ "types": "./dist/types/push.d.ts",
104
+ "default": "./dist/types/push.js"
105
+ }
106
106
  }
107
107
  }
108
108
  }
@@ -6,7 +6,7 @@ import * as Effect from "effect/Effect";
6
6
  import type { NodeInspectSymbol } from "effect/Inspectable";
7
7
  import type * as Unify from "effect/Unify";
8
8
 
9
- type _ = NodeInspectSymbol;
9
+ type _NodeInspectSymbol = NodeInspectSymbol;
10
10
  type _Unify = Unify.typeSymbol | Unify.unifySymbol | Unify.ignoreSymbol;
11
11
 
12
12
  // biome-ignore lint/suspicious/noExplicitAny: any client transaction (its Id literal is irrelevant here)
package/src/client.ts CHANGED
@@ -13,7 +13,7 @@ import type * as ClientTransaction from "./client-transaction.js";
13
13
  import { normalizeArgs } from "./internal/utils.js";
14
14
  import * as Mutators from "./mutators.js";
15
15
 
16
- type _ = NodeInspectSymbol;
16
+ type _NodeInspectSymbol = NodeInspectSymbol;
17
17
  type _Unify = Unify.typeSymbol | Unify.unifySymbol | Unify.ignoreSymbol;
18
18
 
19
19
  export const make = Effect.fn(function* <TSchema extends ZeroSchema, TMutators extends Mutators.AnyMutators>(
@@ -17,7 +17,7 @@ import { prefixId } from "./internal/utils.js";
17
17
 
18
18
  // Updated to: https://github.com/rocicorp/mono/blob/3082c9fa061891067b4bd7dc9fe74f798270d8d7/packages/zero-server/src/push-processor.ts
19
19
 
20
- type _ = NodeInspectSymbol;
20
+ type _NodeInspectSymbol = NodeInspectSymbol;
21
21
  type _Unify = Unify.typeSymbol | Unify.unifySymbol | Unify.ignoreSymbol;
22
22
 
23
23
  // biome-ignore lint/suspicious/noExplicitAny: any client transaction (its Id literal is irrelevant here)
package/src/server.ts CHANGED
@@ -28,7 +28,7 @@ import type { TransformRequestMessage } from "./types/queries.js";
28
28
  // https://github.com/rocicorp/mono/blob/3082c9fa061891067b4bd7dc9fe74f798270d8d7/packages/zero-server/src/push-processor.ts
29
29
  // https://github.com/rocicorp/mono/blob/3082c9fa061891067b4bd7dc9fe74f798270d8d7/packages/zero-server/src/process-mutations.ts
30
30
 
31
- type _ = NodeInspectSymbol;
31
+ type _NodeInspectSymbol = NodeInspectSymbol;
32
32
  type _Unify = Unify.typeSymbol | Unify.unifySymbol | Unify.ignoreSymbol;
33
33
 
34
34
  export const processPush = Effect.fn(function* <