jazz-tools 0.19.10 → 0.19.12
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 +58 -54
- package/CHANGELOG.md +23 -0
- package/dist/{chunk-FFEEPZEG.js → chunk-AGF4HEDH.js} +61 -28
- package/dist/chunk-AGF4HEDH.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/inspector/account-switcher.d.ts +4 -0
- package/dist/inspector/account-switcher.d.ts.map +1 -0
- package/dist/inspector/chunk-YQNK5Y7B.js +4108 -0
- package/dist/inspector/chunk-YQNK5Y7B.js.map +1 -0
- package/dist/inspector/contexts/node.d.ts +19 -0
- package/dist/inspector/contexts/node.d.ts.map +1 -0
- package/dist/inspector/{custom-element-P76EIWEV.js → custom-element-KYV64IOC.js} +1057 -918
- package/dist/inspector/custom-element-KYV64IOC.js.map +1 -0
- package/dist/inspector/{viewer/new-app.d.ts → in-app.d.ts} +3 -3
- package/dist/inspector/in-app.d.ts.map +1 -0
- package/dist/inspector/index.d.ts +0 -11
- package/dist/inspector/index.d.ts.map +1 -1
- package/dist/inspector/index.js +56 -3910
- package/dist/inspector/index.js.map +1 -1
- package/dist/inspector/pages/home.d.ts +2 -0
- package/dist/inspector/pages/home.d.ts.map +1 -0
- package/dist/inspector/register-custom-element.js +1 -1
- package/dist/inspector/router/context.d.ts +12 -0
- package/dist/inspector/router/context.d.ts.map +1 -0
- package/dist/inspector/router/hash-router.d.ts +7 -0
- package/dist/inspector/router/hash-router.d.ts.map +1 -0
- package/dist/inspector/router/in-memory-router.d.ts +7 -0
- package/dist/inspector/router/in-memory-router.d.ts.map +1 -0
- package/dist/inspector/router/index.d.ts +5 -0
- package/dist/inspector/router/index.d.ts.map +1 -0
- package/dist/inspector/standalone.d.ts +6 -0
- package/dist/inspector/standalone.d.ts.map +1 -0
- package/dist/inspector/standalone.js +420 -0
- package/dist/inspector/standalone.js.map +1 -0
- package/dist/inspector/tests/router/hash-router.test.d.ts +2 -0
- package/dist/inspector/tests/router/hash-router.test.d.ts.map +1 -0
- package/dist/inspector/tests/router/in-memory-router.test.d.ts +2 -0
- package/dist/inspector/tests/router/in-memory-router.test.d.ts.map +1 -0
- package/dist/inspector/tests/utils/transactions-changes.test.d.ts +2 -0
- package/dist/inspector/tests/utils/transactions-changes.test.d.ts.map +1 -0
- package/dist/inspector/ui/modal.d.ts +1 -0
- package/dist/inspector/ui/modal.d.ts.map +1 -1
- package/dist/inspector/utils/transactions-changes.d.ts +13 -13
- package/dist/inspector/utils/transactions-changes.d.ts.map +1 -1
- package/dist/inspector/viewer/breadcrumbs.d.ts +1 -7
- package/dist/inspector/viewer/breadcrumbs.d.ts.map +1 -1
- package/dist/inspector/viewer/header.d.ts +7 -0
- package/dist/inspector/viewer/header.d.ts.map +1 -0
- package/dist/inspector/viewer/page-stack.d.ts +4 -13
- package/dist/inspector/viewer/page-stack.d.ts.map +1 -1
- package/dist/inspector/viewer/page.d.ts.map +1 -1
- package/dist/react/index.js +4 -1
- package/dist/react/index.js.map +1 -1
- package/dist/react/provider.d.ts.map +1 -1
- package/dist/react-core/index.js +2 -2
- package/dist/react-core/index.js.map +1 -1
- package/dist/react-native/index.js +4 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native-core/index.js +4 -1
- package/dist/react-native-core/index.js.map +1 -1
- package/dist/react-native-core/provider.d.ts.map +1 -1
- package/dist/testing.js +1 -1
- package/dist/tools/coValues/account.d.ts +7 -1
- package/dist/tools/coValues/account.d.ts.map +1 -1
- package/dist/tools/implementation/ContextManager.d.ts.map +1 -1
- package/dist/tools/implementation/zodSchema/schemaTypes/AccountSchema.d.ts +8 -1
- package/dist/tools/implementation/zodSchema/schemaTypes/AccountSchema.d.ts.map +1 -1
- package/dist/tools/implementation/zodSchema/zodCo.d.ts.map +1 -1
- package/dist/tools/subscribe/SubscriptionScope.d.ts +3 -6
- package/dist/tools/subscribe/SubscriptionScope.d.ts.map +1 -1
- package/dist/tools/testing.d.ts.map +1 -1
- package/package.json +9 -4
- package/src/inspector/account-switcher.tsx +440 -0
- package/src/inspector/contexts/node.tsx +129 -0
- package/src/inspector/custom-element.tsx +2 -2
- package/src/inspector/in-app.tsx +61 -0
- package/src/inspector/index.tsx +2 -22
- package/src/inspector/pages/home.tsx +77 -0
- package/src/inspector/router/context.ts +21 -0
- package/src/inspector/router/hash-router.tsx +128 -0
- package/src/inspector/{viewer/use-page-path.ts → router/in-memory-router.tsx} +31 -29
- package/src/inspector/router/index.ts +4 -0
- package/src/inspector/standalone.tsx +60 -0
- package/src/inspector/tests/router/hash-router.test.tsx +847 -0
- package/src/inspector/tests/router/in-memory-router.test.tsx +724 -0
- package/src/inspector/tests/utils/transactions-changes.test.ts +102 -0
- package/src/inspector/ui/icons/add-icon.tsx +3 -3
- package/src/inspector/ui/modal.tsx +5 -2
- package/src/inspector/utils/history.ts +6 -6
- package/src/inspector/utils/transactions-changes.ts +37 -3
- package/src/inspector/viewer/breadcrumbs.tsx +5 -11
- package/src/inspector/viewer/header.tsx +67 -0
- package/src/inspector/viewer/history-view.tsx +13 -13
- package/src/inspector/viewer/page-stack.tsx +18 -26
- package/src/inspector/viewer/page.tsx +0 -1
- package/src/react/provider.tsx +6 -1
- package/src/react-core/hooks.ts +2 -2
- package/src/react-core/tests/useSuspenseCoState.test.tsx +47 -0
- package/src/react-native-core/provider.tsx +6 -1
- package/src/tools/coValues/account.ts +13 -2
- package/src/tools/implementation/ContextManager.ts +10 -0
- package/src/tools/implementation/zodSchema/schemaTypes/AccountSchema.ts +8 -1
- package/src/tools/subscribe/SubscriptionScope.ts +61 -39
- package/src/tools/tests/account.test.ts +11 -4
- package/src/tools/tests/schema.resolved.test.ts +3 -3
- package/tsup.config.ts +1 -0
- package/dist/chunk-FFEEPZEG.js.map +0 -1
- package/dist/inspector/custom-element-P76EIWEV.js.map +0 -1
- package/dist/inspector/viewer/new-app.d.ts.map +0 -1
- package/dist/inspector/viewer/use-page-path.d.ts +0 -10
- package/dist/inspector/viewer/use-page-path.d.ts.map +0 -1
- package/src/inspector/viewer/new-app.tsx +0 -156
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> jazz-tools@0.19.
|
|
2
|
+
> jazz-tools@0.19.12 build /home/runner/_work/jazz/jazz/packages/jazz-tools
|
|
3
3
|
> tsup && pnpm types && pnpm build:svelte
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: {"index":"src/index.ts","testing":"src/testing.ts","tools/ssr":"src/tools/ssr/index.ts"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
11
11
|
[34mCLI[39m Building entry: {"index":"src/expo/index.ts","testing":"src/expo/testing.ts","crypto":"src/expo/crypto.ts","polyfills":"src/react-native-core/polyfills/index.js"}
|
|
12
12
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
13
|
-
[34mCLI[39m Building entry: {"index":"src/inspector/index.tsx"}
|
|
13
|
+
[34mCLI[39m Building entry: {"index":"src/inspector/index.tsx","standalone":"src/inspector/standalone.tsx"}
|
|
14
14
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
15
15
|
[34mCLI[39m Building entry: {"register-custom-element":"src/inspector/register-custom-element.ts"}
|
|
16
16
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
@@ -107,23 +107,23 @@
|
|
|
107
107
|
[34mESM[39m Build start
|
|
108
108
|
[34mCLI[39m Cleaning output folder
|
|
109
109
|
[34mESM[39m Build start
|
|
110
|
-
[32mESM[39m [1mdist/tiptap/index.js [22m[32m564.00 B[39m
|
|
111
|
-
[32mESM[39m [1mdist/tiptap/index.js.map [22m[32m1.21 KB[39m
|
|
112
|
-
[32mESM[39m ⚡️ Build success in 57ms
|
|
113
110
|
[32mESM[39m [1mdist/worker/index.js [22m[32m3.19 KB[39m
|
|
114
111
|
[32mESM[39m [1mdist/worker/edge-wasm.js [22m[32m215.00 B[39m
|
|
115
112
|
[32mESM[39m [1mdist/worker/napi-crypto.js [22m[32m110.00 B[39m
|
|
116
113
|
[32mESM[39m [1mdist/worker/index.js.map [22m[32m6.24 KB[39m
|
|
117
114
|
[32mESM[39m [1mdist/worker/edge-wasm.js.map [22m[32m434.00 B[39m
|
|
118
115
|
[32mESM[39m [1mdist/worker/napi-crypto.js.map [22m[32m162.00 B[39m
|
|
119
|
-
[32mESM[39m ⚡️ Build success in
|
|
116
|
+
[32mESM[39m ⚡️ Build success in 49ms
|
|
117
|
+
[32mESM[39m [1mdist/tiptap/index.js [22m[32m564.00 B[39m
|
|
118
|
+
[32mESM[39m [1mdist/tiptap/index.js.map [22m[32m1.21 KB[39m
|
|
119
|
+
[32mESM[39m ⚡️ Build success in 52ms
|
|
120
120
|
[32mESM[39m [1mdist/better-auth/auth/client.js [22m[32m4.50 KB[39m
|
|
121
121
|
[32mESM[39m [1mdist/better-auth/auth/server.js [22m[32m8.36 KB[39m
|
|
122
122
|
[32mESM[39m [1mdist/better-auth/auth/react.js [22m[32m799.00 B[39m
|
|
123
123
|
[32mESM[39m [1mdist/better-auth/auth/client.js.map [22m[32m8.32 KB[39m
|
|
124
124
|
[32mESM[39m [1mdist/better-auth/auth/server.js.map [22m[32m15.31 KB[39m
|
|
125
125
|
[32mESM[39m [1mdist/better-auth/auth/react.js.map [22m[32m2.04 KB[39m
|
|
126
|
-
[32mESM[39m ⚡️ Build success in
|
|
126
|
+
[32mESM[39m ⚡️ Build success in 43ms
|
|
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
129
|
[32mESM[39m [1mdist/media/index.native.js [22m[32m4.01 KB[39m
|
|
@@ -134,84 +134,88 @@
|
|
|
134
134
|
[32mESM[39m [1mdist/media/index.native.js.map [22m[32m8.10 KB[39m
|
|
135
135
|
[32mESM[39m [1mdist/media/index.server.js.map [22m[32m6.37 KB[39m
|
|
136
136
|
[32mESM[39m [1mdist/media/chunk-3LKBM3G3.js.map [22m[32m16.99 KB[39m
|
|
137
|
-
[32mESM[39m ⚡️ Build success in
|
|
137
|
+
[32mESM[39m ⚡️ Build success in 48ms
|
|
138
|
+
[32mESM[39m [1mdist/react-core/testing.js [22m[32m1.22 KB[39m
|
|
139
|
+
[32mESM[39m [1mdist/react-core/index.js [22m[32m17.05 KB[39m
|
|
140
|
+
[32mESM[39m [1mdist/react-core/chunk-7DYMJ74I.js [22m[32m279.00 B[39m
|
|
141
|
+
[32mESM[39m [1mdist/react-core/testing.js.map [22m[32m1.86 KB[39m
|
|
142
|
+
[32mESM[39m [1mdist/react-core/index.js.map [22m[32m49.77 KB[39m
|
|
143
|
+
[32mESM[39m [1mdist/react-core/chunk-7DYMJ74I.js.map [22m[32m533.00 B[39m
|
|
144
|
+
[32mESM[39m ⚡️ Build success in 47ms
|
|
138
145
|
[32mESM[39m [1mdist/expo/index.js [22m[32m4.68 KB[39m
|
|
139
146
|
[32mESM[39m [1mdist/expo/testing.js [22m[32m112.00 B[39m
|
|
140
|
-
[32mESM[39m [1mdist/expo/crypto.js [22m[32m153.00 B[39m
|
|
141
147
|
[32mESM[39m [1mdist/expo/polyfills.js [22m[32m858.00 B[39m
|
|
148
|
+
[32mESM[39m [1mdist/expo/crypto.js [22m[32m153.00 B[39m
|
|
142
149
|
[32mESM[39m [1mdist/expo/index.js.map [22m[32m10.23 KB[39m
|
|
143
150
|
[32mESM[39m [1mdist/expo/testing.js.map [22m[32m168.00 B[39m
|
|
144
|
-
[32mESM[39m [1mdist/expo/crypto.js.map [22m[32m189.00 B[39m
|
|
145
151
|
[32mESM[39m [1mdist/expo/polyfills.js.map [22m[32m1.61 KB[39m
|
|
146
|
-
[32mESM[39m
|
|
147
|
-
[32mESM[39m
|
|
148
|
-
[32mESM[39m [1mdist/react-core/testing.js [22m[32m1.22 KB[39m
|
|
149
|
-
[32mESM[39m [1mdist/react-core/chunk-7DYMJ74I.js [22m[32m279.00 B[39m
|
|
150
|
-
[32mESM[39m [1mdist/react-core/index.js.map [22m[32m49.75 KB[39m
|
|
151
|
-
[32mESM[39m [1mdist/react-core/testing.js.map [22m[32m1.86 KB[39m
|
|
152
|
-
[32mESM[39m [1mdist/react-core/chunk-7DYMJ74I.js.map [22m[32m533.00 B[39m
|
|
153
|
-
[32mESM[39m ⚡️ Build success in 86ms
|
|
154
|
-
[32mESM[39m [1mdist/prosemirror/index.js [22m[32m77.76 KB[39m
|
|
155
|
-
[32mESM[39m [1mdist/prosemirror/index.js.map [22m[32m307.20 KB[39m
|
|
156
|
-
[32mESM[39m ⚡️ Build success in 97ms
|
|
157
|
-
[32mESM[39m [1mdist/browser/index.js [22m[32m14.06 KB[39m
|
|
158
|
-
[32mESM[39m [1mdist/browser/index.js.map [22m[32m29.94 KB[39m
|
|
159
|
-
[32mESM[39m ⚡️ Build success in 103ms
|
|
152
|
+
[32mESM[39m [1mdist/expo/crypto.js.map [22m[32m189.00 B[39m
|
|
153
|
+
[32mESM[39m ⚡️ Build success in 52ms
|
|
160
154
|
[32mESM[39m [1mdist/better-auth/database-adapter/index.js [22m[32m26.65 KB[39m
|
|
161
155
|
[32mESM[39m [1mdist/better-auth/database-adapter/index.js.map [22m[32m58.26 KB[39m
|
|
162
|
-
[32mESM[39m ⚡️ Build success in
|
|
163
|
-
[32mESM[39m [1mdist/
|
|
164
|
-
[32mESM[39m [1mdist/
|
|
156
|
+
[32mESM[39m ⚡️ Build success in 47ms
|
|
157
|
+
[32mESM[39m [1mdist/browser/index.js [22m[32m14.06 KB[39m
|
|
158
|
+
[32mESM[39m [1mdist/browser/index.js.map [22m[32m29.94 KB[39m
|
|
159
|
+
[32mESM[39m ⚡️ Build success in 70ms
|
|
160
|
+
[32mESM[39m [1mdist/prosemirror/index.js [22m[32m77.76 KB[39m
|
|
161
|
+
[32mESM[39m [1mdist/prosemirror/index.js.map [22m[32m307.20 KB[39m
|
|
162
|
+
[32mESM[39m ⚡️ Build success in 79ms
|
|
165
163
|
[32mESM[39m [1mdist/react-native-core/testing.js [22m[32m119.00 B[39m
|
|
164
|
+
[32mESM[39m [1mdist/react-native-core/index.js [22m[32m19.19 KB[39m
|
|
166
165
|
[32mESM[39m [1mdist/react-native-core/crypto/RNCrypto.js [22m[32m120.00 B[39m
|
|
167
|
-
[32mESM[39m [1mdist/react-native-core/
|
|
168
|
-
[32mESM[39m [1mdist/react-native-core/crypto.js.map [22m[32m5.25 KB[39m
|
|
166
|
+
[32mESM[39m [1mdist/react-native-core/crypto.js [22m[32m2.58 KB[39m
|
|
169
167
|
[32mESM[39m [1mdist/react-native-core/testing.js.map [22m[32m175.00 B[39m
|
|
168
|
+
[32mESM[39m [1mdist/react-native-core/index.js.map [22m[32m38.96 KB[39m
|
|
170
169
|
[32mESM[39m [1mdist/react-native-core/crypto/RNCrypto.js.map [22m[32m178.00 B[39m
|
|
171
|
-
[32mESM[39m
|
|
172
|
-
[32mESM[39m
|
|
170
|
+
[32mESM[39m [1mdist/react-native-core/crypto.js.map [22m[32m5.25 KB[39m
|
|
171
|
+
[32mESM[39m ⚡️ Build success in 78ms
|
|
172
|
+
[32mESM[39m [1mdist/react/testing.js [22m[32m122.00 B[39m
|
|
173
|
+
[32mESM[39m [1mdist/react/index.js [22m[32m25.96 KB[39m
|
|
174
|
+
[32mESM[39m [1mdist/react/ssr.js [22m[32m697.00 B[39m
|
|
175
|
+
[32mESM[39m [1mdist/react/testing.js.map [22m[32m165.00 B[39m
|
|
176
|
+
[32mESM[39m [1mdist/react/ssr.js.map [22m[32m1.11 KB[39m
|
|
177
|
+
[32mESM[39m [1mdist/react/index.js.map [22m[32m55.44 KB[39m
|
|
178
|
+
[32mESM[39m ⚡️ Build success in 70ms
|
|
173
179
|
[32mESM[39m [1mdist/react-native/testing.js [22m[32m120.00 B[39m
|
|
174
180
|
[32mESM[39m [1mdist/react-native/crypto.js [22m[32m161.00 B[39m
|
|
175
181
|
[32mESM[39m [1mdist/react-native/polyfills.js [22m[32m858.00 B[39m
|
|
176
|
-
[32mESM[39m [1mdist/react-native/index.js
|
|
182
|
+
[32mESM[39m [1mdist/react-native/index.js [22m[32m21.73 KB[39m
|
|
177
183
|
[32mESM[39m [1mdist/react-native/testing.js.map [22m[32m176.00 B[39m
|
|
178
184
|
[32mESM[39m [1mdist/react-native/crypto.js.map [22m[32m197.00 B[39m
|
|
179
185
|
[32mESM[39m [1mdist/react-native/polyfills.js.map [22m[32m1.61 KB[39m
|
|
180
|
-
[32mESM[39m
|
|
181
|
-
[32mESM[39m
|
|
182
|
-
[32mESM[39m [1mdist/
|
|
183
|
-
[32mESM[39m [1mdist/
|
|
184
|
-
[32mESM[39m [1mdist/
|
|
185
|
-
[32mESM[39m [1mdist/
|
|
186
|
-
[32mESM[39m [1mdist/
|
|
187
|
-
[32mESM[39m
|
|
188
|
-
[32mESM[39m
|
|
189
|
-
[32mESM[39m [1mdist/inspector/index.js.map [22m[32m216.33 KB[39m
|
|
190
|
-
[32mESM[39m ⚡️ Build success in 164ms
|
|
186
|
+
[32mESM[39m [1mdist/react-native/index.js.map [22m[32m44.50 KB[39m
|
|
187
|
+
[32mESM[39m ⚡️ Build success in 80ms
|
|
188
|
+
[32mESM[39m [1mdist/inspector/index.js [22m[32m6.29 KB[39m
|
|
189
|
+
[32mESM[39m [1mdist/inspector/standalone.js [22m[32m12.61 KB[39m
|
|
190
|
+
[32mESM[39m [1mdist/inspector/chunk-YQNK5Y7B.js [22m[32m127.21 KB[39m
|
|
191
|
+
[32mESM[39m [1mdist/inspector/index.js.map [22m[32m9.65 KB[39m
|
|
192
|
+
[32mESM[39m [1mdist/inspector/standalone.js.map [22m[32m20.11 KB[39m
|
|
193
|
+
[32mESM[39m [1mdist/inspector/chunk-YQNK5Y7B.js.map [22m[32m221.30 KB[39m
|
|
194
|
+
[32mESM[39m ⚡️ Build success in 91ms
|
|
191
195
|
[32mESM[39m [1mdist/index.js [22m[32m29.76 KB[39m
|
|
192
196
|
[32mESM[39m [1mdist/testing.js [22m[32m8.51 KB[39m
|
|
193
|
-
[32mESM[39m [1mdist/chunk-
|
|
197
|
+
[32mESM[39m [1mdist/chunk-AGF4HEDH.js [22m[32m214.23 KB[39m
|
|
194
198
|
[32mESM[39m [1mdist/tools/ssr.js [22m[32m156.00 B[39m
|
|
195
199
|
[32mESM[39m [1mdist/chunk-M2HGBOXS.js [22m[32m694.00 B[39m
|
|
196
200
|
[32mESM[39m [1mdist/chunk-PZ5AY32C.js [22m[32m233.00 B[39m
|
|
197
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m60.59 KB[39m
|
|
198
|
-
[32mESM[39m [1mdist/testing.js.map [22m[32m16.13 KB[39m
|
|
199
|
-
[32mESM[39m [1mdist/chunk-FFEEPZEG.js.map [22m[32m502.18 KB[39m
|
|
200
201
|
[32mESM[39m [1mdist/tools/ssr.js.map [22m[32m71.00 B[39m
|
|
201
|
-
[32mESM[39m [1mdist/
|
|
202
|
+
[32mESM[39m [1mdist/testing.js.map [22m[32m16.13 KB[39m
|
|
202
203
|
[32mESM[39m [1mdist/chunk-PZ5AY32C.js.map [22m[32m71.00 B[39m
|
|
203
|
-
[32mESM[39m
|
|
204
|
+
[32mESM[39m [1mdist/chunk-M2HGBOXS.js.map [22m[32m1.10 KB[39m
|
|
205
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m60.59 KB[39m
|
|
206
|
+
[32mESM[39m [1mdist/chunk-AGF4HEDH.js.map [22m[32m504.49 KB[39m
|
|
207
|
+
[32mESM[39m ⚡️ Build success in 93ms
|
|
204
208
|
[32mESM[39m [1mdist/inspector/register-custom-element.js [22m[32m218.00 B[39m
|
|
205
209
|
[32mESM[39m [1mdist/inspector/register-custom-element.js.map [22m[32m314.00 B[39m
|
|
206
|
-
[32mESM[39m [1mdist/inspector/custom-element-
|
|
207
|
-
[32mESM[39m [1mdist/inspector/custom-element-
|
|
208
|
-
[32mESM[39m ⚡️ Build success in
|
|
210
|
+
[32mESM[39m [1mdist/inspector/custom-element-KYV64IOC.js [22m[32m1.60 MB[39m
|
|
211
|
+
[32mESM[39m [1mdist/inspector/custom-element-KYV64IOC.js.map [22m[32m2.47 MB[39m
|
|
212
|
+
[32mESM[39m ⚡️ Build success in 141ms
|
|
209
213
|
|
|
210
|
-
> jazz-tools@0.19.
|
|
214
|
+
> jazz-tools@0.19.12 types /home/runner/_work/jazz/jazz/packages/jazz-tools
|
|
211
215
|
> tsc --outDir dist
|
|
212
216
|
|
|
213
217
|
|
|
214
|
-
> jazz-tools@0.19.
|
|
218
|
+
> jazz-tools@0.19.12 build:svelte /home/runner/_work/jazz/jazz/packages/jazz-tools
|
|
215
219
|
> rm -rf dist/svelte && svelte-package -i src/svelte -o dist/svelte --tsconfig tsconfig.svelte.json
|
|
216
220
|
|
|
217
221
|
src/svelte -> dist/svelte
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# jazz-tools
|
|
2
2
|
|
|
3
|
+
## 0.19.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9ca9e72: Fix the inspector to guess correctly Group's transactions
|
|
8
|
+
- 5b0bb7d: Bugfix: ensure that the promises used for Suspense is always cached
|
|
9
|
+
- fa0759b: Bugfix: close the server peers before calling the onAnonymousAccountDiscarded hook, to ensure that there won't be conflicting issues with the new context sync
|
|
10
|
+
- a2372db: Bugfix: ensure onAnonymousAccountDiscarded hook is conditionally applied in React providers
|
|
11
|
+
- cojson@0.19.12
|
|
12
|
+
- cojson-storage-indexeddb@0.19.12
|
|
13
|
+
- cojson-transport-ws@0.19.12
|
|
14
|
+
|
|
15
|
+
## 0.19.11
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 68acca4: Sync Server is now configurable in inspector.jazz.tools
|
|
20
|
+
- c00a454: Resolve footgun in Account.createAs() that made it easy to save the wrong credentials.
|
|
21
|
+
- Updated dependencies [c00a454]
|
|
22
|
+
- cojson@0.19.11
|
|
23
|
+
- cojson-storage-indexeddb@0.19.11
|
|
24
|
+
- cojson-transport-ws@0.19.11
|
|
25
|
+
|
|
3
26
|
## 0.19.10
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -2308,6 +2308,10 @@ var _Account = class _Account extends CoValueBase {
|
|
|
2308
2308
|
crypto,
|
|
2309
2309
|
peers: [connectedPeers[0]]
|
|
2310
2310
|
});
|
|
2311
|
+
const credentials = {
|
|
2312
|
+
accountID: account.$jazz.id,
|
|
2313
|
+
accountSecret: account.$jazz.localNode.getCurrentAgent().agentSecret
|
|
2314
|
+
};
|
|
2311
2315
|
const loadedWorker = await _Account.load(worker.$jazz.id, {
|
|
2312
2316
|
loadAs: account
|
|
2313
2317
|
});
|
|
@@ -2321,7 +2325,7 @@ var _Account = class _Account extends CoValueBase {
|
|
|
2321
2325
|
if (!createdAccount.$isLoaded)
|
|
2322
2326
|
throw new Error("Unable to load the created account");
|
|
2323
2327
|
account.$jazz.localNode.gracefulShutdown();
|
|
2324
|
-
return createdAccount;
|
|
2328
|
+
return { credentials, account: createdAccount };
|
|
2325
2329
|
}
|
|
2326
2330
|
static fromNode(node) {
|
|
2327
2331
|
return new this({
|
|
@@ -4417,14 +4421,6 @@ var SubscriptionScope = class _SubscriptionScope {
|
|
|
4417
4421
|
if (this.value.type !== CoValueLoadingState.LOADED) return true;
|
|
4418
4422
|
return this.pendingLoadedChildren.size === 0;
|
|
4419
4423
|
}
|
|
4420
|
-
cachePromise(value, callback) {
|
|
4421
|
-
if (this.lastPromise?.value === value) {
|
|
4422
|
-
return this.lastPromise.promise;
|
|
4423
|
-
}
|
|
4424
|
-
const promise = callback();
|
|
4425
|
-
this.lastPromise = { value, promise };
|
|
4426
|
-
return promise;
|
|
4427
|
-
}
|
|
4428
4424
|
getPromise() {
|
|
4429
4425
|
const currentValue = this.getCurrentValue();
|
|
4430
4426
|
if (currentValue.$isLoaded) {
|
|
@@ -4438,26 +4434,57 @@ var SubscriptionScope = class _SubscriptionScope {
|
|
|
4438
4434
|
})
|
|
4439
4435
|
);
|
|
4440
4436
|
}
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
const
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4437
|
+
const promise = new Promise((resolve, reject) => {
|
|
4438
|
+
const unsubscribe = this.subscribe(() => {
|
|
4439
|
+
const currentValue2 = this.getCurrentValue();
|
|
4440
|
+
if (currentValue2.$jazz.loadingState === CoValueLoadingState.LOADING) {
|
|
4441
|
+
return;
|
|
4442
|
+
}
|
|
4443
|
+
if (currentValue2.$isLoaded) {
|
|
4444
|
+
promise.status = "fulfilled";
|
|
4445
|
+
promise.value = currentValue2;
|
|
4446
|
+
resolve(currentValue2);
|
|
4447
|
+
} else {
|
|
4448
|
+
promise.status = "rejected";
|
|
4449
|
+
promise.reason = new Error(
|
|
4450
|
+
this.getError()?.toString() ?? "Unknown error",
|
|
4451
|
+
{
|
|
4452
|
+
cause: this.callerStack
|
|
4453
|
+
}
|
|
4454
|
+
);
|
|
4455
|
+
reject(
|
|
4456
|
+
new Error(this.getError()?.toString() ?? "Unknown error", {
|
|
4457
|
+
cause: this.callerStack
|
|
4458
|
+
})
|
|
4459
|
+
);
|
|
4460
|
+
}
|
|
4461
|
+
unsubscribe();
|
|
4459
4462
|
});
|
|
4460
4463
|
});
|
|
4464
|
+
promise.status = "pending";
|
|
4465
|
+
return promise;
|
|
4466
|
+
}
|
|
4467
|
+
getCachedPromise() {
|
|
4468
|
+
if (this.lastPromise) {
|
|
4469
|
+
const value = this.getCurrentValue();
|
|
4470
|
+
if (value.$isLoaded) {
|
|
4471
|
+
this.lastPromise.status = "fulfilled";
|
|
4472
|
+
this.lastPromise.value = value;
|
|
4473
|
+
} else if (value.$jazz.loadingState !== CoValueLoadingState.LOADING) {
|
|
4474
|
+
this.lastPromise.status = "rejected";
|
|
4475
|
+
this.lastPromise.reason = new Error(
|
|
4476
|
+
this.getError()?.toString() ?? "Unknown error",
|
|
4477
|
+
{
|
|
4478
|
+
cause: this.callerStack
|
|
4479
|
+
}
|
|
4480
|
+
);
|
|
4481
|
+
} else if (this.lastPromise.status !== "pending") {
|
|
4482
|
+
this.lastPromise = this.getPromise();
|
|
4483
|
+
}
|
|
4484
|
+
} else {
|
|
4485
|
+
this.lastPromise = this.getPromise();
|
|
4486
|
+
}
|
|
4487
|
+
return this.lastPromise;
|
|
4461
4488
|
}
|
|
4462
4489
|
getUnloadedValue(reason) {
|
|
4463
4490
|
if (this.unloadedValue?.$jazz.loadingState === reason) {
|
|
@@ -6856,6 +6883,12 @@ var JazzContextManager = class {
|
|
|
6856
6883
|
}
|
|
6857
6884
|
);
|
|
6858
6885
|
prevContext.node.removeStorage();
|
|
6886
|
+
for (const peer of Object.values(prevContext.node.syncManager.peers)) {
|
|
6887
|
+
if (!peer.closed) {
|
|
6888
|
+
peer.gracefulShutdown();
|
|
6889
|
+
}
|
|
6890
|
+
}
|
|
6891
|
+
prevContext.node.syncManager.peers = {};
|
|
6859
6892
|
currentContext.node.syncManager.addPeer(prevAccountAsPeer);
|
|
6860
6893
|
prevContext.node.syncManager.addPeer(currentAccountAsPeer);
|
|
6861
6894
|
try {
|
|
@@ -7394,4 +7427,4 @@ export {
|
|
|
7394
7427
|
JazzContextManager
|
|
7395
7428
|
};
|
|
7396
7429
|
/* istanbul ignore file -- @preserve */
|
|
7397
|
-
//# sourceMappingURL=chunk-
|
|
7430
|
+
//# sourceMappingURL=chunk-AGF4HEDH.js.map
|