0.2.0
A harder API surface
The fixes a first production audit asks for. They are breaking, so the whole line moves together — and the ERP modules go major, because an out-of-range module is a hard boot error rather than a warning.
publishedframework 0.2.0 · modules 2.0.0 · kigumi-cli 0.2.0
- breakingThe catalog — /openapi.json, /api/models and /api/:name/view — is no longer anonymous. It follows the same ACLs as the data it describes: a request with no token runs as the guest and sees only what a public Read ACL exposes, credentials that do not verify get a 401, and a model you cannot read answers 404 exactly like one that does not exist. Note the shape of this: a tokenless request is not rejected, it succeeds as the guest — a client that keys “please log in” off a 401 will show an empty screen instead.
- breakingServeOptions is #[non_exhaustive]. Build it with ServeOptions::new(jwt_secret) and assign the fields you need, so the next field the framework adds is a recompile rather than a compile error in every adopter binary in existence.
- breakingOpenAPI paths are keyed on the model name (/api/sale.order), not the table. The old spec published paths that 404 against the very server it describes — every model with a dotted name, which is all of them.
- breakingAn account.tax whose amount_type is not percent, fixed or division is now a 400. It used to fall through to the percentage branch and compute a wrong number in silence, on a money path.
- breakingA duplicate action, form view, report, service or ledger report fails the boot. These lookups are all first-match over the registry, so a collision used to resolve by crate link order — the same source tree could change behavior after an unrelated dependency bump.
- breakingThe five ERP modules require framework >=0.2, <0.3 and are published as 2.0.0. Since check_compat makes an out-of-range module refuse to boot, a minor bump would have let Cargo pick a version that cannot run.
- added[server].cors_allowed_origins, and the same field on ServeOptions for adopter binaries. Empty by default, so nothing changes for anyone already behind a reverse proxy.
- addedA daily gc_queues job bounds the event outbox, webhook deliveries, background jobs and refresh tokens. It never removes an outbox row that still has a delivery waiting to be retried — those rows cascade, and a retry legitimately waits days.
- fixeddelete_secured is one transaction: the row, its polymorphic attachment and thread cleanups, and the delete event now commit together or not at all. A failure after the DELETE used to leave the record gone with its attachments orphaned.
- fixedThe “tolerate an unmigrated table” path uses a savepoint. Swallowing the error inside a transaction returned Ok on a transaction Postgres had already aborted, and the caller then failed on its next statement with something unrelated.