jazz-tools 0.15.4 → 0.15.6

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.15.4 build /home/runner/_work/jazz/jazz/packages/jazz-tools
2
+ > jazz-tools@0.15.6 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"}
@@ -109,83 +109,83 @@
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 13ms
113
- ESM dist/browser-media-images/index.js 2.55 KB
114
- ESM dist/browser-media-images/index.js.map 5.44 KB
115
- ESM ⚡️ Build success in 18ms
112
+ ESM ⚡️ Build success in 27ms
116
113
  ESM dist/react-native-media-images/index.js 6.19 KB
117
114
  ESM dist/react-native-media-images/index.js.map 10.96 KB
118
- ESM ⚡️ Build success in 13ms
115
+ ESM ⚡️ Build success in 28ms
116
+ ESM dist/browser-media-images/index.js 2.55 KB
117
+ ESM dist/browser-media-images/index.js.map 5.44 KB
118
+ ESM ⚡️ Build success in 36ms
119
119
  ESM dist/worker/index.js 2.34 KB
120
120
  ESM dist/worker/index.js.map 4.82 KB
121
- ESM ⚡️ Build success in 15ms
121
+ ESM ⚡️ Build success in 27ms
122
122
  ESM dist/expo/index.js 4.65 KB
123
123
  ESM dist/expo/testing.js 112.00 B
124
124
  ESM dist/expo/crypto.js 109.00 B
125
125
  ESM dist/expo/index.js.map 10.17 KB
126
126
  ESM dist/expo/testing.js.map 168.00 B
127
127
  ESM dist/expo/crypto.js.map 166.00 B
128
- ESM ⚡️ Build success in 25ms
129
- ESM dist/react-core/index.js 8.37 KB
130
- ESM dist/react-core/testing.js 1.17 KB
131
- ESM dist/react-core/chunk-7DYMJ74I.js 279.00 B
132
- ESM dist/react-core/index.js.map 16.39 KB
133
- ESM dist/react-core/testing.js.map 1.82 KB
134
- ESM dist/react-core/chunk-7DYMJ74I.js.map 533.00 B
135
- ESM ⚡️ Build success in 22ms
128
+ ESM ⚡️ Build success in 63ms
136
129
  ESM dist/react-native/index.js 2.53 KB
137
130
  ESM dist/react-native/testing.js 120.00 B
138
131
  ESM dist/react-native/crypto.js 117.00 B
139
132
  ESM dist/react-native/index.js.map 5.68 KB
140
133
  ESM dist/react-native/testing.js.map 176.00 B
141
134
  ESM dist/react-native/crypto.js.map 174.00 B
142
- ESM ⚡️ Build success in 23ms
143
- ESM dist/browser/index.js 13.36 KB
144
- ESM dist/browser/index.js.map 28.57 KB
145
- ESM ⚡️ Build success in 34ms
146
- ESM dist/react/index.js 20.66 KB
147
- ESM dist/react/testing.js 122.00 B
148
- ESM dist/react/index.js.map 34.07 KB
149
- ESM dist/react/testing.js.map 165.00 B
150
- ESM ⚡️ Build success in 32ms
151
- ESM dist/react-native-core/index.js 17.42 KB
135
+ ESM ⚡️ Build success in 58ms
136
+ ESM dist/react-native-core/index.js 17.40 KB
152
137
  ESM dist/react-native-core/testing.js 119.00 B
153
138
  ESM dist/react-native-core/crypto.js 2.10 KB
154
- ESM dist/react-native-core/index.js.map 34.49 KB
139
+ ESM dist/react-native-core/index.js.map 34.47 KB
155
140
  ESM dist/react-native-core/testing.js.map 175.00 B
156
141
  ESM dist/react-native-core/crypto.js.map 4.25 KB
157
- ESM ⚡️ Build success in 32ms
158
- ESM dist/react/index.js 20.64 KB
159
- ESM dist/react/ssr.js 688.00 B
142
+ ESM ⚡️ Build success in 60ms
143
+ ESM dist/browser/index.js 13.36 KB
144
+ ESM dist/browser/index.js.map 28.57 KB
145
+ ESM ⚡️ Build success in 70ms
146
+ ESM dist/react-core/index.js 8.37 KB
147
+ ESM dist/react-core/testing.js 1.17 KB
148
+ ESM dist/react-core/chunk-7DYMJ74I.js 279.00 B
149
+ ESM dist/react-core/index.js.map 16.39 KB
150
+ ESM dist/react-core/testing.js.map 1.82 KB
151
+ ESM dist/react-core/chunk-7DYMJ74I.js.map 533.00 B
152
+ ESM ⚡️ Build success in 63ms
153
+ ESM dist/react/index.js 20.70 KB
154
+ ESM dist/react/testing.js 122.00 B
155
+ ESM dist/react/index.js.map 34.13 KB
156
+ ESM dist/react/testing.js.map 165.00 B
157
+ ESM ⚡️ Build success in 78ms
158
+ ESM dist/react/index.js 20.68 KB
160
159
  ESM dist/react/testing.js 107.00 B
161
- ESM dist/react/ssr.js.map 1.12 KB
160
+ ESM dist/react/ssr.js 688.00 B
161
+ ESM dist/react/index.js.map 34.13 KB
162
162
  ESM dist/react/testing.js.map 163.00 B
163
- ESM dist/react/index.js.map 34.07 KB
164
- ESM ⚡️ Build success in 34ms
163
+ ESM dist/react/ssr.js.map 1.12 KB
164
+ ESM ⚡️ Build success in 79ms
165
165
  ESM dist/prosemirror/index.js 76.90 KB
166
166
  ESM dist/prosemirror/index.js.map 305.53 KB
167
- ESM ⚡️ Build success in 44ms
167
+ ESM ⚡️ Build success in 79ms
168
168
  ESM dist/inspector/index.js 60.37 KB
169
169
  ESM dist/inspector/index.js.map 107.85 KB
170
- ESM ⚡️ Build success in 50ms
171
- ESM dist/testing.js 6.32 KB
170
+ ESM ⚡️ Build success in 104ms
172
171
  ESM dist/index.js 16.19 KB
173
- ESM dist/chunk-VBDJM6Z5.js 140.80 KB
172
+ ESM dist/testing.js 6.32 KB
173
+ ESM dist/chunk-AV3MKD64.js 141.46 KB
174
174
  ESM dist/index.js.map 29.03 KB
175
175
  ESM dist/testing.js.map 12.22 KB
176
- ESM dist/chunk-VBDJM6Z5.js.map 320.73 KB
177
- ESM ⚡️ Build success in 65ms
176
+ ESM dist/chunk-AV3MKD64.js.map 321.67 KB
177
+ ESM ⚡️ Build success in 120ms
178
178
  ESM dist/inspector/register-custom-element.js 218.00 B
179
179
  ESM dist/inspector/register-custom-element.js.map 314.00 B
180
180
  ESM dist/inspector/custom-element-CWW72LEG.js 1.47 MB
181
181
  ESM dist/inspector/custom-element-CWW72LEG.js.map 2.26 MB
182
- ESM ⚡️ Build success in 100ms
182
+ ESM ⚡️ Build success in 159ms
183
183
 
184
- > jazz-tools@0.15.4 types /home/runner/_work/jazz/jazz/packages/jazz-tools
184
+ > jazz-tools@0.15.6 types /home/runner/_work/jazz/jazz/packages/jazz-tools
185
185
  > tsc --outDir dist
186
186
 
187
187
 
188
- > jazz-tools@0.15.4 build:svelte /home/runner/_work/jazz/jazz/packages/jazz-tools
188
+ > jazz-tools@0.15.6 build:svelte /home/runner/_work/jazz/jazz/packages/jazz-tools
189
189
  > rm -rf dist/svelte && svelte-package -i src/svelte -o dist/svelte --tsconfig tsconfig.svelte.json
190
190
 
191
191
  src/svelte -> dist/svelte
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # jazz-tools
2
2
 
3
+ ## 0.15.6
4
+
5
+ ### Patch Changes
6
+
7
+ - a5ceaff: add Group.getDirectMembers to get only direct members of a group
8
+ - cojson@0.15.6
9
+ - cojson-storage@0.15.6
10
+ - cojson-storage-indexeddb@0.15.6
11
+ - cojson-transport-ws@0.15.6
12
+
13
+ ## 0.15.5
14
+
15
+ ### Patch Changes
16
+
17
+ - 23bfea5: Make all React Native dependencies in `jazz-tools` optional peer dependencies
18
+ - e4ba23c: Fix type error with `RNQuickCrypto` that prevented using it as a `CryptoProvider`
19
+ - 4b89838: Changes that verify the BetterAuth package for React also works with React Native and Expo apps
20
+ - cojson@0.15.5
21
+ - cojson-storage@0.15.5
22
+ - cojson-storage-indexeddb@0.15.5
23
+ - cojson-transport-ws@0.15.5
24
+
3
25
  ## 0.15.4
4
26
 
5
27
  ### Patch Changes
@@ -2006,13 +2006,13 @@ var _Group = class _Group extends CoValueBase {
2006
2006
  );
2007
2007
  }
2008
2008
  }
2009
- get members() {
2009
+ getMembersFromKeys(accountIDs) {
2010
2010
  const members = [];
2011
2011
  const refEncodedAccountSchema = {
2012
2012
  ref: () => Account,
2013
2013
  optional: false
2014
2014
  };
2015
- for (const accountID of this._raw.getAllMemberKeysSet()) {
2015
+ for (const accountID of accountIDs) {
2016
2016
  if (!isAccountID(accountID)) continue;
2017
2017
  const role = this._raw.roleOf(accountID);
2018
2018
  if (role === "admin" || role === "writer" || role === "reader" || role === "writeOnly") {
@@ -2035,6 +2035,28 @@ var _Group = class _Group extends CoValueBase {
2035
2035
  }
2036
2036
  return members;
2037
2037
  }
2038
+ /**
2039
+ * Returns all members of the group, including inherited members from parent
2040
+ * groups.
2041
+ *
2042
+ * If you need only the direct members of the group, use
2043
+ * {@link getDirectMembers} instead.
2044
+ *
2045
+ * @returns The members of the group.
2046
+ */
2047
+ get members() {
2048
+ return this.getMembersFromKeys(this._raw.getAllMemberKeysSet());
2049
+ }
2050
+ /**
2051
+ * Returns the direct members of the group.
2052
+ *
2053
+ * If you need all members of the group, including inherited members from
2054
+ * parent groups, use {@link Group.members|members} instead.
2055
+ * @returns The direct members of the group.
2056
+ */
2057
+ getDirectMembers() {
2058
+ return this.getMembersFromKeys(this._raw.getMemberKeys());
2059
+ }
2038
2060
  getRoleOf(member) {
2039
2061
  if (member === "me") {
2040
2062
  return this._raw.roleOf(
@@ -4935,4 +4957,4 @@ export {
4935
4957
  JazzContextManager
4936
4958
  };
4937
4959
  /* istanbul ignore file -- @preserve */
4938
- //# sourceMappingURL=chunk-VBDJM6Z5.js.map
4960
+ //# sourceMappingURL=chunk-AV3MKD64.js.map