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 overhaul breakage, part 2 #176

Merged
merged 2 commits into from
Apr 16, 2024
Merged

Fix overhaul breakage, part 2 #176

merged 2 commits into from
Apr 16, 2024

Conversation

gwynne
Copy link
Member

@gwynne gwynne commented Apr 16, 2024

These changes are now available in 3.29.2

This solves the source code breakage issue first reported in #175 - shout out and thanks to @NeedleInAJayStack for reporting the problem!

Several preexisting APIs had incorrectly changed from accepting any Encodable to accepting some Encodable, which is source-breaking under some conditions. This restores the original use of any (though it keeps the added Sendable requirement).

Also restores 100% test coverage after the previous fixes.

Note

Many APIs which had previously accepted a generic parameter (i.e. <E: Encodable>), most notably in SQLPredicateBuilder, also switched to using some Encodable, but this was not source-breaking; the problem applied only to APIs which originally accepted any Encodable.

Although the changes in this PR are technically themselves source-breaking, since they revert a previous such breakage to its previous state, only a semver-patch bump is necessary.

@gwynne gwynne added the semver-patch Internal changes only label Apr 16, 2024
@gwynne gwynne requested review from 0xTim, MahdiBM and ptoffy April 16, 2024 13:26
Copy link

@MahdiBM MahdiBM left a comment

Choose a reason for hiding this comment

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

Oof, didn't know any to some conversion doesn't work in these situations either.

@gwynne gwynne merged commit b971688 into main Apr 16, 2024
14 of 15 checks passed
@gwynne gwynne deleted the fix-overhaul-breakage-part-2 branch April 16, 2024 14:17
@NeedleInAJayStack
Copy link
Contributor

Thanks @gwynne!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-patch Internal changes only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants