[Identity] Reduce scope of native dependency "keytar" #13950
Labels
Azure.Identity
blocking-release
Blocks release
Client
This issue points to a problem in the data-plane of the library.
Milestone
The "Rush" build orchestrator recently added a dependency on
@azure/identity
, but they would like to avoid taking a transitive dependency onkeytar
which is a native module. (microsoft/rushstack#2492)Other users have reported issues caused by the
keytar
dependency (example #9288). As a result of this issue,keytar
was changed from a required to optional dependency (#10142).This does make it possible to use
@azure/identity
without installingkeytar
, but the dependency is still problematic. NPM tries to install optional dependencies by default. They can be skipped by specifying--no-optional
, but this isn't very useful in practice since every user installing the package (or anything that depends on it) would need to set this.If the
keytar
dependency cannot be removed completely, perhaps@azure/identity
could be split into multiple packages, so only the package(s) containing APIs requiringkeytar
would have the dependency.@azure/identity
itself would become a meta-package to avoid a breaking change.The text was updated successfully, but these errors were encountered: