Skip to content

Conversation

@brrichards
Copy link
Contributor

Summary

The documentation of the push API in arrayNode.ts could cause confusion on what is unspecified by the API. Documentation has been updated to be specific as to what is unspecified.

Copilot AI review requested due to automatic review settings January 29, 2026 22:53
@brrichards brrichards requested a review from a team as a code owner January 29, 2026 22:53
Copy link
Contributor

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 improves the documentation of the push API in arrayNode.ts to provide more specific clarification about the concurrency semantics for concurrent insertions. The previous documentation vaguely stated that "merge semantics for concurrent inserts or moves to the same position are unspecified," which has been replaced with detailed examples explaining the partially-specified behavior.

Changes:

  • Enhanced the push method documentation with specific examples of concurrent insertion behavior
  • Clarified that concurrent insertions won't interleave, providing clear examples with [A, B] and [X, Y] arrays

@brrichards brrichards merged commit 20ad2af into microsoft:main Jan 30, 2026
28 checks passed
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