@fluidframework/core-interfaces 0.43.1000-60718 → 1.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.
Files changed (53) hide show
  1. package/api-extractor.json +1 -9
  2. package/dist/fluidObject.d.ts +0 -28
  3. package/dist/fluidObject.d.ts.map +1 -1
  4. package/dist/fluidObject.js.map +1 -1
  5. package/dist/fluidPackage.d.ts.map +1 -1
  6. package/dist/fluidPackage.js +1 -1
  7. package/dist/fluidPackage.js.map +1 -1
  8. package/dist/fluidRouter.d.ts.map +1 -1
  9. package/dist/fluidRouter.js.map +1 -1
  10. package/dist/handles.js.map +1 -1
  11. package/dist/index.d.ts +0 -1
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +0 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/provider.d.ts +1 -1
  16. package/dist/provider.d.ts.map +1 -1
  17. package/dist/provider.js.map +1 -1
  18. package/lib/fluidObject.d.ts +0 -28
  19. package/lib/fluidObject.d.ts.map +1 -1
  20. package/lib/fluidObject.js.map +1 -1
  21. package/lib/fluidPackage.d.ts.map +1 -1
  22. package/lib/fluidPackage.js.map +1 -1
  23. package/lib/fluidRouter.d.ts.map +1 -1
  24. package/lib/fluidRouter.js.map +1 -1
  25. package/lib/handles.js.map +1 -1
  26. package/lib/index.d.ts +0 -1
  27. package/lib/index.d.ts.map +1 -1
  28. package/lib/index.js +0 -1
  29. package/lib/index.js.map +1 -1
  30. package/lib/provider.d.ts +1 -1
  31. package/lib/provider.d.ts.map +1 -1
  32. package/lib/provider.js.map +1 -1
  33. package/lib/test/types/fluidObjectTypes.js +11 -0
  34. package/lib/test/types/fluidObjectTypes.js.map +1 -1
  35. package/lib/test/types/validateCoreInterfacesPrevious.js +0 -14
  36. package/lib/test/types/validateCoreInterfacesPrevious.js.map +1 -1
  37. package/package.json +28 -36
  38. package/src/fluidObject.ts +1 -32
  39. package/src/fluidPackage.ts +2 -2
  40. package/src/fluidRouter.ts +1 -1
  41. package/src/handles.ts +1 -1
  42. package/src/index.ts +0 -1
  43. package/src/provider.ts +1 -1
  44. package/api-report/core-interfaces.api.md +0 -231
  45. package/dist/serializer.d.ts +0 -56
  46. package/dist/serializer.d.ts.map +0 -1
  47. package/dist/serializer.js +0 -8
  48. package/dist/serializer.js.map +0 -1
  49. package/lib/serializer.d.ts +0 -56
  50. package/lib/serializer.d.ts.map +0 -1
  51. package/lib/serializer.js +0 -5
  52. package/lib/serializer.js.map +0 -1
  53. package/src/serializer.ts +0 -65
@@ -1,231 +0,0 @@
1
- ## API Report File for "@fluidframework/core-interfaces"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- // Warning: (ae-incompatible-release-tags) The symbol "FluidObject" is marked as @public, but its signature references "FluidObjectProviderKeys" which is marked as @internal
8
- //
9
- // @public
10
- export type FluidObject<T = unknown> = {
11
- readonly [P in FluidObjectProviderKeys<T>]?: T[P];
12
- };
13
-
14
- // @public
15
- export type FluidObjectKeys<T> = keyof FluidObject<T>;
16
-
17
- // Warning: (ae-internal-missing-underscore) The name "FluidObjectProviderKeys" should be prefixed with an underscore because the declaration is marked as @internal
18
- //
19
- // @internal
20
- export type FluidObjectProviderKeys<T, TProp extends keyof T = keyof T> = string extends TProp ? never : number extends TProp ? never : TProp extends keyof Required<T>[TProp] ? Required<T>[TProp] extends Required<Required<T>[TProp]>[TProp] ? TProp : never : never;
21
-
22
- // @public @deprecated (undocumented)
23
- export interface IFluidCodeDetails {
24
- readonly config?: IFluidCodeDetailsConfig;
25
- readonly package: string | Readonly<IFluidPackage>;
26
- }
27
-
28
- // @public @deprecated (undocumented)
29
- export const IFluidCodeDetailsComparer: keyof IProvideFluidCodeDetailsComparer;
30
-
31
- // @public @deprecated (undocumented)
32
- export interface IFluidCodeDetailsComparer extends IProvideFluidCodeDetailsComparer {
33
- compare(a: IFluidCodeDetails, b: IFluidCodeDetails): Promise<number | undefined>;
34
- satisfies(candidate: IFluidCodeDetails, constraint: IFluidCodeDetails): Promise<boolean>;
35
- }
36
-
37
- // @public @deprecated (undocumented)
38
- export interface IFluidCodeDetailsConfig {
39
- // (undocumented)
40
- readonly [key: string]: string;
41
- }
42
-
43
- // @public (undocumented)
44
- export const IFluidHandle: keyof IProvideFluidHandle;
45
-
46
- // @public
47
- export interface IFluidHandle<T = FluidObject & IFluidLoadable> extends IProvideFluidHandle {
48
- // @deprecated (undocumented)
49
- readonly absolutePath: string;
50
- attachGraph(): void;
51
- bind(handle: IFluidHandle): void;
52
- get(): Promise<T>;
53
- readonly isAttached: boolean;
54
- }
55
-
56
- // @public (undocumented)
57
- export const IFluidHandleContext: keyof IProvideFluidHandleContext;
58
-
59
- // @public
60
- export interface IFluidHandleContext extends IProvideFluidHandleContext {
61
- readonly absolutePath: string;
62
- attachGraph(): void;
63
- readonly isAttached: boolean;
64
- // (undocumented)
65
- resolveHandle(request: IRequest): Promise<IResponse>;
66
- readonly routeContext?: IFluidHandleContext;
67
- }
68
-
69
- // @public (undocumented)
70
- export const IFluidLoadable: keyof IProvideFluidLoadable;
71
-
72
- // @public
73
- export interface IFluidLoadable extends IProvideFluidLoadable {
74
- // (undocumented)
75
- handle: IFluidHandle;
76
- }
77
-
78
- // @public @deprecated (undocumented)
79
- export interface IFluidObject {
80
- // @deprecated (undocumented)
81
- readonly IFluidHandle?: IFluidHandle;
82
- // @deprecated (undocumented)
83
- readonly IFluidHandleContext?: IFluidHandleContext;
84
- // @deprecated (undocumented)
85
- readonly IFluidLoadable?: IFluidLoadable;
86
- // @deprecated (undocumented)
87
- readonly IFluidRouter?: IFluidRouter;
88
- // @deprecated (undocumented)
89
- readonly IFluidRunnable?: IFluidRunnable;
90
- // @deprecated (undocumented)
91
- readonly IFluidSerializer?: IFluidSerializer;
92
- }
93
-
94
- // @public @deprecated (undocumented)
95
- export interface IFluidPackage {
96
- [key: string]: unknown;
97
- fluid: {
98
- [environment: string]: undefined | IFluidPackageEnvironment;
99
- };
100
- name: string;
101
- }
102
-
103
- // @public @deprecated (undocumented)
104
- export interface IFluidPackageEnvironment {
105
- [target: string]: undefined | {
106
- files: string[];
107
- [key: string]: unknown;
108
- };
109
- }
110
-
111
- // @public (undocumented)
112
- export const IFluidRouter: keyof IProvideFluidRouter;
113
-
114
- // @public (undocumented)
115
- export interface IFluidRouter extends IProvideFluidRouter {
116
- // (undocumented)
117
- request(request: IRequest): Promise<IResponse>;
118
- }
119
-
120
- // @public (undocumented)
121
- export const IFluidRunnable: keyof IProvideFluidRunnable;
122
-
123
- // @public (undocumented)
124
- export interface IFluidRunnable {
125
- // (undocumented)
126
- run(...args: any[]): Promise<void>;
127
- // (undocumented)
128
- stop(reason?: string): void;
129
- }
130
-
131
- // @public @deprecated (undocumented)
132
- export const IFluidSerializer: keyof IProvideFluidSerializer;
133
-
134
- // @public @deprecated (undocumented)
135
- export interface IFluidSerializer extends IProvideFluidSerializer {
136
- decode?(input: any): any;
137
- parse(value: string): any;
138
- replaceHandles(value: any, bind: IFluidHandle): any;
139
- stringify(value: any, bind: IFluidHandle): string;
140
- }
141
-
142
- // @public @deprecated (undocumented)
143
- export interface IProvideFluidCodeDetailsComparer {
144
- // (undocumented)
145
- readonly IFluidCodeDetailsComparer: IFluidCodeDetailsComparer;
146
- }
147
-
148
- // @public (undocumented)
149
- export interface IProvideFluidHandle {
150
- // (undocumented)
151
- readonly IFluidHandle: IFluidHandle;
152
- }
153
-
154
- // @public (undocumented)
155
- export interface IProvideFluidHandleContext {
156
- // (undocumented)
157
- readonly IFluidHandleContext: IFluidHandleContext;
158
- }
159
-
160
- // @public (undocumented)
161
- export interface IProvideFluidLoadable {
162
- // (undocumented)
163
- readonly IFluidLoadable: IFluidLoadable;
164
- }
165
-
166
- // @public
167
- export interface IProvideFluidRouter {
168
- // (undocumented)
169
- readonly IFluidRouter: IFluidRouter;
170
- }
171
-
172
- // @public (undocumented)
173
- export interface IProvideFluidRunnable {
174
- // (undocumented)
175
- readonly IFluidRunnable: IFluidRunnable;
176
- }
177
-
178
- // @public @deprecated (undocumented)
179
- export interface IProvideFluidSerializer {
180
- // (undocumented)
181
- readonly IFluidSerializer: IFluidSerializer;
182
- }
183
-
184
- // @public (undocumented)
185
- export interface IRequest {
186
- // (undocumented)
187
- headers?: IRequestHeader;
188
- // (undocumented)
189
- url: string;
190
- }
191
-
192
- // @public (undocumented)
193
- export interface IRequestHeader {
194
- // (undocumented)
195
- [index: string]: any;
196
- }
197
-
198
- // @public (undocumented)
199
- export interface IResponse {
200
- // (undocumented)
201
- headers?: {
202
- [key: string]: any;
203
- };
204
- // (undocumented)
205
- mimeType: string;
206
- // (undocumented)
207
- stack?: string;
208
- // (undocumented)
209
- status: number;
210
- // (undocumented)
211
- value: any;
212
- }
213
-
214
- // @public @deprecated
215
- export interface ISerializedHandle {
216
- // (undocumented)
217
- type: "__fluid_handle__";
218
- // (undocumented)
219
- url: string;
220
- }
221
-
222
- // @public @deprecated (undocumented)
223
- export const isFluidCodeDetails: (details: unknown) => details is Readonly<IFluidCodeDetails>;
224
-
225
- // @public @deprecated (undocumented)
226
- export const isFluidPackage: (pkg: any) => pkg is Readonly<IFluidPackage>;
227
-
228
-
229
- // (No @packageDocumentation comment for this package)
230
-
231
- ```
@@ -1,56 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { IFluidHandle } from "./handles";
6
- /**
7
- * JSON serialized form of an IFluidHandle
8
- * @deprecated - Moved to fluidframework/shared-object-base package
9
- */
10
- export interface ISerializedHandle {
11
- type: "__fluid_handle__";
12
- url: string;
13
- }
14
- /**
15
- * @deprecated - Moved to fluidframework/shared-object-base package
16
- */
17
- export declare const IFluidSerializer: keyof IProvideFluidSerializer;
18
- /**
19
- * @deprecated - Moved to fluidframework/shared-object-base package
20
- */
21
- export interface IProvideFluidSerializer {
22
- readonly IFluidSerializer: IFluidSerializer;
23
- }
24
- /**
25
- * @deprecated - Moved to fluidframework/shared-object-base package
26
- */
27
- export interface IFluidSerializer extends IProvideFluidSerializer {
28
- /**
29
- * Given a mostly-plain object that may have handle objects embedded within, will return a fully-plain object
30
- * where any embedded IFluidHandles have been replaced with a serializable form.
31
- *
32
- * The original `input` object is not mutated. This method will shallowly clones all objects in the path from
33
- * the root to any replaced handles. (If no handles are found, returns the original object.)
34
- */
35
- replaceHandles(value: any, bind: IFluidHandle): any;
36
- /**
37
- * Given a fully-jsonable object tree that may have encoded handle objects embedded within, will return an
38
- * equivalent object tree where any encoded IFluidHandles have been replaced with thier decoded form.
39
- *
40
- * The original `input` object is not mutated. This method will shallowly clones all objects in the path from
41
- * the root to any replaced handles. (If no handles are found, returns the original object.)
42
- *
43
- * The decoded handles are implicitly bound to the handle context of this serializer.
44
- */
45
- decode?(input: any): any;
46
- /**
47
- * Stringifies a given value. Converts any IFluidHandle to its stringified equivalent.
48
- */
49
- stringify(value: any, bind: IFluidHandle): string;
50
- /**
51
- * Parses the given JSON input string and returns the JavaScript object defined by it. Any Fluid
52
- * handles will be realized as part of the parse
53
- */
54
- parse(value: string): any;
55
- }
56
- //# sourceMappingURL=serializer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../src/serializer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAE9B,IAAI,EAAE,kBAAkB,CAAC;IAGzB,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,uBAA4C,CAAC;AAElF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,uBAAuB;IAC7D;;;;;;OAMG;IACH,cAAc,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,GAAG,GAAG,CAAC;IAEpD;;;;;;;;OAQG;IACH,MAAM,CAAC,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,GAAG,MAAM,CAAC;IAElD;;;OAGG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC;CAC7B"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IFluidSerializer = void 0;
4
- /**
5
- * @deprecated - Moved to fluidframework/shared-object-base package
6
- */
7
- exports.IFluidSerializer = "IFluidSerializer";
8
- //# sourceMappingURL=serializer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serializer.js","sourceRoot":"","sources":["../src/serializer.ts"],"names":[],"mappings":";;;AAkBA;;GAEG;AACU,QAAA,gBAAgB,GAAkC,kBAAkB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\nimport { IFluidHandle } from \"./handles\";\n\n/**\n * JSON serialized form of an IFluidHandle\n * @deprecated - Moved to fluidframework/shared-object-base package\n */\nexport interface ISerializedHandle {\n // Marker to indicate to JSON.parse that the object is a Fluid handle\n type: \"__fluid_handle__\";\n\n // URL to the object. Relative URLs are relative to the handle context passed to the stringify.\n url: string;\n}\n\n/**\n * @deprecated - Moved to fluidframework/shared-object-base package\n */\nexport const IFluidSerializer: keyof IProvideFluidSerializer = \"IFluidSerializer\";\n\n/**\n * @deprecated - Moved to fluidframework/shared-object-base package\n */\nexport interface IProvideFluidSerializer {\n readonly IFluidSerializer: IFluidSerializer;\n}\n\n/**\n * @deprecated - Moved to fluidframework/shared-object-base package\n */\nexport interface IFluidSerializer extends IProvideFluidSerializer {\n /**\n * Given a mostly-plain object that may have handle objects embedded within, will return a fully-plain object\n * where any embedded IFluidHandles have been replaced with a serializable form.\n *\n * The original `input` object is not mutated. This method will shallowly clones all objects in the path from\n * the root to any replaced handles. (If no handles are found, returns the original object.)\n */\n replaceHandles(value: any, bind: IFluidHandle): any;\n\n /**\n * Given a fully-jsonable object tree that may have encoded handle objects embedded within, will return an\n * equivalent object tree where any encoded IFluidHandles have been replaced with thier decoded form.\n *\n * The original `input` object is not mutated. This method will shallowly clones all objects in the path from\n * the root to any replaced handles. (If no handles are found, returns the original object.)\n *\n * The decoded handles are implicitly bound to the handle context of this serializer.\n */\n decode?(input: any): any;\n\n /**\n * Stringifies a given value. Converts any IFluidHandle to its stringified equivalent.\n */\n stringify(value: any, bind: IFluidHandle): string;\n\n /**\n * Parses the given JSON input string and returns the JavaScript object defined by it. Any Fluid\n * handles will be realized as part of the parse\n */\n parse(value: string): any;\n}\n"]}
@@ -1,56 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { IFluidHandle } from "./handles";
6
- /**
7
- * JSON serialized form of an IFluidHandle
8
- * @deprecated - Moved to fluidframework/shared-object-base package
9
- */
10
- export interface ISerializedHandle {
11
- type: "__fluid_handle__";
12
- url: string;
13
- }
14
- /**
15
- * @deprecated - Moved to fluidframework/shared-object-base package
16
- */
17
- export declare const IFluidSerializer: keyof IProvideFluidSerializer;
18
- /**
19
- * @deprecated - Moved to fluidframework/shared-object-base package
20
- */
21
- export interface IProvideFluidSerializer {
22
- readonly IFluidSerializer: IFluidSerializer;
23
- }
24
- /**
25
- * @deprecated - Moved to fluidframework/shared-object-base package
26
- */
27
- export interface IFluidSerializer extends IProvideFluidSerializer {
28
- /**
29
- * Given a mostly-plain object that may have handle objects embedded within, will return a fully-plain object
30
- * where any embedded IFluidHandles have been replaced with a serializable form.
31
- *
32
- * The original `input` object is not mutated. This method will shallowly clones all objects in the path from
33
- * the root to any replaced handles. (If no handles are found, returns the original object.)
34
- */
35
- replaceHandles(value: any, bind: IFluidHandle): any;
36
- /**
37
- * Given a fully-jsonable object tree that may have encoded handle objects embedded within, will return an
38
- * equivalent object tree where any encoded IFluidHandles have been replaced with thier decoded form.
39
- *
40
- * The original `input` object is not mutated. This method will shallowly clones all objects in the path from
41
- * the root to any replaced handles. (If no handles are found, returns the original object.)
42
- *
43
- * The decoded handles are implicitly bound to the handle context of this serializer.
44
- */
45
- decode?(input: any): any;
46
- /**
47
- * Stringifies a given value. Converts any IFluidHandle to its stringified equivalent.
48
- */
49
- stringify(value: any, bind: IFluidHandle): string;
50
- /**
51
- * Parses the given JSON input string and returns the JavaScript object defined by it. Any Fluid
52
- * handles will be realized as part of the parse
53
- */
54
- parse(value: string): any;
55
- }
56
- //# sourceMappingURL=serializer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../src/serializer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAE9B,IAAI,EAAE,kBAAkB,CAAC;IAGzB,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,uBAA4C,CAAC;AAElF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,uBAAuB;IAC7D;;;;;;OAMG;IACH,cAAc,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,GAAG,GAAG,CAAC;IAEpD;;;;;;;;OAQG;IACH,MAAM,CAAC,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,GAAG,MAAM,CAAC;IAElD;;;OAGG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC;CAC7B"}
package/lib/serializer.js DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * @deprecated - Moved to fluidframework/shared-object-base package
3
- */
4
- export const IFluidSerializer = "IFluidSerializer";
5
- //# sourceMappingURL=serializer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serializer.js","sourceRoot":"","sources":["../src/serializer.ts"],"names":[],"mappings":"AAkBA;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAkC,kBAAkB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\nimport { IFluidHandle } from \"./handles\";\n\n/**\n * JSON serialized form of an IFluidHandle\n * @deprecated - Moved to fluidframework/shared-object-base package\n */\nexport interface ISerializedHandle {\n // Marker to indicate to JSON.parse that the object is a Fluid handle\n type: \"__fluid_handle__\";\n\n // URL to the object. Relative URLs are relative to the handle context passed to the stringify.\n url: string;\n}\n\n/**\n * @deprecated - Moved to fluidframework/shared-object-base package\n */\nexport const IFluidSerializer: keyof IProvideFluidSerializer = \"IFluidSerializer\";\n\n/**\n * @deprecated - Moved to fluidframework/shared-object-base package\n */\nexport interface IProvideFluidSerializer {\n readonly IFluidSerializer: IFluidSerializer;\n}\n\n/**\n * @deprecated - Moved to fluidframework/shared-object-base package\n */\nexport interface IFluidSerializer extends IProvideFluidSerializer {\n /**\n * Given a mostly-plain object that may have handle objects embedded within, will return a fully-plain object\n * where any embedded IFluidHandles have been replaced with a serializable form.\n *\n * The original `input` object is not mutated. This method will shallowly clones all objects in the path from\n * the root to any replaced handles. (If no handles are found, returns the original object.)\n */\n replaceHandles(value: any, bind: IFluidHandle): any;\n\n /**\n * Given a fully-jsonable object tree that may have encoded handle objects embedded within, will return an\n * equivalent object tree where any encoded IFluidHandles have been replaced with thier decoded form.\n *\n * The original `input` object is not mutated. This method will shallowly clones all objects in the path from\n * the root to any replaced handles. (If no handles are found, returns the original object.)\n *\n * The decoded handles are implicitly bound to the handle context of this serializer.\n */\n decode?(input: any): any;\n\n /**\n * Stringifies a given value. Converts any IFluidHandle to its stringified equivalent.\n */\n stringify(value: any, bind: IFluidHandle): string;\n\n /**\n * Parses the given JSON input string and returns the JavaScript object defined by it. Any Fluid\n * handles will be realized as part of the parse\n */\n parse(value: string): any;\n}\n"]}
package/src/serializer.ts DELETED
@@ -1,65 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { IFluidHandle } from "./handles";
6
-
7
- /**
8
- * JSON serialized form of an IFluidHandle
9
- * @deprecated - Moved to fluidframework/shared-object-base package
10
- */
11
- export interface ISerializedHandle {
12
- // Marker to indicate to JSON.parse that the object is a Fluid handle
13
- type: "__fluid_handle__";
14
-
15
- // URL to the object. Relative URLs are relative to the handle context passed to the stringify.
16
- url: string;
17
- }
18
-
19
- /**
20
- * @deprecated - Moved to fluidframework/shared-object-base package
21
- */
22
- export const IFluidSerializer: keyof IProvideFluidSerializer = "IFluidSerializer";
23
-
24
- /**
25
- * @deprecated - Moved to fluidframework/shared-object-base package
26
- */
27
- export interface IProvideFluidSerializer {
28
- readonly IFluidSerializer: IFluidSerializer;
29
- }
30
-
31
- /**
32
- * @deprecated - Moved to fluidframework/shared-object-base package
33
- */
34
- export interface IFluidSerializer extends IProvideFluidSerializer {
35
- /**
36
- * Given a mostly-plain object that may have handle objects embedded within, will return a fully-plain object
37
- * where any embedded IFluidHandles have been replaced with a serializable form.
38
- *
39
- * The original `input` object is not mutated. This method will shallowly clones all objects in the path from
40
- * the root to any replaced handles. (If no handles are found, returns the original object.)
41
- */
42
- replaceHandles(value: any, bind: IFluidHandle): any;
43
-
44
- /**
45
- * Given a fully-jsonable object tree that may have encoded handle objects embedded within, will return an
46
- * equivalent object tree where any encoded IFluidHandles have been replaced with thier decoded form.
47
- *
48
- * The original `input` object is not mutated. This method will shallowly clones all objects in the path from
49
- * the root to any replaced handles. (If no handles are found, returns the original object.)
50
- *
51
- * The decoded handles are implicitly bound to the handle context of this serializer.
52
- */
53
- decode?(input: any): any;
54
-
55
- /**
56
- * Stringifies a given value. Converts any IFluidHandle to its stringified equivalent.
57
- */
58
- stringify(value: any, bind: IFluidHandle): string;
59
-
60
- /**
61
- * Parses the given JSON input string and returns the JavaScript object defined by it. Any Fluid
62
- * handles will be realized as part of the parse
63
- */
64
- parse(value: string): any;
65
- }