-
Notifications
You must be signed in to change notification settings - Fork 846
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Change / Ban all usages of export * from ...
so that all exports (and imports) are explicit
#4186
Comments
Would also recommend doing this, we are facing several issues from these type of imports. |
I'd had a start at scripting this conversion back at #3976 (comment) |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
@dyladan I undid some of the notes you put into the issue title for I have been thinking about how to best go about this in SDK 2.0 from a practical standpoint and I think we should do this as much as we can on When a new export is added on My proposal: experienced contributors can do this wherever possible on |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
To add more clarity on the expectations of this issue, here is my understanding of what should be done:
Step 1 may be a single PR for the repo, or several smaller ones, which we are working through. |
Packages remaining to be updated in otel-js core repo after #4880 merges:
|
@JamieDanielson @dyladan if required I can pick this up. |
Thanks! We have actually now made the majority of changes for this particular issue, and are intentionally holding off on otlp exporter changes for a bit because of other refactoring currently underway with this issue. I should have written that comment when I last updated this issue and forgot. That said, if you see another usage in this repo of |
no problem. I thought @robbkidd might be busy with something else hence was unassigned. thanks. |
Because of the eslint rule added for "no-restricted-syntax", every remaining instance of "
|
Remaining work here, I think:
If we do allow exceptions, does that cause the same tslib-related breakage we saw before? |
I think the the only reason why these exports needed are to have types that are guaranteed to be compatible with the version that's expected by Personally I am in favor of removing them, but I'm not sure how many end-users actually use in the way I mentioned above. If we remove the re-exports for experimental packages too then I think we don't have a have a good alternative for these users. Regarding this issue, everything that's in scope for SDK 2.0 is done now, I think. Any remaining changes can be done after the release in minor releases of the experimental |
Thanks. Other than the |
Our understanding is that for SDK 2.0, the current state is sufficient. I've opened #5461 for following up for the sdk-node package. |
Make all imports and exports explicit so that internal classes / objects etc are not inadvertently made public and become part of the public API.
The text was updated successfully, but these errors were encountered: