Rent v0.8.18
Rent v0.8.18 makes prebuilt seed programs easy to run and improves error messages when an update would change a row's known tenant. Existing seed commands and ordinary application calls continue to work.
| Improvement | What changes |
|---|---|
| Prebuilt seeds | Run a chosen executable without Cargo, a manifest or Rust source. |
| Tenant update errors | Get ScopeMismatch when a final tenant assignment conflicts with the tenant already identified by the update. |
Upgrade
Use v0.8.18 for the SDK, extension crates and CLI. Regenerate the client and commit the application lockfile. Updating a Cargo dependency does not replace an installed CLI. This patch requires no schema change or data migration.
Run the seed you already built
Build your seed with the application, then select that executable:
rent seed --executable ./bin/collaboration-seed \
--database-url "postgres://localhost/collaboration_test" -- --tenant 10Rent forwards output, arguments and failures. Relative paths use --root, which
also selects the working directory. Choose an artifact built for the intended
features and platform. Cargo options cannot be combined with --executable.
Seed programs explains path,
environment and build requirements. Ordinary rent seed still uses Cargo.
Clearer tenant update errors
An update using update_<model>_one(&row), a compound identity containing the
tenant, or a mandatory tenant equality already identifies the expected tenant.
A conflicting final tenant assignment now returns ScopeMismatch when that
condition is available. Existing authorization failures can still take precedence.
A system update using only a global ID keeps its existing zero-row, NotFound
or OptimisticLock result. Continue checking affected-row counts when exactly
one row must change. Tenant IDs remain immutable.
See mutation results for the full behavior.
