@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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @xata.io/client@0.24.0 add-version /home/runner/work/client-ts/client-ts/packages/client
2
+ > @xata.io/client@0.24.1 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.24.0 build /home/runner/work/client-ts/client-ts/packages/client
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
  
6
6
  src/index.ts → dist/index.cjs...
7
- created dist/index.cjs in 1.5s
7
+ created dist/index.cjs in 1.3s
8
8
  
9
9
  src/index.ts → dist/index.mjs...
10
- created dist/index.mjs in 1.2s
10
+ created dist/index.mjs in 970ms
11
11
  
12
12
  src/index.ts → dist/index.d.ts...
13
- created dist/index.d.ts in 7.8s
13
+ created dist/index.d.ts in 5.9s
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.0";
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 metadata;
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", "xata", "getMetadata", "toSerializable", "toString"]) {
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);