@fluidframework/local-driver 0.58.0-55983 → 0.58.2000-58133

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.
@@ -2,10 +2,10 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- /// <reference types="@types/socket.io-client" />
6
5
  import { DocumentDeltaConnection } from "@fluidframework/driver-base";
7
6
  import { IClient, IDocumentMessage, NackErrorType } from "@fluidframework/protocol-definitions";
8
7
  import * as core from "@fluidframework/server-services-core";
8
+ import type { Socket } from "socket.io-client";
9
9
  /**
10
10
  * Represents a connection to a stream of delta updates
11
11
  */
@@ -21,7 +21,7 @@ export declare class LocalDocumentDeltaConnection extends DocumentDeltaConnectio
21
21
  * @param webSocketServer - web socket server to create connection
22
22
  */
23
23
  static create(tenantId: string, id: string, token: string, client: IClient, webSocketServer: core.IWebSocketServer, timeoutMs?: number): Promise<LocalDocumentDeltaConnection>;
24
- constructor(socket: SocketIOClient.Socket, documentId: string);
24
+ constructor(socket: Socket, documentId: string);
25
25
  protected submitCore(type: string, messages: IDocumentMessage[]): void;
26
26
  /**
27
27
  * Submits a new delta operation to the server
@@ -1 +1 @@
1
- {"version":3,"file":"localDocumentDeltaConnection.d.ts","sourceRoot":"","sources":["../src/localDocumentDeltaConnection.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EACH,OAAO,EAEP,gBAAgB,EAChB,aAAa,EAChB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,KAAK,IAAI,MAAM,sCAAsC,CAAC;AAI7D;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,uBAAuB;IACrE;;;;;;;;;OASG;WACiB,MAAM,CACtB,QAAQ,EAAE,MAAM,EAChB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,OAAO,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AE,UAAkB;QACvD,KAAK,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,kCAAmB,EAAE,CAAC,CAAC;IAC3D,CAAC;IAES,UAAU,CAAC,IAAY,EAAE,QAA4B;QAC3D,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,QAA4B;QACtC,kFAAkF;QAClF,mEAAmE;QACnE,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;YACxB,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;OAEG;IACI,YAAY,CAAC,OAAY;QAC5B,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/C,CAAC;IAED;;;OAGG;IACI,gBAAgB,CAAC,gBAAwB;QAC5C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;IACrD,CAAC;IAED;;;;;OAKG;IACI,UAAU,CAAC,OAAe,GAAG,EAAE,OAAsB,oCAAa,CAAC,eAAe,EAAE,OAAY;QACnG,MAAM,WAAW,GAAG;YAChB,SAAS,EAAE,SAAS;YACpB,cAAc,EAAE,CAAC,CAAC;YAClB,OAAO,EAAE;gBACL,IAAI;gBACJ,IAAI;gBACJ,OAAO;aACV;SACJ,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAChD,CAAC;CACJ;AA3FD,oEA2FC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { TelemetryNullLogger } from \"@fluidframework/common-utils\";\nimport { DocumentDeltaConnection } from \"@fluidframework/driver-base\";\nimport {\n IClient,\n IConnect,\n IDocumentMessage,\n NackErrorType,\n} from \"@fluidframework/protocol-definitions\";\nimport { LocalWebSocketServer } from \"@fluidframework/server-local-server\";\nimport * as core from \"@fluidframework/server-services-core\";\n\nconst testProtocolVersions = [\"^0.3.0\", \"^0.2.0\", \"^0.1.0\"];\n\n/**\n * Represents a connection to a stream of delta updates\n */\nexport class LocalDocumentDeltaConnection extends DocumentDeltaConnection {\n /**\n * Create a LocalDocumentDeltaConnection\n * Handle initial messages, contents or signals if they were in queue\n *\n * @param tenantId - the ID of the tenant\n * @param id - document ID\n * @param token - authorization token for storage service\n * @param client - information about the client\n * @param webSocketServer - web socket server to create connection\n */\n public static async create(\n tenantId: string,\n id: string,\n token: string,\n client: IClient,\n webSocketServer: core.IWebSocketServer,\n timeoutMs = 60000,\n ): Promise<LocalDocumentDeltaConnection> {\n const socket = (webSocketServer as LocalWebSocketServer).createConnection();\n\n // Cast LocalWebSocket to SocketIOClient.Socket which is the socket that the base class needs. This is hacky\n // but should be fine because this delta connection is for local use only.\n const socketWithListener = socket as unknown as SocketIOClient.Socket;\n\n const deltaConnection = new LocalDocumentDeltaConnection(socketWithListener, id);\n\n const connectMessage: IConnect = {\n client,\n id,\n mode: client.mode,\n tenantId,\n token, // Token is going to indicate tenant level information, etc...\n versions: testProtocolVersions,\n };\n await deltaConnection.initialize(connectMessage, timeoutMs);\n return deltaConnection;\n }\n\n constructor(socket: SocketIOClient.Socket, documentId: string) {\n super(socket, documentId, new TelemetryNullLogger());\n }\n\n protected submitCore(type: string, messages: IDocumentMessage[]) {\n this.emitMessages(type, [messages]);\n }\n\n /**\n * Submits a new delta operation to the server\n */\n public submit(messages: IDocumentMessage[]): void {\n // We use a promise resolve to force a turn break given message processing is sync\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n Promise.resolve().then(() => {\n this.submitCore(\"submitOp\", messages);\n });\n }\n\n /**\n * Submits a new signal to the server\n */\n public submitSignal(message: any): void {\n this.submitCore(\"submitSignal\", [message]);\n }\n\n /**\n * Send a \"disconnect\" message on the socket.\n * @param disconnectReason - The reason of the disconnection.\n */\n public disconnectClient(disconnectReason: string) {\n this.socket.emit(\"disconnect\", disconnectReason);\n }\n\n /**\n * * Sends a \"nack\" message on the socket.\n * @param code - An error code number that represents the error. It will be a valid HTTP error code.\n * @param type - Type of the Nack.\n * @param message - A message about the nack for debugging/logging/telemetry purposes.\n */\n public nackClient(code: number = 400, type: NackErrorType = NackErrorType.ThrottlingError, message: any) {\n const nackMessage = {\n operation: undefined,\n sequenceNumber: -1,\n content: {\n code,\n type,\n message,\n },\n };\n this.socket.emit(\"nack\", \"\", [nackMessage]);\n }\n}\n"]}
1
+ {"version":3,"file":"localDocumentDeltaConnection.js","sourceRoot":"","sources":["../src/localDocumentDeltaConnection.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,+DAAmE;AACnE,6DAAsE;AACtE,+EAK8C;AAK9C,MAAM,oBAAoB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAE5D;;GAEG;AACH,MAAa,4BAA6B,SAAQ,qCAAuB;IACrE;;;;;;;;;OASG;IACI,MAAM,CAAC,KAAK,CAAC,MAAM,CACtB,QAAgB,EAChB,EAAU,EACV,KAAa,EACb,MAAe,EACf,eAAsC,EACtC,SAAS,GAAG,KAAK;QAEjB,MAAM,MAAM,GAAI,eAAwC,CAAC,gBAAgB,EAAE,CAAC;QAE5E,4GAA4G;QAC5G,0EAA0E;QAC1E,MAAM,kBAAkB,GAAG,MAA2B,CAAC;QAEvD,MAAM,eAAe,GAAG,IAAI,4BAA4B,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;QAEjF,MAAM,cAAc,GAAa;YAC7B,MAAM;YACN,EAAE;YACF,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,QAAQ;YACR,KAAK;YACL,QAAQ,EAAE,oBAAoB;SACjC,CAAC;QACF,MAAM,eAAe,CAAC,UAAU,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC;QAC5D,OAAO,eAAe,CAAC;IAC3B,CAAC;IAED,YAAY,MAAc,EAAE,UAAkB;QACxC,KAAK,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,kCAAmB,EAAE,CAAC,CAAC;IAC3D,CAAC;IAES,UAAU,CAAC,IAAY,EAAE,QAA4B;QAC3D,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,QAA4B;QACtC,kFAAkF;QAClF,mEAAmE;QACnE,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;YACxB,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;OAEG;IACI,YAAY,CAAC,OAAY;QAC5B,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/C,CAAC;IAED;;;OAGG;IACI,gBAAgB,CAAC,gBAAwB;QAC5C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;IACrD,CAAC;IAED;;;;;OAKG;IACI,UAAU,CAAC,OAAe,GAAG,EAAE,OAAsB,oCAAa,CAAC,eAAe,EAAE,OAAY;QACnG,MAAM,WAAW,GAAG;YAChB,SAAS,EAAE,SAAS;YACpB,cAAc,EAAE,CAAC,CAAC;YAClB,OAAO,EAAE;gBACL,IAAI;gBACJ,IAAI;gBACJ,OAAO;aACV;SACJ,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAChD,CAAC;CACJ;AA3FD,oEA2FC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { TelemetryNullLogger } from \"@fluidframework/common-utils\";\nimport { DocumentDeltaConnection } from \"@fluidframework/driver-base\";\nimport {\n IClient,\n IConnect,\n IDocumentMessage,\n NackErrorType,\n} from \"@fluidframework/protocol-definitions\";\nimport { LocalWebSocketServer } from \"@fluidframework/server-local-server\";\nimport * as core from \"@fluidframework/server-services-core\";\nimport type { Socket } from \"socket.io-client\";\n\nconst testProtocolVersions = [\"^0.3.0\", \"^0.2.0\", \"^0.1.0\"];\n\n/**\n * Represents a connection to a stream of delta updates\n */\nexport class LocalDocumentDeltaConnection extends DocumentDeltaConnection {\n /**\n * Create a LocalDocumentDeltaConnection\n * Handle initial messages, contents or signals if they were in queue\n *\n * @param tenantId - the ID of the tenant\n * @param id - document ID\n * @param token - authorization token for storage service\n * @param client - information about the client\n * @param webSocketServer - web socket server to create connection\n */\n public static async create(\n tenantId: string,\n id: string,\n token: string,\n client: IClient,\n webSocketServer: core.IWebSocketServer,\n timeoutMs = 60000,\n ): Promise<LocalDocumentDeltaConnection> {\n const socket = (webSocketServer as LocalWebSocketServer).createConnection();\n\n // Cast LocalWebSocket to SocketIOClient.Socket which is the socket that the base class needs. This is hacky\n // but should be fine because this delta connection is for local use only.\n const socketWithListener = socket as unknown as Socket;\n\n const deltaConnection = new LocalDocumentDeltaConnection(socketWithListener, id);\n\n const connectMessage: IConnect = {\n client,\n id,\n mode: client.mode,\n tenantId,\n token, // Token is going to indicate tenant level information, etc...\n versions: testProtocolVersions,\n };\n await deltaConnection.initialize(connectMessage, timeoutMs);\n return deltaConnection;\n }\n\n constructor(socket: Socket, documentId: string) {\n super(socket, documentId, new TelemetryNullLogger());\n }\n\n protected submitCore(type: string, messages: IDocumentMessage[]) {\n this.emitMessages(type, [messages]);\n }\n\n /**\n * Submits a new delta operation to the server\n */\n public submit(messages: IDocumentMessage[]): void {\n // We use a promise resolve to force a turn break given message processing is sync\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n Promise.resolve().then(() => {\n this.submitCore(\"submitOp\", messages);\n });\n }\n\n /**\n * Submits a new signal to the server\n */\n public submitSignal(message: any): void {\n this.submitCore(\"submitSignal\", [message]);\n }\n\n /**\n * Send a \"disconnect\" message on the socket.\n * @param disconnectReason - The reason of the disconnection.\n */\n public disconnectClient(disconnectReason: string) {\n this.socket.emit(\"disconnect\", disconnectReason);\n }\n\n /**\n * * Sends a \"nack\" message on the socket.\n * @param code - An error code number that represents the error. It will be a valid HTTP error code.\n * @param type - Type of the Nack.\n * @param message - A message about the nack for debugging/logging/telemetry purposes.\n */\n public nackClient(code: number = 400, type: NackErrorType = NackErrorType.ThrottlingError, message: any) {\n const nackMessage = {\n operation: undefined,\n sequenceNumber: -1,\n content: {\n code,\n type,\n message,\n },\n };\n this.socket.emit(\"nack\", \"\", [nackMessage]);\n }\n}\n"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/local-driver";
8
- export declare const pkgVersion = "0.58.0-55983";
8
+ export declare const pkgVersion = "0.58.2000-58133";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,iCAAiC,CAAC;AACtD,eAAO,MAAM,UAAU,iBAAiB,CAAC"}
1
+ {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,iCAAiC,CAAC;AACtD,eAAO,MAAM,UAAU,oBAAoB,CAAC"}
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluidframework/local-driver";
11
- exports.pkgVersion = "0.58.0-55983";
11
+ exports.pkgVersion = "0.58.2000-58133";
12
12
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,8BAA8B,CAAC;AACzC,QAAA,UAAU,GAAG,cAAc,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/local-driver\";\nexport const pkgVersion = \"0.58.0-55983\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,8BAA8B,CAAC;AACzC,QAAA,UAAU,GAAG,iBAAiB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/local-driver\";\nexport const pkgVersion = \"0.58.2000-58133\";\n"]}
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@fluidframework/local-driver",
3
- "version": "0.58.0-55983",
3
+ "version": "0.58.2000-58133",
4
4
  "description": "Fluid local driver",
5
5
  "homepage": "https://fluidframework.com",
6
- "repository": "https://github.com/microsoft/FluidFramework",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/microsoft/FluidFramework.git",
9
+ "directory": "packages/drivers/local-driver"
10
+ },
7
11
  "license": "MIT",
8
12
  "author": "Microsoft and contributors",
9
13
  "main": "dist/index.js",
@@ -55,22 +59,22 @@
55
59
  "@fluidframework/common-definitions": "^0.20.1",
56
60
  "@fluidframework/common-utils": "^0.32.1",
57
61
  "@fluidframework/core-interfaces": "^0.42.0",
58
- "@fluidframework/driver-base": "0.58.0-55983",
59
- "@fluidframework/driver-definitions": "^0.45.0-0",
60
- "@fluidframework/driver-utils": "0.58.0-55983",
61
- "@fluidframework/protocol-definitions": "^0.1027.0-0",
62
- "@fluidframework/routerlicious-driver": "0.58.0-55983",
63
- "@fluidframework/server-local-server": "^0.1035.0-0",
64
- "@fluidframework/server-services-client": "^0.1035.0-0",
65
- "@fluidframework/server-services-core": "^0.1035.0-0",
66
- "@fluidframework/server-test-utils": "^0.1035.0-0",
62
+ "@fluidframework/driver-base": "0.58.2000-58133",
63
+ "@fluidframework/driver-definitions": "^0.45.1000",
64
+ "@fluidframework/driver-utils": "0.58.2000-58133",
65
+ "@fluidframework/protocol-definitions": "^0.1027.1000",
66
+ "@fluidframework/routerlicious-driver": "0.58.2000-58133",
67
+ "@fluidframework/server-local-server": "^0.1035.1000",
68
+ "@fluidframework/server-services-client": "^0.1035.1000",
69
+ "@fluidframework/server-services-core": "^0.1035.1000",
70
+ "@fluidframework/server-test-utils": "^0.1035.1000",
67
71
  "jsrsasign": "^10.2.0",
68
72
  "uuid": "^8.3.1"
69
73
  },
70
74
  "devDependencies": {
71
75
  "@fluidframework/build-common": "^0.23.0",
72
- "@fluidframework/eslint-config-fluid": "^0.26.0-0",
73
- "@fluidframework/mocha-test-setup": "0.58.0-55983",
76
+ "@fluidframework/eslint-config-fluid": "^0.27.0",
77
+ "@fluidframework/mocha-test-setup": "0.58.2000-58133",
74
78
  "@rushstack/eslint-config": "^2.5.1",
75
79
  "@types/jsrsasign": "^8.0.8",
76
80
  "@types/mocha": "^8.2.2",
@@ -89,6 +93,7 @@
89
93
  "mocha": "^8.4.0",
90
94
  "nyc": "^15.0.0",
91
95
  "rimraf": "^2.6.2",
96
+ "socket.io-client": "^4.4.1",
92
97
  "typescript": "~4.1.3",
93
98
  "typescript-formatter": "7.1.0"
94
99
  }
@@ -13,6 +13,7 @@ import {
13
13
  } from "@fluidframework/protocol-definitions";
14
14
  import { LocalWebSocketServer } from "@fluidframework/server-local-server";
15
15
  import * as core from "@fluidframework/server-services-core";
16
+ import type { Socket } from "socket.io-client";
16
17
 
17
18
  const testProtocolVersions = ["^0.3.0", "^0.2.0", "^0.1.0"];
18
19
 
@@ -42,7 +43,7 @@ export class LocalDocumentDeltaConnection extends DocumentDeltaConnection {
42
43
 
43
44
  // Cast LocalWebSocket to SocketIOClient.Socket which is the socket that the base class needs. This is hacky
44
45
  // but should be fine because this delta connection is for local use only.
45
- const socketWithListener = socket as unknown as SocketIOClient.Socket;
46
+ const socketWithListener = socket as unknown as Socket;
46
47
 
47
48
  const deltaConnection = new LocalDocumentDeltaConnection(socketWithListener, id);
48
49
 
@@ -58,7 +59,7 @@ export class LocalDocumentDeltaConnection extends DocumentDeltaConnection {
58
59
  return deltaConnection;
59
60
  }
60
61
 
61
- constructor(socket: SocketIOClient.Socket, documentId: string) {
62
+ constructor(socket: Socket, documentId: string) {
62
63
  super(socket, documentId, new TelemetryNullLogger());
63
64
  }
64
65
 
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/local-driver";
9
- export const pkgVersion = "0.58.0-55983";
9
+ export const pkgVersion = "0.58.2000-58133";