Skip to content

Expose RouteMatchers for macros - #131

Merged
thetutlage merged 1 commit into
adonisjs:9.xfrom
BuyMyBeard:9.x
Jul 30, 2026
Merged

Expose RouteMatchers for macros#131
thetutlage merged 1 commit into
adonisjs:9.xfrom
BuyMyBeard:9.x

Conversation

@BuyMyBeard

Copy link
Copy Markdown
Contributor

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

RouteMatchers extends Macroable, but it is not currently exported, preventing applications and packages from extending it with custom macros.

This change exports RouteMatchers, allowing reusable matchers to be registered, particularly by AdonisJS packages.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@thetutlage
thetutlage merged commit 4b544da into adonisjs:9.x Jul 30, 2026
1 of 4 checks passed
@thetutlage

Copy link
Copy Markdown
Member

@BuyMyBeard Thanks for the PR. Can you please update the docs here as well? https://docs.adonisjs.com/guides/concepts/extending-adonisjs#macroable-classes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants