@xata.io/client 0.24.0 → 0.24.1
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 +6 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +24 -6
- package/dist/index.mjs +4 -4
- 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.24.
|
2
|
+
> @xata.io/client@0.24.1 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 [1m1.
|
7
|
+
[32mcreated [1mdist/index.cjs[22m in [1m1.3s[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 [1m970ms[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.9s[22m[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# @xata.io/client
|
2
2
|
|
3
|
+
## 0.24.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#1030](https://github.com/xataio/client-ts/pull/1030) [`eaa774f5`](https://github.com/xataio/client-ts/commit/eaa774f542185ef92448155bcdff331686c4da9f) Thanks [@SferaDev](https://github.com/SferaDev)! - Make `xata` property enumerable
|
8
|
+
|
3
9
|
## 0.24.0
|
4
10
|
|
5
11
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
@@ -492,7 +492,7 @@ function defaultOnOpen(response) {
|
|
492
492
|
}
|
493
493
|
}
|
494
494
|
|
495
|
-
const VERSION = "0.24.
|
495
|
+
const VERSION = "0.24.1";
|
496
496
|
|
497
497
|
class ErrorWithCause extends Error {
|
498
498
|
constructor(message, options) {
|
@@ -3693,9 +3693,9 @@ const initObject = (db, schemaTables, table, object, selectedColumns) => {
|
|
3693
3693
|
record.delete = function() {
|
3694
3694
|
return db[table].delete(record["id"]);
|
3695
3695
|
};
|
3696
|
-
record.xata = metadata;
|
3696
|
+
record.xata = Object.freeze(metadata);
|
3697
3697
|
record.getMetadata = function() {
|
3698
|
-
return
|
3698
|
+
return record.xata;
|
3699
3699
|
};
|
3700
3700
|
record.toSerializable = function() {
|
3701
3701
|
return JSON.parse(JSON.stringify(serializable));
|
@@ -3703,7 +3703,7 @@ const initObject = (db, schemaTables, table, object, selectedColumns) => {
|
|
3703
3703
|
record.toString = function() {
|
3704
3704
|
return JSON.stringify(transformObjectLinks(serializable));
|
3705
3705
|
};
|
3706
|
-
for (const prop of ["read", "update", "replace", "delete", "
|
3706
|
+
for (const prop of ["read", "update", "replace", "delete", "getMetadata", "toSerializable", "toString"]) {
|
3707
3707
|
Object.defineProperty(record, prop, { enumerable: false });
|
3708
3708
|
}
|
3709
3709
|
Object.freeze(record);
|