diff --git a/content/docs/releases/v19/index.mdx b/content/docs/releases/v19/index.mdx index 483e8a46af8..e3ed71d101c 100644 --- a/content/docs/releases/v19/index.mdx +++ b/content/docs/releases/v19/index.mdx @@ -4,10 +4,11 @@ description: "The v19 line, which opens with the 19.0.0-next prereleases: the br --- > **Release status: prereleases only.** This page covers the -> `19.0.0-next.N` prerelease line. Read on 2026-12-02, npm's `latest` tag -> carries 18.6.0 and its `next` tag `19.0.0-next.3`. The line's prereleases on -> npm are `19.0.0-next.0` (2026-11-26), `19.0.0-next.2` (2026-11-28) and -> `19.0.0-next.3` (2026-12-01); `19.0.0-next.1` was versioned on `main` and is +> `19.0.0-next.N` prerelease line. Read on 2026-12-03, npm's `latest` tag +> carries 18.6.0 and its `next` tag `19.0.0-next.4`. The line's prereleases on +> npm are `19.0.0-next.0` (2026-11-26), `19.0.0-next.2` (2026-11-28), +> `19.0.0-next.3` (2026-12-01) and `19.0.0-next.4` (2026-12-03); +> `19.0.0-next.1` was versioned on `main` and is > not on npm, so its changes first ship in `19.0.0-next.2`. A plain install > stays on 18.x until 19.0 GA; > a prerelease is installed only on request, at an exact `19.0.0-next.N`. The @@ -24,7 +25,7 @@ prerelease. The second, below landed on `main` after 18.6.0, each with its own changeset saying what breaks and how to move. It ships in a `19.0.0-next.N` prerelease. A line marked "on `main`" landed after `19.0.0-next.2` and first ships in -`19.0.0-next.3`. +`19.0.0-next.3`; a line marked "`next.4`" first ships in `19.0.0-next.4`. ## Breaking changes @@ -41,7 +42,11 @@ registered) are among the pending changesets, and their lines say "on pending changesets. It also consumed 76 that landed after `6eb23c87`, and 19 of those are breaking (6 to act on, 13 registered). This list does not carry those 19 yet: read them in each package's `CHANGELOG.md` under -`19.0.0-next.3`. Of the other 1,245 changesets at `6eb23c87`, 403 add +`19.0.0-next.3`. The pull requests titled with `!` that first ship in +`19.0.0-next.4` (`git log ea6e312a..779ff419`, the `19.0.0-next.3` and +`19.0.0-next.4` release commits) are listed, marked "`next.4`", under the +section the same function puts their changesets in; the other changesets of +that pass are in each package's `CHANGELOG.md` under `19.0.0-next.4`. Of the other 1,245 changesets at `6eb23c87`, 403 add capabilities, 12 declare a semantic change and 830 are other fixes; they are not listed here. Each line below is the changeset's own summary, shortened, with the pull request that landed it; the @@ -57,10 +62,24 @@ the same 102 among those changesets at `6eb23c87`. - **Protocol 19.** `PROTOCOL_VERSION` reads `'19.0.0'`, so a runtime from this line refuses a manifest whose `engines.protocol` admits 18 and not 19 (`'^18'`) with `OS_PROTOCOL_INCOMPATIBLE`, before any of its metadata - loads; from the cut after `19.0.0-next.3`, `os validate` and `os build` - refuse it too. Registered as `protocol-18-range-refused`, on the protocol-19 + loads; from `19.0.0-next.4`, `os validate` and `os build` refuse it + too. Registered as `protocol-18-range-refused`, on the protocol-19 step. [#37314](https://github.com/objectstack-ai/objectstack/pull/37314) +- **A database switches to protocol 19, once.** From `19.0.0-next.4`, forms + leave `view` and are their own `form` type, and a deployment's stored forms + in an old shape move only through the switch command, all or nothing: + `os migrate protocol --to 19` previews what moves and whether the database + can switch, and `--apply --yes` moves them and records the switch. Until it + is recorded, `os serve` (and so `os dev` and `os start`) refuses to start + on a database an earlier release created, with + `FORM_TYPE_SWITCH_REQUIRED`, naming the command; a database the server + creates from empty is recorded at its first start. Step 5 of + [Coming from 18.x](#coming-from-18x) places it; + [Check stored forms before the next major](/docs/deployment/stored-forms-upgrade) + says what it writes and how to clear a row that holds it. + [#38844](https://github.com/objectstack-ai/objectstack/pull/38844), + [#38957](https://github.com/objectstack-ai/objectstack/pull/38957) — `next.4` - **67 translation keys retired from `@object-ui/i18n`.** Keys 18.6.0 shipped and no code reads any more are gone from every locale; an override of one of them no longer applies. The changeset lists every key. @@ -152,6 +171,15 @@ the same 102 among those changesets at `6eb23c87`. [#35716](https://github.com/objectstack-ai/objectstack/pull/35716), [#35741](https://github.com/objectstack-ai/objectstack/pull/35741), [#36695](https://github.com/objectstack-ai/objectstack/pull/36695) +- On an object with `sharingModel: 'public_read_write'` and an owner field, a + delete follows the record's owner, as on a private object: the owner, a + manager above the owner, or a Modify All holder deletes it, and who created + it no longer decides. A creator who no longer owns a record, a member whose + organization membership is not one of the built-in kinds, a session with no + organization, and an organization admin without Modify All lose deletes + they had; grant Modify All on the object where admins should still + clean up others' records. Edit is unchanged. + [#39216](https://github.com/objectstack-ai/objectstack/pull/39216) — `next.4` #### A disabled package's objects @@ -326,6 +354,37 @@ the same 102 among those changesets at `6eb23c87`. [#38269](https://github.com/objectstack-ai/objectstack/pull/38269) — on `main` +#### Forms, flows and printing + +- A record's New and Edit dialogs lay out by the object's `fieldGroups` (and + each field's `showOnCreate`), never by a form: a create or edit form a view + declared stops shaping them, and nothing converts it into field groups, so + declare the object's field groups before you upgrade. A `view` holds lists + only; a form authored in a view (`form`, `formViews`, + `viewKind: 'form'`) is refused with a prescription naming `forms:`, and + `os migrate meta --from 18 --write` moves it to a `form` item under the + name it is served as. A stored form in an old shape is served only once the + database's switch has moved it (step 5 of + [Coming from 18.x](#coming-from-18x)). + [#38957](https://github.com/objectstack-ai/objectstack/pull/38957) — `next.4` +- A flow already published or stored with a durable-pause shape the save + door refuses loads, arms and runs with a logged finding instead of failing + its whole artifact; a new save or publish still refuses it. For TypeScript + callers, `resolveArtifactPackageEntries` and `resolveArtifactPackageOrder` + of `@objectstack/core` take a required read posture: pass + `{ posture: 'at-rest' }` on a load path, `{ posture: 'strict' }` on a build, + publish or CLI check. + [#39306](https://github.com/objectstack-ai/objectstack/pull/39306) — `next.4` +- A record print downloads the PDF and stores no attachment: + `POST /api/v1/print/records` answers `200` with the PDF itself, needs read + access only, and writes no file or attachment on the record. A declared + print action now downloads the PDF in the Console. An app that wants the + PDF kept on the record saves it with an act of its own, and an automation + keyed on the printed attachment no longer fires. In code, + `IPrintService.printRecordToFile` is `printRecordToPdf`, resolving to + `PrintedRecordPdf`. + [#39076](https://github.com/objectstack-ai/objectstack/pull/39076) — `next.4` + #### Knowledge - `@objectstack/knowledge-ragflow` is retired, and the Knowledge settings page @@ -475,6 +534,10 @@ of the other 30 landed after 18.6.0 on the protocol-18 step, which a flow's defaults. [#38001](https://github.com/objectstack-ai/objectstack/pull/38001) — on `main` +- A form no longer declares `subforms`; a child table entered with the record + is placed by a field group whose `relatedList` names the child. Delete + `subforms` from the form; a stored row is converted when it is read. + [#39061](https://github.com/objectstack-ai/objectstack/pull/39061) — `next.4` #### Composition and packages @@ -557,6 +620,21 @@ of the other 30 landed after 18.6.0 on the protocol-18 step, which - Publishing an object draft judges it by the current `ObjectSchema`. [#38299](https://github.com/objectstack-ai/objectstack/pull/38299) — on `main` +- A field's `precision: 0` is refused at save and publish: decimal places are + `scale`. Replace it with `scale: 0` on a `number`, `percent`, `rating` or + `slider` field, and delete it on a `currency` field. A stored object that + carries it keeps loading until it is next saved. + [#39211](https://github.com/objectstack-ai/objectstack/pull/39211) — `next.4` +- A flow condition's date arithmetic that mixes a bare date field with + `record.FIELD` or `previous.FIELD`, and a date field read by index + (`record['FIELD']`), take the refusals their consistent spellings take; use + `daysBetween`, `addDays` and `date(…)`. + [#38949](https://github.com/objectstack-ai/objectstack/pull/38949) — `next.4` +- A flow condition's date-text fault is reported even where a type-mismatch + warning sits beside it, and a text or boolean field read by index takes the + type-mismatch verdict its member spelling takes; a macro variable ordered + against a text literal is no longer refused. + [#39072](https://github.com/objectstack-ai/objectstack/pull/39072) — `next.4` #### Knowledge sources @@ -576,6 +654,32 @@ of the other 30 landed after 18.6.0 on the protocol-18 step, which [#38470](https://github.com/objectstack-ai/objectstack/pull/38470) — on `main` +#### Flows that park the run + +No conversion rewrites these shapes, since which rewrite the author meant is +not recorded; `os migrate meta` lists each entry with its fix. A save or +publish of the first two is refused; a flow already published or stored with +one loads with a logged finding until it is next saved +([#39306](https://github.com/objectstack-ai/objectstack/pull/39306)). + +- A node that fans out to two or more branches that each reach an + `approval`, `approval_revise`, `screen` or `wait` step is refused at every + door. Chain the pausing steps onto one branch, use one `approval` with + several approver groups and `behavior: 'unanimous'`, or put a `decision` + with an `isDefault: true` fallback edge in front of them. + [#38871](https://github.com/objectstack-ai/objectstack/pull/38871) — `next.4` +- A node that takes a branch which parks the run before its other out-edges + is refused: make the parking branch the last one the node takes, chain the + steps onto one branch, or route them through an exclusive `decision`. + [#38970](https://github.com/objectstack-ai/objectstack/pull/38970) — `next.4` +- A triggered flow whose fan-out or earlier branch reaches a `subflow` or + `map` whose child flow can suspend is saved but not armed: + `GET /api/v1/automation/_status` reads `bound: false` with the cause + `suspending_subflow_on_branch`. Chain the call and the other pausing step + onto one branch, make the call's branch the last one taken, or republish + the child without a step that suspends. + [#39144](https://github.com/objectstack-ai/objectstack/pull/39144) — `next.4` + #### Sharing and permissions - View All and Modify All stop opening fields; `viewAllFields` is the one @@ -600,8 +704,8 @@ of the other 30 landed after 18.6.0 on the protocol-18 step, which Reach 18.6.0 first, walking each 18.x page's upgrade checklist, through the [18.6.0 checklist](/docs/releases/v18/18-6#upgrade-checklist). Where a step -says "after `next.3`", it describes `main` on 2026-12-02, which ships in the -cut that follows `19.0.0-next.3`. Then: +says "from `next.4`", it describes `19.0.0-next.4`, and the step says what +`19.0.0-next.3` does instead. Then: 1. **Move every pin together, to one exact `19.0.0-next.N`.** Every `@objectstack/*` and `@object-ui/*` dependency, with `@objectstack/skills` @@ -620,14 +724,14 @@ cut that follows `19.0.0-next.3`. Then: literal to rewrite, so there the command writes nothing and lists the range; change it by hand in each package manifest. Until the range admits 19, a 19 runtime refuses the stack before any of it loads - (`OS_PROTOCOL_INCOMPATIBLE`), and after `next.3` so do `os validate` and + (`OS_PROTOCOL_INCOMPATIBLE`), and from `next.4` so do `os validate` and `os build`, naming `os migrate meta --from 18`; `19.0.0-next.3`'s `os validate` and `os build` still pass `'^18'` with a warning. On `19.0.0-next.3`, `--write` does not follow the `exportsOf(…)` call that every `create-objectstack` project wires its collections through, so it writes none of such a project's edits and lists each as - `not written [helper]`: make them by hand from that list. After `next.3` it + `not written [helper]`: make them by hand from that list. From `next.4` it follows that wiring, writes what stands on its own when part of the write cannot be made, says `Wrote N of M mechanical change(s)`, and exits `1` while it leaves a change or the range for you. @@ -652,18 +756,39 @@ cut that follows `19.0.0-next.3`. Then: Modify All entry. That moves the matrix, so `os build` stops on "Access matrix drift" (`os validate` does not run this gate). Run `os build --update-access-matrix`, then review and commit the matrix - diff, the review of who can do what. After `next.3`, `os migrate meta` + diff, the review of who can do what. From `next.4`, `os migrate meta` lists this drift and prints the same step. -5. **Remove overrides of the retired translation keys.** An i18next resource +5. **Switch each deployment's database to protocol 19 before its first 19 + boot.** From `next.4`, a 19 `os serve` (and so `os dev` and `os start`) + refuses to start on a database an earlier release created until the + switch is recorded, with `FORM_TYPE_SWITCH_REQUIRED`, and its refusal + names the command. Run it with the 19 CLI against each deployment's + database, before you start the 19 runtime on it: + + ```bash + os migrate protocol --to 19 # preview: what moves, and whether it can switch + os migrate protocol --to 19 --apply --yes # move the stored forms, check again, record the switch + ``` + + Pass the `--preset`, `--dev` and `--database-url` the deployment boots + with. The preview exits `1` when a stored row holds the switch, listing + each with the action for its cause; take those actions on the release you + are running, then run it again. A database with no stored form runs it + once too, and finds nothing to move. What it writes, and how to clear a + row that holds it: + [Check stored forms before the next major](/docs/deployment/stored-forms-upgrade). + [#38844](https://github.com/objectstack-ai/objectstack/pull/38844), + [#38957](https://github.com/objectstack-ai/objectstack/pull/38957) +6. **Remove overrides of the retired translation keys.** An i18next resource or Studio catalogue that overrides one of the 67 keys in [#37230](https://github.com/objectstack-ai/objectstack/pull/37230) is never read; move its text to the key the surface reads now. -6. **Read the sign-in and access entries before the first boot.** A +7. **Read the sign-in and access entries before the first boot.** A development seed credential is refused and retired outside development mode, and the doors listed under [需手动处理](#action-required) answer differently for a disabled package, an environment you are not a member of, and a reject without a reason. -7. **Decide where Change Owner is offered.** 18.x offered it nowhere in the +8. **Decide where Change Owner is offered.** 18.x offered it nowhere in the Console. On 19 a record whose object has a reassignable owner shows **Change Owner** in its page header, beside the owner on its edit form, and in a list's selection bar for the selected rows, as a button or under @@ -674,7 +799,7 @@ cut that follows `19.0.0-next.3`. Then: `userActions: { transfer: false }`; it is off by default on a `controlled_by_parent` detail. [#36343](https://github.com/objectstack-ai/objectstack/pull/36343) -8. **Move Studio bookmarks to a package.** Studio has no home page on 19. It +9. **Move Studio bookmarks to a package.** Studio has no home page on 19. It opens one package at `/_console/studio/PACKAGE`, on that package's Overview. The bare `/_console/studio` opens the package you were last in, and otherwise Setup → Packages (a developer who cannot open Setup → @@ -682,13 +807,13 @@ cut that follows `19.0.0-next.3`. Then: Packages or from an app. [#37166](https://github.com/objectstack-ai/objectstack/pull/37166), [#38318](https://github.com/objectstack-ai/objectstack/pull/38318) -9. **Check each deployment's stored metadata.** Studio-saved rows are not +10. **Check each deployment's stored metadata.** Studio-saved rows are not your sources: run `os migrate meta --stored` with the 19 CLI against the deployment's database, then `--apply`. A stored list view that still carries `bulkActions` is served invalid on 19 until it is rewritten or re-saved without it. On `19.0.0-next.3` the pass tells such a view its actions are "not declared as an action of that object" and stays green; - after `next.3` it judges the view with the actions the deployment declares, + from `next.4` it judges the view with the actions the deployment declares, rewrites it on `--apply` where those actions already carry `selection`, and exits `1` while any stored row would be served invalid, naming the row and its fix ([the stored half](/docs/upgrading#the-stored-half)). @@ -700,7 +825,8 @@ from the changesets and walked on 2026-12-01 from 18.6.0 to `19.0.0-next.3`, over two apps: a blank app given data and Studio customizations, and the 18.6.0 showcase. Both reached a working 19 with their data and customizations, but only after edits this page did not name then; steps 2, 4, -7, 8 and 9 now carry them. The walk has not been repeated after `next.3`. +8, 9 and 10 now carry them. The walk has not been repeated after `next.3`, so +step 5, the switch `19.0.0-next.4` added, was not walked here. ## How a breaking change lands on this line diff --git a/content/docs/upgrading.mdx b/content/docs/upgrading.mdx index e3b6f84253b..efd1fe23cb7 100644 --- a/content/docs/upgrading.mdx +++ b/content/docs/upgrading.mdx @@ -420,8 +420,12 @@ os build # 4. compile to dist/objectstack.json # (a committed access-matrix.json the edits # moved: os build --update-access-matrix, # then review and commit the matrix diff) - # 5. ship the artifact; restart -os migrate plan # 6. reconcile the database to the new metadata +os migrate protocol --to 19 # 5. crossing into 19 only, per database, before + # the first 19 boot: preview the switch, then + # --apply --yes to move the stored forms and + # record it (a 19 os serve refuses until then) + # 6. ship the artifact; restart +os migrate plan # 7. reconcile the database to the new metadata os migrate apply --yes # (--yes where no terminal answers its prompt) ``` @@ -433,8 +437,18 @@ protocol-19 step adds `viewAllFields: true` beside every View All and Modify All entry) stops the build on "Access matrix drift" after `os validate` passed. Run `os build --update-access-matrix`, then review and commit the matrix diff, which is the review of who can do what. From the first 19 release after -`19.0.0-next.3`, `os migrate meta` names that drift and prints this step. Full command reference in the [CLI -documentation](/docs/deployment/cli). +`19.0.0-next.3`, `os migrate meta` names that drift and prints this step. + +Step 5 is owed once per database, on the move from 18 to 19 (from +`19.0.0-next.4`): until the switch is recorded, `os serve` (and so `os dev` +and `os start`) refuses to start on a database an earlier release created, +with `FORM_TYPE_SWITCH_REQUIRED`, naming the command. Run it with the 19 CLI +and the `--preset`, `--dev` and `--database-url` the deployment boots with; +a preview that exits `1` lists each stored row that holds the switch with +the action for its cause, taken on the release you are running +([above](#what-the-boot-does-when-the-database-disagrees), +[what it writes](/docs/deployment/stored-forms-upgrade#what-the-upgrade-command-writes)). +Full command reference in the [CLI documentation](/docs/deployment/cli). ## Upgrading to 18.0