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 Pro 3.0.0 released

Inverse Pro 3.0 turns the Pro packages into a service: one Docker image that takes withdrawal and cancellation declarations from any shop, keeps them in a tamper-evident ledger, mails the receipt, runs the case inbox, reminds you before refund deadlines and watches your pages. A WooCommerce plugin uses it. Nothing from 2.x breaks, and we explain why it is still a major version.

Inverse
Release

Inverse 2.1.0 released

Inverse Pro 2.1 adds a web inbox for withdrawals and cancellations and continuous monitoring of your shop pages with an alert when a button goes missing. Both are beta. The free package gets a one-line hint about Pro in the CLI.

Inverse
Release

Inverse 2.0.0 released

Inverse 2.0 knows legal areas: a jurisdiction on every record, legal status per country, a case workflow and a format field in the Pro ledger. Eight countries are covered, and the page says which ones rest on the national act and which on the EU directive only.

Inverse