@objectstack/objectql 3.2.6 → 3.2.8

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,5 +1,5 @@
1
1
 
2
- > @objectstack/objectql@3.2.6 build /home/runner/work/spec/spec/packages/objectql
2
+ > @objectstack/objectql@3.2.8 build /home/runner/work/spec/spec/packages/objectql
3
3
  > tsup --config ../../tsup.config.ts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,13 +10,13 @@
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
- ESM dist/index.mjs 93.56 KB
14
- ESM dist/index.mjs.map 191.69 KB
15
- ESM ⚡️ Build success in 198ms
16
- CJS dist/index.js 95.30 KB
17
- CJS dist/index.js.map 192.99 KB
18
- CJS ⚡️ Build success in 199ms
13
+ ESM dist/index.mjs 94.28 KB
14
+ ESM dist/index.mjs.map 193.23 KB
15
+ ESM ⚡️ Build success in 210ms
16
+ CJS dist/index.js 96.02 KB
17
+ CJS dist/index.js.map 194.53 KB
18
+ CJS ⚡️ Build success in 213ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 21589ms
20
+ DTS ⚡️ Build success in 24357ms
21
21
  DTS dist/index.d.mts 77.36 KB
22
22
  DTS dist/index.d.ts 77.36 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @objectstack/objectql
2
2
 
3
+ ## 3.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - @objectstack/spec@3.2.8
8
+ - @objectstack/core@3.2.8
9
+ - @objectstack/types@3.2.8
10
+
11
+ ## 3.2.7
12
+
13
+ ### Patch Changes
14
+
15
+ - @objectstack/spec@3.2.7
16
+ - @objectstack/core@3.2.7
17
+ - @objectstack/types@3.2.7
18
+
3
19
  ## 3.2.6
4
20
 
5
21
  ### Patch Changes
package/dist/index.js CHANGED
@@ -788,6 +788,40 @@ var ObjectStackProtocolImplementation = class {
788
788
  if (options[key] === "true") options[key] = true;
789
789
  else if (options[key] === "false") options[key] = false;
790
790
  }
791
+ const knownParams = /* @__PURE__ */ new Set([
792
+ "top",
793
+ "skip",
794
+ "limit",
795
+ "offset",
796
+ "sort",
797
+ "orderBy",
798
+ "select",
799
+ "fields",
800
+ "filter",
801
+ "filters",
802
+ "$filter",
803
+ "populate",
804
+ "expand",
805
+ "$expand",
806
+ "distinct",
807
+ "count",
808
+ "aggregations",
809
+ "groupBy",
810
+ "search",
811
+ "context"
812
+ ]);
813
+ if (!options.filter) {
814
+ const implicitFilters = {};
815
+ for (const key of Object.keys(options)) {
816
+ if (!knownParams.has(key)) {
817
+ implicitFilters[key] = options[key];
818
+ delete options[key];
819
+ }
820
+ }
821
+ if (Object.keys(implicitFilters).length > 0) {
822
+ options.filter = implicitFilters;
823
+ }
824
+ }
791
825
  const records = await this.engine.find(request.object, options);
792
826
  return {
793
827
  object: request.object,