Update package versioning (#3819)

SPM recommends `Package.swift` point to the latest version, but we're
doing the opposite.
This commit is contained in:
Stephen Celis
2025-11-14 11:03:35 -08:00
committed by GitHub
parent c0227a19ba
commit f8158b92f2
4 changed files with 46 additions and 46 deletions

View File

@@ -1,13 +1,13 @@
{ {
"originHash" : "658be5678358d678b69ea40e4be4814633be8197318d5ac54b97fb40cfb2152b", "originHash" : "c55ea51a4817791946e7830a957bd243534ea4fed282d6370350fb9dcb3b15c7",
"pins" : [ "pins" : [
{ {
"identity" : "combine-schedulers", "identity" : "opencombine",
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/combine-schedulers", "location" : "https://github.com/OpenCombine/OpenCombine.git",
"state" : { "state" : {
"revision" : "5928286acce13def418ec36d05a001a9641086f2", "revision" : "8576f0d579b27020beccbccc3ea6844f3ddfc2c2",
"version" : "1.0.3" "version" : "0.14.0"
} }
}, },
{ {

View File

@@ -1,13 +1,13 @@
{ {
"originHash" : "1313e97b3134138f8ca61f73141726a7e426c0097a38fadeba8e33be243b0d2e", "originHash" : "4dbe2b8fb0d96366355c9478441b780fc55d98952641571b6dc0611cad660ab7",
"pins" : [ "pins" : [
{ {
"identity" : "combine-schedulers", "identity" : "combine-schedulers",
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/combine-schedulers", "location" : "https://github.com/pointfreeco/combine-schedulers",
"state" : { "state" : {
"revision" : "5928286acce13def418ec36d05a001a9641086f2", "revision" : "fd16d76fd8b9a976d88bfb6cacc05ca8d19c91b6",
"version" : "1.0.3" "version" : "1.1.0"
} }
}, },
{ {
@@ -33,8 +33,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-collections", "location" : "https://github.com/apple/swift-collections",
"state" : { "state" : {
"revision" : "8c0c0a8b49e080e54e5e328cc552821ff07cd341", "revision" : "7b847a3b7008b2dc2f47ca3110d8c782fb2e5c7e",
"version" : "1.2.1" "version" : "1.3.0"
} }
}, },
{ {
@@ -61,7 +61,7 @@
"location" : "https://github.com/pointfreeco/swift-dependencies", "location" : "https://github.com/pointfreeco/swift-dependencies",
"state" : { "state" : {
"revision" : "a10f9feeb214bc72b5337b6ef6d5a029360db4cc", "revision" : "a10f9feeb214bc72b5337b6ef6d5a029360db4cc",
"version" : "1.9.5" "version" : "1.10.0"
} }
}, },
{ {
@@ -105,8 +105,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-navigation", "location" : "https://github.com/pointfreeco/swift-navigation",
"state" : { "state" : {
"revision" : "6b7f44d218e776bb7a5246efb940440d57c8b2cf", "revision" : "bf498690e1f6b4af790260f542e8428a4ba10d78",
"version" : "2.4.2" "version" : "2.6.0"
} }
}, },
{ {
@@ -114,8 +114,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-perception", "location" : "https://github.com/pointfreeco/swift-perception",
"state" : { "state" : {
"revision" : "30721accd0370d7c9cb5bd0f7cdf5a1a767b383d", "revision" : "4f47ebafed5f0b0172cf5c661454fa8e28fb2ac4",
"version" : "2.0.8" "version" : "2.0.9"
} }
}, },
{ {
@@ -150,8 +150,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/xctest-dynamic-overlay", "location" : "https://github.com/pointfreeco/xctest-dynamic-overlay",
"state" : { "state" : {
"revision" : "b2ed9eabefe56202ee4939dd9fc46b6241c88317", "revision" : "4c27acf5394b645b70d8ba19dc249c0472d5f618",
"version" : "1.6.1" "version" : "1.7.0"
} }
} }
], ],

View File

@@ -1,4 +1,4 @@
// swift-tools-version:5.9 // swift-tools-version:6.0
import CompilerPluginSupport import CompilerPluginSupport
import PackageDescription import PackageDescription
@@ -77,16 +77,21 @@ let package = Package(
.product(name: "MacroTesting", package: "swift-macro-testing"), .product(name: "MacroTesting", package: "swift-macro-testing"),
] ]
), ),
] ],
swiftLanguageModes: [.v6]
) )
#if compiler(>=6) for target in package.targets {
for target in package.targets where target.type != .system && target.type != .test {
target.swiftSettings = target.swiftSettings ?? [] target.swiftSettings = target.swiftSettings ?? []
target.swiftSettings?.append(contentsOf: [ target.swiftSettings?.append(contentsOf: [
.enableUpcomingFeature("ExistentialAny")
])
}
for target in package.targets where target.type == .system || target.type == .test {
target.swiftSettings?.append(contentsOf: [
.swiftLanguageMode(.v5),
.enableExperimentalFeature("StrictConcurrency"), .enableExperimentalFeature("StrictConcurrency"),
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("InferSendableFromCaptures"), .enableUpcomingFeature("InferSendableFromCaptures"),
]) ])
} }
#endif

View File

@@ -1,4 +1,4 @@
// swift-tools-version:6.0 // swift-tools-version:5.9
import CompilerPluginSupport import CompilerPluginSupport
import PackageDescription import PackageDescription
@@ -77,21 +77,16 @@ let package = Package(
.product(name: "MacroTesting", package: "swift-macro-testing"), .product(name: "MacroTesting", package: "swift-macro-testing"),
] ]
), ),
], ]
swiftLanguageModes: [.v6]
) )
for target in package.targets { #if compiler(>=6)
for target in package.targets where target.type != .system && target.type != .test {
target.swiftSettings = target.swiftSettings ?? [] target.swiftSettings = target.swiftSettings ?? []
target.swiftSettings?.append(contentsOf: [ target.swiftSettings?.append(contentsOf: [
.enableUpcomingFeature("ExistentialAny")
])
}
for target in package.targets where target.type == .system || target.type == .test {
target.swiftSettings?.append(contentsOf: [
.swiftLanguageMode(.v5),
.enableExperimentalFeature("StrictConcurrency"), .enableExperimentalFeature("StrictConcurrency"),
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("InferSendableFromCaptures"), .enableUpcomingFeature("InferSendableFromCaptures"),
]) ])
} }
#endif