@univerjs/rpc 0.1.10 → 0.1.11

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.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  When handling some time-intensive tasks, such as formula computation, Univer can offload them to a location outside of the main thread, such as a Web Worker thread. The `@univerjs/rpc` library provides an RPC mechanism that simplifies communication between the main thread and other threads.
9
9
 
10
- For more information, see the [Architecture of Web Worker](https://univer.ai/guides/concepts-and-architecture/web-worker/).
10
+ For more information, see the [Architecture of Web Worker](https://univer.ai/guides/sheet/architecture/web-worker).
11
11
 
12
12
  ## Usage
13
13
 
@@ -1,7 +1,7 @@
1
- import { IRPCChannelService } from '../../services/rpc/channel.service';
2
- import { IRemoteSyncService } from '../../services/remote-instance/remote-instance.service';
3
- import { Injector } from '@wendellhu/redi';
4
1
  import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
+ import { Injector } from '@wendellhu/redi';
3
+ import { IRemoteSyncService } from '../../services/remote-instance/remote-instance.service';
4
+ import { IRPCChannelService } from '../../services/rpc/channel.service';
5
5
 
6
6
  /**
7
7
  * This controller is responsible for syncing data from the primary thread to
@@ -1,7 +1,7 @@
1
- import { IRPCChannelService } from '../../services/rpc/channel.service';
2
- import { IRemoteInstanceService } from '../../services/remote-instance/remote-instance.service';
3
- import { Injector } from '@wendellhu/redi';
4
1
  import { Disposable, ICommandService } from '@univerjs/core';
2
+ import { Injector } from '@wendellhu/redi';
3
+ import { IRemoteInstanceService } from '../../services/remote-instance/remote-instance.service';
4
+ import { IRPCChannelService } from '../../services/rpc/channel.service';
5
5
 
6
6
  /**
7
7
  * This controller is responsible for syncing data from the worker thread to
@@ -1,5 +1,5 @@
1
- import { Injector } from '@wendellhu/redi';
2
1
  import { Plugin } from '@univerjs/core';
2
+ import { Injector } from '@wendellhu/redi';
3
3
 
4
4
  export interface IUniverRPCMainThreadConfig {
5
5
  workerURL: string | URL | Worker;
@@ -1,5 +1,5 @@
1
- import { Injector } from '@wendellhu/redi';
2
1
  import { IExecutionOptions, IMutationInfo, IWorkbookData, ICommandService, ILogService, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';
2
+ import { Injector } from '@wendellhu/redi';
3
3
 
4
4
  export interface IRemoteSyncMutationOptions extends IExecutionOptions {
5
5
  /** If this mutation is executed after it was sent from the peer univer instance (e.g. in a web worker). */
@@ -1,5 +1,5 @@
1
- import { Observable } from 'rxjs';
2
1
  import { RxDisposable } from '@univerjs/core';
2
+ import { Observable } from 'rxjs';
3
3
 
4
4
  /** This protocol is for transferring data from the two peer univer instance running in different locations. */
5
5
  export interface IMessageProtocol {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/rpc",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "private": false,
5
5
  "author": "DreamNum <developer@univer.ai>",
6
6
  "license": "Apache-2.0",
@@ -49,18 +49,18 @@
49
49
  "npm": ">=8.0.0"
50
50
  },
51
51
  "peerDependencies": {
52
- "@wendellhu/redi": "^0.13.3",
52
+ "@wendellhu/redi": "^0.15.1",
53
53
  "rxjs": ">=7.0.0",
54
- "@univerjs/core": "0.1.10"
54
+ "@univerjs/core": "0.1.11"
55
55
  },
56
56
  "devDependencies": {
57
- "@wendellhu/redi": "^0.13.3",
57
+ "@wendellhu/redi": "^0.15.1",
58
58
  "rxjs": "^7.8.1",
59
59
  "typescript": "^5.4.5",
60
- "vite": "^5.2.10",
61
- "vitest": "^1.5.0",
62
- "@univerjs/core": "0.1.10",
63
- "@univerjs/shared": "0.1.10"
60
+ "vite": "^5.2.11",
61
+ "vitest": "^1.6.0",
62
+ "@univerjs/core": "0.1.11",
63
+ "@univerjs/shared": "0.1.11"
64
64
  },
65
65
  "scripts": {
66
66
  "lint:types": "tsc --noEmit",