Skip to content

Upgrade to work with v7 and Lucid 22

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Jun 11:01
Immutable release. Only release title and notes can be modified.

v4.0.0

This is a major release that upgrades @adonisjs/lucid-slugify to work with AdonisJS v7 and Lucid v22. There are no changes to the slugify API itself — the breaking changes are entirely about the supported framework versions and the toolchain.

Breaking changes

  • Requires AdonisJS v7 and Lucid v22. Peer dependencies are now @adonisjs/core@^7 and @adonisjs/lucid@^22. Upgrade your application to these versions before installing @adonisjs/lucid-slugify@4.
  • Requires Node.js >= 24. The minimum supported Node.js version has been raised from 20.6.0 to 24.0.0.

Upgrading

npm i @adonisjs/lucid-slugify@latest

Make sure your app is already on @adonisjs/core@7 and @adonisjs/lucid@22, then reinstall. No code changes are required — the @slugify decorator, strategies (dbIncrement, shortId), and config options are unchanged and continue to work, including on models built with Lucid's new schema-class API.

Internal / maintenance

  • Switched the build system from tsup to tsdown.
  • Switched the test runner loader from ts-node-maintained to @poppinss/ts-exec.
  • Bumped all dev dependencies to their v7-era baselines (ESLint 10, TypeScript 6, Japa runner 5, c8 11, etc.).
  • Updated CI workflows to run on Node 24.

Documentation

  • Rewrote the README with a complete, end-user-focused API reference (entry points, decorator options, strategies, custom strategies, SlugifyStrategyContract, and exported errors).
  • Updated all model examples to use Lucid's new schema-class API.

Full Changelog: v3.0.0...v4.0.0