ramdb2-client 2.0.0-alpha.3 → 2.0.0-alpha.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # ramdb2-client
2
2
 
3
+ ## 2.0.0-alpha.4
4
+
5
+ No changes in this release.
6
+
3
7
  ## 2.0.0-alpha.3
4
8
 
5
9
  No changes in this release.
package/README.md CHANGED
@@ -135,6 +135,10 @@ An object always comes **whole**: its stored fields, its foreign keys, its compu
135
135
  relation that was not loaded throws a `RelationNotLoadedError`: a getter never sends a request on its own, so there
136
136
  is no hidden request per row.
137
137
 
138
+ The `see` permission of the server applies to the relations: an object the user may not see is missing from a list
139
+ relation, and an object relation gives `null`, even when its foreign key is set. A `@restricted` field the user may not read gives `null` too;
140
+ a draft sends only the changed fields, so it is never written back.
141
+
138
142
  A list relation comes whole, without filter or pagination. To filter or paginate the children, query their type
139
143
  with `$in` on the ids of the parents.
140
144
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ramdb2-client",
3
- "version": "2.0.0-alpha.3",
3
+ "version": "2.0.0-alpha.4",
4
4
  "description": "Client of ramdb2-server: the objects of the database, ready to use in a web site",
5
5
  "type": "module",
6
6
  "exports": "./src/index.js",