Skip to content
This repository was archived by the owner on Jun 9, 2026. It is now read-only.

2.8.1

Choose a tag to compare

@exronnin exronnin released this 30 May 12:23
· 22 commits to main since this release

What's Changed

  • Moved API resource route shaping and registration out of CoreRouter and into ResourceRoutes.
  • Added chainable .only() and .except() methods directly on Router.apiResource() results.
  • Added support for passing a single action, multiple actions, or an action array:
Router.apiResource('/books', BookController)
  .only('index', 'show')

Router.apiResource('/books', BookController)
  .except('destroy')

Router.apiResource('/books', BookController)
  .only(['index', 'show'])
  .middleware(AuthMiddleware)
  • Added route removal support so resource routes can be cleanly re-registered when filters are chained.
  • Kept middleware chaining support intact across resource re-registration.
  • Added docs for chainable resource filters in routing and middleware guides.
  • Added tests for .only() / .except() chaining and TypeScript coverage.

Internal

  • Added a shared wrap() helper.
  • Simplified CoreRouter.apiResource() so it now constructs and delegates to ResourceRoutes.

Full Changelog: 2.8.0...2.8.1