@fluid-experimental/data-objects 1.2.7 → 1.3.0-97515

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/.eslintrc.js CHANGED
@@ -4,13 +4,24 @@
4
4
  */
5
5
 
6
6
  module.exports = {
7
- "extends": [
8
- require.resolve("@fluidframework/eslint-config-fluid")
9
- ],
10
- "parserOptions": {
11
- "project": ["./tsconfig.json"]
7
+ extends: [require.resolve("@fluidframework/eslint-config-fluid")],
8
+ parserOptions: {
9
+ project: ["./tsconfig.json"],
10
+ },
11
+ rules: {
12
+ "@typescript-eslint/strict-boolean-expressions": "off",
13
+
14
+ // This library is used in the browser, so we don't want dependencies on most node libraries.
15
+ "import/no-nodejs-modules": ["error", { allow: ["events"] }],
12
16
  },
13
- "rules": {
14
- "@typescript-eslint/strict-boolean-expressions": "off"
15
- }
16
- }
17
+ overrides: [
18
+ {
19
+ // Rules only for test files
20
+ files: ["*.spec.ts", "src/test/**"],
21
+ rules: {
22
+ // This library is used in the browser, so we don't want dependencies on most node libraries.
23
+ "import/no-nodejs-modules": ["error", { allow: ["assert","events"] }],
24
+ },
25
+ },
26
+ ],
27
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-experimental/data-objects",
3
- "version": "1.2.7",
3
+ "version": "1.3.0-97515",
4
4
  "description": "A collection of ready to use Fluid Data Objects",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -31,12 +31,13 @@
31
31
  "tsfmt:fix": "tsfmt --replace"
32
32
  },
33
33
  "dependencies": {
34
- "@fluidframework/aqueduct": "^1.2.7",
34
+ "@fluidframework/aqueduct": "1.3.0-97515",
35
35
  "@fluidframework/common-definitions": "^0.20.1",
36
36
  "@fluidframework/common-utils": "^0.32.1",
37
- "@fluidframework/datastore-definitions": "^1.2.7",
38
- "@fluidframework/map": "^1.2.7",
39
- "@fluidframework/runtime-definitions": "^1.2.7"
37
+ "@fluidframework/datastore-definitions": "1.3.0-97515",
38
+ "@fluidframework/map": "1.3.0-97515",
39
+ "@fluidframework/runtime-definitions": "1.3.0-97515",
40
+ "events": "^3.1.0"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@fluidframework/build-common": "^0.24.0",
@@ -33,7 +33,7 @@ For more information on using `ContainerSchema` to create objects please see [Da
33
33
 
34
34
  ## Common Patterns
35
35
  ### Signal Request
36
- When a client joins a collaboration session, they may need to receive pertinent information immediately after connecting the container. To support this, they can request a specific signal be sent to them from other connected clients within the application. For example, in the [FocusTracker](https://github.com/microsoft/FluidFramework/tree/main/examples/data-objects/focus-tracker) we define a "focusRequest" signal type that a newly joining client uses to request the focus-state of each currently connected client:
36
+ When a client joins a collaboration session, they may need to receive pertinent information immediately after connecting the container. To support this, they can request a specific signal be sent to them from other connected clients within the application. For example, in the [PresenceTracker](https://github.com/microsoft/FluidFramework/tree/main/examples/data-objects/presence-tracker) we define a "focusRequest" signal type that a newly joining client uses to request the focus-state of each currently connected client:
37
37
 
38
38
  ```typescript
39
39
  private static readonly focusRequestType = "focusRequest";