@fluidframework/shared-object-base 2.1.0-281041 → 2.1.0

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,31 @@
1
1
  # @fluidframework/shared-object-base
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Type guards for DDS types ([#21850](https://github.com/microsoft/FluidFramework/pull/21850)) [6bdec1ac07](https://github.com/microsoft/FluidFramework/commit/6bdec1ac07d6f95ef2fbcbd66c12bf0dc53de1ad)
8
+
9
+ In the 2.0 release of Fluid, the concrete class implementations for DDSes were hidden from Fluid's API surface.
10
+ This made `instanceof` checks fail to work correctly.
11
+ There were ways to work around this in application code, but they involved boilerplate which required more understanding of Fluid internals than should be necessary.
12
+
13
+ There is now a drop-in replacement to `instanceof`: the static `.is()` method to `SharedObjectKind`, which is available
14
+ on all DDSes.
15
+ For example:
16
+
17
+ ```typescript
18
+ // Works in Fluid Framework 1.0 but not in the initial release of Fluid Framework 2.0:
19
+ if (myObject instanceof SharedString) {
20
+ // do something
21
+ }
22
+
23
+ // In Fluid Framework 2.0 and beyond, that code can now be written like so:
24
+ if (SharedString.is(myObject)) {
25
+ // do something
26
+ }
27
+ ```
28
+
3
29
  ## 2.0.0-rc.5.0.0
4
30
 
5
31
  ### Minor Changes
@@ -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/shared-object-base";
8
- export declare const pkgVersion = "2.1.0-281041";
8
+ export declare const pkgVersion = "2.1.0";
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,uCAAuC,CAAC;AAC5D,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,uCAAuC,CAAC;AAC5D,eAAO,MAAM,UAAU,UAAU,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/shared-object-base";
11
- exports.pkgVersion = "2.1.0-281041";
11
+ exports.pkgVersion = "2.1.0";
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,oCAAoC,CAAC;AAC/C,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/shared-object-base\";\nexport const pkgVersion = \"2.1.0-281041\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,oCAAoC,CAAC;AAC/C,QAAA,UAAU,GAAG,OAAO,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/shared-object-base\";\nexport const pkgVersion = \"2.1.0\";\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/shared-object-base";
8
- export declare const pkgVersion = "2.1.0-281041";
8
+ export declare const pkgVersion = "2.1.0";
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,uCAAuC,CAAC;AAC5D,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,uCAAuC,CAAC;AAC5D,eAAO,MAAM,UAAU,UAAU,CAAC"}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluidframework/shared-object-base";
8
- export const pkgVersion = "2.1.0-281041";
8
+ export const pkgVersion = "2.1.0";
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,oCAAoC,CAAC;AAC5D,MAAM,CAAC,MAAM,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/shared-object-base\";\nexport const pkgVersion = \"2.1.0-281041\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,oCAAoC,CAAC;AAC5D,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,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/shared-object-base\";\nexport const pkgVersion = \"2.1.0\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/shared-object-base",
3
- "version": "2.1.0-281041",
3
+ "version": "2.1.0",
4
4
  "description": "Fluid base class for shared distributed data structures",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -67,30 +67,30 @@
67
67
  "temp-directory": "nyc/.nyc_output"
68
68
  },
69
69
  "dependencies": {
70
- "@fluid-internal/client-utils": "2.1.0-281041",
71
- "@fluidframework/container-definitions": "2.1.0-281041",
72
- "@fluidframework/container-runtime": "2.1.0-281041",
73
- "@fluidframework/core-interfaces": "2.1.0-281041",
74
- "@fluidframework/core-utils": "2.1.0-281041",
75
- "@fluidframework/datastore": "2.1.0-281041",
76
- "@fluidframework/datastore-definitions": "2.1.0-281041",
77
- "@fluidframework/driver-definitions": "2.1.0-281041",
78
- "@fluidframework/runtime-definitions": "2.1.0-281041",
79
- "@fluidframework/runtime-utils": "2.1.0-281041",
80
- "@fluidframework/telemetry-utils": "2.1.0-281041",
70
+ "@fluid-internal/client-utils": "~2.1.0",
71
+ "@fluidframework/container-definitions": "~2.1.0",
72
+ "@fluidframework/container-runtime": "~2.1.0",
73
+ "@fluidframework/core-interfaces": "~2.1.0",
74
+ "@fluidframework/core-utils": "~2.1.0",
75
+ "@fluidframework/datastore": "~2.1.0",
76
+ "@fluidframework/datastore-definitions": "~2.1.0",
77
+ "@fluidframework/driver-definitions": "~2.1.0",
78
+ "@fluidframework/runtime-definitions": "~2.1.0",
79
+ "@fluidframework/runtime-utils": "~2.1.0",
80
+ "@fluidframework/telemetry-utils": "~2.1.0",
81
81
  "uuid": "^9.0.0"
82
82
  },
83
83
  "devDependencies": {
84
84
  "@arethetypeswrong/cli": "^0.15.2",
85
85
  "@biomejs/biome": "~1.8.3",
86
- "@fluid-internal/mocha-test-setup": "2.1.0-281041",
87
- "@fluid-private/test-pairwise-generator": "2.1.0-281041",
88
- "@fluid-tools/build-cli": "^0.40.0",
86
+ "@fluid-internal/mocha-test-setup": "~2.1.0",
87
+ "@fluid-private/test-pairwise-generator": "~2.1.0",
88
+ "@fluid-tools/build-cli": "^0.41.0",
89
89
  "@fluidframework/build-common": "^2.0.3",
90
- "@fluidframework/build-tools": "^0.40.0",
90
+ "@fluidframework/build-tools": "^0.41.0",
91
91
  "@fluidframework/eslint-config-fluid": "^5.3.0",
92
92
  "@fluidframework/shared-object-base-previous": "npm:@fluidframework/shared-object-base@2.0.0",
93
- "@fluidframework/test-runtime-utils": "2.1.0-281041",
93
+ "@fluidframework/test-runtime-utils": "~2.1.0",
94
94
  "@microsoft/api-extractor": "^7.45.1",
95
95
  "@types/benchmark": "^2.1.0",
96
96
  "@types/mocha": "^9.1.1",
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/shared-object-base";
9
- export const pkgVersion = "2.1.0-281041";
9
+ export const pkgVersion = "2.1.0";