Skip to content

Releases

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 03:41

Integrations for --Auth saas (API keys, an MCP endpoint for AI assistants, webhooks and
encrypted secrets), and notifications and "Download your data" for every app with accounts.

Changes to know about

  • The realtime connection is shared by the whole page. lib/realtime.ts owns the tab's one
    SignalR connection, and components listen with useRealtime(onMessage, onResync).
    useTodoRealtime is built on it; code that copied its old connection setup should switch.
  • The header has a notifications bell beside the user menu (with accounts), and the user
    menu's button is marked data-menu="account" (the end-to-end tests use it).
  • EmailMessage has an optional UnsubscribeUrl, which SmtpEmailSender sends as the
    List-Unsubscribe headers. Custom IEmailSenders should do the same for notification emails.
  • EF Core: new migrations add notifications (identity and saas) and integrations (saas).
  • New package with saas: ModelContextProtocol.AspNetCore (the official C# MCP SDK,
    Apache-2.0).

Projects created from earlier versions don't change: a template update only affects new projects.

New

  • API keys (saas): owners and admins create, rotate and revoke keys on the organisation's
    Integrations page. A key (Authorization: Bearer sk_...) acts as its creator in its
    organisation, with a read or read-and-write scope and a rate limit, and only reaches the paths
    it's for (ApiKeys:AllowedPaths). Only a hash is stored.
  • MCP (saas): /mcp serves the Todos as tools (list_todos, add_todo, complete_todo)
    for AI assistants, with an API key, following the API's rules (validation, plan limits,
    realtime updates, webhooks).
  • Outgoing webhooks (saas): signed the Standard Webhooks way, sent from a durable queue with
    retries for about 10 hours, logged with the receiver's answer, with resend and test events.
    Never to localhost or private networks in production. Todo created and completed are the
    example events; add more with WebhookEvents.Raise.
  • Secrets (saas): owners store keys and tokens for other services, encrypted with Data
    Protection and never shown again; the app reads them with OrganisationSecrets.GetAsync.
  • Receiving webhooks (saas): POST /api/webhooks/incoming/{source} for any Standard
    Webhooks provider, configured with Webhooks__Incoming__Secrets__<source>.
  • Notifications (accounts): reminders (and, with saas, people joining an organisation you
    manage) appear under a bell in the header, live, and are emailed unless turned off in
    Settings or with the email's one-click unsubscribe link. Publish SendNotification to add more.
  • Download your data (accounts): Settings downloads everything stored about the user as JSON;
    with saas, owners download their organisation's data. Features add sections with
    IPersonalDataSource and IOrganisationDataSource.

See the generated app's docs/integrations.md and docs/accounts.md.

v0.4.1

Choose a tag to compare

@github-actions github-actions released this 27 Nov 15:22

The template is renamed the LibreSharp SaaS Starter. Billing and a full back office for --Auth saas, and shadcn/ui with dark mode on every page.

Changes to know about

  • The template is renamed the LibreSharp SaaS Starter. The package is now
    LibreSharp.Templates.SaasStarter and the command dotnet new saas-starter; the repository
    moved to LibreSharp/saas-starter (old links
    redirect). LibreSharp.Templates.WolverineFxReact is deprecated and gets no more versions:
    dotnet new uninstall LibreSharp.Templates.WolverineFxReact, then
    dotnet new install LibreSharp.Templates.SaasStarter.
  • --Auth defaults to saas. Pass --Auth none for the previous default.
  • With accounts, the admin page is a back office with sections. Users are at /admin with
    --Auth identity and at /admin/users with saas (where /admin is the dashboard). The
    user menu in the header is a dropdown.
  • The UI uses shadcn/ui (MIT) and the theme's colours, and dark
    mode follows the operating system. New client dependencies: radix-ui, lucide-react,
    class-variance-authority, cn, tw-animate-css, shadcn (for its Tailwind styles) and the
    Geist font, served by the app itself.
  • EF Core: new migrations add the audit log (identity and saas), and billing and back
    office tables (saas).

Projects created from earlier versions don't change: a template update only affects new projects.

