Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Aug 10, 2023

Mend Renovate

This PR contains the following updates:

Package Update Change
apple/swift-format major from: "0.50700.1" -> from: "508.0.1"

Release Notes

apple/swift-format (apple/swift-format)

v508.0.1

Compare Source

This release is compatible with Swift 5.8.

Compared to 508.0.0, this release relaxes the version requirement for swift-argument-parser, resulting in fewer version conflicts for users of swift-format and SwiftSyntax.

v508.0.0

Compare Source

This release is compatible with Swift 5.8.

Significant changes since the last release:

  • The spacesAroundRangeFormationOperators configuration option has been added to force a space around range formation operators like ... and ..<.
  • A new rule, NoAssignmentInExpressions, has been added that emits a linter finding if an assignment expression is found in another expression context (for example, return x = y).
  • Format and Lint plug-ins have been added that can be used from Swift Package Manager and Xcode.
  • Detection of "files that contain XCTests" has been improved to include cases where XCTest is imported conditionally in a #if block.
  • Primary associated type clauses in protocol declarations are formatted correctly.
  • When a closure literal contains both a leading attribute and a capture list (e.g., { @&#8203;MainActor [weak self] in ...), a space is guaranteed between the attribute and capture list.
  • Optional<T> will not be automatically converted to the shorthand T? in positions where it would cause a performance issue due to subtle Swift initialization characteristics, like in member variable declarations.

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 becomes conflicted, 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 has been generated by Mend Renovate. View repository job log here.

@beeme1mr beeme1mr merged commit 35dc006 into main Aug 23, 2023
@beeme1mr beeme1mr deleted the renovate/apple-swift-format-508.x branch August 23, 2023 15:57
fabriziodemaria added a commit that referenced this pull request Nov 12, 2025
## This PR

1. Fixes possible race conditions detected when running
updateEvaluationContextAndWait in parallel
2. Adds AsyncProviderOperationsQueue for safe and optimized processing
of background context resolving
3. Fix bug where `ready` could be emitted when a context is set without
any provider set
4. Adds `clearProviderAndWait` to complement the same pattern in
setProvider and setEvaluationContext

### Notes
Stacktrace for the original crash (from point 1 above):
```
Task 22150 Queue : com.apple.root.default-qos.cooperative (concurrent)
#0	0x00000001970125c4 in _swift_release_dealloc ()
#1	0x0000000197013094 in swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1>>::doDecrementSlow<(swift::PerformDeinit)1> ()
#2	0x00000001129667f8 in __swift_destroy_boxed_opaque_existential_1 ()
#3	0x000000011296a844 in outlined destroy of EvaluationContext? ()
#4	0x0000000112975098 in OpenFeatureAPI.updateContext(evaluationContext:) at /Users/XXX/Library/Developer/Xcode/DerivedData/confidence-sdk-swift-XXX/SourcePackages/checkouts/swift-sdk/Sources/OpenFeature/OpenFeatureAPI.swift:187
#5	0x0000000112973690 in closure #1 in closure #1 in closure #1 in OpenFeatureAPI.setEvaluationContextAndWait(evaluationContext:) at /Users/XXX/Library/Developer/Xcode/DerivedData/confidence-sdk-swift-XXX/SourcePackages/checkouts/swift-sdk/Sources/OpenFeature/OpenFeatureAPI.swift:95
#6	0x0000000112975f40 in partial apply for closure #1 in closure #1 in closure #1 in OpenFeatureAPI.setEvaluationContextAndWait(evaluationContext:) ()
#7	0x00000001129764dc in thunk for @escaping @isolated(any) @callee_guaranteed @async () -> (@out A) ()
#8	0x0000000112976648 in partial apply for thunk for @escaping @isolated(any) @callee_guaranteed @async () -> (@out A) ()
```

---------

Signed-off-by: Fabrizio Demaria <fabrizio.f.demaria@gmail.com>
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.

3 participants