Skip to content

v0.9.0 ​

The documentation release: a documentation site with every option on one page, a tutorial that builds a feature from start to finish, reference pages generated from the code, troubleshooting, and a way to upgrade an app from one version of the template to the next. A few fixes the docs work turned up, and a webhook security fix.

Changes to know about ​

  • The SignalR group names moved from TodoNotifications (Features/Todos/TodoChanged.cs) to Realtime/RealtimeGroups.cs, so a feature doesn't depend on the Todos to send live updates: TodoNotifications.UserGroup(id) is now RealtimeGroups.User(id), and TodoNotifications.OrganisationGroup(id) is RealtimeGroups.Organisation(id). The group names themselves (user:{id}, organisation:{id}) are unchanged.
  • npm run gen:api no longer breaks the client's build in apps without organisations. The client called endpoints those apps don't have, which only compiled against the template's full API types. The token refresh in lib/api/client.ts now uses fetch (same request, headers and results), and downloadFile in lib/download.ts only accepts the exports the app's API types list.
  • .saas-starter.json at the app's root records the template version, the app's name and the options it was created with. upgrade-patch.sh reads it, and each upgrade patch updates it: keep it.

New ​

  • A documentation site, libresharp.github.io/saas-starter, built from the generated app's docs, with every option on one page: labels on list items and table rows, tabs on code that differs, titled boxes for the rest. A copy per version, an "Edit this page" link on each page, and llms.txt for AI coding assistants.
  • Upgrading an app: upgrade-patch.sh generates the app at both versions with its name and options and writes the difference as a patch, to apply with git apply -3, which keeps the app's own changes. From v0.9.0, ./upgrade-patch.sh 0.10.0 at the app's root is all it takes; a guide for each version covers what the patch can't.
  • docs/tutorial.md: a Contacts feature from start to finish, with Marten or EF Core: endpoints and validation, a background handler, live updates over SignalR, deleting the data with its owner, the React page, and tests. CI applies it to a generated app in every combination and builds and tests the result. docs/how-to/add-a-feature.md is now the short checklist.
  • docs/reference/: every configuration setting with its default, every HTTP endpoint and who can call it, and every message handler, generated from the code and its comments.
  • docs/troubleshooting.md: the usual problems, by the message they print: the database not running, ports in use, a missing migration, an old Node.js, the API not running for the dev server, unconfirmed emails, and production's startup checks.
  • Architecture: how messages are delivered (the outbox, retries, failed messages, scheduled messages, and the organisation travelling with them). Accounts: the sign-in and token refresh as a diagram. Both guides have diagrams GitHub draws too.

Fixed ​

  • Webhooks refuse more private addresses (--Auth saas): IPv4 addresses inside NAT64, 6to4, IPv4-compatible IPv6 and Teredo addresses, and the benchmarking and documentation ranges, so a webhook URL can't reach the app's own network through them.
  • The header when it's crowded (long organisation names or emails, narrow screens): the organisation switcher no longer shrinks to its arrow, hiding the name, and the account actions wrap onto a second line rather than overlap the links (components/Layout.tsx).
  • A flaky test: AccountProtectionTests.the_browser_that_registered_is_already_known now waits for the confirmation email, which is sent in the background.

Documentation for v0.10.0. Released under the MIT licence.