Skip to content

feat: Build invoice diff utility — compare two invoice states (#363)#402

Merged
Kingsman-99 merged 2 commits into
Stellar-split:mainfrom
iam-mercy:feature/invoice-diff-utility
Jun 29, 2026
Merged

feat: Build invoice diff utility — compare two invoice states (#363)#402
Kingsman-99 merged 2 commits into
Stellar-split:mainfrom
iam-mercy:feature/invoice-diff-utility

Conversation

@iam-mercy

Copy link
Copy Markdown
  • Implement diffInvoices(a, b) to return structured diff of changed fields
  • Return InvoiceDiff as array of { field, before, after } entries
  • Handle nested objects (recipients, split rules) with deep equality
  • Handle arrays (payments, prerequisites) with element-by-element comparison
  • Compare bigint fields numerically, not by reference
  • Add hasDiff(a, b) convenience function returning boolean
  • Pure functions with no RPC calls or side effects
  • Export TypeScript types: InvoiceDiff, InvoiceDiffEntry
  • Add comprehensive test suite with 32 passing tests
  • Add complete documentation in docs/INVOICE_DIFF.md
  • Update CHANGELOG.md with feature details

Closes #363

…r-split#363)

- Implement diffInvoices(a, b) to return structured diff of changed fields
- Return InvoiceDiff as array of { field, before, after } entries
- Handle nested objects (recipients, split rules) with deep equality
- Handle arrays (payments, prerequisites) with element-by-element comparison
- Compare bigint fields numerically, not by reference
- Add hasDiff(a, b) convenience function returning boolean
- Pure functions with no RPC calls or side effects
- Export TypeScript types: InvoiceDiff, InvoiceDiffEntry
- Add comprehensive test suite with 32 passing tests
- Add complete documentation in docs/INVOICE_DIFF.md
- Update CHANGELOG.md with feature details

Closes Stellar-split#363
@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@iam-mercy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Kingsman-99 Kingsman-99 merged commit fc9c0f9 into Stellar-split:main Jun 29, 2026
1 check 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.

Build invoice diff utility — compare two invoice states

3 participants