@xata.io/client 0.28.0 → 0.28.2
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-add-version.log +1 -1
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +18 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +101 -32
- package/dist/index.mjs +18 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
|
2
|
-
> @xata.io/client@0.28.
|
2
|
+
> @xata.io/client@0.28.2 build /home/runner/work/client-ts/client-ts/packages/client
|
3
3
|
> rimraf dist && rollup -c
|
4
4
|
|
5
5
|
[36m
|
6
6
|
[1msrc/index.ts[22m → [1mdist/index.cjs[22m...[39m
|
7
|
-
[32mcreated [1mdist/index.cjs[22m in [
|
7
|
+
[32mcreated [1mdist/index.cjs[22m in [1m756ms[22m[39m
|
8
8
|
[36m
|
9
9
|
[1msrc/index.ts[22m → [1mdist/index.mjs[22m...[39m
|
10
|
-
[32mcreated [1mdist/index.mjs[22m in [
|
10
|
+
[32mcreated [1mdist/index.mjs[22m in [1m471ms[22m[39m
|
11
11
|
[36m
|
12
12
|
[1msrc/index.ts[22m → [1mdist/index.d.ts[22m...[39m
|
13
|
-
[32mcreated [1mdist/index.d.ts[22m in [
|
13
|
+
[32mcreated [1mdist/index.d.ts[22m in [1m5.5s[22m[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @xata.io/client
|
2
2
|
|
3
|
+
## 0.28.2
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#1288](https://github.com/xataio/client-ts/pull/1288) [`c9178e1`](https://github.com/xataio/client-ts/commit/c9178e1e3f2268513e78dcfce396a99a8fca5dfb) Thanks [@SferaDev](https://github.com/SferaDev)! - Update read to use `ReadonlyArray<Identifier>`
|
8
|
+
|
9
|
+
## 0.28.1
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- [#1281](https://github.com/xataio/client-ts/pull/1281) [`9a7e3f5`](https://github.com/xataio/client-ts/commit/9a7e3f5029e53efc6750e9c86bab936427788209) Thanks [@SferaDev](https://github.com/SferaDev)! - Fix issue with default public access
|
14
|
+
|
3
15
|
## 0.28.0
|
4
16
|
|
5
17
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
@@ -528,7 +528,7 @@ function defaultOnOpen(response) {
|
|
528
528
|
}
|
529
529
|
}
|
530
530
|
|
531
|
-
const VERSION = "0.28.
|
531
|
+
const VERSION = "0.28.2";
|
532
532
|
|
533
533
|
class ErrorWithCause extends Error {
|
534
534
|
constructor(message, options) {
|
@@ -775,6 +775,12 @@ const pgRollStatus = (variables, signal) => dataPlaneFetch({
|
|
775
775
|
...variables,
|
776
776
|
signal
|
777
777
|
});
|
778
|
+
const pgRollJobStatus = (variables, signal) => dataPlaneFetch({
|
779
|
+
url: "/db/{dbBranchName}/pgroll/jobs/{jobId}",
|
780
|
+
method: "get",
|
781
|
+
...variables,
|
782
|
+
signal
|
783
|
+
});
|
778
784
|
const getBranchList = (variables, signal) => dataPlaneFetch({
|
779
785
|
url: "/dbs/{dbName}",
|
780
786
|
method: "get",
|
@@ -991,6 +997,7 @@ const operationsByTag$2 = {
|
|
991
997
|
branch: {
|
992
998
|
applyMigration,
|
993
999
|
pgRollStatus,
|
1000
|
+
pgRollJobStatus,
|
994
1001
|
getBranchList,
|
995
1002
|
getBranchDetails,
|
996
1003
|
createBranch,
|
@@ -2666,16 +2673,16 @@ function transformImage(url, ...transformations) {
|
|
2666
2673
|
class XataFile {
|
2667
2674
|
constructor(file) {
|
2668
2675
|
this.id = file.id;
|
2669
|
-
this.name = file.name
|
2670
|
-
this.mediaType = file.mediaType
|
2676
|
+
this.name = file.name;
|
2677
|
+
this.mediaType = file.mediaType;
|
2671
2678
|
this.base64Content = file.base64Content;
|
2672
|
-
this.enablePublicUrl = file.enablePublicUrl
|
2673
|
-
this.signedUrlTimeout = file.signedUrlTimeout
|
2674
|
-
this.size = file.size
|
2675
|
-
this.version = file.version
|
2676
|
-
this.url = file.url
|
2679
|
+
this.enablePublicUrl = file.enablePublicUrl;
|
2680
|
+
this.signedUrlTimeout = file.signedUrlTimeout;
|
2681
|
+
this.size = file.size;
|
2682
|
+
this.version = file.version;
|
2683
|
+
this.url = file.url;
|
2677
2684
|
this.signedUrl = file.signedUrl;
|
2678
|
-
this.attributes = file.attributes
|
2685
|
+
this.attributes = file.attributes;
|
2679
2686
|
}
|
2680
2687
|
static fromBuffer(buffer, options = {}) {
|
2681
2688
|
const base64Content = buffer.toString("base64");
|
@@ -4372,7 +4379,7 @@ function getContentType(file) {
|
|
4372
4379
|
if (typeof file === "string") {
|
4373
4380
|
return "text/plain";
|
4374
4381
|
}
|
4375
|
-
if ("mediaType" in file) {
|
4382
|
+
if ("mediaType" in file && file.mediaType !== void 0) {
|
4376
4383
|
return file.mediaType;
|
4377
4384
|
}
|
4378
4385
|
if (isBlob(file)) {
|
@@ -4915,6 +4922,7 @@ exports.operationsByTag = operationsByTag;
|
|
4915
4922
|
exports.parseProviderString = parseProviderString;
|
4916
4923
|
exports.parseWorkspacesUrlParts = parseWorkspacesUrlParts;
|
4917
4924
|
exports.pattern = pattern;
|
4925
|
+
exports.pgRollJobStatus = pgRollJobStatus;
|
4918
4926
|
exports.pgRollStatus = pgRollStatus;
|
4919
4927
|
exports.previewBranchSchemaEdit = previewBranchSchemaEdit;
|
4920
4928
|
exports.pushBranchMigrations = pushBranchMigrations;
|