jazz-tools 0.13.21 → 0.13.25

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.13.21 build /home/runner/_work/jazz/jazz/packages/jazz-tools
2
+ > jazz-tools@0.13.25 build /home/runner/_work/jazz/jazz/packages/jazz-tools
3
3
  > tsup && pnpm types
4
4
 
5
5
  CLI Building entry: {"index":"src/index.ts","testing":"src/testing.ts"}
@@ -11,12 +11,12 @@
11
11
  ESM Build start
12
12
  ESM dist/index.js 1.48 KB
13
13
  ESM dist/testing.js 6.27 KB
14
- ESM dist/chunk-S4BCSDTJ.js 122.84 KB
14
+ ESM dist/chunk-Z6IXFGH3.js 122.91 KB
15
15
  ESM dist/index.js.map 258.00 B
16
16
  ESM dist/testing.js.map 12.38 KB
17
- ESM dist/chunk-S4BCSDTJ.js.map 281.38 KB
18
- ESM ⚡️ Build success in 40ms
17
+ ESM dist/chunk-Z6IXFGH3.js.map 281.53 KB
18
+ ESM ⚡️ Build success in 50ms
19
19
 
20
- > jazz-tools@0.13.21 types /home/runner/_work/jazz/jazz/packages/jazz-tools
20
+ > jazz-tools@0.13.25 types /home/runner/_work/jazz/jazz/packages/jazz-tools
21
21
  > tsc --outDir dist
22
22
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # jazz-tools
2
2
 
3
+ ## 0.13.25
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a846e07]
8
+ - cojson@0.13.25
9
+
10
+ ## 0.13.23
11
+
12
+ ### Patch Changes
13
+
14
+ - 02a240c: Add getMetadata to fileStream to easily get file metadata
15
+ - Updated dependencies [6b781cf]
16
+ - cojson@0.13.23
17
+
3
18
  ## 0.13.21
4
19
 
5
20
  ### Patch Changes
@@ -2676,6 +2676,9 @@ var FileStream = class extends CoValueBase {
2676
2676
  static create(options) {
2677
2677
  return new this(parseCoValueCreateOptions(options));
2678
2678
  }
2679
+ getMetadata() {
2680
+ return this._raw.getBinaryStreamInfo();
2681
+ }
2679
2682
  getChunks(options) {
2680
2683
  return this._raw.getBinaryChunks(options?.allowUnfinished);
2681
2684
  }
@@ -3505,7 +3508,7 @@ var CoPlainText = class extends String {
3505
3508
  *
3506
3509
  * The 'hint' parameter indicates the preferred type of conversion:
3507
3510
  * - 'string': prefer string conversion
3508
- * - 'number': prefer number conversion (not meaningful for text, so return NaN)
3511
+ * - 'number': prefer number conversion (attempt to parse the text as a number)
3509
3512
  * - 'default': usually treat as string
3510
3513
  */
3511
3514
  [Symbol.toPrimitive](hint) {
@@ -4271,4 +4274,4 @@ export {
4271
4274
  consumeInviteLink
4272
4275
  };
4273
4276
  /* istanbul ignore file -- @preserve */
4274
- //# sourceMappingURL=chunk-S4BCSDTJ.js.map
4277
+ //# sourceMappingURL=chunk-Z6IXFGH3.js.map