You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typed throws: Would it make sense to add throws(ConnectError) in some places?
Utilize package visibility: The files in this directory are commented as internal-only but are public so they can be consumed by ConnectNIO. We can make these package instead once running on the updated toolchain to remove these from the public interface
This PR adds deprecation warnings to APIs that are considered
package-internal but cannot yet be marked as `package` instead of
`public` until we adopt Swift 6 (see
#310). We can't make
these APIs _currently_ deprecated since that will introduce deprecation
warnings where they're used within the library, but we can at least add
_future deprecation_ warnings which will show up in the IDE as shown
below:
<img width="684" alt="Screenshot 2024-10-16 at 11 27 45 AM"
src="https://github.com/user-attachments/assets/be489f7f-bf32-466d-8aa3-1fc999bba0c6">
The goal of doing this is to help enable us to tag a 1.0 before adopting
Swift 6 so we can mark those APIs as `package` afterwards and reasonably
consider it a non-breaking change.
---------
Signed-off-by: Michael Rebello <[email protected]>
I'm opening an issue to track some low-hanging fruit with regard to Swift 6 features that we should explore in Connect-Swift:
Sendable
conformances to resolve warnings #309, but we should switch the toolchain to Swift 6 to enforce thisthrows
: Would it make sense to addthrows(ConnectError)
in some places?package
visibility: The files in this directory are commented as internal-only but arepublic
so they can be consumed byConnectNIO
. We can make thesepackage
instead once running on the updated toolchain to remove these from the public interfaceWe are currently blocked on fully adopting Swift 6 by apple/swift-protobuf#1729.
The text was updated successfully, but these errors were encountered: