@fluid-experimental/sharejs-json1 0.59.2001 → 0.59.3000

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/dist/json1.js CHANGED
@@ -26,16 +26,16 @@ class SharedJson1 extends ot_1.SharedOT {
26
26
  return ot_json1_1.type.apply(state, op);
27
27
  }
28
28
  insert(path, value) {
29
- this.apply(ot_json1_1.insertOp(path, value));
29
+ this.apply((0, ot_json1_1.insertOp)(path, value));
30
30
  }
31
31
  move(from, to) {
32
- this.apply(ot_json1_1.moveOp(from, to));
32
+ this.apply((0, ot_json1_1.moveOp)(from, to));
33
33
  }
34
34
  remove(path, value) {
35
- this.apply(ot_json1_1.removeOp(path, value));
35
+ this.apply((0, ot_json1_1.removeOp)(path, value));
36
36
  }
37
37
  replace(path, oldValue, newValue) {
38
- this.apply(ot_json1_1.replaceOp(path, oldValue, newValue));
38
+ this.apply((0, ot_json1_1.replaceOp)(path, oldValue, newValue));
39
39
  }
40
40
  }
41
41
  exports.SharedJson1 = SharedJson1;
package/dist/json1.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"json1.js","sourceRoot":"","sources":["../src/json1.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,+CAAkD;AAClD,uCAAyG;AACzG,uCAAyC;AAEzC,MAAa,WAAY,SAAQ,aAAqB;IAC3C,MAAM,CAAC,MAAM,CAAC,OAA+B,EAAE,EAAW;QAC7D,OAAO,OAAO,CAAC,aAAa,CAAC,EAAE,EAAE,sBAAY,CAAC,IAAI,CAAgB,CAAC;IACvE,CAAC;IAEM,MAAM,CAAC,UAAU,KAAK,OAAO,IAAI,sBAAY,EAAE,CAAC,CAAC,CAAC;IAEzD,YAAY,EAAU,EAAE,OAA+B,EAAE,UAA8B;QACnF,+DAA+D;QAC/D,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IAEM,GAAG,KAAU,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAEjC,KAAK,CAAC,EAAU,IAAI,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAEnC,SAAS,CAAC,KAAa,EAAE,SAAiB;QAChD,OAAO,eAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACrE,CAAC;IAES,SAAS,CAAC,KAAU,EAAE,EAAU;QACtC,OAAO,eAAW,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,CAAQ,CAAC;IAC/C,CAAC;IAEM,MAAM,CAAC,IAAU,EAAE,KAAmB;QACzC,IAAI,CAAC,KAAK,CAAC,mBAAQ,CAAC,IAAI,EAAE,KAAY,CAAC,CAAC,CAAC;IAC7C,CAAC;IAEM,IAAI,CAAC,IAAU,EAAE,EAAQ;QAC5B,IAAI,CAAC,KAAK,CAAC,iBAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IACjC,CAAC;IAEM,MAAM,CAAC,IAAU,EAAE,KAAe;QACrC,IAAI,CAAC,KAAK,CAAC,mBAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IACtC,CAAC;IAEM,OAAO,CAAC,IAAU,EAAE,QAAsB,EAAE,QAAsB;QACrE,IAAI,CAAC,KAAK,CAAC,oBAAS,CAAC,IAAI,EAAE,QAAe,EAAE,QAAe,CAAC,CAAC,CAAC;IAClE,CAAC;CACJ;AAvCD,kCAuCC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IChannelAttributes, IFluidDataStoreRuntime, Serializable } from \"@fluidframework/datastore-definitions\";\nimport { SharedOT } from \"@fluid-experimental/ot\";\nimport { Doc, type as Json1OTType, JSONOp, replaceOp, insertOp, moveOp, removeOp, Path } from \"ot-json1\";\nimport { Json1Factory } from \"./factory\";\n\nexport class SharedJson1 extends SharedOT<Doc, JSONOp> {\n public static create(runtime: IFluidDataStoreRuntime, id?: string): SharedJson1 {\n return runtime.createChannel(id, Json1Factory.Type) as SharedJson1;\n }\n\n public static getFactory() { return new Json1Factory(); }\n\n constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes) {\n // RATIONALE: 'undefined' is not preserved by JSON.stringify().\n super(id, runtime, attributes, /* initialValue: */ null);\n }\n\n public get(): Doc { return this.state; }\n\n public apply(op: JSONOp) { super.apply(op); }\n\n protected transform(input: JSONOp, transform: JSONOp): JSONOp {\n return Json1OTType.transformNoConflict(input, transform, \"left\");\n }\n\n protected applyCore(state: Doc, op: JSONOp) {\n return Json1OTType.apply(state, op) as Doc;\n }\n\n public insert(path: Path, value: Serializable) {\n this.apply(insertOp(path, value as Doc));\n }\n\n public move(from: Path, to: Path) {\n this.apply(moveOp(from, to));\n }\n\n public remove(path: Path, value?: boolean) {\n this.apply(removeOp(path, value));\n }\n\n public replace(path: Path, oldValue: Serializable, newValue: Serializable) {\n this.apply(replaceOp(path, oldValue as Doc, newValue as Doc));\n }\n}\n"]}
1
+ {"version":3,"file":"json1.js","sourceRoot":"","sources":["../src/json1.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,+CAAkD;AAClD,uCAAyG;AACzG,uCAAyC;AAEzC,MAAa,WAAY,SAAQ,aAAqB;IAC3C,MAAM,CAAC,MAAM,CAAC,OAA+B,EAAE,EAAW;QAC7D,OAAO,OAAO,CAAC,aAAa,CAAC,EAAE,EAAE,sBAAY,CAAC,IAAI,CAAgB,CAAC;IACvE,CAAC;IAEM,MAAM,CAAC,UAAU,KAAK,OAAO,IAAI,sBAAY,EAAE,CAAC,CAAC,CAAC;IAEzD,YAAY,EAAU,EAAE,OAA+B,EAAE,UAA8B;QACnF,+DAA+D;QAC/D,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IAEM,GAAG,KAAU,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAEjC,KAAK,CAAC,EAAU,IAAI,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAEnC,SAAS,CAAC,KAAa,EAAE,SAAiB;QAChD,OAAO,eAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACrE,CAAC;IAES,SAAS,CAAC,KAAU,EAAE,EAAU;QACtC,OAAO,eAAW,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,CAAQ,CAAC;IAC/C,CAAC;IAEM,MAAM,CAAC,IAAU,EAAE,KAAmB;QACzC,IAAI,CAAC,KAAK,CAAC,IAAA,mBAAQ,EAAC,IAAI,EAAE,KAAY,CAAC,CAAC,CAAC;IAC7C,CAAC;IAEM,IAAI,CAAC,IAAU,EAAE,EAAQ;QAC5B,IAAI,CAAC,KAAK,CAAC,IAAA,iBAAM,EAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IACjC,CAAC;IAEM,MAAM,CAAC,IAAU,EAAE,KAAe;QACrC,IAAI,CAAC,KAAK,CAAC,IAAA,mBAAQ,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IACtC,CAAC;IAEM,OAAO,CAAC,IAAU,EAAE,QAAsB,EAAE,QAAsB;QACrE,IAAI,CAAC,KAAK,CAAC,IAAA,oBAAS,EAAC,IAAI,EAAE,QAAe,EAAE,QAAe,CAAC,CAAC,CAAC;IAClE,CAAC;CACJ;AAvCD,kCAuCC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IChannelAttributes, IFluidDataStoreRuntime, Serializable } from \"@fluidframework/datastore-definitions\";\nimport { SharedOT } from \"@fluid-experimental/ot\";\nimport { Doc, type as Json1OTType, JSONOp, replaceOp, insertOp, moveOp, removeOp, Path } from \"ot-json1\";\nimport { Json1Factory } from \"./factory\";\n\nexport class SharedJson1 extends SharedOT<Doc, JSONOp> {\n public static create(runtime: IFluidDataStoreRuntime, id?: string): SharedJson1 {\n return runtime.createChannel(id, Json1Factory.Type) as SharedJson1;\n }\n\n public static getFactory() { return new Json1Factory(); }\n\n constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes) {\n // RATIONALE: 'undefined' is not preserved by JSON.stringify().\n super(id, runtime, attributes, /* initialValue: */ null);\n }\n\n public get(): Doc { return this.state; }\n\n public apply(op: JSONOp) { super.apply(op); }\n\n protected transform(input: JSONOp, transform: JSONOp): JSONOp {\n return Json1OTType.transformNoConflict(input, transform, \"left\");\n }\n\n protected applyCore(state: Doc, op: JSONOp) {\n return Json1OTType.apply(state, op) as Doc;\n }\n\n public insert(path: Path, value: Serializable) {\n this.apply(insertOp(path, value as Doc));\n }\n\n public move(from: Path, to: Path) {\n this.apply(moveOp(from, to));\n }\n\n public remove(path: Path, value?: boolean) {\n this.apply(removeOp(path, value));\n }\n\n public replace(path: Path, oldValue: Serializable, newValue: Serializable) {\n this.apply(replaceOp(path, oldValue as Doc, newValue as Doc));\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 = "@fluid-experimental/sharejs-json1";
8
- export declare const pkgVersion = "0.59.2001";
8
+ export declare const pkgVersion = "0.59.3000";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluid-experimental/sharejs-json1";
11
- exports.pkgVersion = "0.59.2001";
11
+ exports.pkgVersion = "0.59.3000";
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,mCAAmC,CAAC;AAC9C,QAAA,UAAU,GAAG,WAAW,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 = \"@fluid-experimental/sharejs-json1\";\nexport const pkgVersion = \"0.59.2001\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,mCAAmC,CAAC;AAC9C,QAAA,UAAU,GAAG,WAAW,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 = \"@fluid-experimental/sharejs-json1\";\nexport const pkgVersion = \"0.59.3000\";\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 = "@fluid-experimental/sharejs-json1";
8
- export declare const pkgVersion = "0.59.2001";
8
+ export declare const pkgVersion = "0.59.3000";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluid-experimental/sharejs-json1";
8
- export const pkgVersion = "0.59.2001";
8
+ export const pkgVersion = "0.59.3000";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,mCAAmC,CAAC;AAC3D,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,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 = \"@fluid-experimental/sharejs-json1\";\nexport const pkgVersion = \"0.59.2001\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,mCAAmC,CAAC;AAC3D,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,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 = \"@fluid-experimental/sharejs-json1\";\nexport const pkgVersion = \"0.59.3000\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-experimental/sharejs-json1",
3
- "version": "0.59.2001",
3
+ "version": "0.59.3000",
4
4
  "description": "Distributed data structure for hosting ottypes",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -60,20 +60,20 @@
60
60
  "temp-directory": "nyc/.nyc_output"
61
61
  },
62
62
  "dependencies": {
63
- "@fluid-experimental/ot": "^0.59.2001",
63
+ "@fluid-experimental/ot": "^0.59.3000",
64
64
  "@fluidframework/common-utils": "^0.32.1",
65
65
  "@fluidframework/core-interfaces": "^0.43.1000",
66
- "@fluidframework/datastore-definitions": "^0.59.2001",
66
+ "@fluidframework/datastore-definitions": "^0.59.3000",
67
67
  "@fluidframework/protocol-definitions": "^0.1028.1000",
68
- "@fluidframework/shared-object-base": "^0.59.2001",
68
+ "@fluidframework/shared-object-base": "^0.59.3000",
69
69
  "ot-json1": "^1.0.1"
70
70
  },
71
71
  "devDependencies": {
72
- "@fluid-internal/test-dds-utils": "^0.59.2001",
72
+ "@fluid-internal/test-dds-utils": "^0.59.3000",
73
73
  "@fluidframework/build-common": "^0.23.0",
74
- "@fluidframework/eslint-config-fluid": "^0.28.1000",
75
- "@fluidframework/mocha-test-setup": "^0.59.2001",
76
- "@fluidframework/test-runtime-utils": "^0.59.2001",
74
+ "@fluidframework/eslint-config-fluid": "^0.28.2000",
75
+ "@fluidframework/mocha-test-setup": "^0.59.3000",
76
+ "@fluidframework/test-runtime-utils": "^0.59.3000",
77
77
  "@microsoft/api-extractor": "^7.22.2",
78
78
  "@rushstack/eslint-config": "^2.5.1",
79
79
  "@types/mocha": "^8.2.2",
@@ -97,7 +97,7 @@
97
97
  "mocha": "^8.4.0",
98
98
  "nyc": "^15.0.0",
99
99
  "rimraf": "^2.6.2",
100
- "typescript": "~4.1.3",
100
+ "typescript": "~4.5.5",
101
101
  "typescript-formatter": "7.1.0"
102
102
  }
103
103
  }
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluid-experimental/sharejs-json1";
9
- export const pkgVersion = "0.59.2001";
9
+ export const pkgVersion = "0.59.3000";