New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add @verdaccio/plugin-id support #1868
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1868 +/- ##
==========================================
- Coverage 83.46% 83.44% -0.02%
==========================================
Files 48 48
Lines 2558 2574 +16
Branches 600 594 -6
==========================================
+ Hits 2135 2148 +13
- Misses 417 421 +4
+ Partials 6 5 -1
|
loadedId = `sinopia-${pluginId}`; | ||
} | ||
|
||
if (!plugin) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm running some test, but I could not make this work with the example you shared in the ticket. In theory here you would get @verdaccio/@verdaccio/active-directory
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If @verdaccio/active-directory is installed you could set it up either as active-directory
or @verdaccio/active-directory
.
First case: it would be loaded in line 108.
Second case: it would be loaded in line 113.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still looking into this. Just playing around. Most likely we would need add test. I hope can back with feedback soon.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Hi pal 👋🏼! We get a lot of issues, so we currently close issues after 25 days of inactivity. It’s been at least 15 days since the last update here. Thanks for being a part of the Verdaccio community! 💘 |
@juanpicado ping! |
There is a lot of work regarding plugins on the roadmap #1690 In other words, this deserves a new architecture, so it would not be ideal to merge patches, rather think big and improve the approach for plugins, the list of requests is long, most are valid, but we cannot solve all in small PR without breaking changes. I have some ideas, but not enough time, maybe late this year. So unless someone is willing to take this topic we can talk and make it happen. Just FYI, anything regarding plugins new should be based on |
I want to close this so here is my proposal for next release for loading scoped plugins: For instance Middleware
Auth
etc etc ... The error message would be like
|
Feature inclusion discussed on:
#1867