Skip to content

feat(core): Implement ObjectInspector class with comprehensive type-s… #2

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

…afe object utilities

  • Core ObjectInspector class enabling chainable object inspection/manipulation
  • Complete API surface covering navigation, validation, transformation, and error handling
  • Documentation (docs/api/inspect.md) detailing 30+ methods with usage examples
  • Full type safety throughout all operations including circular reference handling
  • Support for complex scenarios:
    • Symbol property access
    • Array/object polymorphism
    • Deep nested structure traversal
    • Function property execution
  • Error boundary implementations for common edge cases
  • Comprehensive test suite covering 150+ scenarios including:
    • Null prototype objects
    • Mixed primitive/object structures
    • Maximum depth enforcement
    • Concurrent modification handling

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

View Documentation

…afe object utilities

- Core `ObjectInspector` class enabling chainable object inspection/manipulation
- Complete API surface covering navigation, validation, transformation, and error handling
- Documentation (`docs/api/inspect.md`) detailing 30+ methods with usage examples
- Full type safety throughout all operations including circular reference handling
- Support for complex scenarios:
  - Symbol property access
  - Array/object polymorphism
  - Deep nested structure traversal
  - Function property execution
- Error boundary implementations for common edge cases
- Comprehensive test suite covering 150+ scenarios including:
  - Null prototype objects
  - Mixed primitive/object structures
  - Maximum depth enforcement
  - Concurrent modification handling

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

[View Documentation](docs/api/inspect.doc.md)
@m-mdy-m m-mdy-m requested a review from bitsgenix February 24, 2025 02:44
Copy link
Member

@bitsgenix bitsgenix left a comment

Choose a reason for hiding this comment

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

merged

@bitsgenix bitsgenix merged commit aab2dad 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.

2 participants