elysiajs / elysia

Ergonomic Framework for Humans
https://elysiajs.com
MIT License
9.09k stars 193 forks source link

Unable to access root level macros in plugins #640

Closed jrnxf closed 1 week ago

jrnxf commented 1 month ago

What version of Elysia.JS is running?

1.0.20

What platform is your computer?

Darwin 23.2.0 arm64 arm

What steps can reproduce the bug?

The steps for this bug our outlined in this thread. @SaltyAom already patched a fix for usage in groups, but the same patch for plugins feels like the next step given the documentations recommendation to use plugins as a means of cleaning up routes.

What is the expected behavior?

Macros applied at the global level are inherited by plugins

What do you see instead?

Plugins don't have access to the macros

Additional information

No response

SaltyAom commented 1 week ago

Should be resolved in 3d0adcf, published on 1.0.27

Feels free to tag me to reopen the issue if the problem still persists.