jazz-tools 0.18.14 → 0.18.15

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.18.14 build /home/runner/_work/jazz/jazz/packages/jazz-tools
2
+ > jazz-tools@0.18.15 build /home/runner/_work/jazz/jazz/packages/jazz-tools
3
3
  > tsup && pnpm types && pnpm build:svelte
4
4
 
5
5
  CLI Building entry: {"index":"src/index.ts","testing":"src/testing.ts"}
@@ -28,7 +28,7 @@
28
28
  CLI Using tsconfig: tsconfig.json
29
29
  CLI Building entry: {"index":"src/tiptap/index.ts"}
30
30
  CLI Using tsconfig: tsconfig.json
31
- CLI Building entry: {"index":"src/worker/index.ts"}
31
+ CLI Building entry: {"index":"src/worker/index.ts","edge-wasm":"src/worker/edge-wasm.ts"}
32
32
  CLI Using tsconfig: tsconfig.json
33
33
  CLI Building entry: {"client":"src/better-auth/auth/client.ts","server":"src/better-auth/auth/server.ts","react":"src/better-auth/auth/react.tsx"}
34
34
  CLI Using tsconfig: tsconfig.json
@@ -107,14 +107,16 @@
107
107
  ESM Build start
108
108
  CLI Cleaning output folder
109
109
  ESM Build start
110
- ESM dist/tiptap/index.js 564.00 B
111
- ESM dist/tiptap/index.js.map 1.21 KB
112
- ESM ⚡️ Build success in 18ms
113
- ESM dist/worker/index.js 3.19 KB
114
- ESM dist/worker/index.js.map 6.17 KB
115
- ESM ⚡️ Build success in 16ms
116
110
  ESM dist/react/ssr.js 688.00 B
117
111
  ESM dist/react/ssr.js.map 1.12 KB
112
+ ESM ⚡️ Build success in 15ms
113
+ ESM dist/tiptap/index.js 564.00 B
114
+ ESM dist/tiptap/index.js.map 1.21 KB
115
+ ESM ⚡️ Build success in 13ms
116
+ ESM dist/worker/index.js 3.19 KB
117
+ ESM dist/worker/edge-wasm.js 215.00 B
118
+ ESM dist/worker/index.js.map 6.17 KB
119
+ ESM dist/worker/edge-wasm.js.map 434.00 B
118
120
  ESM ⚡️ Build success in 20ms
119
121
  ESM dist/better-auth/auth/client.js 4.44 KB
120
122
  ESM dist/better-auth/auth/server.js 8.36 KB
@@ -122,78 +124,78 @@
122
124
  ESM dist/better-auth/auth/client.js.map 8.24 KB
123
125
  ESM dist/better-auth/auth/server.js.map 15.29 KB
124
126
  ESM dist/better-auth/auth/react.js.map 2.04 KB
125
- ESM ⚡️ Build success in 18ms
127
+ ESM ⚡️ Build success in 20ms
126
128
  ESM dist/media/index.js 236.00 B
127
- ESM dist/media/index.native.js 2.90 KB
128
129
  ESM dist/media/index.browser.js 2.79 KB
129
130
  ESM dist/media/index.server.js 2.95 KB
131
+ ESM dist/media/index.native.js 2.90 KB
130
132
  ESM dist/media/chunk-W3S526L3.js 6.47 KB
131
133
  ESM dist/media/index.js.map 71.00 B
132
- ESM dist/media/index.native.js.map 6.09 KB
133
134
  ESM dist/media/index.browser.js.map 6.15 KB
134
135
  ESM dist/media/index.server.js.map 6.37 KB
136
+ ESM dist/media/index.native.js.map 6.09 KB
135
137
  ESM dist/media/chunk-W3S526L3.js.map 16.57 KB
136
- ESM ⚡️ Build success in 31ms
137
- ESM dist/react-core/index.js 10.72 KB
138
- ESM dist/react-core/testing.js 1.17 KB
139
- ESM dist/react-core/chunk-7DYMJ74I.js 279.00 B
140
- ESM dist/react-core/index.js.map 33.90 KB
141
- ESM dist/react-core/testing.js.map 1.82 KB
142
- ESM dist/react-core/chunk-7DYMJ74I.js.map 533.00 B
143
138
  ESM ⚡️ Build success in 28ms
139
+ ESM dist/browser/index.js 13.64 KB
140
+ ESM dist/browser/index.js.map 29.14 KB
141
+ ESM ⚡️ Build success in 31ms
144
142
  ESM dist/react-native/index.js 2.53 KB
145
143
  ESM dist/react-native/testing.js 120.00 B
146
144
  ESM dist/react-native/crypto.js 161.00 B
147
145
  ESM dist/react-native/index.js.map 5.68 KB
148
146
  ESM dist/react-native/testing.js.map 176.00 B
149
147
  ESM dist/react-native/crypto.js.map 197.00 B
150
- ESM ⚡️ Build success in 28ms
148
+ ESM ⚡️ Build success in 30ms
149
+ ESM dist/react-core/index.js 10.72 KB
150
+ ESM dist/react-core/testing.js 1.17 KB
151
+ ESM dist/react-core/chunk-7DYMJ74I.js 279.00 B
152
+ ESM dist/react-core/index.js.map 33.90 KB
153
+ ESM dist/react-core/testing.js.map 1.82 KB
154
+ ESM dist/react-core/chunk-7DYMJ74I.js.map 533.00 B
155
+ ESM ⚡️ Build success in 33ms
151
156
  ESM dist/expo/index.js 4.68 KB
152
157
  ESM dist/expo/testing.js 112.00 B
153
158
  ESM dist/expo/crypto.js 153.00 B
154
159
  ESM dist/expo/index.js.map 10.23 KB
155
160
  ESM dist/expo/testing.js.map 168.00 B
156
161
  ESM dist/expo/crypto.js.map 189.00 B
157
- ESM ⚡️ Build success in 31ms
158
- ESM dist/browser/index.js 13.64 KB
159
- ESM dist/browser/index.js.map 29.14 KB
160
- ESM ⚡️ Build success in 31ms
161
- ESM dist/react-native-core/index.js 18.03 KB
162
- ESM dist/react-native-core/testing.js 119.00 B
163
- ESM dist/react-native-core/crypto.js 2.10 KB
164
- ESM dist/react-native-core/index.js.map 36.85 KB
165
- ESM dist/react-native-core/testing.js.map 175.00 B
166
- ESM dist/react-native-core/crypto.js.map 4.25 KB
167
- ESM ⚡️ Build success in 31ms
162
+ ESM ⚡️ Build success in 38ms
163
+ ESM dist/prosemirror/index.js 77.76 KB
164
+ ESM dist/prosemirror/index.js.map 307.20 KB
165
+ ESM ⚡️ Build success in 46ms
168
166
  ESM dist/react/index.js 24.76 KB
169
167
  ESM dist/react/testing.js 122.00 B
170
168
  ESM dist/react/testing.js.map 165.00 B
171
169
  ESM dist/react/index.js.map 53.56 KB
172
- ESM ⚡️ Build success in 39ms
173
- ESM dist/prosemirror/index.js 77.76 KB
174
- ESM dist/prosemirror/index.js.map 307.20 KB
175
- ESM ⚡️ Build success in 42ms
170
+ ESM ⚡️ Build success in 45ms
171
+ ESM dist/react-native-core/index.js 18.03 KB
172
+ ESM dist/react-native-core/crypto.js 2.10 KB
173
+ ESM dist/react-native-core/testing.js 119.00 B
174
+ ESM dist/react-native-core/index.js.map 36.85 KB
175
+ ESM dist/react-native-core/crypto.js.map 4.25 KB
176
+ ESM dist/react-native-core/testing.js.map 175.00 B
177
+ ESM ⚡️ Build success in 45ms
176
178
  ESM dist/inspector/index.js 69.71 KB
177
179
  ESM dist/inspector/index.js.map 121.38 KB
178
- ESM ⚡️ Build success in 58ms
179
- ESM dist/testing.js 7.17 KB
180
+ ESM ⚡️ Build success in 64ms
180
181
  ESM dist/index.js 26.13 KB
182
+ ESM dist/testing.js 7.17 KB
181
183
  ESM dist/chunk-GRN6OAUX.js 174.37 KB
182
184
  ESM dist/testing.js.map 14.10 KB
183
185
  ESM dist/index.js.map 52.92 KB
184
186
  ESM dist/chunk-GRN6OAUX.js.map 415.70 KB
185
- ESM ⚡️ Build success in 75ms
187
+ ESM ⚡️ Build success in 77ms
186
188
  ESM dist/inspector/register-custom-element.js 218.00 B
187
189
  ESM dist/inspector/register-custom-element.js.map 314.00 B
188
190
  ESM dist/inspector/custom-element-G6SPZEBR.js 1.54 MB
189
191
  ESM dist/inspector/custom-element-G6SPZEBR.js.map 2.36 MB
190
- ESM ⚡️ Build success in 114ms
192
+ ESM ⚡️ Build success in 110ms
191
193
 
192
- > jazz-tools@0.18.14 types /home/runner/_work/jazz/jazz/packages/jazz-tools
194
+ > jazz-tools@0.18.15 types /home/runner/_work/jazz/jazz/packages/jazz-tools
193
195
  > tsc --outDir dist
