jazz-tools 0.20.2 → 0.20.4

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > jazz-tools@0.20.2 build /home/runner/_work/jazz/jazz/packages/jazz-tools
2
+ > jazz-tools@0.20.4 build /home/runner/_work/jazz/jazz/packages/jazz-tools
3
3
  > tsup && pnpm types && pnpm build:svelte && pnpm build:better-auth-svelte
4
4
 
5
5
  CLI Building entry: {"index":"src/index.ts","testing":"src/testing.ts","tools/ssr":"src/tools/ssr/index.ts"}
@@ -109,110 +109,110 @@
109
109
  ESM Build start
110
110
  ESM dist/tiptap/index.js 564.00 B
111
111
  ESM dist/tiptap/index.js.map 1.21 KB
112
- ESM ⚡️ Build success in 32ms
112
+ ESM ⚡️ Build success in 31ms
113
113
  ESM dist/worker/edge-wasm.js 259.00 B
114
- ESM dist/worker/index.js 3.45 KB
115
114
  ESM dist/worker/napi-crypto.js 110.00 B
115
+ ESM dist/worker/index.js 3.45 KB
116
116
  ESM dist/worker/edge-wasm.js.map 505.00 B
117
- ESM dist/worker/index.js.map 6.97 KB
118
117
  ESM dist/worker/napi-crypto.js.map 162.00 B
119
- ESM ⚡️ Build success in 31ms
118
+ ESM dist/worker/index.js.map 6.97 KB
119
+ ESM ⚡️ Build success in 30ms
120
120
  ESM dist/better-auth/auth/client.js 4.54 KB
121
121
  ESM dist/better-auth/auth/server.js 8.40 KB
122
122
  ESM dist/better-auth/auth/react.js 813.00 B
123
123
  ESM dist/better-auth/auth/client.js.map 8.44 KB
124
- ESM dist/better-auth/auth/server.js.map 15.40 KB
125
124
  ESM dist/better-auth/auth/react.js.map 2.07 KB
125
+ ESM dist/better-auth/auth/server.js.map 15.40 KB
126
126
  ESM ⚡️ Build success in 30ms
127
127
  ESM dist/media/index.js 236.00 B
128
128
  ESM dist/media/index.browser.js 2.79 KB
129
- ESM dist/media/index.server.js 2.95 KB
130
129
  ESM dist/media/index.native.js 4.04 KB
130
+ ESM dist/media/index.server.js 2.95 KB
131
131
  ESM dist/media/chunk-IRL3KNPO.js 6.70 KB
132
132
  ESM dist/media/index.js.map 71.00 B
133
133
  ESM dist/media/index.browser.js.map 6.15 KB
134
- ESM dist/media/index.server.js.map 6.37 KB
135
134
  ESM dist/media/index.native.js.map 8.17 KB
136
135
  ESM dist/media/chunk-IRL3KNPO.js.map 17.00 KB
136
+ ESM dist/media/index.server.js.map 6.37 KB
137
137
  ESM ⚡️ Build success in 39ms
138
- ESM dist/expo/index.js 4.70 KB
139
- ESM dist/expo/testing.js 112.00 B
140
- ESM dist/expo/polyfills.js 858.00 B
141
- ESM dist/expo/index.js.map 10.26 KB
142
- ESM dist/expo/testing.js.map 168.00 B
143
- ESM dist/expo/polyfills.js.map 1.61 KB
144
- ESM ⚡️ Build success in 34ms
145
138
  ESM dist/react-core/index.js 17.87 KB
146
- ESM dist/react-core/testing.js 904.00 B
147
139
  ESM dist/react-core/chunk-UOYH6JFJ.js 189.00 B
140
+ ESM dist/react-core/testing.js 904.00 B
148
141
  ESM dist/react-core/index.js.map 58.59 KB
149
- ESM dist/react-core/testing.js.map 1.34 KB
150
142
  ESM dist/react-core/chunk-UOYH6JFJ.js.map 363.00 B
