Skip to content

Conversation

ra1028
Copy link
Owner

@ra1028 ra1028 commented Oct 3, 2025

Pull Request Type

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

@Copilot Copilot AI review requested due to automatic review settings October 3, 2025 08:57
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

Adds a new LatestModifier and Atom.latest(_:) API to retain and expose the most recent value whose Boolean key path evaluates to true, along with tests and documentation updates.

  • Introduces LatestModifier and Atom.latest(_:) convenience.
  • Adds comprehensive test coverage for validity retention behavior.
  • Updates docs (Docs + README) to list and demonstrate the new modifier.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
Tests/AtomsTests/Modifier/LatestModifierTests.swift Adds unit tests covering core behaviors and key identity of LatestModifier.
Sources/Atoms/Modifier/LatestModifier.swift Implements the LatestModifier and Atom.latest(_:) API including storage mechanism.
Sources/Atoms/Atoms.docc/Atoms.md Documents the new modifier in the modifiers index.
README.md Adds README section with usage example for latest(_:)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@ra1028 ra1028 merged commit ea74c08 into main Oct 3, 2025
6 checks passed
@ra1028 ra1028 deleted the latest-modifier branch October 3, 2025 09:04
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