ramdb2-client 2.0.0-alpha.5 → 2.0.0-alpha.7
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/CHANGELOG.md +10 -0
- package/package.json +1 -1
- package/src/object.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# ramdb2-client
|
|
2
2
|
|
|
3
|
+
## 2.0.0-alpha.7
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8fa4d07: `@transient(getter: true)`: a getter of the class gives the value of the field, so a query filters and sorts on it (`static transientGetters`), and `RdbCrud` sorts its column by default. ramdb2-server refuses to start when the getter is missing, and refuses in a query a `@transient` resolved by GraphQL only (D62).
|
|
8
|
+
|
|
9
|
+
## 2.0.0-alpha.6
|
|
10
|
+
|
|
11
|
+
No changes in this release.
|
|
12
|
+
|
|
3
13
|
## 2.0.0-alpha.5
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/package.json
CHANGED
package/src/object.js
CHANGED
|
@@ -41,6 +41,8 @@ export class ClientObject {
|
|
|
41
41
|
static computed = []
|
|
42
42
|
/** @type {string[]} @transient fields of a scalar type: resolved by the project on the server, always loaded */
|
|
43
43
|
static transient = []
|
|
44
|
+
/** @type {string[]} @transient fields that are getters of the server class: filtered and sorted by a query (D62 of ramdb2) */
|
|
45
|
+
static transientGetters = []
|
|
44
46
|
/** @type {string[]} fields with a FULLTEXT index on the server: the search uses $text on them (D20) */
|
|
45
47
|
static fullText = []
|
|
46
48
|
/** @type {Record<string, Relation>} */
|