Say I have a two direct dependencies A and B to my project, where one of the direct dependencies (say A) depends on package X version 3, and the other (say B) depends on package X version 4 and package X 4 has breaking changes compared to package X version 3, therefore it is not possible to apply a resolution strategy to transitive dependencies to force one or the other version.
Is it possible to isolate/hide the transitive to package X below package A and B so that the project does not see X, and package B does not see X version 3 and package A does not see X version 4 ?