In order to facilitate the incremental migration from gRPC Swift 1 to gRPC Swift 2 the code for version 2 will be moving to a new repository on GitHub.
This will allow existing users of gRPC Swift to depend on version 1 and version 2 in the same package graph allowing for a more gradual migration.
Existing users of gRPC Swift 2 will have to do a small amount of work to update their dependencies. The changes being made are detailed below.
Changes
- The existing code for version 2 in the grpc/grpc-swift repository will move to a new repository called grpc/grpc-swift-2.
- The Swift package in the new repository will be renamed from "grpc-swift" to "grpc-swift-2".
- The initial release of the new package will 2.0.0, this will be equivalent to version 2.2.2 of grpc/grpc-swift.
- grpc/grpc-swift-protobuf, grpc/grpc-swift-nio-transport, and grpc/grpc-swift-extras will be updated to depend on grpc/grpc-swift-2. Doing so will require bumping their major versions, with each being tagged as 2.0.0.
protoc-gen-grpc-swiftwill be renamed toprotoc-gen-grpc-swift-2in order to allow gRPC Swift 1 to be built in the same package graph as gRPC Swift Protobuf.- A final patch release of the 2.x series for grpc/grpc-swift and the 1.x series for each of grpc/grpc-swift-protobuf, grpc/grpc-swift-nio-transport, and grpc/grpc-swift-extras will deprecate major types with a message linking to this post.
What you need to do
If you're using gRPC Swift 2 then you'll need to take the following steps:
- Change the
"grpc-swift"package dependency to"grpc-swift-2"and its version requirement tofrom: "2.0.0"in your package manifest (Package.swift). - Change the package name for target depencies from
"grpc-swift"to"grpc-swift-2". - Change the version requirement for
"grpc-swift-protobuf"tofrom: "2.0.0"(if applicable) - Change the version requirement for
"grpc-swift-nio-transport"tofrom: "2.0.0"(if applicable) - Change the version requirement for
"grpc-swift-extras"tofrom: "2.0.0"(if applicable) - Update any scripts relying on
protoc-gen-grpc-swiftto useprotoc-gen-grpc-swift-2. (if applicable)
When will these changes be made?
These changes will be made over the next few days. The final patch release of the 2.x series will be made in the week commencing 2nd June at which point it's advisable to move to the new versions.