Skip to main content
Introducing packages.sweber.dev
All posts
Release1 min read

Inverse 0.7.0 released

Inverse now ships example projects for the Next.js Pages Router, Remix, SvelteKit and Express. Inverse Pro adds one reminder per case shortly before a refund or contract end is due.

By Seya Weber

Inverse 0.7.0 is out. @sweberdev/inverse and @sweberdev/inverse-react are on npm under the MIT licence, and the Pro packages are updated on GitHub Packages for licence holders. Nothing breaks: 0.6.0 code keeps working as it is.

What is in 0.7.0

  • Example projects. The repository now has an examples/ folder with minimal setups for the Next.js Pages Router, Remix, SvelteKit and Express (with CORS for a static shop on another domain). Copy the files into a project of the same kind and fill in your company details, storage and mail sending. They show how the handler and the forms are wired; the handler and forms themselves are covered by the package's tests.
pnpm add @sweberdev/inverse@^0.7.0 @sweberdev/inverse-react@^0.7.0

Docs: packages.sweber.dev/inverse/docs. Try the flows in the demo.

Inverse Pro 0.7.0

  • Reminders per case. The weekly digest lists everything that is due. caseReminders(records) sends one message per case shortly before its deadline: the refund after a withdrawal (14 days after receipt) and the end of a contract after a cancellation. By default it reminds three days before, one day before and on the day itself. Every reminder has a stable key, so a cron job that runs twice sends nothing twice.
import { caseReminders } from "@weber-development/inverse-mail";

for (const r of caseReminders(records, { sent: alreadySentKeys })) {
  await transport.send({ from, to, subject: r.subject, text: r.text, html: r.html });
}

Inverse Pro is available on the package page, from CHF 19 a month.

Package in this post

Inverse

The withdrawal button (§ 356a BGB) and the cancellation button (§ 312k BGB) for Next.js and React, with the two-step flow, the receipt e-mail and a page check.

pnpm add @sweberdev/inverse @sweberdev/inverse-react
View package

Related posts

Release

Inverse 0.4.0 released

Inverse now catches double clicks, so a declaration sent twice is stored and confirmed once. Inverse Pro adds a weekly team digest of refunds and contract ends that are due, and audit reports that print to PDF and export to CSV.

Inverse
Release

Inverse 0.5.0 released

Inverse can now serve forms on another domain with a cors option, and says which legal state it reflects with legalRevision and inverse legal. Inverse Pro adds RFC 3161 time stamp anchors for the evidence ledger and an evidence dossier you can hand to your lawyer.

Inverse
Release

Inverse 0.1.0 released

The withdrawal button (§ 356a BGB) and the cancellation button (§ 312k BGB) for Next.js and React: statutory labels, the two-step flow, the receipt e-mail and a page check. MIT, no backend.

Inverse