Skip to content

Conversation

@drichar
Copy link
Contributor

@drichar drichar commented Mar 5, 2025

Description

This PR reorganizes the utility functions in the SDK to clearly separate public and internal APIs. It creates a more maintainable structure by explicitly defining which utilities are meant for public consumption versus internal use.

Details

  • Created a new internal directory for utility functions not meant for public use
  • Moved array.ts, bytes.ts, and state.ts to the internal directory
  • Created an internal version of nfd.ts with internal utility functions
  • Updated import paths across the codebase to reflect the new structure
  • Updated utils/README.md to document all public utility functions
  • Verified all tests pass with the new organization

Reorganized utility functions in the SDK to clearly separate public and
internal APIs:
- Created a new `internal` directory for utility functions not meant for
  public use
- Moved `array.ts`, `bytes.ts`, and `state.ts` to the internal directory
- Updated import paths across the codebase
- Updated `utils/README.md` to document all public utility functions

This change improves maintainability and provides clearer API boundaries
for SDK users.
@drichar drichar merged commit bdb9ec8 into main Mar 5, 2025
1 check passed
@drichar drichar deleted the refactor/reorganize-utils branch March 5, 2025 08:45
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