151
- ESM ⚡️ Build success in 51ms
143
+ ESM dist/react-core/testing.js.map 1.34 KB
144
+ ESM ⚡️ Build success in 41ms
145
+ ESM dist/expo/index.js 4.70 KB
146
+ ESM dist/expo/testing.js 112.00 B
147
+ ESM dist/expo/polyfills.js 858.00 B
148
+ ESM dist/expo/polyfills.js.map 1.61 KB
149
+ ESM dist/expo/testing.js.map 168.00 B
150
+ ESM dist/expo/index.js.map 10.26 KB
151
+ ESM ⚡️ Build success in 37ms
152
152
  ESM dist/better-auth/database-adapter/index.js 26.65 KB
153
153
  ESM dist/better-auth/database-adapter/index.js.map 58.27 KB
154
- ESM ⚡️ Build success in 46ms
154
+ ESM ⚡️ Build success in 39ms
155
155
  ESM dist/browser/index.js 15.96 KB
156
156
  ESM dist/browser/index.js.map 34.06 KB
157
- ESM ⚡️ Build success in 57ms
157
+ ESM ⚡️ Build success in 66ms
158
158
  ESM dist/react/index.js 26.02 KB
159
- ESM dist/react/ssr.js 693.00 B
160
159
  ESM dist/react/testing.js 122.00 B
160
+ ESM dist/react/ssr.js 693.00 B
161
161
  ESM dist/react/index.js.map 55.45 KB
162
162
  ESM dist/react/testing.js.map 165.00 B
163
163
  ESM dist/react/ssr.js.map 1.10 KB
164
- ESM ⚡️ Build success in 68ms
164
+ ESM ⚡️ Build success in 61ms
165
165
  ESM dist/prosemirror/index.js 77.76 KB
166
166
  ESM dist/prosemirror/index.js.map 307.20 KB
167
- ESM ⚡️ Build success in 74ms
168
- ESM dist/react-native-core/testing.js 119.00 B
167
+ ESM ⚡️ Build success in 68ms
169
168
  ESM dist/react-native-core/index.js 34.14 KB
170
- ESM dist/react-native-core/testing.js.map 175.00 B
169
+ ESM dist/react-native-core/testing.js 119.00 B
171
170
  ESM dist/react-native-core/index.js.map 68.45 KB
172
- ESM ⚡️ Build success in 74ms
173
- ESM dist/react-native/index.js 36.68 KB
171
+ ESM dist/react-native-core/testing.js.map 175.00 B
172
+ ESM ⚡️ Build success in 66ms
174
173
  ESM dist/react-native/testing.js 120.00 B
174
+ ESM dist/react-native/index.js 36.68 KB
175
175
  ESM dist/react-native/polyfills.js 858.00 B
176
- ESM dist/react-native/index.js.map 74.00 KB
177
176
  ESM dist/react-native/testing.js.map 176.00 B
178
177
  ESM dist/react-native/polyfills.js.map 1.61 KB
179
- ESM ⚡️ Build success in 77ms
178
+ ESM dist/react-native/index.js.map 74.00 KB
179
+ ESM ⚡️ Build success in 72ms
180
+ ESM dist/inspector/index.js 37.43 KB
180
181
  ESM dist/inspector/standalone.js 12.61 KB
181
- ESM dist/inspector/index.js 37.41 KB
182
182
  ESM dist/inspector/chunk-6JPVMI3V.js 130.10 KB
183
+ ESM dist/inspector/index.js.map 63.71 KB
183
184
  ESM dist/inspector/standalone.js.map 20.11 KB
184
- ESM dist/inspector/index.js.map 63.67 KB
185
185
  ESM dist/inspector/chunk-6JPVMI3V.js.map 225.43 KB
186
- ESM ⚡️ Build success in 91ms
186
+ ESM ⚡️ Build success in 88ms
187
+ ESM dist/index.js 32.17 KB
187
188
  ESM dist/testing.js 8.56 KB
189
+ ESM dist/chunk-XQ27DEA5.js 237.46 KB
188
190
  ESM dist/tools/ssr.js 156.00 B
189
191
  ESM dist/chunk-K4D7IMFM.js 690.00 B
