Skip to content

0.3.17

Choose a tag to compare

@3m1n3nc3 3m1n3nc3 released this 06 May 20:13
· 658 commits to main since this release

Highlights

  • Added @arkstack/notifications with mail, SMS, and database notification drivers.
  • Added two-factor authentication support to @arkstack/auth, including authenticator app secrets, SMS codes, recovery codes, and UserTwoFactor.
  • Added database-backed user notifications with UserNotification models and migrations.
  • Added middleware:auth hook support through @arkstack/common.
  • Added Vitest setup and basic tests for the Express and H3 templates.
  • Replaced supertest auth tests with parasito.
  • Updated clear-router to 2.3.5.

What's Changed

Authentication

  • Added TwoFactor utilities for authenticator apps, SMS codes, recovery codes, and 2FA status.
  • Added UserTwoFactor contract, starter models, and migrations.
  • Updated auth user/session models and middleware integration.
  • Added Express and H3 auth integration tests.
  • Added auth middleware hook support via middleware:auth.

Notifications

  • Added new @arkstack/notifications package.
  • Added mail delivery through SMTP.
  • Added SMS delivery through AfricasTalking and Twilio transports.
  • Added database/in-app notification delivery through UserNotification.
  • Added UserNotificationCenter helpers for creating, listing, reading, and deleting notifications.
  • Added notification config to the Express and H3 templates.
  • Added notification tests for mail, SMS, and database delivery.

Templates and Testing

  • Added Vitest config to Express and H3 templates.
  • Added basic template test assertions.
  • Replaced supertest with parasito in auth tests.
  • Added starter UserNotification and UserTwoFactor models/migrations to templates.

Documentation

  • Added notifications guide.
  • Added hooks guide.
  • Expanded authentication docs for 2FA and auth middleware hooks.
  • Expanded API reference for notifications, hooks, and two-factor auth.
  • Refreshed homepage feature cards and icons.

CI and Release

  • Added release version preparation script.
  • Updated publish workflow and npm auth handling.
  • Added PostgreSQL-backed testing steps for prepublish workflows.
  • Removed stale VitePress dependency cache files from the repository.

Dependencies

  • Updated clear-router to 2.3.5.
  • Updated arkormx to 2.0.7.
  • Updated @resora/plugin-clear-router to 0.1.6.
  • Downgraded @types/express to 5.0.6 for compatibility.

Full Changelog: 0.3.3...0.3.17