@univerjs/rpc 0.2.12 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ export declare class UniverRPCMainThreadPlugin extends Plugin {
10
10
  private readonly _configService;
11
11
  static pluginName: string;
12
12
  private _internalWorker;
13
- constructor(_config: Partial<IUniverRPCMainThreadConfig>, _injector: Injector, _configService: IConfigService);
13
+ constructor(_config: Partial<IUniverRPCMainThreadConfig> | undefined, _injector: Injector, _configService: IConfigService);
14
14
  dispose(): void;
15
15
  onStarting(): void;
16
16
  }
@@ -22,6 +22,6 @@ export declare class UniverRPCWorkerThreadPlugin extends Plugin {
22
22
  protected readonly _injector: Injector;
23
23
  private readonly _configService;
24
24
  static pluginName: string;
25
- constructor(_config: Partial<IUniverRPCWorkerThreadConfig>, _injector: Injector, _configService: IConfigService);
25
+ constructor(_config: Partial<IUniverRPCWorkerThreadConfig> | undefined, _injector: Injector, _configService: IConfigService);
26
26
  onStarting(): void;
27
27
  }
@@ -9,7 +9,7 @@ export declare const RemoteSyncServiceName = "rpc.remote-sync.service";
9
9
  *
10
10
  * Replica Univer could call this service to update mutations back to the primary Univer.
11
11
  */
12
- export declare const IRemoteSyncService: import('@univerjs/core').IdentifierDecorator<IRemoteSyncService>;
12
+ export declare const IRemoteSyncService: import('@wendellhu/redi').IdentifierDecorator<IRemoteSyncService>;
13
13
  export interface IRemoteSyncService {
14
14
  syncMutation(params: {
15
15
  mutationInfo: IMutationInfo;
@@ -29,7 +29,7 @@ export declare const RemoteInstanceServiceName = "univer.remote-instance-service
29
29
  * Primary univer could call this service to init and dispose univer business instances
30
30
  * and sync mutations to replica univer.
31
31
  */
32
- export declare const IRemoteInstanceService: import('@univerjs/core').IdentifierDecorator<IRemoteInstanceService>;
32
+ export declare const IRemoteInstanceService: import('@wendellhu/redi').IdentifierDecorator<IRemoteInstanceService>;
33
33
  export interface IRemoteInstanceService {
34
34
  /** Tell other modules if the `IRemoteInstanceService` is ready to load files. */
35
35
  whenReady(): Promise<true>;
@@ -4,7 +4,7 @@ export interface IRPCChannelService {
4
4
  requestChannel(name: string): IChannel;
5
5
  registerChannel(name: string, channel: IChannel): void;
6
6
  }
7
- export declare const IRPCChannelService: import('@univerjs/core').IdentifierDecorator<IRPCChannelService>;
7
+ export declare const IRPCChannelService: import('@wendellhu/redi').IdentifierDecorator<IRPCChannelService>;
8
8
  /**
9
9
  * This service is responsible for managing the RPC channels.
10
10
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/rpc",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "private": false,
5
5
  "author": "DreamNum <developer@univer.ai>",
6
6
  "license": "Apache-2.0",
@@ -46,15 +46,17 @@
46
46
  ],
47
47
  "peerDependencies": {
48
48
  "rxjs": ">=7.0.0",
49
- "@univerjs/core": "0.2.12"
49
+ "@univerjs/core": "0.2.13"
50
+ },
51
+ "dependencies": {
52
+ "@univerjs/core": "0.2.13"
50
53
  },
51
54
  "devDependencies": {
52
55
  "rxjs": "^7.8.1",
53
- "typescript": "^5.5.4",
54
- "vite": "^5.4.2",
56
+ "typescript": "^5.6.2",
57
+ "vite": "^5.4.4",
55
58
  "vitest": "^2.0.5",
56
- "@univerjs/core": "0.2.12",
57
- "@univerjs/shared": "0.2.12"
59
+ "@univerjs-infra/shared": "0.2.13"
58
60
  },
59
61
  "univerSpace": {
60
62
  ".": {