Skip to content

Releases: swiftlang/swift-syntax

605.0.0-prerelease-2026-06-08

08 Jun 16:10
fc2eb91

Choose a tag to compare

Pre-release
Merge pull request #3354 from rintaro/workaround-rdar178757853

[Tests] Prevent inlining of a test function

604.0.0-prerelease-2026-06-05

05 Jun 16:57
b90056d

Choose a tag to compare

Pre-release
Merge pull request #3355 from rintaro/6.4-workaround-rdar178757853

[6.4][Tests] Prevent inlining of a test function

603.0.2

08 Jun 16:07
79e4b74

Choose a tag to compare

API Behavior Changes

  • SwiftSyntaxMacrosTestSupport now supports Swift Testing in addition to XCTest
    • Description: Macro implementations can now be tested using Swift Testing. Calling assertMacroExpansion() from a Swift Testing test will record failures as test issues automatically.
    • Pull Request: #3352
    • Migration steps: None required. Existing tests using SwiftSyntaxMacrosTestSupport with XCTest continue to work unchanged, but you can convert such tests to Swift Testing if desired.
    • Notes: If your project has an explicit dependency on the swift-testing package, rather than using a built-in copy of the Testing module, you may encounter build or runtime issues. This is a known limitation of using a non-built-in distribution of Swift Testing; the Distributions documentation covers this topic in detail. There are two ways to resolve this: (1) remove the dependency on the swift-testing package and switch to using a built-in copy, as the documentation recommends; or (2) import SwiftSyntaxMacrosGenericTestSupport instead of SwiftSyntaxMacrosTestSupport and supply your own failureHandler: closure that calls Issue.record() explicitly. (The latter works correctly even when using a package dependency.)

Full Changelog: 603.0.1...603.0.2

603.0.0-prerelease-2026-06-05

05 Jun 18:20
79e4b74

Choose a tag to compare

Pre-release
Merge pull request #3356 from rintaro/6.3-workaround-rdar178757853

[6.3][Tests] Prevent inlining of a test function

604.0.0-prerelease-2026-04-21

21 Apr 20:36
51c8c23

Choose a tag to compare

Pre-release
Merge pull request #3316 from swiftlang/shahmishal-patch-1

Add group for swiftlang GitHub Actions

603.0.1

21 Apr 17:44
9de99a7

Choose a tag to compare

What's Changed

Full Changelog: 603.0.0...603.0.1

604.0.0-prerelease-2026-03-31

31 Mar 07:03
e9b5143

Choose a tag to compare

Pre-release
Merge pull request #3300 from cachemeifyoucan/eng/PR-can-import-versi…

604.0.0-prerelease-2026-03-24

24 Mar 03:48
901f1c9

Choose a tag to compare

Pre-release
Merge pull request #3298 from calda/cal--computed-var-body-macro

603.0.0

24 Mar 18:44
2b59c0c

Choose a tag to compare

New APIs

  • SwiftIfConfig.StaticBuildConfiguration a data structure for a build configuration.

    • Description: This describes all of the aspects of a build configuration that are needed for #if evaluation. It is Codable so that it can be stored and replayed later.
    • Pull Request: #3154
  • MacroExpansionContext.buildConfiguration

    • Description: MacroExpansionContext now has buildConfiguration property describing the build configuration that will be used with the generated source code.
    • Pull Request: #3154

API Behavior Changes

Deprecations

API-Incompatible Changes

604.0.0-prerelease-2026-01-20

20 Jan 19:55
65b02a9

Choose a tag to compare

Pre-release
Merge pull request #3229 from myaumura/update-computed-properties-cod…