Skip to content

feat(core): Implement Merger class for deep object merging with type … #5

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
Feb 24, 2025

Conversation

m-mdy-m
Copy link
Member

@m-mdy-m m-mdy-m commented Feb 24, 2025

…safety

  • Core Merger class enabling deep object merging with type-safe results
  • Comprehensive API surface including:
    • Deep merging of objects and arrays
    • Type-safe merge operations preserving structure
    • Circular reference detection and handling
  • Documentation (docs/api/merge.doc.md) with usage examples and edge case handling
  • Full test suite covering 50+ scenarios including:
    • Nested object merging
    • Array concatenation and replacement
    • Mixed type handling
    • Null/undefined value preservation
    • Circular reference safety

This foundational implementation establishes @medishn/toolkit's object merging capabilities, providing robust tooling for complex data manipulation while maintaining intuitive DX. The solution balances type rigor with practical flexibility, serving as core infrastructure for subsequent toolkit expansions.

View Documentation

…safety

- Core `Merger` class enabling deep object merging with type-safe results
- Comprehensive API surface including:
  - Deep merging of objects and arrays
  - Type-safe merge operations preserving structure
  - Circular reference detection and handling
- Documentation (`docs/api/merge.doc.md`) with usage examples and edge case handling
- Full test suite covering 50+ scenarios including:
  - Nested object merging
  - Array concatenation and replacement
  - Mixed type handling
  - Null/undefined value preservation
  - Circular reference safety

This foundational implementation establishes @medishn/toolkit's object merging capabilities, providing robust tooling for complex data manipulation while maintaining intuitive DX. The solution balances type rigor with practical flexibility, serving as core infrastructure for subsequent toolkit expansions.

[View Documentation](https://github.com/medishen/toolkit/blob/main/docs/api/merge.doc.md)
@m-mdy-m m-mdy-m merged commit aabb11d into main Feb 24, 2025
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