@xata.io/client 0.23.3 → 0.23.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.23.3 add-version /home/runner/work/client-ts/client-ts/packages/client
2
+ > @xata.io/client@0.23.4 add-version /home/runner/work/client-ts/client-ts/packages/client
3
3
  > node ../../scripts/add-version-file.mjs
4
4
 
@@ -1,5 +1,5 @@
1
1
 
2
- > @xata.io/client@0.23.3 build /home/runner/work/client-ts/client-ts/packages/client
2
+ > @xata.io/client@0.23.4 build /home/runner/work/client-ts/client-ts/packages/client
3
3
  > rimraf dist && rollup -c
4
4
 
5
5
  
@@ -7,7 +7,7 @@
7
7
  created dist/index.cjs in 1.1s
8
8
  
9
9
  src/index.ts → dist/index.mjs...
10
- created dist/index.mjs in 906ms
10
+ created dist/index.mjs in 829ms
11
11
  
12
12
  src/index.ts → dist/index.d.ts...
13
- created dist/index.d.ts in 5.7s
13
+ created dist/index.d.ts in 5.4s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @xata.io/client
2
2
 
3
+ ## 0.23.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#951](https://github.com/xataio/client-ts/pull/951) [`470cc71f`](https://github.com/xataio/client-ts/commit/470cc71f7c5c8b9fd50f789e157d2b2eecd0b3e8) Thanks [@SferaDev](https://github.com/SferaDev)! - Add random sorting
8
+
3
9
  ## 0.23.3
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -492,7 +492,7 @@ function defaultOnOpen(response) {
492
492
  }
493
493
  }
494
494
 
495
- const VERSION = "0.23.3";
495
+ const VERSION = "0.23.4";
496
496
 
497
497
  class ErrorWithCause extends Error {
498
498
  constructor(message, options) {
@@ -2611,7 +2611,11 @@ function isSortFilterString(value) {
2611
2611
  return isString(value);
2612
2612
  }
2613
2613
  function isSortFilterBase(filter) {
2614
- return isObject(filter) && Object.values(filter).every((value) => value === "asc" || value === "desc");
2614
+ return isObject(filter) && Object.entries(filter).every(([key, value]) => {
2615
+ if (key === "*")
2616
+ return value === "random";
2617
+ return value === "asc" || value === "desc";
2618
+ });
2615
2619
  }
2616
2620
  function isSortFilterObject(filter) {
2617
2621
  return isObject(filter) && !isSortFilterBase(filter) && filter.column !== void 0;