Releases: ryuever/x-oasis
Release list
@x-oasis/async-call-rpc@0.17.0
@x-oasis/async-call-rpc-web@0.13.0
@x-oasis/async-call-rpc-react@0.14.0
@x-oasis/async-call-rpc-node@0.13.0
@x-oasis/async-call-rpc-electron@0.14.0
Minor Changes
Patch Changes
@x-oasis/async-call-rpc@0.16.0
Minor Changes
-
58dde19: feat(orchestrator): cross-process-safe
ReconnectPolicySpecforConnectionConfigParticipantOrchestratorProxy.connect()(utility / renderer worker) ships
itsConnectionConfigto the main-process orchestrator over RPC. Live
ReconnectPolicyclass instances don't survive the serialisation
boundary — their methods get stripped and the orchestrator silently fell
back to a default policy, ignoring whatever strategy the worker asked for
(telegraph D-007 G7).This change adds a declarative descriptor and reifies it on the receiving
end:- New
ReconnectPolicySpecdiscriminated union exported from
@x-oasis/async-call-rpc:{ kind: 'exponential-backoff'; options?: ExponentialBackoffOptionsLike }{ kind: 'fixed-delay'; delays?: number[] }{ kind: 'never' }
- New
ConnectionConfigSpecinterface — the cross-process-safe subset of
ConnectionConfig(heartbeat + reconnectPolicy spec; intentionally no
fromServices/toServices, since RPC handlers are functions that
can't survive serialisation either). - New
instantiateReconnectPolicy(spec)factory +isReconnectPolicySpec
type guard. Throws on unknownkindso a stale worker shipping a newer
policy descriptor fails loud rather than silently degrading. BaseConnectionOrchestrator.registerProxyService'srequestConnect
handler now unmarshals incomingConnectionConfigvia
_unmarshalConnectionConfig— specs become real instances, real
instances pass through untouched.ParticipantOrchestratorProxy.connect(toId, config?, options?)now
typesconfigasConnectionConfigSpec(wasRecord<string, unknown>)
andoptionsasConnectOptions.
Backwards compatible: same-process callers passing real
ReconnectPolicy
instances are unaffected; cross-process callers gain the ability to
configure their reconnect strategy for the first time. - New
@x-oasis/async-call-rpc-web@0.12.1
Patch Changes
- Updated dependencies [58dde19]
- @x-oasis/async-call-rpc@0.16.0
@x-oasis/async-call-rpc-node@0.12.1
Patch Changes
- Updated dependencies [58dde19]
- @x-oasis/async-call-rpc@0.16.0
@x-oasis/async-call-rpc-electron@0.13.0
Minor Changes
-
58dde19: feat(orchestrator): cross-process-safe
ReconnectPolicySpecforConnectionConfigParticipantOrchestratorProxy.connect()(utility / renderer worker) ships
itsConnectionConfigto the main-process orchestrator over RPC. Live
ReconnectPolicyclass instances don't survive the serialisation
boundary — their methods get stripped and the orchestrator silently fell
back to a default policy, ignoring whatever strategy the worker asked for
(telegraph D-007 G7).This change adds a declarative descriptor and reifies it on the receiving
end:- New
ReconnectPolicySpecdiscriminated union exported from
@x-oasis/async-call-rpc:{ kind: 'exponential-backoff'; options?: ExponentialBackoffOptionsLike }{ kind: 'fixed-delay'; delays?: number[] }{ kind: 'never' }
- New
ConnectionConfigSpecinterface — the cross-process-safe subset of
ConnectionConfig(heartbeat + reconnectPolicy spec; intentionally no
fromServices/toServices, since RPC handlers are functions that
can't survive serialisation either). - New
instantiateReconnectPolicy(spec)factory +isReconnectPolicySpec
type guard. Throws on unknownkindso a stale worker shipping a newer
policy descriptor fails loud rather than silently degrading. BaseConnectionOrchestrator.registerProxyService'srequestConnect
handler now unmarshals incomingConnectionConfigvia
_unmarshalConnectionConfig— specs become real instances, real
instances pass through untouched.ParticipantOrchestratorProxy.connect(toId, config?, options?)now
typesconfigasConnectionConfigSpec(wasRecord<string, unknown>)
andoptionsasConnectOptions.
Backwards compatible: same-process callers passing real
ReconnectPolicy
instances are unaffected; cross-process callers gain the ability to
configure their reconnect strategy for the first time. - New
Patch Changes
- Updated dependencies [58dde19]
- @x-oasis/async-call-rpc@0.16.0
- @x-oasis/async-call-rpc-web@0.12.1
@x-oasis/web-stream@0.13.0
Minor Changes
- 84e6aa6: feat: kill -> restart