fluid-framework 2.0.0-rc.2.0.1 → 2.0.0-rc.3.0.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 +59 -0
- package/api-report/fluid-framework.api.md +612 -53
- package/dist/index.d.ts +7 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -4
- package/dist/index.js.map +1 -1
- package/dist/legacy.d.ts +148 -0
- package/dist/public.d.ts +109 -0
- package/legacy.d.ts +11 -0
- package/lib/index.d.ts +7 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -2
- package/lib/index.js.map +1 -1
- package/lib/legacy.d.ts +148 -0
- package/lib/public.d.ts +109 -0
- package/package.json +30 -57
- package/src/index.ts +54 -5
- package/api-extractor-cjs.json +0 -9
- package/dist/fluid-framework-alpha.d.ts +0 -2072
- package/dist/fluid-framework-beta.d.ts +0 -2051
- package/dist/fluid-framework-public.d.ts +0 -2051
- package/dist/fluid-framework-untrimmed.d.ts +0 -2072
- package/lib/fluid-framework-alpha.d.ts +0 -2072
- package/lib/fluid-framework-beta.d.ts +0 -2051
- package/lib/fluid-framework-public.d.ts +0 -2051
- package/lib/fluid-framework-untrimmed.d.ts +0 -2072
- /package/{dist → lib}/tsdoc-metadata.json +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,64 @@
|
|
|
1
1
|
# fluid-framework
|
|
2
2
|
|
|
3
|
+
## 2.0.0-rc.3.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- fluid-framework: DDS classes are no longer publicly exported [97d68aa06b](https://github.com/microsoft/FluidFramework/commit/97d68aa06bd5c022ecb026655814aea222a062ae)
|
|
8
|
+
|
|
9
|
+
SharedDirectory now only exports its factory and the interface type.
|
|
10
|
+
The actual concrete classes which leak implementation details are no longer exported.
|
|
11
|
+
Users of the `SharedDirectory` type should use `ISharedDirectory`.
|
|
12
|
+
|
|
13
|
+
Most of other internal crufts are also hided within the API surface, such as the encoded format,
|
|
14
|
+
ILocalValue, ICreateInfo, local op metadata types, etc.
|
|
15
|
+
|
|
16
|
+
- Packages now use package.json "exports" and require modern module resolution [97d68aa06b](https://github.com/microsoft/FluidFramework/commit/97d68aa06bd5c022ecb026655814aea222a062ae)
|
|
17
|
+
|
|
18
|
+
Fluid Framework packages have been updated to use the [package.json "exports"
|
|
19
|
+
field](https://nodejs.org/docs/latest-v18.x/api/packages.html#exports) to define explicit entry points for both
|
|
20
|
+
TypeScript types and implementation code.
|
|
21
|
+
|
|
22
|
+
This means that using Fluid Framework packages require the following TypeScript settings in tsconfig.json:
|
|
23
|
+
|
|
24
|
+
- `"moduleResolution": "Node16"` with `"module": "Node16"`
|
|
25
|
+
- `"moduleResolution": "Bundler"` with `"module": "ESNext"`
|
|
26
|
+
|
|
27
|
+
We recommend using Node16/Node16 unless absolutely necessary. That will produce transpiled JavaScript that is suitable
|
|
28
|
+
for use with modern versions of Node.js _and_ Bundlers.
|
|
29
|
+
[See the TypeScript documentation](https://www.typescriptlang.org/tsconfig#moduleResolution) for more information
|
|
30
|
+
regarding the module and moduleResolution options.
|
|
31
|
+
|
|
32
|
+
**Node10 moduleResolution is not supported; it does not support Fluid Framework's API structuring pattern that is used
|
|
33
|
+
to distinguish stable APIs from those that are in development.**
|
|
34
|
+
|
|
35
|
+
### Minor Changes
|
|
36
|
+
|
|
37
|
+
- tree: Allow root editing and make TreeView parameterized over schema. [97d68aa06b](https://github.com/microsoft/FluidFramework/commit/97d68aa06bd5c022ecb026655814aea222a062ae)
|
|
38
|
+
|
|
39
|
+
TreeView now is parameterized over the field schema instead of the root field type. This was needed to infer the correct input type when reassigning the root.
|
|
40
|
+
Code providing an explicit type to TreeView, like `TreeView<Foo>` can usually be updated by replacing that with `TreeView<typeof Foo>`.
|
|
41
|
+
|
|
42
|
+
- fluid-framework: Replace SharedObjectClass with new ISharedObjectKind type. [97d68aa06b](https://github.com/microsoft/FluidFramework/commit/97d68aa06bd5c022ecb026655814aea222a062ae)
|
|
43
|
+
|
|
44
|
+
The static objects used as SharedObjectClass now explicitly implement the new ISharedObjectKind type.
|
|
45
|
+
SharedObjectClass has been removed as ISharedObjectKind now fills that role.
|
|
46
|
+
LoadableObjectCtor has been inlined as it only had one use: an external user of it can replace it with `(new (...args: any[]) => T)`.
|
|
47
|
+
|
|
48
|
+
- fluid-framework: Moved SharedMap to 'fluid-framework/legacy' [97d68aa06b](https://github.com/microsoft/FluidFramework/commit/97d68aa06bd5c022ecb026655814aea222a062ae)
|
|
49
|
+
|
|
50
|
+
Please use SharedTree for new containers. SharedMap is supported for loading preexisting Fluid Framework 1.x containers only.
|
|
51
|
+
|
|
52
|
+
Fluid Framework 1.x users migrating to Fluid Framework 2.x will need to import SharedMap from the './legacy' import path.
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
import { SharedMap } from "fluid-framework/legacy";
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
- fluid-framework: Make some interface members readonly [97d68aa06b](https://github.com/microsoft/FluidFramework/commit/97d68aa06bd5c022ecb026655814aea222a062ae)
|
|
59
|
+
|
|
60
|
+
Remove unneeded mutability from some interface members.
|
|
61
|
+
|
|
3
62
|
## 2.0.0-rc.2.0.0
|
|
4
63
|
|
|
5
64
|
### Minor Changes
|