@casual-simulation/aux-common 3.1.30 → 3.1.32-alpha.5291858541
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/bots/BotEvents.d.ts +10 -0
- package/bots/BotEvents.js +8 -0
- package/bots/BotEvents.js.map +1 -1
- package/package.json +4 -4
- package/partitions/PartitionUtils.d.ts +5 -0
- package/partitions/PartitionUtils.js +13 -1
- package/partitions/PartitionUtils.js.map +1 -1
- package/partitions/RemoteYjsPartition.js +16 -0
- package/partitions/RemoteYjsPartition.js.map +1 -1
- package/runtime/AuxLibrary.d.ts +2 -0
- package/runtime/AuxLibrary.js +22 -2
- package/runtime/AuxLibrary.js.map +1 -1
- package/runtime/AuxLibraryDefinitions.def +14 -0
|
@@ -11018,6 +11018,20 @@ interface Os {
|
|
|
11018
11018
|
*/
|
|
11019
11019
|
applyUpdatesToInst(updates: InstUpdate[]): Promise<void>;
|
|
11020
11020
|
|
|
11021
|
+
/**
|
|
11022
|
+
* Gets the current inst update.
|
|
11023
|
+
*
|
|
11024
|
+
* This function is somewhat equivalent to calling os.listInstUpdates() followed by os.mergeInstUpdates(), but it uses the locally available state instead of fetching from the server.
|
|
11025
|
+
* This makes it more efficient as well as usable even when the server is not available.
|
|
11026
|
+
*/
|
|
11027
|
+
getCurrentInstUpdate(): Promise<InstUpdate>;
|
|
11028
|
+
|
|
11029
|
+
/**
|
|
11030
|
+
* Merges the given instance updates into a single update.
|
|
11031
|
+
* @param updates The list of updates to merge.
|
|
11032
|
+
*/
|
|
11033
|
+
mergeInstUpdates(updates: InstUpdate[]): InstUpdate;
|
|
11034
|
+
|
|
11021
11035
|
/**
|
|
11022
11036
|
* Sends an event to the server to setup a new inst if it does not exist.
|
|
11023
11037
|
* @param inst The inst.
|