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

Fix refined newtypes #1595

Merged
merged 7 commits into from
Oct 1, 2024
Merged

Fix refined newtypes #1595

merged 7 commits into from
Oct 1, 2024

Conversation

kubukoz
Copy link
Member

@kubukoz kubukoz commented Sep 26, 2024

Closes #1594.

PR Checklist (not all items are relevant to all PRs)

  • Added unit-tests (for runtime code)
  • Added bootstrapped code + smoke tests (when the rendering logic is modified)
  • Added build-plugins integration tests (when reflection loading is required at codegen-time)
  • Added alloy compliance tests (when simpleRestJson protocol behaviour is expanded/updated)
  • Updated dynamic module to match generated-code behaviour
  • Added documentation
  • Updated changelog

@@ -202,9 +202,14 @@ private[smithy4s] trait LowPriorityImplicits {
: RefinementProvider[Pattern, E, E] =
new RefinementProvider.PatternConstraint[E](e => e.value)

implicit def isomorphismConstraint[C, A, A0](implicit
@deprecated("Use isomorphismConstraint2 instead", "0.18.25")
Copy link
Member Author

Choose a reason for hiding this comment

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

thought: for bincompat, we have to keep the old method.

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried to make it private[smithy4s] but MiMa complained about the static forwarder disappearing. Figured I'd restore the method to the public scope, it doesn't hurt if it's not implicit anymore.

@kubukoz kubukoz marked this pull request as ready for review September 27, 2024 00:23
@Baccata Baccata merged commit e5aa5b6 into series/0.18 Oct 1, 2024
11 checks passed
@Baccata Baccata deleted the fix-1594 branch October 1, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants