Skip to content

Commit 739be7e

Browse files
[doc] add entry for #3486 in the change log (#3678)
There is also some minor formatting of previous entries for style consistency.
1 parent fb32460 commit 739be7e

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed

CHANGELOG.md

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,48 @@
11
Note: This is in reverse chronological order, so newer entries are added to the top.
22

33
Swift 5.6
4-
-----------
5-
* [#3649]
6-
Semantic version dependencies can now be resolved against Git tag names that contain only major and minor version identifiers. A tag with the form `X.Y` will be treated as `X.Y.0`. This improves compatibility with existing repositories.
4+
-----------
5+
* [#3649]
6+
7+
Semantic version dependencies can now be resolved against Git tag names that contain only major and minor version identifiers. A tag with the form `X.Y` will be treated as `X.Y.0`. This improves compatibility with existing repositories.
8+
9+
* [#3486]
10+
11+
Both parsing and comparison of semantic versions now strictly follow the [Semantic Versioning 2.0.0 specification](https://semver.org).
12+
13+
The parsing logic now treats the first "-" in a version string as the delimiter between the version core and the pre-release identifiers, _only_ if there is no preceding "+". Otherwise, it's treated as part of a build metadata identifier.
14+
15+
The comparison logic now ignores build metadata identifiers, and treats 2 semantic versions as equal if and only if they're equal in their major, minor, patch versions and pre-release identifiers.
716

817
* [#3641]
9-
Soft deprecate `.package(name:, url:)` dependency syntax in favour of `.package(url:)`, given that an explicit `name` attribute is no longer needed for target depedendencies lookup.
18+
19+
Soft deprecate `.package(name:, url:)` dependency syntax in favour of `.package(url:)`, given that an explicit `name` attribute is no longer needed for target depedendencies lookup.
1020

1121
* [#3641]
12-
Adding a dependency requirement can now be done with the convenience initializer `.package(url: String, exact: Version)`.
22+
23+
Adding a dependency requirement can now be done with the convenience initializer `.package(url: String, exact: Version)`.
1324

1425
Swift 5.5
15-
-----------
26+
-----------
1627
* [#3410]
17-
In a package that specifies a minimum tools version of 5.5, `@main` can now be used in a single-source file executable as long as the name of the source file isn't `main.swift`. To work around special compiler semantics with single-file modules, SwiftPM now passes `-parse-as-library` when compiling an executable module that contains a single Swift source file whose name is not `main.swift`.
28+
29+
In a package that specifies a minimum tools version of 5.5, `@main` can now be used in a single-source file executable as long as the name of the source file isn't `main.swift`. To work around special compiler semantics with single-file modules, SwiftPM now passes `-parse-as-library` when compiling an executable module that contains a single Swift source file whose name is not `main.swift`.
1830

1931
* [#3310]
20-
Adding a dependency requirement can now be done with the convenience initializer `.package(url: String, revision: String)`.
32+
33+
Adding a dependency requirement can now be done with the convenience initializer `.package(url: String, revision: String)`.
2134

2235
* [#3292]
23-
Adding a dependency requirement can now be done with the convenience initializer `.package(url: String, branch: String)`.
36+
37+
Adding a dependency requirement can now be done with the convenience initializer `.package(url: String, branch: String)`.
2438

2539
* [#3280]
26-
A more intuitive `.product(name:, package:)` target depedendency syntax is now accepted, where `package` is the package identifier as defined by the package URL.
40+
41+
A more intuitive `.product(name:, package:)` target depedendency syntax is now accepted, where `package` is the package identifier as defined by the package URL.
2742

2843
* [#3316]
29-
Test targets can now link against executable targets as if they were libraries, so that they can test any data strutures or algorithms in them. All the code in the executable except for the main entry point itself is available to the unit test. Separate executables are still linked, and can be tested as a subprocess in the same way as before. This feature is available to tests defined in packages that have a tools version of `5.5` or newer.
44+
45+
Test targets can now link against executable targets as if they were libraries, so that they can test any data strutures or algorithms in them. All the code in the executable except for the main entry point itself is available to the unit test. Separate executables are still linked, and can be tested as a subprocess in the same way as before. This feature is available to tests defined in packages that have a tools version of `5.5` or newer.
3046

3147
Swift 5.4
3248
-----------
@@ -156,5 +172,6 @@ Swift 3.0
156172
[#3310]: https://github.com/apple/swift-package-manager/pull/3310
157173
[#3316]: https://github.com/apple/swift-package-manager/pull/3316
158174
[#3410]: https://github.com/apple/swift-package-manager/pull/3410
175+
[#3486]: https://github.com/apple/swift-package-manager/pull/3486
159176
[#3641]: https://github.com/apple/swift-package-manager/pull/3641
160177
[#3649]: https://github.com/apple/swift-package-manager/pull/3649

0 commit comments

Comments
 (0)