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

Inverse 0.9.0 released

Inverse 0.9.0 freezes the public API ahead of 1.0 and adds an Austria page, a stability policy and an upgrade guide. Inverse Pro adds the audit report as a PDF and a helper that ends a Stripe or Paddle subscription after a cancellation.

By Seya Weber

Inverse 0.9.0 is the release candidate for 1.0. @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.8.0 code keeps working as it is.

What is in 0.9.0

  • API freeze. A test in every package lists the public exports. From 1.0 removing or renaming one needs a major version. The stability page says what the promise covers (exports, options, response bodies, ledger format, CLI flags), what may change in a minor version (texts that follow the law, report layouts) and how deprecations work.
  • Austria. A new page says what Inverse covers for shops selling to customers in Austria and what it does not claim: it does not quote Austrian sections and makes no statement that Austria has a duty equivalent to the German cancellation button. Check the current rules with your counsel.
  • Upgrade guide. Upgrading to 1.0: code that runs on 0.9 runs on 1.0 without changes.
pnpm add @sweberdev/inverse@^0.9.0 @sweberdev/inverse-react@^0.9.0

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

Inverse Pro 0.9.0

  • Audit report as PDF. inverse-audit --pdf report.pdf writes the report as an A4 PDF without a browser, with your brand in the header; --pdf-dir writes one per site for agencies.
  • Ending a subscription. cancelSubscription({ provider: "stripe" | "paddle", ... }) ends a subscription at the payment provider after a cancellation: at period end, immediately, or on a date at Stripe. It changes real subscriptions, so run it after a person has looked at the declaration, and try it with test keys first.

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.8.0 released

Inverse gets a WordPress plugin with a settings page, and the links and both forms are now checked with axe in the tests. Inverse Pro adds the evidence dossier as a PDF, one ledger per client for agencies, and time stamp anchors on a schedule.

Inverse
Release

Inverse 1.0.0 released

Inverse 1.0 is stable: the Widerrufsbutton and Kündigungsbutton kit for Next.js, React, WordPress, WooCommerce, Shopware and Shopify now has a frozen public API under semantic versioning, a maintained legal status, and a Pro edition with an evidence ledger, audit reports and mail.

Inverse
Release

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.

Inverse