jazz-tools 0.20.1 → 0.20.2
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/.turbo/turbo-build.log +48 -48
- package/CHANGELOG.md +10 -0
- package/dist/{chunk-2OPP7KWV.js → chunk-Q5RNSSUM.js} +121 -22
- package/dist/chunk-Q5RNSSUM.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/inspector/{chunk-MCTB5ZJC.js → chunk-6JPVMI3V.js} +302 -182
- package/dist/inspector/chunk-6JPVMI3V.js.map +1 -0
- package/dist/inspector/{custom-element-5YWVZBWA.js → custom-element-PWRX4VCA.js} +1337 -206
- package/dist/inspector/custom-element-PWRX4VCA.js.map +1 -0
- package/dist/inspector/in-app.d.ts +1 -0
- package/dist/inspector/in-app.d.ts.map +1 -1
- package/dist/inspector/index.d.ts +1 -0
- package/dist/inspector/index.d.ts.map +1 -1
- package/dist/inspector/index.js +1044 -17
- package/dist/inspector/index.js.map +1 -1
- package/dist/inspector/pages/home.d.ts +4 -1
- package/dist/inspector/pages/home.d.ts.map +1 -1
- package/dist/inspector/pages/performance/PerformancePage.d.ts +7 -0
- package/dist/inspector/pages/performance/PerformancePage.d.ts.map +1 -0
- package/dist/inspector/pages/performance/SubscriptionDetailPanel.d.ts +8 -0
- package/dist/inspector/pages/performance/SubscriptionDetailPanel.d.ts.map +1 -0
- package/dist/inspector/pages/performance/SubscriptionRow.d.ts +11 -0
- package/dist/inspector/pages/performance/SubscriptionRow.d.ts.map +1 -0
- package/dist/inspector/pages/performance/Timeline.d.ts +12 -0
- package/dist/inspector/pages/performance/Timeline.d.ts.map +1 -0
- package/dist/inspector/pages/performance/helpers.d.ts +5 -0
- package/dist/inspector/pages/performance/helpers.d.ts.map +1 -0
- package/dist/inspector/pages/performance/index.d.ts +3 -0
- package/dist/inspector/pages/performance/index.d.ts.map +1 -0
- package/dist/inspector/pages/performance/types.d.ts +13 -0
- package/dist/inspector/pages/performance/types.d.ts.map +1 -0
- package/dist/inspector/pages/performance/usePerformanceEntries.d.ts +3 -0
- package/dist/inspector/pages/performance/usePerformanceEntries.d.ts.map +1 -0
- package/dist/inspector/register-custom-element.js +3 -1
- package/dist/inspector/register-custom-element.js.map +1 -1
- package/dist/inspector/standalone.js +1 -1
- package/dist/inspector/tests/pages/performance/PerformancePage.test.d.ts +2 -0
- package/dist/inspector/tests/pages/performance/PerformancePage.test.d.ts.map +1 -0
- package/dist/inspector/tests/pages/performance/SubscriptionDetailPanel.test.d.ts +2 -0
- package/dist/inspector/tests/pages/performance/SubscriptionDetailPanel.test.d.ts.map +1 -0
- package/dist/inspector/tests/pages/performance/SubscriptionRow.test.d.ts +2 -0
- package/dist/inspector/tests/pages/performance/SubscriptionRow.test.d.ts.map +1 -0
- package/dist/inspector/tests/pages/performance/Timeline.test.d.ts +2 -0
- package/dist/inspector/tests/pages/performance/Timeline.test.d.ts.map +1 -0
- package/dist/inspector/tests/pages/performance/helpers.test.d.ts +2 -0
- package/dist/inspector/tests/pages/performance/helpers.test.d.ts.map +1 -0
- package/dist/inspector/viewer/delete-local-data.d.ts.map +1 -1
- package/dist/inspector/viewer/header.d.ts +4 -2
- package/dist/inspector/viewer/header.d.ts.map +1 -1
- package/dist/inspector/viewer/page-stack.d.ts +3 -1
- package/dist/inspector/viewer/page-stack.d.ts.map +1 -1
- package/dist/react-core/hooks.d.ts +2 -2
- package/dist/react-core/hooks.d.ts.map +1 -1
- package/dist/react-core/index.js +50 -18
- package/dist/react-core/index.js.map +1 -1
- package/dist/react-core/subscription-provider.d.ts.map +1 -1
- package/dist/react-native-core/media/image.d.ts +1 -1
- package/dist/svelte/jazz.class.svelte.d.ts.map +1 -1
- package/dist/svelte/jazz.class.svelte.js +27 -22
- package/dist/testing.js +1 -1
- package/dist/tools/coValues/interfaces.d.ts.map +1 -1
- package/dist/tools/exports.d.ts +1 -1
- package/dist/tools/exports.d.ts.map +1 -1
- package/dist/tools/implementation/zodSchema/runtimeConverters/coValueSchemaTransformation.d.ts.map +1 -1
- package/dist/tools/subscribe/SubscriptionCache.d.ts +2 -2
- package/dist/tools/subscribe/SubscriptionCache.d.ts.map +1 -1
- package/dist/tools/subscribe/SubscriptionScope.d.ts +19 -12
- package/dist/tools/subscribe/SubscriptionScope.d.ts.map +1 -1
- package/dist/tools/subscribe/errorReporting.d.ts +6 -0
- package/dist/tools/subscribe/errorReporting.d.ts.map +1 -1
- package/dist/tools/subscribe/index.d.ts +4 -4
- package/dist/tools/subscribe/index.d.ts.map +1 -1
- package/dist/tools/subscribe/types.d.ts +48 -3
- package/dist/tools/subscribe/types.d.ts.map +1 -1
- package/dist/tools/subscribe/utils.d.ts +1 -1
- package/dist/tools/subscribe/utils.d.ts.map +1 -1
- package/dist/tools/tests/SubscriptionScope.performance.test.d.ts +2 -0
- package/dist/tools/tests/SubscriptionScope.performance.test.d.ts.map +1 -0
- package/package.json +4 -4
- package/src/inspector/in-app.tsx +41 -3
- package/src/inspector/index.tsx +5 -1
- package/src/inspector/pages/home.tsx +26 -3
- package/src/inspector/pages/performance/PerformancePage.tsx +215 -0
- package/src/inspector/pages/performance/SubscriptionDetailPanel.tsx +182 -0
- package/src/inspector/pages/performance/SubscriptionRow.tsx +242 -0
- package/src/inspector/pages/performance/Timeline.tsx +513 -0
- package/src/inspector/pages/performance/helpers.ts +70 -0
- package/src/inspector/pages/performance/index.ts +2 -0
- package/src/inspector/pages/performance/types.ts +12 -0
- package/src/inspector/pages/performance/usePerformanceEntries.ts +53 -0
- package/src/inspector/register-custom-element.ts +3 -0
- package/src/inspector/tests/pages/performance/PerformancePage.test.tsx +83 -0
- package/src/inspector/tests/pages/performance/SubscriptionDetailPanel.test.tsx +68 -0
- package/src/inspector/tests/pages/performance/SubscriptionRow.test.tsx +93 -0
- package/src/inspector/tests/pages/performance/Timeline.test.tsx +57 -0
- package/src/inspector/tests/pages/performance/helpers.test.ts +91 -0
- package/src/inspector/viewer/delete-local-data.tsx +24 -5
- package/src/inspector/viewer/header.tsx +96 -17
- package/src/inspector/viewer/page-stack.tsx +22 -18
- package/src/react-core/hooks.ts +34 -4
- package/src/react-core/subscription-provider.tsx +17 -8
- package/src/svelte/jazz.class.svelte.ts +51 -33
- package/src/tools/coValues/interfaces.ts +3 -0
- package/src/tools/exports.ts +1 -0
- package/src/tools/implementation/zodSchema/runtimeConverters/coValueSchemaTransformation.ts +13 -0
- package/src/tools/subscribe/SubscriptionCache.ts +6 -4
- package/src/tools/subscribe/SubscriptionScope.ts +141 -23
- package/src/tools/subscribe/errorReporting.ts +1 -1
- package/src/tools/subscribe/index.ts +1 -1
- package/src/tools/subscribe/types.ts +62 -9
- package/src/tools/subscribe/utils.ts +2 -2
- package/src/tools/tests/SubscriptionScope.performance.test.ts +149 -0
- package/dist/chunk-2OPP7KWV.js.map +0 -1
- package/dist/inspector/chunk-MCTB5ZJC.js.map +0 -1
- package/dist/inspector/custom-element-5YWVZBWA.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> jazz-tools@0.20.
|
|
2
|
+
> jazz-tools@0.20.2 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
|
[34mCLI[39m Building entry: {"index":"src/index.ts","testing":"src/testing.ts","tools/ssr":"src/tools/ssr/index.ts"}
|
|
@@ -107,32 +107,32 @@
|
|
|
107
107
|
[34mESM[39m Build start
|
|
108
108
|
[34mCLI[39m Cleaning output folder
|
|
109
109
|
[34mESM[39m Build start
|
|
110
|
-
[32mESM[39m [1mdist/better-auth/auth/client.js [22m[32m4.54 KB[39m
|
|
111
|
-
[32mESM[39m [1mdist/better-auth/auth/server.js [22m[32m8.40 KB[39m
|
|
112
|
-
[32mESM[39m [1mdist/better-auth/auth/react.js [22m[32m813.00 B[39m
|
|
113
|
-
[32mESM[39m [1mdist/better-auth/auth/client.js.map [22m[32m8.44 KB[39m
|
|
114
|
-
[32mESM[39m [1mdist/better-auth/auth/server.js.map [22m[32m15.40 KB[39m
|
|
115
|
-
[32mESM[39m [1mdist/better-auth/auth/react.js.map [22m[32m2.07 KB[39m
|
|
116
|
-
[32mESM[39m ⚡️ Build success in 24ms
|
|
117
110
|
[32mESM[39m [1mdist/tiptap/index.js [22m[32m564.00 B[39m
|
|
118
111
|
[32mESM[39m [1mdist/tiptap/index.js.map [22m[32m1.21 KB[39m
|
|
119
112
|
[32mESM[39m ⚡️ Build success in 32ms
|
|
120
|
-
[32mESM[39m [1mdist/worker/index.js [22m[32m3.45 KB[39m
|
|
121
113
|
[32mESM[39m [1mdist/worker/edge-wasm.js [22m[32m259.00 B[39m
|
|
114
|
+
[32mESM[39m [1mdist/worker/index.js [22m[32m3.45 KB[39m
|
|
122
115
|
[32mESM[39m [1mdist/worker/napi-crypto.js [22m[32m110.00 B[39m
|
|
123
|
-
[32mESM[39m [1mdist/worker/index.js.map [22m[32m6.97 KB[39m
|
|
124
116
|
[32mESM[39m [1mdist/worker/edge-wasm.js.map [22m[32m505.00 B[39m
|
|
117
|
+
[32mESM[39m [1mdist/worker/index.js.map [22m[32m6.97 KB[39m
|
|
125
118
|
[32mESM[39m [1mdist/worker/napi-crypto.js.map [22m[32m162.00 B[39m
|
|
126
|
-
[32mESM[39m ⚡️ Build success in
|
|
119
|
+
[32mESM[39m ⚡️ Build success in 31ms
|
|
120
|
+
[32mESM[39m [1mdist/better-auth/auth/client.js [22m[32m4.54 KB[39m
|
|
121
|
+
[32mESM[39m [1mdist/better-auth/auth/server.js [22m[32m8.40 KB[39m
|
|
122
|
+
[32mESM[39m [1mdist/better-auth/auth/react.js [22m[32m813.00 B[39m
|
|
123
|
+
[32mESM[39m [1mdist/better-auth/auth/client.js.map [22m[32m8.44 KB[39m
|
|
124
|
+
[32mESM[39m [1mdist/better-auth/auth/server.js.map [22m[32m15.40 KB[39m
|
|
125
|
+
[32mESM[39m [1mdist/better-auth/auth/react.js.map [22m[32m2.07 KB[39m
|
|
126
|
+
[32mESM[39m ⚡️ Build success in 30ms
|
|
127
127
|
[32mESM[39m [1mdist/media/index.js [22m[32m236.00 B[39m
|
|
128
128
|
[32mESM[39m [1mdist/media/index.browser.js [22m[32m2.79 KB[39m
|
|
129
|
-
[32mESM[39m [1mdist/media/index.native.js [22m[32m4.04 KB[39m
|
|
130
129
|
[32mESM[39m [1mdist/media/index.server.js [22m[32m2.95 KB[39m
|
|
130
|
+
[32mESM[39m [1mdist/media/index.native.js [22m[32m4.04 KB[39m
|
|
131
131
|
[32mESM[39m [1mdist/media/chunk-IRL3KNPO.js [22m[32m6.70 KB[39m
|
|
132
132
|
[32mESM[39m [1mdist/media/index.js.map [22m[32m71.00 B[39m
|
|
133
133
|
[32mESM[39m [1mdist/media/index.browser.js.map [22m[32m6.15 KB[39m
|
|
134
|
-
[32mESM[39m [1mdist/media/index.native.js.map [22m[32m8.17 KB[39m
|
|
135
134
|
[32mESM[39m [1mdist/media/index.server.js.map [22m[32m6.37 KB[39m
|
|
135
|
+
[32mESM[39m [1mdist/media/index.native.js.map [22m[32m8.17 KB[39m
|
|
136
136
|
[32mESM[39m [1mdist/media/chunk-IRL3KNPO.js.map [22m[32m17.00 KB[39m
|
|
137
137
|
[32mESM[39m ⚡️ Build success in 39ms
|
|
138
138
|
[32mESM[39m [1mdist/expo/index.js [22m[32m4.70 KB[39m
|
|
@@ -141,78 +141,78 @@
|
|
|
141
141
|
[32mESM[39m [1mdist/expo/index.js.map [22m[32m10.26 KB[39m
|
|
142
142
|
[32mESM[39m [1mdist/expo/testing.js.map [22m[32m168.00 B[39m
|
|
143
143
|
[32mESM[39m [1mdist/expo/polyfills.js.map [22m[32m1.61 KB[39m
|
|
144
|
-
[32mESM[39m ⚡️ Build success in
|
|
145
|
-
[32mESM[39m [1mdist/react-core/index.js [22m[32m17.
|
|
144
|
+
[32mESM[39m ⚡️ Build success in 34ms
|
|
145
|
+
[32mESM[39m [1mdist/react-core/index.js [22m[32m17.87 KB[39m
|
|
146
146
|
[32mESM[39m [1mdist/react-core/testing.js [22m[32m904.00 B[39m
|
|
147
147
|
[32mESM[39m [1mdist/react-core/chunk-UOYH6JFJ.js [22m[32m189.00 B[39m
|
|
148
|
-
[32mESM[39m [1mdist/react-core/index.js.map [22m[
|
|
148
|
+
[32mESM[39m [1mdist/react-core/index.js.map [22m[32m58.59 KB[39m
|
|
149
149
|
[32mESM[39m [1mdist/react-core/testing.js.map [22m[32m1.34 KB[39m
|
|
150
150
|
[32mESM[39m [1mdist/react-core/chunk-UOYH6JFJ.js.map [22m[32m363.00 B[39m
|
|
151
|
-
[32mESM[39m ⚡️ Build success in
|
|
152
|
-
[32mESM[39m [1mdist/prosemirror/index.js [22m[32m77.76 KB[39m
|
|
153
|
-
[32mESM[39m [1mdist/prosemirror/index.js.map [22m[32m307.20 KB[39m
|
|
154
|
-
[32mESM[39m ⚡️ Build success in 57ms
|
|
151
|
+
[32mESM[39m ⚡️ Build success in 51ms
|
|
155
152
|
[32mESM[39m [1mdist/better-auth/database-adapter/index.js [22m[32m26.65 KB[39m
|
|
156
153
|
[32mESM[39m [1mdist/better-auth/database-adapter/index.js.map [22m[32m58.27 KB[39m
|
|
157
|
-
[32mESM[39m ⚡️ Build success in
|
|
154
|
+
[32mESM[39m ⚡️ Build success in 46ms
|
|
158
155
|
[32mESM[39m [1mdist/browser/index.js [22m[32m15.96 KB[39m
|
|
159
156
|
[32mESM[39m [1mdist/browser/index.js.map [22m[32m34.06 KB[39m
|
|
160
|
-
[32mESM[39m ⚡️ Build success in
|
|
161
|
-
[32mESM[39m [1mdist/react-native-core/index.js [22m[32m34.14 KB[39m
|
|
162
|
-
[32mESM[39m [1mdist/react-native-core/testing.js [22m[32m119.00 B[39m
|
|
163
|
-
[32mESM[39m [1mdist/react-native-core/index.js.map [22m[32m68.45 KB[39m
|
|
164
|
-
[32mESM[39m [1mdist/react-native-core/testing.js.map [22m[32m175.00 B[39m
|
|
165
|
-
[32mESM[39m ⚡️ Build success in 63ms
|
|
157
|
+
[32mESM[39m ⚡️ Build success in 57ms
|
|
166
158
|
[32mESM[39m [1mdist/react/index.js [22m[32m26.02 KB[39m
|
|
167
|
-
[32mESM[39m [1mdist/react/testing.js [22m[32m122.00 B[39m
|
|
168
159
|
[32mESM[39m [1mdist/react/ssr.js [22m[32m693.00 B[39m
|
|
160
|
+
[32mESM[39m [1mdist/react/testing.js [22m[32m122.00 B[39m
|
|
169
161
|
[32mESM[39m [1mdist/react/index.js.map [22m[32m55.45 KB[39m
|
|
170
162
|
[32mESM[39m [1mdist/react/testing.js.map [22m[32m165.00 B[39m
|
|
171
163
|
[32mESM[39m [1mdist/react/ssr.js.map [22m[32m1.10 KB[39m
|
|
172
|
-
[32mESM[39m ⚡️ Build success in
|
|
164
|
+
[32mESM[39m ⚡️ Build success in 68ms
|
|
165
|
+
[32mESM[39m [1mdist/prosemirror/index.js [22m[32m77.76 KB[39m
|
|
166
|
+
[32mESM[39m [1mdist/prosemirror/index.js.map [22m[32m307.20 KB[39m
|
|
167
|
+
[32mESM[39m ⚡️ Build success in 74ms
|
|
168
|
+
[32mESM[39m [1mdist/react-native-core/testing.js [22m[32m119.00 B[39m
|
|
169
|
+
[32mESM[39m [1mdist/react-native-core/index.js [22m[32m34.14 KB[39m
|
|
170
|
+
[32mESM[39m [1mdist/react-native-core/testing.js.map [22m[32m175.00 B[39m
|
|
171
|
+
[32mESM[39m [1mdist/react-native-core/index.js.map [22m[32m68.45 KB[39m
|
|
172
|
+
[32mESM[39m ⚡️ Build success in 74ms
|
|
173
173
|
[32mESM[39m [1mdist/react-native/index.js [22m[32m36.68 KB[39m
|
|
174
174
|
[32mESM[39m [1mdist/react-native/testing.js [22m[32m120.00 B[39m
|
|
175
175
|
[32mESM[39m [1mdist/react-native/polyfills.js [22m[32m858.00 B[39m
|
|
176
176
|
[32mESM[39m [1mdist/react-native/index.js.map [22m[32m74.00 KB[39m
|
|
177
177
|
[32mESM[39m [1mdist/react-native/testing.js.map [22m[32m176.00 B[39m
|
|
178
178
|
[32mESM[39m [1mdist/react-native/polyfills.js.map [22m[32m1.61 KB[39m
|
|
179
|
-
[32mESM[39m ⚡️ Build success in
|
|
180
|
-
[32mESM[39m [1mdist/inspector/index.js [22m[32m6.30 KB[39m
|
|
179
|
+
[32mESM[39m ⚡️ Build success in 77ms
|
|
181
180
|
[32mESM[39m [1mdist/inspector/standalone.js [22m[32m12.61 KB[39m
|
|
182
|
-
[32mESM[39m [1mdist/inspector/
|
|
183
|
-
[32mESM[39m [1mdist/inspector/
|
|
181
|
+
[32mESM[39m [1mdist/inspector/index.js [22m[32m37.41 KB[39m
|
|
182
|
+
[32mESM[39m [1mdist/inspector/chunk-6JPVMI3V.js [22m[32m130.10 KB[39m
|
|
184
183
|
[32mESM[39m [1mdist/inspector/standalone.js.map [22m[32m20.11 KB[39m
|
|
185
|
-
[32mESM[39m [1mdist/inspector/
|
|
186
|
-
[32mESM[39m
|
|
187
|
-
[32mESM[39m
|
|
184
|
+
[32mESM[39m [1mdist/inspector/index.js.map [22m[32m63.67 KB[39m
|
|
185
|
+
[32mESM[39m [1mdist/inspector/chunk-6JPVMI3V.js.map [22m[32m225.43 KB[39m
|
|
186
|
+
[32mESM[39m ⚡️ Build success in 91ms
|
|
188
187
|
[32mESM[39m [1mdist/testing.js [22m[32m8.56 KB[39m
|
|
189
|
-
[32mESM[39m [1mdist/chunk-2OPP7KWV.js [22m[32m234.52 KB[39m
|
|
190
188
|
[32mESM[39m [1mdist/tools/ssr.js [22m[32m156.00 B[39m
|
|
191
189
|
[32mESM[39m [1mdist/chunk-K4D7IMFM.js [22m[32m690.00 B[39m
|
|
192
190
|
[32mESM[39m [1mdist/chunk-ZQWSQH6L.js [22m[32m945.00 B[39m
|
|
193
|
-
[32mESM[39m [1mdist/index.js
|
|
191
|
+
[32mESM[39m [1mdist/index.js [22m[32m32.17 KB[39m
|
|
192
|
+
[32mESM[39m [1mdist/chunk-Q5RNSSUM.js [22m[32m237.30 KB[39m
|
|
194
193
|
[32mESM[39m [1mdist/testing.js.map [22m[32m16.22 KB[39m
|
|
195
194
|
[32mESM[39m [1mdist/tools/ssr.js.map [22m[32m71.00 B[39m
|
|
196
195
|
[32mESM[39m [1mdist/chunk-K4D7IMFM.js.map [22m[32m1.10 KB[39m
|
|
197
196
|
[32mESM[39m [1mdist/chunk-ZQWSQH6L.js.map [22m[32m71.00 B[39m
|
|
198
|
-
[32mESM[39m [1mdist/
|
|
199
|
-
[32mESM[39m
|
|
200
|
-
[32mESM[39m
|
|
201
|
-
[32mESM[39m [1mdist/inspector/custom-element
|
|
202
|
-
[32mESM[39m [1mdist/inspector/register-custom-element.js.map [22m[
|
|
203
|
-
[32mESM[39m [1mdist/inspector/custom-element-
|
|
204
|
-
[32mESM[39m
|
|
197
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m65.34 KB[39m
|
|
198
|
+
[32mESM[39m [1mdist/chunk-Q5RNSSUM.js.map [22m[32m558.08 KB[39m
|
|
199
|
+
[32mESM[39m ⚡️ Build success in 111ms
|
|
200
|
+
[32mESM[39m [1mdist/inspector/register-custom-element.js [22m[32m305.00 B[39m
|
|
201
|
+
[32mESM[39m [1mdist/inspector/register-custom-element.js.map [22m[32m445.00 B[39m
|
|
202
|
+
[32mESM[39m [1mdist/inspector/custom-element-PWRX4VCA.js [22m[32m1.64 MB[39m
|
|
203
|
+
[32mESM[39m [1mdist/inspector/custom-element-PWRX4VCA.js.map [22m[32m2.52 MB[39m
|
|
204
|
+
[32mESM[39m ⚡️ Build success in 143ms
|
|
205
205
|
|
|
206
|
-
> jazz-tools@0.20.
|
|
206
|
+
> jazz-tools@0.20.2 types /home/runner/_work/jazz/jazz/packages/jazz-tools
|
|
207
207
|
> tsc --outDir dist
|
|
208
208
|
|
|
209
209
|
|
|
210
|
-
> jazz-tools@0.20.
|
|
210
|
+
> jazz-tools@0.20.2 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.
|
|
215
|
+
> jazz-tools@0.20.2 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,15 @@
|
|
|
1
1
|
# jazz-tools
|
|
2
2
|
|
|
3
|
+
## 0.20.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2df568f: Added a Performance tab in the Jazz tools inspector
|
|
8
|
+
- Updated dependencies [251a89e]
|
|
9
|
+
- cojson@0.20.2
|
|
10
|
+
- cojson-storage-indexeddb@0.20.2
|
|
11
|
+
- cojson-transport-ws@0.20.2
|
|
12
|
+
|
|
3
13
|
## 0.20.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -2413,17 +2413,17 @@ var _Account = class _Account extends CoValueBase {
|
|
|
2413
2413
|
* @deprecated Use `co.account(...).createAs` instead.
|
|
2414
2414
|
*/
|
|
2415
2415
|
static async createAs(worker, options) {
|
|
2416
|
-
const
|
|
2416
|
+
const crypto2 = worker.$jazz.localNode.crypto;
|
|
2417
2417
|
const connectedPeers = cojsonInternals2.connectedPeers(
|
|
2418
2418
|
"creatingAccount",
|
|
2419
|
-
|
|
2419
|
+
crypto2.uniquenessForHeader(),
|
|
2420
2420
|
// Use a unique id for the client peer, so we don't have clashes in the worker node
|
|
2421
2421
|
{ peer1role: "server", peer2role: "client" }
|
|
2422
2422
|
);
|
|
2423
2423
|
worker.$jazz.localNode.syncManager.addPeer(connectedPeers[1]);
|
|
2424
2424
|
const account = await this.create({
|
|
2425
2425
|
creationProps: options.creationProps,
|
|
2426
|
-
crypto,
|
|
2426
|
+
crypto: crypto2,
|
|
2427
2427
|
peers: [connectedPeers[0]]
|
|
2428
2428
|
});
|
|
2429
2429
|
const credentials = {
|
|
@@ -4332,7 +4332,7 @@ function isEqualRefsToResolve(a, b) {
|
|
|
4332
4332
|
}
|
|
4333
4333
|
|
|
4334
4334
|
// src/tools/subscribe/SubscriptionScope.ts
|
|
4335
|
-
var
|
|
4335
|
+
var _SubscriptionScope = class _SubscriptionScope {
|
|
4336
4336
|
constructor(node, resolve, id, schema, skipRetry = false, bestEffortResolution = false, unstable_branch, callerStack) {
|
|
4337
4337
|
this.node = node;
|
|
4338
4338
|
this.id = id;
|
|
@@ -4396,6 +4396,93 @@ var SubscriptionScope = class _SubscriptionScope {
|
|
|
4396
4396
|
this.unstable_branch
|
|
4397
4397
|
);
|
|
4398
4398
|
}
|
|
4399
|
+
static setProfilingEnabled(enabled) {
|
|
4400
|
+
this.isProfilingEnabled = enabled;
|
|
4401
|
+
}
|
|
4402
|
+
static enableProfiling() {
|
|
4403
|
+
this.isProfilingEnabled = true;
|
|
4404
|
+
}
|
|
4405
|
+
trackLoadingPerformance(source) {
|
|
4406
|
+
if (!_SubscriptionScope.isProfilingEnabled) {
|
|
4407
|
+
return;
|
|
4408
|
+
}
|
|
4409
|
+
if (this.performanceUuid) {
|
|
4410
|
+
return;
|
|
4411
|
+
}
|
|
4412
|
+
const currentState = this.getCurrentRawValue();
|
|
4413
|
+
this.performanceUuid = crypto.randomUUID();
|
|
4414
|
+
this.performanceSource = source;
|
|
4415
|
+
const detail = {
|
|
4416
|
+
type: "jazz-subscription",
|
|
4417
|
+
uuid: this.performanceUuid,
|
|
4418
|
+
id: this.id,
|
|
4419
|
+
source,
|
|
4420
|
+
resolve: this.resolve,
|
|
4421
|
+
status: "pending",
|
|
4422
|
+
startTime: performance.now(),
|
|
4423
|
+
callerStack: this.callerStack?.stack
|
|
4424
|
+
};
|
|
4425
|
+
performance.mark(`jazz.subscription.start:${this.performanceUuid}`, {
|
|
4426
|
+
detail
|
|
4427
|
+
});
|
|
4428
|
+
if (currentState !== CoValueLoadingState.LOADING) {
|
|
4429
|
+
this.emitLoadingComplete(currentState);
|
|
4430
|
+
return;
|
|
4431
|
+
}
|
|
4432
|
+
const unsubscribe = this.subscribe(() => {
|
|
4433
|
+
const rawValue = this.getCurrentRawValue();
|
|
4434
|
+
if (rawValue === CoValueLoadingState.LOADING) {
|
|
4435
|
+
return;
|
|
4436
|
+
}
|
|
4437
|
+
this.emitLoadingComplete(rawValue);
|
|
4438
|
+
unsubscribe();
|
|
4439
|
+
});
|
|
4440
|
+
}
|
|
4441
|
+
emitLoadingComplete(rawValue) {
|
|
4442
|
+
if (!this.performanceUuid) return;
|
|
4443
|
+
const isError = typeof rawValue === "string";
|
|
4444
|
+
const endTime = performance.now();
|
|
4445
|
+
let errorType;
|
|
4446
|
+
if (isError) {
|
|
4447
|
+
if (rawValue === CoValueLoadingState.UNAVAILABLE || rawValue === CoValueLoadingState.UNAUTHORIZED || rawValue === CoValueLoadingState.DELETED) {
|
|
4448
|
+
errorType = rawValue;
|
|
4449
|
+
}
|
|
4450
|
+
}
|
|
4451
|
+
const detail = {
|
|
4452
|
+
type: "jazz-subscription",
|
|
4453
|
+
uuid: this.performanceUuid,
|
|
4454
|
+
id: this.id,
|
|
4455
|
+
source: this.performanceSource ?? "unknown",
|
|
4456
|
+
resolve: this.resolve,
|
|
4457
|
+
status: isError ? "error" : "loaded",
|
|
4458
|
+
startTime: 0,
|
|
4459
|
+
// Will be calculated from measure
|
|
4460
|
+
endTime,
|
|
4461
|
+
errorType,
|
|
4462
|
+
devtools: {
|
|
4463
|
+
track: "Jazz \u{1F3B6}",
|
|
4464
|
+
properties: [
|
|
4465
|
+
["id", this.id],
|
|
4466
|
+
["source", this.performanceSource ?? "unknown"]
|
|
4467
|
+
],
|
|
4468
|
+
tooltipText: this.getCreationStackLines(false)
|
|
4469
|
+
}
|
|
4470
|
+
};
|
|
4471
|
+
performance.mark(`jazz.subscription.end:${this.performanceUuid}`, {
|
|
4472
|
+
detail
|
|
4473
|
+
});
|
|
4474
|
+
try {
|
|
4475
|
+
performance.measure(
|
|
4476
|
+
`${detail.source}(${this.id}, ${JSON.stringify(this.resolve)})`,
|
|
4477
|
+
{
|
|
4478
|
+
start: `jazz.subscription.start:${this.performanceUuid}`,
|
|
4479
|
+
end: `jazz.subscription.end:${this.performanceUuid}`,
|
|
4480
|
+
detail
|
|
4481
|
+
}
|
|
4482
|
+
);
|
|
4483
|
+
} catch {
|
|
4484
|
+
}
|
|
4485
|
+
}
|
|
4399
4486
|
updateValue(value) {
|
|
4400
4487
|
this.value = value;
|
|
4401
4488
|
this.dirty = true;
|
|
@@ -4627,7 +4714,7 @@ var SubscriptionScope = class _SubscriptionScope {
|
|
|
4627
4714
|
}
|
|
4628
4715
|
return CoValueLoadingState.LOADING;
|
|
4629
4716
|
}
|
|
4630
|
-
getCreationStackLines() {
|
|
4717
|
+
getCreationStackLines(fullFrame = true) {
|
|
4631
4718
|
const stack = this.callerStack?.stack;
|
|
4632
4719
|
if (!stack) {
|
|
4633
4720
|
return "";
|
|
@@ -4640,6 +4727,9 @@ var SubscriptionScope = class _SubscriptionScope {
|
|
|
4640
4727
|
if (creationAppFrame) {
|
|
4641
4728
|
result += "Subscription created ", result += creationAppFrame.trim();
|
|
4642
4729
|
}
|
|
4730
|
+
if (!fullFrame) {
|
|
4731
|
+
return result;
|
|
4732
|
+
}
|
|
4643
4733
|
result += "\nFull subscription creation stack:";
|
|
4644
4734
|
for (const line of creationStackLines.slice(0, 8)) {
|
|
4645
4735
|
result += "\n " + line.trim();
|
|
@@ -4994,6 +5084,8 @@ var SubscriptionScope = class _SubscriptionScope {
|
|
|
4994
5084
|
this.childNodes.forEach((child) => child.destroy());
|
|
4995
5085
|
}
|
|
4996
5086
|
};
|
|
5087
|
+
_SubscriptionScope.isProfilingEnabled = isDev;
|
|
5088
|
+
var SubscriptionScope = _SubscriptionScope;
|
|
4997
5089
|
function hasAccessToCoValue(rawCoValue) {
|
|
4998
5090
|
const ruleset = rawCoValue.core.verified.header.ruleset;
|
|
4999
5091
|
return ruleset.type !== "ownedByGroup" || myRoleForRawValue(rawCoValue) !== void 0;
|
|
@@ -5060,9 +5152,9 @@ import {
|
|
|
5060
5152
|
LocalNode as LocalNode5
|
|
5061
5153
|
} from "cojson";
|
|
5062
5154
|
var MockSessionProvider = class {
|
|
5063
|
-
async acquireSession(accountID,
|
|
5155
|
+
async acquireSession(accountID, crypto2) {
|
|
5064
5156
|
return {
|
|
5065
|
-
sessionID:
|
|
5157
|
+
sessionID: crypto2.newRandomSessionID(
|
|
5066
5158
|
accountID
|
|
5067
5159
|
),
|
|
5068
5160
|
sessionDone: () => {
|
|
@@ -5080,7 +5172,7 @@ async function createJazzContextFromExistingCredentials({
|
|
|
5080
5172
|
credentials,
|
|
5081
5173
|
peers,
|
|
5082
5174
|
syncWhen,
|
|
5083
|
-
crypto,
|
|
5175
|
+
crypto: crypto2,
|
|
5084
5176
|
storage,
|
|
5085
5177
|
AccountSchema: PropsAccountSchema,
|
|
5086
5178
|
sessionProvider,
|
|
@@ -5089,7 +5181,7 @@ async function createJazzContextFromExistingCredentials({
|
|
|
5089
5181
|
}) {
|
|
5090
5182
|
const { sessionID, sessionDone } = await sessionProvider.acquireSession(
|
|
5091
5183
|
credentials.accountID,
|
|
5092
|
-
|
|
5184
|
+
crypto2
|
|
5093
5185
|
);
|
|
5094
5186
|
const CurrentAccountSchema = PropsAccountSchema ?? RegisteredSchemas["Account"];
|
|
5095
5187
|
const AccountClass = coValueClassFromCoValueClassOrSchema(CurrentAccountSchema);
|
|
@@ -5099,7 +5191,7 @@ async function createJazzContextFromExistingCredentials({
|
|
|
5099
5191
|
sessionID,
|
|
5100
5192
|
peers,
|
|
5101
5193
|
syncWhen,
|
|
5102
|
-
crypto,
|
|
5194
|
+
crypto: crypto2,
|
|
5103
5195
|
storage,
|
|
5104
5196
|
migration: async (rawAccount, _node, creationProps) => {
|
|
5105
5197
|
const account2 = AccountClass.fromRaw(rawAccount);
|
|
@@ -5132,7 +5224,7 @@ async function createJazzContextForNewAccount({
|
|
|
5132
5224
|
initialAgentSecret,
|
|
5133
5225
|
peers,
|
|
5134
5226
|
syncWhen,
|
|
5135
|
-
crypto,
|
|
5227
|
+
crypto: crypto2,
|
|
5136
5228
|
AccountSchema: PropsAccountSchema,
|
|
5137
5229
|
onLogOut,
|
|
5138
5230
|
storage,
|
|
@@ -5144,7 +5236,7 @@ async function createJazzContextForNewAccount({
|
|
|
5144
5236
|
creationProps,
|
|
5145
5237
|
peers,
|
|
5146
5238
|
syncWhen,
|
|
5147
|
-
crypto,
|
|
5239
|
+
crypto: crypto2,
|
|
5148
5240
|
initialAgentSecret,
|
|
5149
5241
|
storage,
|
|
5150
5242
|
migration: async (rawAccount, _node, creationProps2) => {
|
|
@@ -5173,7 +5265,7 @@ async function createJazzContextForNewAccount({
|
|
|
5173
5265
|
};
|
|
5174
5266
|
}
|
|
5175
5267
|
async function createJazzContext(options) {
|
|
5176
|
-
const
|
|
5268
|
+
const crypto2 = options.crypto;
|
|
5177
5269
|
let context;
|
|
5178
5270
|
const authSecretStorage = options.authSecretStorage;
|
|
5179
5271
|
await authSecretStorage.migrate();
|
|
@@ -5189,7 +5281,7 @@ async function createJazzContext(options) {
|
|
|
5189
5281
|
},
|
|
5190
5282
|
peers: options.peers,
|
|
5191
5283
|
syncWhen: options.syncWhen,
|
|
5192
|
-
crypto,
|
|
5284
|
+
crypto: crypto2,
|
|
5193
5285
|
AccountSchema: options.AccountSchema,
|
|
5194
5286
|
sessionProvider: options.sessionProvider,
|
|
5195
5287
|
onLogOut: async () => {
|
|
@@ -5200,7 +5292,7 @@ async function createJazzContext(options) {
|
|
|
5200
5292
|
});
|
|
5201
5293
|
} else {
|
|
5202
5294
|
const secretSeed = options.crypto.newRandomSecretSeed();
|
|
5203
|
-
const initialAgentSecret = options.newAccountProps?.secret ??
|
|
5295
|
+
const initialAgentSecret = options.newAccountProps?.secret ?? crypto2.agentSecretFromSecretSeed(secretSeed);
|
|
5204
5296
|
const creationProps = options.newAccountProps?.creationProps ?? {
|
|
5205
5297
|
name: options.defaultProfileName ?? "Anonymous user"
|
|
5206
5298
|
};
|
|
@@ -5209,7 +5301,7 @@ async function createJazzContext(options) {
|
|
|
5209
5301
|
initialAgentSecret,
|
|
5210
5302
|
peers: options.peers,
|
|
5211
5303
|
syncWhen: options.syncWhen,
|
|
5212
|
-
crypto,
|
|
5304
|
+
crypto: crypto2,
|
|
5213
5305
|
AccountSchema: options.AccountSchema,
|
|
5214
5306
|
sessionProvider: options.sessionProvider,
|
|
5215
5307
|
onLogOut: async () => {
|
|
@@ -5234,14 +5326,14 @@ async function createJazzContext(options) {
|
|
|
5234
5326
|
function createAnonymousJazzContext({
|
|
5235
5327
|
peers,
|
|
5236
5328
|
syncWhen,
|
|
5237
|
-
crypto,
|
|
5329
|
+
crypto: crypto2,
|
|
5238
5330
|
storage
|
|
5239
5331
|
}) {
|
|
5240
|
-
const agentSecret =
|
|
5332
|
+
const agentSecret = crypto2.newRandomAgentSecret();
|
|
5241
5333
|
const node = new LocalNode5(
|
|
5242
5334
|
agentSecret,
|
|
5243
|
-
|
|
5244
|
-
|
|
5335
|
+
crypto2.newRandomSessionID(crypto2.getAgentID(agentSecret)),
|
|
5336
|
+
crypto2,
|
|
5245
5337
|
syncWhen
|
|
5246
5338
|
);
|
|
5247
5339
|
for (const peer of peers) {
|
|
@@ -6774,6 +6866,13 @@ function discriminatedUnionFieldPermissions(schema) {
|
|
|
6774
6866
|
}
|
|
6775
6867
|
|
|
6776
6868
|
// src/tools/implementation/zodSchema/runtimeConverters/coValueSchemaTransformation.ts
|
|
6869
|
+
var isDev2 = function() {
|
|
6870
|
+
try {
|
|
6871
|
+
return process.env.NODE_ENV === "development";
|
|
6872
|
+
} catch {
|
|
6873
|
+
return false;
|
|
6874
|
+
}
|
|
6875
|
+
}();
|
|
6777
6876
|
function isAnyCoValueSchema2(schema) {
|
|
6778
6877
|
return typeof schema === "object" && schema !== null && "collaborative" in schema && schema.collaborative === true;
|
|
6779
6878
|
}
|
|
@@ -7171,7 +7270,6 @@ var SubscriptionCache = class {
|
|
|
7171
7270
|
};
|
|
7172
7271
|
const subscriptionScope = new SubscriptionScope(
|
|
7173
7272
|
node,
|
|
7174
|
-
// @ts-expect-error the SubscriptionScope is too generic for TS to infer its instances are CoValues
|
|
7175
7273
|
resolve,
|
|
7176
7274
|
id,
|
|
7177
7275
|
refEncoded,
|
|
@@ -7683,6 +7781,7 @@ function subscribeToCoValue(cls, id, options, listener) {
|
|
|
7683
7781
|
false,
|
|
7684
7782
|
options.unstable_branch
|
|
7685
7783
|
);
|
|
7784
|
+
rootNode.trackLoadingPerformance("subscribe");
|
|
7686
7785
|
const handleUpdate = () => {
|
|
7687
7786
|
if (unsubscribed) return;
|
|
7688
7787
|
const value = rootNode.getCurrentValue();
|
|
@@ -8085,4 +8184,4 @@ export {
|
|
|
8085
8184
|
JazzContextManager
|
|
8086
8185
|
};
|
|
8087
8186
|
/* istanbul ignore file -- @preserve */
|
|
8088
|
-
//# sourceMappingURL=chunk-
|
|
8187
|
+
//# sourceMappingURL=chunk-Q5RNSSUM.js.map
|