190
192
  ESM dist/chunk-ZQWSQH6L.js 945.00 B
191
- ESM dist/index.js 32.17 KB
192
- ESM dist/chunk-Q5RNSSUM.js 237.30 KB
193
+ ESM dist/index.js.map 65.34 KB
193
194
  ESM dist/testing.js.map 16.22 KB
194
195
  ESM dist/tools/ssr.js.map 71.00 B
195
196
  ESM dist/chunk-K4D7IMFM.js.map 1.10 KB
196
197
  ESM dist/chunk-ZQWSQH6L.js.map 71.00 B
197
- ESM dist/index.js.map 65.34 KB
198
- ESM dist/chunk-Q5RNSSUM.js.map 558.08 KB
199
- ESM ⚡️ Build success in 111ms
198
+ ESM dist/chunk-XQ27DEA5.js.map 558.52 KB
199
+ ESM ⚡️ Build success in 124ms
200
200
  ESM dist/inspector/register-custom-element.js 305.00 B
201
201
  ESM dist/inspector/register-custom-element.js.map 445.00 B
202
- ESM dist/inspector/custom-element-PWRX4VCA.js 1.64 MB
203
- ESM dist/inspector/custom-element-PWRX4VCA.js.map 2.52 MB
204
- ESM ⚡️ Build success in 143ms
202
+ ESM dist/inspector/custom-element-WOQY2M4W.js 1.64 MB
203
+ ESM dist/inspector/custom-element-WOQY2M4W.js.map 2.52 MB
204
+ ESM ⚡️ Build success in 146ms
205
205
 
206
- > jazz-tools@0.20.2 types /home/runner/_work/jazz/jazz/packages/jazz-tools
206
+ > jazz-tools@0.20.4 types /home/runner/_work/jazz/jazz/packages/jazz-tools
207
207
  > tsc --outDir dist
208
208
 
209
209
 
210
- > jazz-tools@0.20.2 build:svelte /home/runner/_work/jazz/jazz/packages/jazz-tools
210
+ > jazz-tools@0.20.4 build:svelte /home/runner/_work/jazz/jazz/packages/jazz-tools
211
211
  > rm -rf dist/svelte && svelte-package -i src/svelte -o dist/svelte --tsconfig tsconfig.svelte.json
212
212
 
213
213
  src/svelte -> dist/svelte
214
214
 
215
- > jazz-tools@0.20.2 build:better-auth-svelte /home/runner/_work/jazz/jazz/packages/jazz-tools
215
+ > jazz-tools@0.20.4 build:better-auth-svelte /home/runner/_work/jazz/jazz/packages/jazz-tools
216
216
  > mkdir -p dist/better-auth/auth && svelte-package -i src/better-auth/auth -o dist/better-auth/auth-temp --tsconfig tsconfig.svelte.json && cp dist/better-auth/auth-temp/svelte.svelte dist/better-auth/auth/svelte.svelte && cp dist/better-auth/auth-temp/svelte.svelte.d.ts dist/better-auth/auth/svelte.d.ts && rm -rf dist/better-auth/auth-temp
217
217
 
218
218
  src/better-auth/auth -> dist/better-auth/auth-temp
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # jazz-tools
2
2
 
3
+ ## 0.20.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 0c749d9: Fixed infinite re-render loop when accessing unresolved nested CoValues in React hooks
8
+ - cojson@0.20.4
9
+ - cojson-storage-indexeddb@0.20.4
10
+ - cojson-transport-ws@0.20.4
11
+
12
+ ## 0.20.3
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [eca8b83]
17
+ - cojson@0.20.3
18
+ - cojson-storage-indexeddb@0.20.3
19
+ - cojson-transport-ws@0.20.3
20
+
3
21
  ## 0.20.2
4
22
 
5
23
  ### Patch Changes
@@ -28,7 +46,6 @@
28
46
  - ee19292: Removed `JazzContextManagerContext` and added error when nesting `JazzProvider` components. This prevents bad patterns like nested providers and simplifies the alternative approach of using `JazzContext.Provider` directly with `useJazzContext()`.