194
196
 
195
197
 
196
- > jazz-tools@0.18.14 build:svelte /home/runner/_work/jazz/jazz/packages/jazz-tools
198
+ > jazz-tools@0.18.15 build:svelte /home/runner/_work/jazz/jazz/packages/jazz-tools
197
199
  > rm -rf dist/svelte && svelte-package -i src/svelte -o dist/svelte --tsconfig tsconfig.svelte.json
198
200
 
199
201
  src/svelte -> dist/svelte
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # jazz-tools
2
2
 
3
+ ## 0.18.15
4
+
5
+ ### Patch Changes
6
+
7
+ - a584ab3: Add WasmCrypto support for Cloudflare Workers and edge runtimes by importing `jazz-tools/load-edge-wasm`.
8
+
9
+ - Enable WasmCrypto functionality by initializing the WebAssembly environment with the import: `import "jazz-tools/load-edge-wasm"` in edge runtimes.
10
+ - Guarantee compatibility across Cloudflare Workers and other edge runtime environments.
11
+
12
+ - Updated dependencies [a584ab3]
13
+ - cojson@0.18.15
14
+ - cojson-storage-indexeddb@0.18.15
15
+ - cojson-transport-ws@0.18.15
16
+
3
17
  ## 0.18.14
4
18
 
5
19
  ### Patch Changes
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=edge-wasm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edge-wasm.d.ts","sourceRoot":"","sources":["../../src/worker/edge-wasm.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ // src/worker/edge-wasm.ts
2
+ import { init as InitWasm } from "cojson/crypto/WasmCrypto/edge";
3
+ import { WasmCrypto } from "cojson/crypto/WasmCrypto";
4
+ WasmCrypto.setInit(InitWasm);
5
+ //# sourceMappingURL=edge-wasm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/worker/edge-wasm.ts"],"sourcesContent":["// InitWasm allow to load the wasm code in edge runtimes (ex. cloudflare worker and vercel edge functions)\nimport { init as InitWasm } from \"cojson/crypto/WasmCrypto/edge\";\nimport { WasmCrypto } from \"cojson/crypto/WasmCrypto\";\n\nWasmCrypto.setInit(InitWasm);\n"],"mappings":";AACA,SAAS,QAAQ,gBAAgB;AACjC,SAAS,kBAAkB;AAE3B,WAAW,QAAQ,QAAQ;","names":[]}
package/package.json CHANGED
@@ -163,11 +163,16 @@
163
163
  "@jazz-tools/source": "./src/better-auth/auth/server.ts",
164
164
  "types": "./dist/better-auth/auth/server.d.ts",
165
165
  "default": "./dist/better-auth/auth/server.js"
166
+ },
167
+ "./load-edge-wasm": {
168
+ "@jazz-tools/source": "./src/worker/edge-wasm.ts",
169
+ "types": "./dist/worker/edge-wasm.d.ts",
170
+ "default": "./dist/worker/edge-wasm.js"
166
171
  }
167
172
  },
168
173
  "type": "module",
169
174
  "license": "MIT",
170
- "version": "0.18.14",
175
+ "version": "0.18.15",
171
176
  "dependencies": {
172
177
  "@manuscripts/prosemirror-recreate-steps": "^0.1.4",
173
178
  "@scure/base": "1.2.1",
@@ -184,9 +189,9 @@
184
189
  "prosemirror-transform": "^1.9.0",
185
190
  "use-sync-external-store": "^1.5.0",
186
191
  "zod": "3.25.76",
187
- "cojson": "0.18.14",
188
- "cojson-storage-indexeddb": "0.18.14",
189
- "cojson-transport-ws": "0.18.14"
192
+ "cojson": "0.18.15",
193
+ "cojson-storage-indexeddb": "0.18.15",
194
+ "cojson-transport-ws": "0.18.15"
190
195
  },
191
196
  "devDependencies": {
192
197
  "@scure/bip39": "^1.3.0",
@@ -0,0 +1,5 @@
1
+ // InitWasm allow to load the wasm code in edge runtimes (ex. cloudflare worker and vercel edge functions)
2
+ import { init as InitWasm } from "cojson/crypto/WasmCrypto/edge";
3
+ import { WasmCrypto } from "cojson/crypto/WasmCrypto";
4
+
5
+ WasmCrypto.setInit(InitWasm);
package/tsup.config.ts CHANGED
@@ -135,6 +135,7 @@ export default defineConfig([
135
135
  ...cfg,
136
136
  entry: {
137
137
  index: "src/worker/index.ts",
138
+ "edge-wasm": "src/worker/edge-wasm.ts",
138
139
  },
139
140
  outDir: "dist/worker",
140
141
  },