@meshagent/meshagent 0.17.1 → 0.18.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.18.1]
2
+ - Stability
3
+
4
+ ## [0.18.0]
5
+ - yjs dependency updated from `^13.6.28` to `^13.6.29`
6
+ - Updated Yjs transaction cleanup behavior to reduce noisy logging and improve cleanup sequencing
7
+
1
8
  ## [0.17.1]
2
9
  - Stability
3
10
 
@@ -3695,15 +3695,19 @@ var cleanupTransactions = (transactionCleanups, i) => {
3695
3695
  event._path = null;
3696
3696
  });
3697
3697
  events.sort((event1, event2) => event1.path.length - event2.path.length);
3698
- callEventHandlerListeners(type._dEH, events, transaction);
3698
+ fs.push(() => {
3699
+ callEventHandlerListeners(type._dEH, events, transaction);
3700
+ });
3701
+ }
3702
+ });
3703
+ fs.push(() => doc2.emit("afterTransaction", [transaction, doc2]));
3704
+ fs.push(() => {
3705
+ if (transaction._needFormattingCleanup) {
3706
+ cleanupYTextAfterTransaction(transaction);
3699
3707
  }
3700
3708
  });
3701
3709
  });
3702
- fs.push(() => doc2.emit("afterTransaction", [transaction, doc2]));
3703
3710
  callAll(fs, []);
3704
- if (transaction._needFormattingCleanup) {
3705
- cleanupYTextAfterTransaction(transaction);
3706
- }
3707
3711
  } finally {
3708
3712
  if (doc2.gc) {
3709
3713
  tryGcDeleteSet(ds, store, doc2.gcFilter);
@@ -61,7 +61,7 @@ export interface ProjectStorageMountSpec {
61
61
  subpath?: string | null;
62
62
  read_only?: boolean;
63
63
  }
64
- export interface ServiceStorageMountsSpec {
64
+ export interface ContainerMountSpec {
65
65
  room?: RoomStorageMountSpec[];
66
66
  project?: ProjectStorageMountSpec[];
67
67
  }
@@ -83,7 +83,7 @@ export interface ContainerSpec {
83
83
  environment?: EnvironmentVariable[] | null;
84
84
  secrets?: string[];
85
85
  pull_secret?: string | null;
86
- storage?: ServiceStorageMountsSpec;
86
+ storage?: ContainerMountSpec;
87
87
  api_key?: ServiceApiKeySpec;
88
88
  }
89
89
  export interface ExternalServiceSpec {
@@ -2773,15 +2773,19 @@ var cleanupTransactions = (transactionCleanups, i) => {
2773
2773
  event._path = null;
2774
2774
  });
2775
2775
  events.sort((event1, event2) => event1.path.length - event2.path.length);
2776
- callEventHandlerListeners(type._dEH, events, transaction);
2776
+ fs.push(() => {
2777
+ callEventHandlerListeners(type._dEH, events, transaction);
2778
+ });
2779
+ }
2780
+ });
2781
+ fs.push(() => doc2.emit("afterTransaction", [transaction, doc2]));
2782
+ fs.push(() => {
2783
+ if (transaction._needFormattingCleanup) {
2784
+ cleanupYTextAfterTransaction(transaction);
2777
2785
  }
2778
2786
  });
2779
2787
  });
2780
- fs.push(() => doc2.emit("afterTransaction", [transaction, doc2]));
2781
2788
  callAll(fs, []);
2782
- if (transaction._needFormattingCleanup) {
2783
- cleanupYTextAfterTransaction(transaction);
2784
- }
2785
2789
  }
2786
2790
  finally {
2787
2791
  if (doc2.gc) {
@@ -61,7 +61,7 @@ export interface ProjectStorageMountSpec {
61
61
  subpath?: string | null;
62
62
  read_only?: boolean;
63
63
  }
64
- export interface ServiceStorageMountsSpec {
64
+ export interface ContainerMountSpec {
65
65
  room?: RoomStorageMountSpec[];
66
66
  project?: ProjectStorageMountSpec[];
67
67
  }
@@ -83,7 +83,7 @@ export interface ContainerSpec {
83
83
  environment?: EnvironmentVariable[] | null;
84
84
  secrets?: string[];
85
85
  pull_secret?: string | null;
86
- storage?: ServiceStorageMountsSpec;
86
+ storage?: ContainerMountSpec;
87
87
  api_key?: ServiceApiKeySpec;
88
88
  }
89
89
  export interface ExternalServiceSpec {
@@ -2784,15 +2784,19 @@ var cleanupTransactions = (transactionCleanups, i) => {
2784
2784
  event._path = null;
2785
2785
  });
2786
2786
  events.sort((event1, event2) => event1.path.length - event2.path.length);
2787
- callEventHandlerListeners(type._dEH, events, transaction);
2787
+ fs.push(() => {
2788
+ callEventHandlerListeners(type._dEH, events, transaction);
2789
+ });
2790
+ }
2791
+ });
2792
+ fs.push(() => doc2.emit("afterTransaction", [transaction, doc2]));
2793
+ fs.push(() => {
2794
+ if (transaction._needFormattingCleanup) {
2795
+ cleanupYTextAfterTransaction(transaction);
2788
2796
  }
2789
2797
  });
2790
2798
  });
2791
- fs.push(() => doc2.emit("afterTransaction", [transaction, doc2]));
2792
2799
  callAll(fs, []);
2793
- if (transaction._needFormattingCleanup) {
2794
- cleanupYTextAfterTransaction(transaction);
2795
- }
2796
2800
  }
2797
2801
  finally {
2798
2802
  if (doc2.gc) {
@@ -61,7 +61,7 @@ export interface ProjectStorageMountSpec {
61
61
  subpath?: string | null;
62
62
  read_only?: boolean;
63
63
  }
64
- export interface ServiceStorageMountsSpec {
64
+ export interface ContainerMountSpec {
65
65
  room?: RoomStorageMountSpec[];
66
66
  project?: ProjectStorageMountSpec[];
67
67
  }
@@ -83,7 +83,7 @@ export interface ContainerSpec {
83
83
  environment?: EnvironmentVariable[] | null;
84
84
  secrets?: string[];
85
85
  pull_secret?: string | null;
86
- storage?: ServiceStorageMountsSpec;
86
+ storage?: ContainerMountSpec;
87
87
  api_key?: ServiceApiKeySpec;
88
88
  }
89
89
  export interface ExternalServiceSpec {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshagent/meshagent",
3
- "version": "0.17.1",
3
+ "version": "0.18.1",
4
4
  "description": "Meshagent Client",
5
5
  "homepage": "https://github.com/meshagent/meshagent-ts",
6
6
  "scripts": {