Skip to content

Remove swift-collections dependency#218

Merged
dfed merged 6 commits intomainfrom
dfed/remove-swift-collections
Apr 6, 2026
Merged

Remove swift-collections dependency#218
dfed merged 6 commits intomainfrom
dfed/remove-swift-collections

Conversation

@dfed
Copy link
Copy Markdown
Owner

@dfed dfed commented Apr 6, 2026

Summary

  • Replace OrderedSet with Array and OrderedDictionary with Dictionary across 4 SafeDICore files
  • Remove swift-collections from Package.swift dependencies and Package.resolved
  • The ordered semantics were not load-bearing: cycle-detection stacks are small arrays, the topological sort derives its order from the source propertiesToGenerate array, and the set subtraction in Initializer is a simple filter

Test plan

  • All 759 tests pass
  • SwiftFormat lint clean

🤖 Generated with Claude Code

Replace OrderedSet with Array and OrderedDictionary with Dictionary
in the four SafeDICore files that used them. The ordered semantics
were not load-bearing: cycle-detection stacks are small arrays,
the topological sort derives its order from the source
propertiesToGenerate array, and the set subtraction in Initializer
is a simple filter.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (df34044) to head (353e1f3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #218   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           40        40           
  Lines         6127      6128    +1     
=========================================
+ Hits          6127      6128    +1     
Files with missing lines Coverage Δ
...afeDICore/Generators/DependencyTreeGenerator.swift 100.00% <100.00%> (ø)
Sources/SafeDICore/Generators/ScopeGenerator.swift 100.00% <100.00%> (ø)
Sources/SafeDICore/Models/Initializer.swift 100.00% <100.00%> (ø)
Sources/SafeDICore/Models/Scope.swift 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

dfed and others added 5 commits April 6, 2026 10:10
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This function was added by #220 on main after the original PR branch
diverged, so it retained OrderedSet references that the auto-merge
did not convert.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dfed dfed marked this pull request as ready for review April 6, 2026 17:57
@dfed dfed merged commit 8a186b4 into main Apr 6, 2026
19 checks passed
@dfed dfed deleted the dfed/remove-swift-collections branch April 6, 2026 18:02
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