@xata.io/client 0.26.3 → 0.26.4

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,4 +1,4 @@
1
1
 
2
- > @xata.io/client@0.26.3 add-version /home/runner/work/client-ts/client-ts/packages/client
2
+ > @xata.io/client@0.26.4 add-version /home/runner/work/client-ts/client-ts/packages/client
3
3
  > node ../../scripts/add-version-file.mjs
4
4
 
@@ -1,13 +1,13 @@
1
1
 
2
- > @xata.io/client@0.26.3 build /home/runner/work/client-ts/client-ts/packages/client
2
+ > @xata.io/client@0.26.4 build /home/runner/work/client-ts/client-ts/packages/client
3
3
  > rimraf dist && rollup -c
4
4
 
5
5
  
6
6
  src/index.ts → dist/index.cjs...
7
- created dist/index.cjs in 1.3s
7
+ created dist/index.cjs in 1s
8
8
  
9
9
  src/index.ts → dist/index.mjs...
10
- created dist/index.mjs in 955ms
10
+ created dist/index.mjs in 768ms
11
11
  
12
12
  src/index.ts → dist/index.d.ts...
13
- created dist/index.d.ts in 11.6s
13
+ created dist/index.d.ts in 8.1s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @xata.io/client
2
2
 
3
+ ## 0.26.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1160](https://github.com/xataio/client-ts/pull/1160) [`7166797c`](https://github.com/xataio/client-ts/commit/7166797c28839198d20a9115d0414cebc2fed39b) Thanks [@SferaDev](https://github.com/SferaDev)! - [Files] Return file id on array
8
+
9
+ - [#1156](https://github.com/xataio/client-ts/pull/1156) [`b85df75f`](https://github.com/xataio/client-ts/commit/b85df75f2f466762a8b3d9824c9292c7e3db03fd) Thanks [@SferaDev](https://github.com/SferaDev)! - [Files] Add download transformation
10
+
3
11
  ## 0.26.3
4
12
 
5
13
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -529,7 +529,7 @@ function defaultOnOpen(response) {
529
529
  }
530
530
  }
531
531
 
532
- const VERSION = "0.26.3";
532
+ const VERSION = "0.26.4";
533
533
 
534
534
  var __defProp$7 = Object.defineProperty;
535
535
  var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -2720,19 +2720,23 @@ var __publicField$6 = (obj, key, value) => {
2720
2720
  class XataFile {
2721
2721
  constructor(file) {
2722
2722
  /**
2723
- * Name of this file.
2723
+ * Identifier of the file.
2724
+ */
2725
+ __publicField$6(this, "id");
2726
+ /**
2727
+ * Name of the file.
2724
2728
  */
2725
2729
  __publicField$6(this, "name");
2726
2730
  /**
2727
- * Media type of this file.
2731
+ * Media type of the file.
2728
2732
  */
2729
2733
  __publicField$6(this, "mediaType");
2730
2734
  /**
2731
- * Base64 encoded content of this file.
2735
+ * Base64 encoded content of the file.
2732
2736
  */
2733
2737
  __publicField$6(this, "base64Content");
2734
2738
  /**
2735
- * Whether to enable public url for this file.
2739
+ * Whether to enable public url for the file.
2736
2740
  */
2737
2741
  __publicField$6(this, "enablePublicUrl");
2738
2742
  /**
@@ -2740,25 +2744,26 @@ class XataFile {
2740
2744
  */
2741
2745
  __publicField$6(this, "signedUrlTimeout");
2742
2746
  /**
2743
- * Size of this file.
2747
+ * Size of the file.
2744
2748
  */
2745
2749
  __publicField$6(this, "size");
2746
2750
  /**
2747
- * Version of this file.
2751
+ * Version of the file.
2748
2752
  */
2749
2753
  __publicField$6(this, "version");
2750
2754
  /**
2751
- * Url of this file.
2755
+ * Url of the file.
2752
2756
  */
2753
2757
  __publicField$6(this, "url");
2754
2758
  /**
2755
- * Signed url of this file.
2759
+ * Signed url of the file.
2756
2760
  */
2757
2761
  __publicField$6(this, "signedUrl");
2758
2762
  /**
2759
- * Attributes of this file.
2763
+ * Attributes of the file.
2760
2764
  */
2761
2765
  __publicField$6(this, "attributes");
2766
+ this.id = file.id;
2762
2767
  this.name = file.name || "";
2763
2768
  this.mediaType = file.mediaType || "application/octet-stream";
2764
2769
  this.base64Content = file.base64Content;