Skip to content
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

Make catsInstancesForIdCompat2_6_1 package-private #4191

Merged

Conversation

armanbilge
Copy link
Member

I initially kept this public, because usually static forwarders go away when a method is package-private, and we need them for complete binary-compatibility. However, I learned in scala/scala3#10842 that this is not the case on Scala 3. So, there is no reason to leak this method in the public API.

@@ -128,7 +128,7 @@ object Invariant extends ScalaVersionSpecificInvariantInstances with InvariantIn
cats.catsInstancesForId
@deprecated("Added for bincompat", "2.8.0")
@cats.compat.targetName("catsInstancesForId")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you provide some details on how this guy is supposed to work please? I think it might help me with my work in #4187.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely, do you mean about the compat thing or the semantics of targetName which is a Scala 3 feature? You can see how it works in #4143 (comment).

Copy link
Contributor

@satorg satorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@armanbilge armanbilge merged commit 09d9d51 into typelevel:main Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants