Skip to content

roost 3.0.0

Choose a tag to compare

@Maartz Maartz released this 21 Oct 15:09
· 1 commit to main since this release
529ce8e

roost 3.0.0 runs database and route commands through the app, generates live resources, and drops roost spectro.

  • roost db setup|create|drop|seed|reset and roost routes, like mix ecto.setup and mix phx.routes. They run the app's own executable, so they use the server's configuration.
  • roost gen live Task title:string --scope user_id, like mix phx.gen.live: a live index with a create form validated as you type and delete without reloads. Forms still post to the controller without JavaScript.
  • roost migrate passes its options to the app: roost migrate down --step 2, roost migrate down --all.
  • Breaking: roost spectro is removed. Spectro's CLI didn't read the app's configuration and, without DB_NAME, used the postgres maintenance database. Use roost db and roost migrate. roost new no longer enables swift-roost's RichTerminal trait.
  • roost gen html and roost gen json no longer crash.
  • roost server, roost migrate, and roost db run the app's Postgres 18 in a container, roost-<app>-db, with Apple's container or Docker. An explicit DB_HOST keeps a Postgres you run yourself.

Generated apps depend on swift-roost 2.4.0 or later. roost db, roost routes, and roost migrate's options need it in existing apps: run swift package update swift-roost. See the changelog.