feat(typedsocket): Add SmartServe integration, tagging and improved client reconnect/backoff; update deps and tests

This commit is contained in:
2025-12-04 00:00:38 +00:00
parent cace6ca85a
commit 632045edd9
7 changed files with 739 additions and 480 deletions

View File

@@ -1,5 +1,17 @@
# Changelog
## 2025-12-04 - 4.1.0 - feat(typedsocket)
Add SmartServe integration, tagging and improved client reconnect/backoff; update deps and tests
- Add SmartServe integration: new TypedSocket.fromSmartServe(smartServe, typedRouter) with SmartServe connection wrappers and tag compatibility
- Implement server-side tag handlers and storage (__typedsocket_setTag / __typedsocket_removeTag) with payloads stored under internal TAG_PREFIX
- Add client improvements: TypedSocket.createClient(...) with autoReconnect, configurable exponential backoff (initialBackoffMs, maxBackoffMs, maxRetries) and connection status observable (statusSubject)
- Expose client tag API: setTag(name, payload) and removeTag(name) to manage server-side tags
- Server-side APIs for connection discovery: findAllTargetConnections, findTargetConnection, findAllTargetConnectionsByTag, findTargetConnectionByTag
- Plugins and internal tooling updated: replace smartsocket exports with smartdelay and smartpromise; export smartpromise and smartdelay for internal use
- Tests updated to use SmartServe for end-to-end scenarios (server/client message flow, tagging and connection discovery); test script changed to run in verbose mode
- Bumped dependency versions and adjusted peer dependency for @push.rocks/smartserve to >=1.1.0
## 2025-12-03 - 4.0.0 - BREAKING CHANGE(TypedSocket.createServer)
Remove SmartExpress attachment support from createServer and upgrade smartsocket to ^3.0.0