@objectstack/objectql 3.0.9 → 3.0.11
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-build.log +8 -8
- package/CHANGELOG.md +18 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/protocol.ts +13 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @objectstack/objectql@3.0.
|
|
2
|
+
> @objectstack/objectql@3.0.11 build /home/runner/work/spec/spec/packages/objectql
|
|
3
3
|
> tsup --config ../../tsup.config.ts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m90.75 KB[39m
|
|
14
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m184.04 KB[39m
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 144ms
|
|
16
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m89.01 KB[39m
|
|
17
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m182.74 KB[39m
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 151ms
|
|
19
19
|
[34mDTS[39m Build start
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 11115ms
|
|
21
21
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m73.43 KB[39m
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m73.43 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @objectstack/objectql
|
|
2
2
|
|
|
3
|
+
## 3.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [92d9d99]
|
|
8
|
+
- @objectstack/spec@3.0.11
|
|
9
|
+
- @objectstack/core@3.0.11
|
|
10
|
+
- @objectstack/types@3.0.11
|
|
11
|
+
|
|
12
|
+
## 3.0.10
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [d1e5d31]
|
|
17
|
+
- @objectstack/spec@3.0.10
|
|
18
|
+
- @objectstack/core@3.0.10
|
|
19
|
+
- @objectstack/types@3.0.10
|
|
20
|
+
|
|
3
21
|
## 3.0.9
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -205,7 +205,7 @@ declare class SchemaRegistry {
|
|
|
205
205
|
abstract: boolean;
|
|
206
206
|
datasource: string;
|
|
207
207
|
fields: Record<string, {
|
|
208
|
-
type: "number" | "boolean" | "tags" | "date" | "lookup" | "file" | "
|
|
208
|
+
type: "number" | "boolean" | "tags" | "date" | "lookup" | "file" | "url" | "json" | "text" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "code" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
209
209
|
required: boolean;
|
|
210
210
|
searchable: boolean;
|
|
211
211
|
multiple: boolean;
|
|
@@ -1309,7 +1309,7 @@ declare class ObjectStackProtocolImplementation implements ObjectStackProtocol {
|
|
|
1309
1309
|
label: string | undefined;
|
|
1310
1310
|
required: boolean;
|
|
1311
1311
|
readonly: boolean;
|
|
1312
|
-
type: "number" | "boolean" | "tags" | "date" | "lookup" | "file" | "
|
|
1312
|
+
type: "number" | "boolean" | "tags" | "date" | "lookup" | "file" | "url" | "json" | "text" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "code" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
1313
1313
|
colSpan: number;
|
|
1314
1314
|
}[];
|
|
1315
1315
|
}[];
|
package/dist/index.d.ts
CHANGED
|
@@ -205,7 +205,7 @@ declare class SchemaRegistry {
|
|
|
205
205
|
abstract: boolean;
|
|
206
206
|
datasource: string;
|
|
207
207
|
fields: Record<string, {
|
|
208
|
-
type: "number" | "boolean" | "tags" | "date" | "lookup" | "file" | "
|
|
208
|
+
type: "number" | "boolean" | "tags" | "date" | "lookup" | "file" | "url" | "json" | "text" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "code" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
209
209
|
required: boolean;
|
|
210
210
|
searchable: boolean;
|
|
211
211
|
multiple: boolean;
|
|
@@ -1309,7 +1309,7 @@ declare class ObjectStackProtocolImplementation implements ObjectStackProtocol {
|
|
|
1309
1309
|
label: string | undefined;
|
|
1310
1310
|
required: boolean;
|
|
1311
1311
|
readonly: boolean;
|
|
1312
|
-
type: "number" | "boolean" | "tags" | "date" | "lookup" | "file" | "
|
|
1312
|
+
type: "number" | "boolean" | "tags" | "date" | "lookup" | "file" | "url" | "json" | "text" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "code" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector";
|
|
1313
1313
|
colSpan: number;
|
|
1314
1314
|
}[];
|
|
1315
1315
|
}[];
|
package/dist/index.js
CHANGED
|
@@ -531,6 +531,7 @@ SchemaRegistry.namespaceRegistry = /* @__PURE__ */ new Map();
|
|
|
531
531
|
SchemaRegistry.metadata = /* @__PURE__ */ new Map();
|
|
532
532
|
|
|
533
533
|
// src/protocol.ts
|
|
534
|
+
var import_data2 = require("@objectstack/spec/data");
|
|
534
535
|
function simpleHash(str) {
|
|
535
536
|
let hash = 0;
|
|
536
537
|
for (let i = 0; i < str.length; i++) {
|
|
@@ -757,18 +758,18 @@ var ObjectStackProtocolImplementation = class {
|
|
|
757
758
|
options.sort = parsed;
|
|
758
759
|
delete options.orderBy;
|
|
759
760
|
}
|
|
761
|
+
if (options.filters !== void 0 && options.filter === void 0) {
|
|
762
|
+
options.filter = options.filters;
|
|
763
|
+
}
|
|
764
|
+
delete options.filters;
|
|
760
765
|
if (typeof options.filter === "string") {
|
|
761
766
|
try {
|
|
762
767
|
options.filter = JSON.parse(options.filter);
|
|
763
768
|
} catch {
|
|
764
769
|
}
|
|
765
770
|
}
|
|
766
|
-
if (
|
|
767
|
-
|
|
768
|
-
options.filter = JSON.parse(options.filters);
|
|
769
|
-
delete options.filters;
|
|
770
|
-
} catch {
|
|
771
|
-
}
|
|
771
|
+
if ((0, import_data2.isFilterAST)(options.filter)) {
|
|
772
|
+
options.filter = (0, import_data2.parseFilterAST)(options.filter);
|
|
772
773
|
}
|
|
773
774
|
if (typeof options.populate === "string") {
|
|
774
775
|
options.populate = options.populate.split(",").map((s) => s.trim()).filter(Boolean);
|