New

  • Plans, trials and limits (--Auth saas):
    • A plan catalogue in one place (Billing/Plans.cs), with prices per currency, features and
      limits. Plans have versions, so customers keep their price when a plan changes.
    • A reverse trial: a new organisation gets the top plan for 14 days, then the free plan.
    • One check for features and limits (Entitlements), in Wolverine Before methods (402
      Payment Required) and in the client (GET /api/billing). Features are feature flags
      (Microsoft.FeatureManagement).
    • Limits on what exists (open Todos, members including invitations) and on use per billing
      period (reminders a month, counted in one SQL statement so requests at the same moment
      can't pass it), with a warning at 80%.
    • A downgrade never deletes data: nothing more can be added over a limit, and paid features
      switch off.
    • A public, pre-rendered pricing page, generated from the catalogue.
  • Stripe subscriptions (--Auth saas; Stripe.net,
    Apache-2.0):
    • Stripe Checkout (keeping what's left of the trial) and the customer portal.
    • Signed webhooks, stored once and handled from a durable Wolverine queue, keep a local copy of
      each organisation's billing state and invoices.
    • dotnet run -- stripe-prices creates the catalogue's prices in Stripe.
    • Deleting an organisation cancels its subscription.
    • Payments sit behind IPaymentProvider, so another provider can replace Stripe.
    • Without Stripe keys, the app runs with the trial and the free plan only.
  • Back office (/admin):
    • Users (with accounts): ending a user's sessions and resending the confirmation email, on
      top of roles, locks and invitations.
    • An audit log of every admin action.
    • Failed messages: Wolverine's dead-letter queue, to replay or discard.
    • With saas:
      • A dashboard: monthly recurring revenue, organisations, trials ending, failed payments.
      • Organisations: members, plan, usage, invoices (with Stripe links), and giving a plan
        until a date (or extending a trial), suspending, notes and deleting.
      • Feature flags for everyone, a plan, or one organisation.
  • shadcn/ui on every page, with shared Section and Messages components, and dark mode
    with no script, so pre-rendered pages show the right colours at once.

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 10:28

Organisations: --Auth saas adds multi-tenancy, with members, roles and invitations. The public
pages are now pre-rendered.

Breaking changes

  • --Identity is replaced by --Auth none|identity|saas. Use --Auth identity where you
    used --Identity true, and --Auth none (the default) for --Identity false.
  • With accounts, production needs App__ClientUrl. Set it to the app's public address, such
    as https://app.example.com. Email links (confirmation, password reset, invitations) and the
    redirect after Google or GitHub sign-in are built from it, never from the request's Host
    header. The app won't start without it outside Development. The production
    deploy/docker-compose.yml sets it from DOMAIN; set it yourself anywhere else.

Projects created from earlier versions don't change: a template update only affects new projects.

New

  • Organisations (--Auth saas), on Marten or EF Core:
    • Each organisation is a Wolverine tenant. The access token names the organisation the user
      works in, and conjoined multi-tenancy keeps each organisation's data apart in the data
      layer, with no filters to forget.
    • Every account gets its own organisation. Users can create more, switch between them in the
      header, and be invited into others.
    • Owner, Admin and Member roles, with always at least one owner.
    • Invitations by email. Someone with an account accepts after logging in; someone without one
      creates their account from the link. Invitations are limited per user and per organisation.
    • Removing a member, or deleting the organisation, takes effect at once. Deleting an
      organisation deletes its data, including Todo event history.
    • Realtime updates go to everyone working in the organisation, and reminders only to whoever
      set them.
  • Pre-rendered public pages with React Router's framework mode:
    • The home page is real HTML at build time, for search engines, link previews and CDN caching.
    • The Content-Security-Policy allows only the build's own inline start-up scripts, by hash.
    • It's still one deployable, with no Node server.
  • Code layout:
    • Code that differs between Marten and EF Core is in Name.Marten.cs / Name.EfCore.cs
      pairs, renamed to Name.cs in generated apps.
    • Account endpoints are features: Features/Auth, Features/Account and Features/Admin.
  • CI generates, tests and publishes all 12 option combinations.

Fixed

Found by an architecture review before release. The details are in
the review.

  • Email links no longer use the request's Host header. A forged host could send a password
    reset link to another site. This affected earlier versions too.
  • SignalR connections close when their access token expires, and the browser reconnects with a
    fresh token. A removed member, or a locked account, no longer keeps receiving live updates.

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 27 Nov 06:05

Full Changelog: v0.3.0...v0.3.1

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 04:54

Full Changelog: v0.2.0...v0.3.0

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 14:07

Full Changelog: v0.1.1...v0.2.0

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 26 Nov 12:41

Full Changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 12:11