-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Expose more of the internal API #2292
Comments
No, it is not safe to use this. If we would change these elements it would not be declared as breaking change and we will not give further support in case you application breaks because of it. Nonetheless what you are requesting is definitely mandatory for Nest. I think it would be interesting to compile a list of internals, which we should expose or make similar functionality part of the public API. What comes to my mind: |
I think we need to discuss this further. |
You don't have to use |
@Toxicable the use case is the exact same as |
Most of them ( |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Feature Request
Is your feature request related to a problem? Please describe.
This feature request isn't really related to a problem but more like a concern about the support of what looks like some internal API. As I'd like to keep this short, I'll dive directly into the technical details. I'm using the
InstanceWrapper
andModule
interfaces from theinjector
subdirectory of thecore
package. Those two elements are not exposed through the package root barrel file, and the imports look like this:I'm wondering if it is safe to use these imports since those are not exposed at the
core
's root.The same goes for:
Injectable
ModuleMetadata
Type
ClassProvider
ValueProvider
FactoryProvider
MetadataScanner
If you feel like you need more concrete details, have a look at this class.
Certainly, others would like to have some more internals exposed. Maybe this issue would be the right place to build a list of what could/should be exposed.
Describe the solution you'd like
My proposal is to simply expose more of the internal API, as long as the newly expose elements are considered stable.
What is the motivation / use case for changing the behavior?
This would allow the community to get a better grasp to NestJS' internals and write better and more robust integrations.
English is obviously not my first language. If, in any case, you feel like you can't completely understand what I ask for, don't hesitate to tell me and I'll do my best to rewrite this issue.
The text was updated successfully, but these errors were encountered: