@protobase/cli 0.91.0 → 0.92.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.91.0";
2
+ var version = "0.92.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.91.0",
3
+ "version": "0.92.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.91.0",
47
- "@protobase/layout": "0.91.0",
48
- "@protobase/query": "0.91.0",
49
- "@protobase/schema": "0.91.0",
50
- "@protobase/server": "0.91.0",
51
- "@protobase/ui": "0.91.0",
52
- "@protobase/workflows": "0.91.0",
46
+ "@protobase/config": "0.92.0",
47
+ "@protobase/layout": "0.92.0",
48
+ "@protobase/query": "0.92.0",
49
+ "@protobase/schema": "0.92.0",
50
+ "@protobase/server": "0.92.0",
51
+ "@protobase/ui": "0.92.0",
52
+ "@protobase/workflows": "0.92.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",
@@ -407,7 +407,7 @@ A message resource marks its sender with [`.author()`](data-config.md#resource),
407
407
 
408
408
  ### Thread
409
409
 
410
- The latest messages that match `filter`, oldest first, each under its sender's name and the time it was sent, with a line between days and a sender's next message that day drawn under the first. **Load earlier messages** at the top reads the ones before. The thread opens at the newest message and scrolls in a box of its own, so it follows what arrives while the reader is at the end and keeps their place when they scrolled back, until their own message arrives; new messages come in with the app's [live updates](live.md), and screen readers announce them politely. It is left out of the page of a user who cannot read its sender, time or text.
410
+ The latest messages that match `filter`, oldest first, each under its sender's name and the time it was sent, with a line between days and a sender's next message that day drawn under the first. **Load earlier messages** at the top reads the ones before. The thread opens at the newest message and scrolls in a box of its own, so it follows what arrives while the reader is at the end and keeps their place when they scrolled back, until their own message arrives; new messages arrive by themselves only when the message resource is [`.live()`](live.md), otherwise when the page reads the thread again, and screen readers announce them politely. It is left out of the page of a user who cannot read its sender, time or text.
411
411
 
412
412
  | Prop | |
413
413
  | --- | --- |
@@ -428,7 +428,7 @@ A text box that grows with its text: Enter or the send button creates a record o
428
428
  | --- | --- |
429
429
  | `resource` | Where a message is created. Required. |
430
430
  | `field` | The writable text field the message goes in. Required. |
431
- | `values` | Sent with every message, such as the room or the parent record's key. |
431
+ | `values` | Sent with every message, such as the room or the parent record's key. Only writable fields: a read-only field, the [tenant](data-config.md#resource) or the author stops the server at startup, since the server sets those itself. Before 0.92 these were accepted; remove them from `values`. |
432
432
  | `placeholder` | The box's text while empty. |
433
433
  | `span` | Width in a grid. |
434
434
 
@@ -61,7 +61,7 @@ The function gets the record's key as its URL has it, and returns the value as J
61
61
 
62
62
  Each query the function sends is parsed with Postgres's own parser, however it was built. For each table it reads, Protobase keeps the query's conditions on that table: comparisons of its columns with constants and parameters, `IN`, `= ANY`, `BETWEEN` and null tests, joined with `AND`, `OR` and `NOT`, with the conditions of inner joins, and of an outer join's `ON` for its optional side. The condition is the dependency, so a new row that comes to match is caught as well as a row that leaves it. A part it cannot work out, such as a function call or a column of another table, counts as matching every row: a query it cannot read at all reads the whole table. Nested queries, `WITH` queries and both sides of a `UNION` count too. An update counts only when it changes a column the query used.
63
63
 
64
- A table that is no resource of `reads` or the record's own stops the run with an error naming it: add its resource to `reads`. `depends()` takes only those resources too; with `track: false`, the dependencies it names are the only ones, for a function whose queries say less than it knows.
64
+ A table that is no resource of `reads` or the record's own stops the run with an error naming it: add its resource to `reads`. List every resource the function reads there, those it names with `depends()` included: only their changes are captured, and `depends()` on any other stops the run too. `depends()` adds a dependency by hand to a listed resource and never stands in for `reads`; with `track: false`, the dependencies it names are the only ones, for a function whose queries say less than it knows.
65
65
 
66
66
  ## The clock
67
67
 
@@ -64,7 +64,7 @@ Behaviour comes from [named actions](#named-actions); React code from [custom co
64
64
 
65
65
  ## Data
66
66
 
67
- `Stat`, `RecordCard`, `Table`, `CardRow`, `RecordRow`, `RecordCards` and `Thread` read records of a `resource`. `filter` is AIP-160 and `sort` AIP-132, exactly as the list API's `filter` and `order_by`, so a filter that works in the list's URL works here.
67
+ `Stat`, `RecordCard`, `Table`, `CardRow`, `RecordRow`, `RecordCards` and `Thread` read records of a `resource`. `filter` is AIP-160 and `sort` AIP-132, exactly as the list API's `filter` and `order_by`, so a filter that works in the list's URL works here. `Thread` takes no `sort`: it orders its messages by its `time` field, newest first.
68
68
 
69
69
  A `RecordCard` (its first match) and each card of a `CardRow` hold a **record**. Inside one, `Field`, `Progress`, `Stat field`, `Show`, `Action` and `ModalForm mode="edit"` work on that record, and a `RecordCard`'s header `actions` do too. A field name may follow relations: `company_id.city` is the city of the record's company, fetched like the record page fetches it and cached.
70
70