@protobase/cli 0.98.2 → 0.99.0

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
  //#region package.json
2
- var version = "0.98.2";
2
+ var version = "0.99.0";
3
3
  //#endregion
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/cli",
3
- "version": "0.98.2",
3
+ "version": "0.99.0",
4
4
  "description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -43,13 +43,13 @@
43
43
  "dependencies": {
44
44
  "@better-auth/core": "^1.7.12",
45
45
  "@hono/node-server": "^2.1.3",
46
- "@protobase/config": "0.98.2",
47
- "@protobase/layout": "0.98.2",
48
- "@protobase/query": "0.98.2",
49
- "@protobase/schema": "0.98.2",
50
- "@protobase/server": "0.98.2",
51
- "@protobase/ui": "0.98.2",
52
- "@protobase/workflows": "0.98.2",
46
+ "@protobase/config": "0.99.0",
47
+ "@protobase/layout": "0.99.0",
48
+ "@protobase/query": "0.99.0",
49
+ "@protobase/schema": "0.99.0",
50
+ "@protobase/server": "0.99.0",
51
+ "@protobase/ui": "0.99.0",
52
+ "@protobase/workflows": "0.99.0",
53
53
  "@react-email/render": "^2.1.0",
54
54
  "@scalar/hono-api-reference": "^0.12.10",
55
55
  "@sentry/vite-plugin": "^11.10.0",
@@ -20,4 +20,9 @@ Apps written for other systems that keep working on Protobase, and moving their
20
20
 
21
21
  ## react-admin
22
22
 
23
- - [Related records](../reference/layouts.md#related-records) (beta): Layouts take react-admin's `ReferenceManyField`, `ReferenceArrayField`, `ArrayField`, `RecordsIterator` and `ReferenceField` with their names, props and defaults: `source` is `id`, `sort` the key descending, and a `ReferenceManyField`'s `perPage` 25. Protobase differs in five ways: `filter` and `sort` also take AIP-160 and AIP-132 text, since an object cannot say `OR`; a list reads at most 500 records, the API's largest page, which is also a `ReferenceArrayField`'s `perPage` where react-admin's is 1000; a text item of an `ArrayField` is read as `this`; `RecordsIterator` takes no `render`, `data`, `total` or `isPending`, as a layout holds no functions and the list around it gives the rest; and a `ReferenceField` links to the record's page for both `edit` and `show`, as a record has one page. An `ArrayField` takes no `filter`, `sort` or `perPage` yet.
23
+ - [Related records](../reference/layouts.md#related-records) (beta): Layouts take react-admin's `ReferenceManyField`, `ReferenceArrayField`, `ArrayField`, `RecordsIterator` and `ReferenceField` with their names, props and defaults: `source` is `id`, `sort` the key descending, and a `ReferenceManyField`'s `perPage` 25.
24
+ - [Text filters on related records](../reference/layouts.md#related-records) (beta): `filter` and `sort` also take AIP-160 and AIP-132 text, since an object cannot say `OR`.
25
+ - [Page size of related records](../reference/layouts.md#related-records) (beta): A list reads at most 500 records, the API's largest page, which is also a `ReferenceArrayField`'s `perPage` where react-admin's is 1000.
26
+ - [Items of an ArrayField](../reference/layouts.md#related-records) (beta): A text item of an `ArrayField` is read as `this`. An `ArrayField` takes no `filter`, `sort` or `perPage` yet.
27
+ - [RecordsIterator without functions](../reference/layouts.md#related-records) (beta): `RecordsIterator` takes no `render`, `data`, `total` or `isPending`, as a layout holds no functions and the list around it gives the rest.
28
+ - [Links of a ReferenceField](../reference/layouts.md#related-records) (beta): A `ReferenceField` links to the record's page for both `edit` and `show`, as a record has one page.
@@ -162,7 +162,7 @@ It works in the `filter` of a list, `:search`, `:seek`, `:facets`, `:aggregate`,
162
162
  - It is a term ANDed at the top of the filter or of a subfilter. `NOT` and `OR` refuse it, as does anything else that takes a filter: access rules, role filters, a view's opening filter, events, subscriptions, workflow conditions and page conditions.
163
163
  - A filter holds at most 3 terms, those in subfilters included, and nests at most 2 levels.
164
164
  - It may do only what the caller could do in two steps, listing `resource` with the subfilter and then filtering with `in(field, ...)`: the [access](access.md#related-records-in-filters) rules apply to both sides, and a resource the caller cannot list answers as one that does not exist.
165
- - The [scan guard](#safety) judges both tables. Besides `field` and the subfilter's columns, `key` needs a btree index under what the subfilter pins, unless it is a JSON list, and the first field of `order_by` needs one as in a list of `resource`.
165
+ - The [scan guard](#safety) judges both tables. Besides `field` and the subfilter's columns, `key` needs a btree index under what the subfilter pins, and the first field of `order_by` needs one as in a list of `resource`. A JSON list of keys needs no index of its own: it is only read from the records the indexed subfilter and order already chose, and is never filtered or sorted on.
166
166
  - A [list across organizations](access.md#lists-across-organizations) with a term reads the session's own organization alone, and so does the term.
167
167
 
168
168
  After the subfilter it can take the `order_by`, `limit` and `page_token` of a list of `resource`, each needing the one before it, so a child read keeps to the children of exactly the records one page of that list shows: