@protobase/cli 0.95.6 → 0.95.8

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.95.6";
2
+ var version = "0.95.8";
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.95.6",
3
+ "version": "0.95.8",
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.95.6",
47
- "@protobase/layout": "0.95.6",
48
- "@protobase/query": "0.95.6",
49
- "@protobase/schema": "0.95.6",
50
- "@protobase/server": "0.95.6",
51
- "@protobase/ui": "0.95.6",
52
- "@protobase/workflows": "0.95.6",
46
+ "@protobase/config": "0.95.8",
47
+ "@protobase/layout": "0.95.8",
48
+ "@protobase/query": "0.95.8",
49
+ "@protobase/schema": "0.95.8",
50
+ "@protobase/server": "0.95.8",
51
+ "@protobase/ui": "0.95.8",
52
+ "@protobase/workflows": "0.95.8",
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",
@@ -5,6 +5,7 @@
5
5
  The changes of each record, comments on it, and pages that refresh as records change.
6
6
 
7
7
  - [Record history](../reference/history.md#on-the-record-page): Every change to a record is kept with who made it and when, including changes made outside the API.
8
+ - [Ignored fields](../reference/history.md#ignoring-fields): Fields the database keeps up to date itself, such as counts, can be left out of a record's history, so their changes add no entries.
8
9
  - [Activity](../reference/history.md#activity): Admins see all changes across resources in one list.
9
10
  - [History retention](../reference/history.md#keeping-it): Changes older than a set number of days are removed by a daily job.
10
11
  - [Comments](../reference/comments.md#on-the-record-page): Anyone who can read a record can read and add comments on it.
@@ -53,6 +53,16 @@ A change is what an event sees: one per record and transaction, with the record
53
53
  | Who | For a write through the API, the caller's id and roles. For a write from elsewhere, none; the database role that wrote is kept either way: the one `set role` chose, else the session's. |
54
54
  | `at` | When the writing transaction started. |
55
55
 
56
+ ## Ignoring fields
57
+
58
+ `.history({ ignore: [...] })` names fields whose changes are not captured at all, such as counts or timestamps the database keeps up to date itself. An update that changes only those fields keeps nothing, and queues no work; an update that changes others too keeps the change without them. The fields are left out of every change of the resource, so [events](events.md), [derived values](derived.md) and [live updates](live.md) do not see them either. The key, tenant and soft delete fields cannot be ignored, and an unknown field stops startup.
59
+
60
+ ```ts
61
+ .history({ ignore: ['tasks_done', 'progress'] })
62
+ ```
63
+
64
+ `protobase migration` recreates the resource's triggers when the ignored fields change.
65
+
56
66
  ## On the record page
57
67
 
58
68
  [`l.history(title?, { limit, when })`](https://docs.protobase.net/api/schema/variables/l/#history) shows the record's changes newest first: who made each, how long ago, and each changed field before and after, formatted and labelled as the view shows the field. `limit` changes show at first (default 10), and Show more loads the next ones. A view without a layout shows History last by itself. A view that names `l.history()` for a resource without `.history()` stops startup.