@fluidframework/shared-object-base 2.0.0-internal.7.0.0 → 2.0.0-internal.7.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,9 @@
1
1
  # @fluidframework/shared-object-base
2
2
 
3
+ ## 2.0.0-internal.7.1.0
4
+
5
+ Dependency updates only.
6
+
3
7
  ## 2.0.0-internal.7.0.0
4
8
 
5
9
  ### Major Changes
@@ -1,4 +1,12 @@
1
1
  {
2
2
  "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "extends": "@fluidframework/build-common/api-extractor-common-report.json"
3
+ "extends": "@fluidframework/build-common/api-extractor-base.json",
4
+ "messages": {
5
+ "extractorMessageReporting": {
6
+ "ae-missing-release-tag": {
7
+ // TODO: Fix violations and remove this rule override
8
+ "logLevel": "none"
9
+ }
10
+ }
11
+ }
4
12
  }
@@ -0,0 +1,166 @@
1
+ ## API Report File for "@fluidframework/shared-object-base"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { EventEmitterEventType } from '@fluid-internal/client-utils';
8
+ import { EventEmitterWithErrorHandling } from '@fluidframework/telemetry-utils';
9
+ import { IChannel } from '@fluidframework/datastore-definitions';
10
+ import { IChannelAttributes } from '@fluidframework/datastore-definitions';
11
+ import { IChannelServices } from '@fluidframework/datastore-definitions';
12
+ import { IChannelStorageService } from '@fluidframework/datastore-definitions';
13
+ import { IErrorEvent } from '@fluidframework/core-interfaces';
14
+ import { IEventProvider } from '@fluidframework/core-interfaces';
15
+ import { IEventThisPlaceHolder } from '@fluidframework/core-interfaces';
16
+ import { IExperimentalIncrementalSummaryContext } from '@fluidframework/runtime-definitions';
17
+ import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
18
+ import { IFluidHandle } from '@fluidframework/core-interfaces';
19
+ import { IFluidHandleContext } from '@fluidframework/core-interfaces';
20
+ import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
21
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
22
+ import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
23
+ import { ITelemetryContext } from '@fluidframework/runtime-definitions';
24
+ import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
25
+
26
+ // @public
27
+ export function createSingleBlobSummary(key: string, content: string | Uint8Array): ISummaryTreeWithStats;
28
+
29
+ // @public
30
+ export class FluidSerializer implements IFluidSerializer {
31
+ constructor(context: IFluidHandleContext, handleParsedCb: (handle: IFluidHandle) => void);
32
+ decode(input: any): any;
33
+ encode(input: any, bind: IFluidHandle): any;
34
+ // (undocumented)
35
+ get IFluidSerializer(): this;
36
+ // (undocumented)
37
+ parse(input: string): any;
38
+ // (undocumented)
39
+ protected serializeHandle(handle: IFluidHandle, bind: IFluidHandle): {
40
+ type: string;
41
+ url: string;
42
+ };
43
+ // (undocumented)
44
+ stringify(input: any, bind: IFluidHandle): string;
45
+ }
46
+
47
+ // @public (undocumented)
48
+ export interface IFluidSerializer {
49
+ decode(input: any): any;
50
+ encode(value: any, bind: IFluidHandle): any;
51
+ parse(value: string): any;
52
+ stringify(value: any, bind: IFluidHandle): string;
53
+ }
54
+
55
+ // @public
56
+ export interface ISerializedHandle {
57
+ // (undocumented)
58
+ type: "__fluid_handle__";
59
+ // (undocumented)
60
+ url: string;
61
+ }
62
+
63
+ // @public
64
+ export interface ISharedObject<TEvent extends ISharedObjectEvents = ISharedObjectEvents> extends IChannel, IEventProvider<TEvent> {
65
+ bindToContext(): void;
66
+ getGCData(fullGC?: boolean): IGarbageCollectionData;
67
+ }
68
+
69
+ // @public
70
+ export interface ISharedObjectEvents extends IErrorEvent {
71
+ // @eventProperty
72
+ (event: "pre-op", listener: (op: ISequencedDocumentMessage, local: boolean, target: IEventThisPlaceHolder) => void): any;
73
+ // @eventProperty
74
+ (event: "op", listener: (op: ISequencedDocumentMessage, local: boolean, target: IEventThisPlaceHolder) => void): any;
75
+ }
76
+
77
+ // @public (undocumented)
78
+ export const isSerializedHandle: (value: any) => value is ISerializedHandle;
79
+
80
+ // @public
81
+ export function makeHandlesSerializable(value: any, serializer: IFluidSerializer, bind: IFluidHandle): any;
82
+
83
+ // @public
84
+ export function parseHandles(value: any, serializer: IFluidSerializer): any;
85
+
86
+ // @public
87
+ export function serializeHandles(value: any, serializer: IFluidSerializer, bind: IFluidHandle): string | undefined;
88
+
89
+ // @public
90
+ export abstract class SharedObject<TEvent extends ISharedObjectEvents = ISharedObjectEvents> extends SharedObjectCore<TEvent> {
91
+ constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes, telemetryContextPrefix: string);
92
+ // (undocumented)
93
+ getAttachSummary(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext): ISummaryTreeWithStats;
94
+ getGCData(fullGC?: boolean): IGarbageCollectionData;
95
+ protected processGCDataCore(serializer: SummarySerializer): void;
96
+ // (undocumented)
97
+ protected get serializer(): IFluidSerializer;
98
+ // (undocumented)
99
+ summarize(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext, incrementalSummaryContext?: IExperimentalIncrementalSummaryContext): Promise<ISummaryTreeWithStats>;
100
+ protected abstract summarizeCore(serializer: IFluidSerializer, telemetryContext?: ITelemetryContext, incrementalSummaryContext?: IExperimentalIncrementalSummaryContext): ISummaryTreeWithStats;
101
+ }
102
+
103
+ // @public
104
+ export abstract class SharedObjectCore<TEvent extends ISharedObjectEvents = ISharedObjectEvents> extends EventEmitterWithErrorHandling<TEvent> implements ISharedObject<TEvent> {
105
+ constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
106
+ protected abstract applyStashedOp(content: any): unknown;
107
+ // (undocumented)
108
+ readonly attributes: IChannelAttributes;
109
+ bindToContext(): void;
110
+ // (undocumented)
111
+ connect(services: IChannelServices): void;
112
+ get connected(): boolean;
113
+ protected didAttach(): void;
114
+ protected dirty(): void;
115
+ // @internal
116
+ emit(event: EventEmitterEventType, ...args: any[]): boolean;
117
+ // (undocumented)
118
+ abstract getAttachSummary(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext): ISummaryTreeWithStats;
119
+ abstract getGCData(fullGC?: boolean): IGarbageCollectionData;
120
+ readonly handle: IFluidHandle;
121
+ protected handleDecoded(decodedHandle: IFluidHandle): void;
122
+ // (undocumented)
123
+ id: string;
124
+ // (undocumented)
125
+ get IFluidLoadable(): this;
126
+ initializeLocal(): void;
127
+ protected initializeLocalCore(): void;
128
+ // (undocumented)
129
+ isAttached(): boolean;
130
+ load(services: IChannelServices): Promise<void>;
131
+ protected abstract loadCore(services: IChannelStorageService): Promise<void>;
132
+ protected readonly logger: ITelemetryLoggerExt;
133
+ protected newAckBasedPromise<T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
134
+ protected onConnect(): void;
135
+ protected abstract onDisconnect(): any;
136
+ protected abstract processCore(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): any;
137
+ protected reSubmitCore(content: any, localOpMetadata: unknown): void;
138
+ protected rollback(content: any, localOpMetadata: unknown): void;
139
+ // (undocumented)
140
+ protected runtime: IFluidDataStoreRuntime;
141
+ protected submitLocalMessage(content: any, localOpMetadata?: unknown): void;
142
+ // (undocumented)
143
+ abstract summarize(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext): Promise<ISummaryTreeWithStats>;
144
+ }
145
+
146
+ // @public
147
+ export class SummarySerializer extends FluidSerializer {
148
+ // (undocumented)
149
+ getSerializedRoutes(): string[];
150
+ // (undocumented)
151
+ protected serializeHandle(handle: IFluidHandle, bind: IFluidHandle): {
152
+ type: string;
153
+ url: string;
154
+ };
155
+ }
156
+
157
+ // @public
158
+ export enum ValueType {
159
+ Plain = 1,
160
+ // @deprecated
161
+ Shared = 0
162
+ }
163
+
164
+ // (No @packageDocumentation comment for this package)
165
+
166
+ ```
@@ -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.0.0-internal.7.0.0";
8
+ export declare const pkgVersion = "2.0.0-internal.7.1.0";
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 = "@fluidframework/shared-object-base";
11
- exports.pkgVersion = "2.0.0-internal.7.0.0";
11
+ exports.pkgVersion = "2.0.0-internal.7.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,sBAAsB,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.0.0-internal.7.0.0\";\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,sBAAsB,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.0.0-internal.7.1.0\";\n"]}