Skip to content

chore(deps): update dependency apple/swift-syntax to v601 #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 28, 2025

This PR contains the following updates:

Package Update Change
apple/swift-syntax major from: "600.0.1" -> from: "601.0.1"

Release Notes

apple/swift-syntax (apple/swift-syntax)

v601.0.1

Compare Source

Fixes a missing dependency from SwiftSyntax to SwiftSyntax601 which prevented its use in #if canImport.

v601.0.0

Compare Source

New APIs
  • SameTypeRequirementSyntax has a new RightType nested type.

  • SameTypeRequirementSyntax has a new LeftType nested type.

  • GenericArgumentSynax has a new Argument nested type.

  • GenericParameterSyntax now has a new specifier property.

    • Description: With the introduction of value generics, generic parameters can now be optionally preceded by either a let or an each. The specifier property captures the token representing which one was parsed.
    • Pull Request: https://github.com/swiftlang/swift-syntax/pull/2785
  • IntegerLiteralExprSyntax and FloatLiteralExprSyntax now have a computed representedLiteralValue property.

  • SyntaxProtocol now has a method ancestorOrSelf.

  • Error protocol now has an asDiagnostics(at:) method.

  • Added a new library SwiftIfConfig.

  • SwiftBasicFormat adds a method indented(by:) to all syntax node types.

  • Parser.ExperimentalFeatures has a new init?(name: String) initializer.

    • Description: This initializer returns the Parser.ExperimentalFeatures value that matches the experimental parser feature with the given name. The name must be spelled the same way as it is when passed to the compiler using the -enable-experimental-feature flag.
    • Pull Request: https://github.com/swiftlang/swift-syntax/pull/2895
API Behavior Changes
  • SyntaxProtocol.trimmed detaches the node
    • Description: Getting a trimmed version of a node detaches it from its parent. Having the trimmed node be attached to a parent was not intuitive because eg. printing the parent node would have the trimmed trivia missing, most likely forming invalid Swift code.
    • Pull Request: https://github.com/apple/swift-syntax/pull/2689
Deprecations
  • GenericParameterSyntax deprecated eachKeyword in favor of specifier

  • IncrementalEdit deprecated in favor of SourceEdit

  • ClosureCaptureSyntax.init(leadingTrivia:specifier:name:equal:expression:trailingComma:trailingTrivia:) deprecated in favor of a new ClosureCaptureSyntax.init(leadingTrivia:_:specifier:_:name:_:initializer:_:trailingComma:_:trailingTrivia:) initializer.

  • Indenter in SwiftSyntaxBuilder has been deprecated in favor of the new indented(by:) in SwiftBasicFormat.

    • Description: Indenting is really more of a formatting operation than a syntax-building operation. Additionally, the indented(by:) method is more intuitive to use than a SyntaxRewriter. Aside from BasicFormat, there are no other public SyntaxRewriter classes in the package.
    • Pull Request: https://github.com/swiftlang/swift-syntax/pull/2843
API-Incompatible Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/apple-swift-syntax-601.x branch from a91855b to b384405 Compare April 2, 2025 23:20
@EnesKaraosman EnesKaraosman merged commit eb53d6e into main May 30, 2025
1 check passed
@EnesKaraosman EnesKaraosman deleted the renovate/apple-swift-syntax-601.x branch May 30, 2025 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant