Skip to content

refactor(ioc): add IoC container, rename api→native, wire EndpointFactory#166

Draft
imaTik0 wants to merge 1 commit intorefactor/webstreams-difrom
refactor/ioc-container
Draft

refactor(ioc): add IoC container, rename api→native, wire EndpointFactory#166
imaTik0 wants to merge 1 commit intorefactor/webstreams-difrom
refactor/ioc-container

Conversation

@imaTik0
Copy link
Copy Markdown
Member

@imaTik0 imaTik0 commented Apr 17, 2026

  • Rename src/api/ → src/native/ (git mv, all imports updated)
  • Delete ApiStatic singleton; pass Api explicitly via constructor injection
  • Add src/ioc/ with Container, Tokens, buildConnectionApis, buildWebRtcClient
  • Replace EndpointFactory manual wiring with GlobalContainer/ConnectionContainer
  • Update Connection: private apisRefs, registerApi()/hasApi(), restore freeApis
  • Update ExtKey static methods to accept Api as first argument
  • Remove abstract newApi() from BaseNative

…tory

- Rename src/api/ → src/native/ (git mv, all imports updated)
- Delete ApiStatic singleton; pass Api explicitly via constructor injection
- Add src/ioc/ with Container, Tokens, buildConnectionApis, buildWebRtcClient
- Replace EndpointFactory manual wiring with GlobalContainer/ConnectionContainer
- Update Connection: private apisRefs, registerApi()/hasApi(), restore freeApis
- Update ExtKey static methods to accept Api as first argument
- Remove abstract newApi() from BaseNative
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