                         TestProduct(name: "Foo", targets: ["Foo", "Bar"]),
                     ],
                     dependencies: [
-                        TestDependency(name: "Baz", requirement: "1.0.0"),
+                        TestDependency(name: "Baz", requirement: .upToNextMajor(from: "1.0.0")),
                     ]
                 ),
             ],


private struct TestDependency {
    let name: String
    let requirement: String

    fileprivate init(name: String, requirement: String) {
        self.name = name
        self.requirement = requirement
    }
}


                    package: .v4(.init(
                        name: package.name,
                        products: package.products.map({ .library(name: $0.name, targets: $0.targets) }),
                        dependencies: package.dependencies.map({ $0.convert(baseURL: packagesDir) }),
                        targets: package.targets.map({ $0.convert() })
                    )),
                    version: v
