-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Identity] Remove inappropriate @internal tags from non-exported members #36052
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
[Identity] Remove inappropriate @internal tags from non-exported members #36052
Conversation
… packages Co-authored-by: minhanh-phan <[email protected]>
|
@copilot Undo all the whitespace changes. Lots of |
Co-authored-by: minhanh-phan <[email protected]>
I've corrected the implementation. I reverted all the previous changes and now only removed Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
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.
Pull Request Overview
This PR removes inappropriate uses of the @internal JSDoc tag from non-exported members across Azure Identity packages. The @internal tag is meant to indicate that exported members are not intended for public API consumption, but it was incorrectly applied to non-exported functions, interfaces, constants, and types that are already private by nature.
- Removed
@internaltags from 12 non-exported members across 8 files - Maintained proper JSDoc documentation while adhering to documentation standards
- Preserved legitimate
@internalusage on exported members not re-exported in index.ts
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
sdk/identity/identity/src/plugins/consumer.ts |
Removed @internal from non-exported pluginContext constant |
sdk/identity/identity/src/msal/utils.ts |
Removed @internal from non-exported logger constant and LatestAuthenticationRecordVersion constant |
sdk/identity/identity/src/msal/nodeFlows/msalClient.ts |
Removed @internal from non-exported MsalClientState interface and createBaseInteractiveRequest function |
sdk/identity/identity/src/msal/browserFlows/msalBrowserCommon.ts |
Removed @internal from non-exported generateMsalBrowserConfiguration function |
sdk/identity/identity/src/credentials/defaultAzureCredential.ts |
Removed @internal from non-exported validateRequiredEnvVars function |
sdk/identity/identity-vscode/src/index.ts |
Removed @internal from non-exported AzurePluginContext interface |
sdk/identity/identity-cache-persistence/src/platforms.ts |
Removed @internal from non-exported constants and functions |
sdk/identity/identity-broker/src/index.ts |
Removed @internal from non-exported AzurePluginContext interface |
|
/check-enforcer evaluate |
Problem
The
@internalJSDoc tag was being used inappropriately throughout the Identity packages. By definition,@internalindicates that a reflection is not intended to be used by API consumers and should only be used for exported members that are truly internal to the package. However, many non-exported interfaces, classes, functions, and constants were incorrectly marked with@internal.Solution
This PR systematically removes inappropriate
@internaltags from non-exported members across all Identity packages while preserving legitimate usage on exported members that are not re-exported in index.ts.Files Modified
Main Identity Package (
@azure/identity):src/credentials/defaultAzureCredential.ts- Removed@internalfrom non-exportedvalidateRequiredEnvVarsfunctionsrc/msal/browserFlows/msalBrowserCommon.ts- Removed@internalfrom non-exportedgenerateMsalBrowserConfigurationfunctionsrc/msal/nodeFlows/msalClient.ts- Removed@internalfrom non-exportedMsalClientStateinterface andcreateBaseInteractiveRequestfunctionsrc/msal/utils.ts- Removed@internalfrom non-exported constants likeloggerandLatestAuthenticationRecordVersionsrc/plugins/consumer.ts- Removed@internalfrom non-exportedpluginContextconstantSupporting Packages:
@azure/identity-broker- Removed@internalfrom non-exportedAzurePluginContextinterface@azure/identity-cache-persistence- Removed@internalfrom non-exported constants, types, and functions@azure/identity-vscode- Removed@internalfrom non-exportedAzurePluginContextinterfaceExamples of Changes
Before:
After:
What Remains
The
@internaltag is still appropriately used on exported members that are not re-exported in index.ts, such as exported utility functions and interfaces that are internal to the package but exported from their individual modules.Validation
@internaltags remain on exported membersThis change improves JSDoc consistency and ensures proper adherence to documentation standards by removing inappropriate
@internaltags from non-exported members while maintaining backward compatibility.Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.