@fluidframework/map 2.0.0-internal.6.4.0 → 2.0.0-internal.7.0.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,5 +1,49 @@
1
1
  # @fluidframework/map
2
2
 
3
+ ## 2.0.0-internal.7.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Dependencies on @fluidframework/protocol-definitions package updated to 3.0.0 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
8
+
9
+ This included the following changes from the protocol-definitions release:
10
+
11
+ - Updating signal interfaces for some planned improvements. The intention is split the interface between signals
12
+ submitted by clients to the server and the resulting signals sent from the server to clients.
13
+ - A new optional type member is available on the ISignalMessage interface and a new ISentSignalMessage interface has
14
+ been added, which will be the typing for signals sent from the client to the server. Both extend a new
15
+ ISignalMessageBase interface that contains common members.
16
+ - The @fluidframework/common-definitions package dependency has been updated to version 1.0.0.
17
+
18
+ - Server upgrade: dependencies on Fluid server packages updated to 2.0.1 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
19
+
20
+ Dependencies on the following Fluid server package have been updated to version 2.0.1:
21
+
22
+ - @fluidframework/gitresources: 2.0.1
23
+ - @fluidframework/server-kafka-orderer: 2.0.1
24
+ - @fluidframework/server-lambdas: 2.0.1
25
+ - @fluidframework/server-lambdas-driver: 2.0.1
26
+ - @fluidframework/server-local-server: 2.0.1
27
+ - @fluidframework/server-memory-orderer: 2.0.1
28
+ - @fluidframework/protocol-base: 2.0.1
29
+ - @fluidframework/server-routerlicious: 2.0.1
30
+ - @fluidframework/server-routerlicious-base: 2.0.1
31
+ - @fluidframework/server-services: 2.0.1
32
+ - @fluidframework/server-services-client: 2.0.1
33
+ - @fluidframework/server-services-core: 2.0.1
34
+ - @fluidframework/server-services-ordering-kafkanode: 2.0.1
35
+ - @fluidframework/server-services-ordering-rdkafka: 2.0.1
36
+ - @fluidframework/server-services-ordering-zookeeper: 2.0.1
37
+ - @fluidframework/server-services-shared: 2.0.1
38
+ - @fluidframework/server-services-telemetry: 2.0.1
39
+ - @fluidframework/server-services-utils: 2.0.1
40
+ - @fluidframework/server-test-utils: 2.0.1
41
+ - tinylicious: 2.0.1
42
+
43
+ - Minimum TypeScript version now 5.1.6 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
44
+
45
+ The minimum supported TypeScript version for Fluid 2.0 clients is now 5.1.6.
46
+
3
47
  ## 2.0.0-internal.6.4.0
4
48
 
5
49
  Dependency updates only.
@@ -49,7 +49,7 @@ export interface IDirectoryDeleteOperation {
49
49
  /**
50
50
  * An operation on a specific key within a directory
51
51
  */
52
- export declare type IDirectoryKeyOperation = IDirectorySetOperation | IDirectoryDeleteOperation;
52
+ export type IDirectoryKeyOperation = IDirectorySetOperation | IDirectoryDeleteOperation;
53
53
  /**
54
54
  * Operation indicating the directory should be cleared.
55
55
  */
@@ -66,7 +66,7 @@ export interface IDirectoryClearOperation {
66
66
  /**
67
67
  * An operation on one or more of the keys within a directory
68
68
  */
69
- export declare type IDirectoryStorageOperation = IDirectoryKeyOperation | IDirectoryClearOperation;
69
+ export type IDirectoryStorageOperation = IDirectoryKeyOperation | IDirectoryClearOperation;
70
70
  /**
71
71
  * Operation indicating a subdirectory should be created.
72
72
  */
@@ -104,11 +104,11 @@ export interface IDirectoryDeleteSubDirectoryOperation {
104
104
  /**
105
105
  * An operation on the subdirectories within a directory
106
106
  */
107
- export declare type IDirectorySubDirectoryOperation = IDirectoryCreateSubDirectoryOperation | IDirectoryDeleteSubDirectoryOperation;
107
+ export type IDirectorySubDirectoryOperation = IDirectoryCreateSubDirectoryOperation | IDirectoryDeleteSubDirectoryOperation;
108
108
  /**
109
109
  * Any operation on a directory
110
110
  */
111
- export declare type IDirectoryOperation = IDirectoryStorageOperation | IDirectorySubDirectoryOperation;
111
+ export type IDirectoryOperation = IDirectoryStorageOperation | IDirectorySubDirectoryOperation;
112
112
  /**
113
113
  * Create info for the subdirectory.
114
114
  */
@@ -1 +1 @@
1
- {"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../src/directory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,EAAE,yBAAyB,EAAe,MAAM,sCAAsC,CAAC;AAC9F,OAAO,EACN,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAa,MAAM,oCAAoC,CAAC;AAG/F,OAAO,EACN,UAAU,EAIV,kBAAkB,EAElB,gBAAgB,EAChB,sBAAsB,EAEtB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAe,eAAe,EAAoB,MAAM,eAAe,CAAC;AAsC/E;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACtC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;IAEZ;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IAEH,KAAK,EAAE,kBAAkB,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACzC;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IAEf;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACb;AAED;;GAEG;AACH,oBAAY,sBAAsB,GAAG,sBAAsB,GAAG,yBAAyB,CAAC;AAExF;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACxC;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACb;AAED;;GAEG;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,EAAE,eAAe,EAAE,OAAO,GAAG,IAAI;IAOxE;;;OAGG;cACa,QAAQ,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBxE;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,GAAG,IAAI;IA6CpD;;;OAGG;IACH,SAAS,CAAC,WAAW,CACpB,OAAO,EAAE,yBAAyB,EAClC,KAAK,EAAE,OAAO,EACd,eAAe,EAAE,OAAO,GACtB,IAAI;IASP;;;OAGG;IACH,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,GAAG,IAAI;IAQpE;;;OAGG;IACH,OAAO,CAAC,YAAY;IAIpB;;;;;;;;;OASG;IACH,OAAO,CAAC,SAAS;IAcjB;;;;OAIG;IACH,OAAO,CAAC,2BAA2B;IAsBnC;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAsJ1B;;;OAGG;IACH,SAAS,CAAC,cAAc,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO;IAQ9C,OAAO,CAAC,kBAAkB;CAkE1B"}
package/dist/directory.js CHANGED
@@ -5,7 +5,11 @@
5
5
  */
6
6
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
7
  if (k2 === undefined) k2 = k;
8
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
8
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
+ desc = { enumerable: true, get: function() { return m[k]; } };
11
+ }
12
+ Object.defineProperty(o, k2, desc);
9
13
  }) : (function(o, m, k, k2) {
10
14
  if (k2 === undefined) k2 = k;
11
15
  o[k2] = m[k];
@@ -101,6 +105,30 @@ DirectoryFactory.Attributes = {
101
105
  * @sealed
102
106
  */
103
107
  class SharedDirectory extends shared_object_base_1.SharedObject {
108
+ /**
109
+ * Create a new shared directory
110
+ *
111
+ * @param runtime - Data store runtime the new shared directory belongs to
112
+ * @param id - Optional name of the shared directory
113
+ * @returns Newly create shared directory (but not attached yet)
114
+ */
115
+ static create(runtime, id) {
116
+ return runtime.createChannel(id, DirectoryFactory.Type);
117
+ }
118
+ /**
119
+ * Get a factory for SharedDirectory to register with the data store.
120
+ *
121
+ * @returns A factory that creates and load SharedDirectory
122
+ */
123
+ static getFactory() {
124
+ return new DirectoryFactory();
125
+ }
126
+ /**
127
+ * {@inheritDoc IDirectory.absolutePath}
128
+ */
129
+ get absolutePath() {
130
+ return this.root.absolutePath;
131
+ }
104
132
  /**
105
133
  * Constructs a new shared directory. If the object is non-local an id and service interfaces will
106
134
  * be provided.
@@ -135,30 +163,6 @@ class SharedDirectory extends shared_object_base_1.SharedObject {
135
163
  this.emit("subDirectoryDeleted", relativePath, local, this);
136
164
  });
137
165
  }
138
- /**
139
- * Create a new shared directory
140
- *
141
- * @param runtime - Data store runtime the new shared directory belongs to
142
- * @param id - Optional name of the shared directory
143
- * @returns Newly create shared directory (but not attached yet)
144
- */
145
- static create(runtime, id) {
146
- return runtime.createChannel(id, DirectoryFactory.Type);
147
- }
148
- /**
149
- * Get a factory for SharedDirectory to register with the data store.
150
- *
151
- * @returns A factory that creates and load SharedDirectory
152
- */
153
- static getFactory() {
154
- return new DirectoryFactory();
155
- }
156
- /**
157
- * {@inheritDoc IDirectory.absolutePath}
158
- */
159
- get absolutePath() {
160
- return this.root.absolutePath;
161
- }
162
166
  /**
163
167
  * {@inheritDoc IDirectory.get}
164
168
  */
@@ -1274,9 +1278,12 @@ class SubDirectory extends client_utils_1.TypedEventEmitter {
1274
1278
  const pendingMessageIds = this.pendingKeys.get(op.key);
1275
1279
  // Only submit the op, if we have record for it, otherwise it is possible that the older instance
1276
1280
  // is already deleted, in which case we don't need to submit the op.
1277
- if (pendingMessageIds !== undefined &&
1278
- pendingMessageIds[0] === localOpMetadata.pendingMessageId) {
1279
- pendingMessageIds.shift();
1281
+ if (pendingMessageIds !== undefined) {
1282
+ const index = pendingMessageIds.findIndex((id) => id === localOpMetadata.pendingMessageId);
1283
+ if (index === -1) {
1284
+ return;
1285
+ }
1286
+ pendingMessageIds.splice(index, 1);
1280
1287
  if (pendingMessageIds.length === 0) {
1281
1288
  this.pendingKeys.delete(op.key);
1282
1289
  }
@@ -1518,17 +1525,15 @@ class SubDirectory extends client_utils_1.TypedEventEmitter {
1518
1525
  // If I have a NACK clear, we can ignore all ops.
1519
1526
  return false;
1520
1527
  }
1521
- const pendingKeyMessageId = this.pendingKeys.get(op.key);
1522
- if (pendingKeyMessageId !== undefined) {
1528
+ const pendingKeyMessageIds = this.pendingKeys.get(op.key);
1529
+ if (pendingKeyMessageIds !== undefined) {
1523
1530
  // Found an NACK op, clear it from the directory if the latest sequence number in the directory
1524
1531
  // match the message's and don't process the op.
1525
1532
  if (local) {
1526
1533
  (0, core_utils_1.assert)(localOpMetadata !== undefined && isKeyEditLocalOpMetadata(localOpMetadata), 0x011 /* pendingMessageId is missing from the local client's operation */);
1527
- const pendingMessageIds = this.pendingKeys.get(op.key);
1528
- (0, core_utils_1.assert)(pendingMessageIds !== undefined &&
1529
- pendingMessageIds[0] === localOpMetadata.pendingMessageId, 0x331 /* Unexpected pending message received */);
1530
- pendingMessageIds.shift();
1531
- if (pendingMessageIds.length === 0) {
1534
+ (0, core_utils_1.assert)(pendingKeyMessageIds[0] === localOpMetadata.pendingMessageId, 0x331 /* Unexpected pending message received */);
1535
+ pendingKeyMessageIds.shift();
1536
+ if (pendingKeyMessageIds.length === 0) {
1532
1537
  this.pendingKeys.delete(op.key);
1533
1538
  }
1534
1539
  }