29
47
 
30
48
  ### Breaking changes
31
-
32
49
  - Removed `JazzContextManagerContext` export from `jazz-tools/react-core`
33
50
  - Renamed `useJazzContext` to `useJazzContextValue` (returns the context value)
34
51
  - `useJazzContext` now returns the context manager instead of the context value
@@ -61,7 +78,6 @@
61
78
  ## 💥 Breaking changes
62
79
 
63
80
  ### Crypto providers / fallback behavior
64
-
65
81
  - **Removed `PureJSCrypto`** from `cojson` (including the `cojson/crypto/PureJSCrypto` export).
66
82
  - **Removed `RNQuickCrypto`** from `jazz-tools`.
67
83
  - **No more fallback to JavaScript crypto**: if crypto fails to initialize, Jazz now throws an error instead of falling back silently.
@@ -72,7 +88,6 @@
72
88
  ### Patch Changes
73
89
 
74
90
  - 6b9368a: Added `deleteCoValues` function to permanently delete CoValues and their nested references.
75
-
76
91
  - CoValues are marked with a tombstone, making them inaccessible to all users
77
92
  - Supports deleting nested CoValues via resolve queries
78
93
  - Requires admin permissions on the CoValue's group
@@ -567,7 +582,6 @@
567
582
  ### Patch Changes
568
583
 
569
584
  - f2f478a: Add connection status API for React and Svelte
570
-
571
585
  - **React**: Added `useSyncConnectionStatus()` hook that returns the current connection status to the Jazz sync server
572
586
  - **Svelte**: Added `SyncConnectionStatus` class that provides reactive connection status monitoring
573
587
 
@@ -603,7 +617,6 @@
603
617
  ### Patch Changes
604
618
 
605
619
  - a584ab3: Add WasmCrypto support for Cloudflare Workers and edge runtimes by importing `jazz-tools/load-edge-wasm`.
606
-
607
620
  - Enable WasmCrypto functionality by initializing the WebAssembly environment with the import: `import "jazz-tools/load-edge-wasm"` in edge runtimes.
608
621
  - Guarantee compatibility across Cloudflare Workers and other edge runtime environments.
609
622
 
@@ -987,7 +1000,6 @@
987
1000
  - 3cd1586: Makes the key rotation not fail when child groups are unavailable or their readkey is not accessible.
988
1001
 
989
1002
  Also changes the Group.removeMember method to not return a Promise, because:
990
-
991
1003
  - All the locally available child groups are rotated immediately
992
1004
  - All the remote child groups are rotated in background, but since they are not locally available the user won't need the new key immediately
993
1005
 
@@ -7145,6 +7145,12 @@ var InMemoryKVStore = class {
7145
7145
  };
7146
7146
 
7147
7147
  // src/tools/subscribe/SubscriptionCache.ts
7148
+ function copyResolve(resolve) {
7149
+ if (typeof resolve !== "object" || resolve === null) {
7150
+ return resolve;
7151
+ }
7152
+ return { ...resolve };
7153
+ }
7148
7154
  var SubscriptionCache = class {
7149
7155
  constructor(cleanupTimeout = 5e3) {
7150
7156
  this.cache = /* @__PURE__ */ new Map();
@@ -7286,7 +7292,7 @@ var SubscriptionCache = class {
7286
7292
  const entry = {
7287
7293
  subscriptionScope,
7288
7294
  schema,
7289
- resolve,
7295
+ resolve: copyResolve(resolve),
7290
7296
  branch,
7291
7297
  subscriberCount: subscriptionScope.subscribers.size,
7292
7298
  unsubscribeFromScope: subscriptionScope.onSubscriberChange(
@@ -8184,4 +8190,4 @@ export {
8184
8190
  JazzContextManager
8185
8191
  };
8186
8192
  /* istanbul ignore file -- @preserve */
8187
- //# sourceMappingURL=chunk-Q5RNSSUM.js.map
8193
+ //# sourceMappingURL=chunk-XQ27DEA5.js.map