Skip to content

Releases

roost 3.0.1

Choose a tag to compare

@Maartz Maartz released this 22 Oct 17:50

roost 3.0.1 generates apps for swift-roost 2.5.0, which requires macOS 15.

  • Generated apps depend on swift-roost 2.5.0 or later and say .macOS(.v15) in Package.swift. With roost 3.0.0, roost new on macOS made an app that SwiftPM rejected once swift-roost 2.5.0 was out.

Upgrade: on macOS, an app generated by an earlier release builds with swift-roost 2.5.0 once its Package.swift says .macOS(.v15).

See the changelog.

roost 3.0.0

Choose a tag to compare

@Maartz Maartz released this 21 Oct 15:09
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.

roost 2.1.1

Choose a tag to compare

@Maartz Maartz released this 08 Oct 14:35
  • roost new writes apps that depend on swift-roost 2.1.3 or later with its
    RichTerminal trait, so roost spectro shows Spectro's colors, spinners,
    and styled tables again. Remove "RichTerminal" from roostTraits in the
    generated Package.swift to skip downloading Noora.
  • roost new --tailwind generates a working Tailwind v4 setup: @import "tailwindcss"; in Public/css/input.css and no tailwind.config.js.
    Earlier projects compiled an almost empty stylesheet because the generated
    v3 setup is ignored by v4. The Tailwind binary is pinned to v4.3.3, and
    roost server and roost build warn when input.css still uses the v3
    @tailwind directives.

roost 2.1.0

Choose a tag to compare

@Maartz Maartz released this 07 Oct 18:14

The first release of the roost CLI as its own package. It previously shipped
inside swift-roost, which made mint install resolve the framework's whole
dependency graph.

  • Install with mint install roost-framework/roost-cli@2.1.0.
  • Generated apps depend on swift-roost 2.1.0 and ESW 1.6.0.
  • roost gen resource generates controllers instead of closure routes:
    TodoController for HTML and TodoAPIController for JSON, registered with
    resources(...). Scoped HTML controllers run requireAuth() as a controller
    plug. Actions decode input with conn.permit, so only the input type's
    fields can be set.
  • roost gen auth generates RegistrationController and SessionController,
    with their routes in Routes/AuthRoutes.swift.
  • roost new generates a PageController for / and logs requests with
    roost_requestLogger().
  • roost spectro <arguments> runs the spectro executable from the app's own
    dependencies.