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

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.

By Seya Weber

Inverse 0.8.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.7.0 code keeps working as it is.

What is in 0.8.0

  • WordPress plugin. If you prefer a settings page to pasted code, copy wordpress/inverse-widerruf to wp-content/plugins/ and activate it. Set the handler URL under Settings → Inverse. The plugin adds the footer links with the statutory labels on every page, the shortcodes [inverse_withdrawal] and [inverse_cancellation], and, with WooCommerce, links in the account area and below every order with the order number prefilled. It is one PHP file (PHP 7.4 or newer) and loads the script-tag build; the handler stays on your own server.
  • Accessibility tests. The links and both forms, in German and English, with and without validation errors, are checked with axe in the test suite. Colour contrast cannot be checked without a browser layout, so the tests leave it out; check your own theme for contrast.
pnpm add @sweberdev/inverse@^0.8.0 @sweberdev/inverse-react@^0.8.0

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

Inverse Pro 0.8.0

  • Dossier as PDF. inverse-ledger dossier --pdf dossier.pdf writes the evidence dossier as an A4 PDF with chain status, declarations, anchors and the manifest hash, in German or English.
  • One ledger per client. createTenantLedgers({ storeFor }) keeps each shop in its own hash chain, so a client can be verified, exported or erased on its own. verifyAll() checks every chain.
  • Anchors on a schedule. inverse-ledger anchor --tsa <url> --if-due-hours 24 from a daily cron job anchors only when there are new entries and the last anchor is old enough.

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

The withdrawal and cancellation buttons now work on every website, not only in React: one script tag for WordPress, Shopify themes and static sites. Plus Dutch, Spanish and Polish, and in Inverse Pro a ledger in PostgreSQL or SQLite.

Inverse
Release

Inverse 0.6.0 released

Inverse now comes with ready-to-paste integrations for WooCommerce, Shopware, Shopify and WordPress. Inverse Pro's ledger CLI works directly on a SQLite file or a PostgreSQL database.

Inverse
Release

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.

Inverse