Skip to content

Remove APIs deprecated in 0.7.x #192

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
Jun 4, 2025
Merged

Conversation

ra1028
Copy link
Owner

@ra1028 ra1028 commented Jun 4, 2025

Pull Request Type

  • Bug fix
  • New feature
  • Refactoring
  • Documentation update
  • Chore

@Copilot Copilot AI review requested due to automatic review settings June 4, 2025 10:29
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors AtomScope by removing deprecated APIs and legacy inheritance handling from version 0.7.x. The key changes include:

  • Removal of the Inheritance enum and the initializer using an AtomViewContext.
  • Replacement of inheritance logic with a unified scopeID-based approach.
  • Simplification of observer and override registration by eliminating conditional checks.
Comments suppressed due to low confidence (2)

Sources/Atoms/AtomScope.swift:31

  • Update the documentation comments for AtomScope to remove references to legacy inheritance behavior and deprecated initializers, clarifying that all functionality now uses the scopeID-based approach.
private let scopeID: ScopeID

Sources/Atoms/AtomScope.swift:116

  • Since the Inheritance enum and WithEnvironment view have been removed, ensure that any inline documentation or external references are updated to prevent confusion about the current atom scope handling.
final class State: ObservableObject {

@ra1028 ra1028 merged commit a22c7df into main Jun 4, 2025
6 checks passed
@ra1028 ra1028 deleted the remove-apis-deprecated-in-0.7.x branch June 4, 2025 10:44
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