chore: remove effects leftovers, dead SyncedState.set, add modules/resources skill refs
This commit is contained in:
@@ -18,7 +18,6 @@ import type { RudderContext } from '../core/context.js';
|
||||
import { request, type RequestContext } from '../transport/request.js';
|
||||
import { createDefaultTokenStore } from '../token/TokenStore.js';
|
||||
import { AuthService } from '../auth/AuthService.js';
|
||||
import { EffectsCenter, type Effects } from '../effects/EffectsCenter.js';
|
||||
import { SyncEngine } from '../state/SyncEngine.js';
|
||||
import { PlayerDomain } from '../domains/PlayerDomain.js';
|
||||
import { CatalogDomain } from '../domains/CatalogDomain.js';
|
||||
@@ -33,7 +32,6 @@ export class RudderClient {
|
||||
public readonly options: ResolvedRudderClientOptions;
|
||||
|
||||
public readonly auth: AuthService;
|
||||
public readonly effects: Effects;
|
||||
|
||||
public readonly player: PlayerDomain;
|
||||
public readonly catalog: CatalogDomain;
|
||||
@@ -42,7 +40,6 @@ export class RudderClient {
|
||||
public readonly modules: ModulesDomain;
|
||||
private readonly resourcesDomain: ResourcesDomain;
|
||||
|
||||
private readonly effectsCenter: EffectsCenter;
|
||||
private readonly syncEngine: SyncEngine;
|
||||
private readonly ctx: RudderContext;
|
||||
private readonly transportContext: RequestContext;
|
||||
@@ -74,12 +71,8 @@ export class RudderClient {
|
||||
},
|
||||
};
|
||||
|
||||
this.effectsCenter = new EffectsCenter(this.options.onEffectError);
|
||||
this.effects = this.effectsCenter;
|
||||
|
||||
this.ctx = {
|
||||
options: this.options,
|
||||
effects: this.effectsCenter,
|
||||
request: <TResponse>(method: string, path: string, body?: unknown) =>
|
||||
request<TResponse>(method, path, body, this.transportContext),
|
||||
};
|
||||
|
||||
@@ -25,12 +25,6 @@ export interface RudderClientOptions {
|
||||
|
||||
/** Revision sync poll interval in milliseconds (default: 30000, ±20% jitter). */
|
||||
syncIntervalMs?: number;
|
||||
|
||||
/**
|
||||
* Called when an effect handler (or effect preparation) throws.
|
||||
* Defaults to `console.error`.
|
||||
*/
|
||||
onEffectError?: (error: unknown) => void;
|
||||
}
|
||||
|
||||
/** Client options with all defaults resolved — what `client.options` exposes. */
|
||||
|
||||
Reference in New Issue
Block a user