@fluidframework/local-driver 2.0.0-rc.4.0.6 → 2.0.0-rc.5.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 +33 -0
- package/api-extractor/api-extractor-lint-bundle.json +5 -0
- package/api-extractor/api-extractor-lint-legacy.cjs.json +5 -0
- package/api-extractor/api-extractor-lint-legacy.esm.json +5 -0
- package/api-extractor/api-extractor-lint-public.cjs.json +5 -0
- package/api-extractor/api-extractor-lint-public.esm.json +5 -0
- package/api-extractor.json +1 -1
- package/api-report/local-driver.alpha.api.md +68 -0
- package/api-report/local-driver.beta.api.md +45 -0
- package/api-report/local-driver.public.api.md +45 -0
- package/biome.jsonc +4 -0
- package/dist/auth.d.ts +2 -1
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js.map +1 -1
- package/dist/localCreateDocument.d.ts +1 -1
- package/dist/localCreateDocument.d.ts.map +1 -1
- package/dist/localCreateDocument.js.map +1 -1
- package/dist/localDeltaStorageService.d.ts +1 -2
- package/dist/localDeltaStorageService.d.ts.map +1 -1
- package/dist/localDeltaStorageService.js.map +1 -1
- package/dist/localDocumentDeltaConnection.d.ts +2 -1
- package/dist/localDocumentDeltaConnection.d.ts.map +1 -1
- package/dist/localDocumentDeltaConnection.js +5 -5
- package/dist/localDocumentDeltaConnection.js.map +1 -1
- package/dist/localDocumentService.d.ts +1 -1
- package/dist/localDocumentService.d.ts.map +1 -1
- package/dist/localDocumentService.js.map +1 -1
- package/dist/localDocumentServiceFactory.d.ts +2 -2
- package/dist/localDocumentServiceFactory.d.ts.map +1 -1
- package/dist/localDocumentServiceFactory.js.map +1 -1
- package/dist/localDocumentStorageService.d.ts +2 -2
- package/dist/localDocumentStorageService.d.ts.map +1 -1
- package/dist/localDocumentStorageService.js.map +1 -1
- package/dist/localResolver.d.ts.map +1 -1
- package/dist/localResolver.js +1 -2
- package/dist/localResolver.js.map +1 -1
- package/dist/localSessionStorageDb.js.map +1 -1
- package/lib/auth.d.ts +2 -1
- package/lib/auth.d.ts.map +1 -1
- package/lib/auth.js.map +1 -1
- package/lib/localCreateDocument.d.ts +1 -1
- package/lib/localCreateDocument.d.ts.map +1 -1
- package/lib/localCreateDocument.js.map +1 -1
- package/lib/localDeltaStorageService.d.ts +1 -2
- package/lib/localDeltaStorageService.d.ts.map +1 -1
- package/lib/localDeltaStorageService.js.map +1 -1
- package/lib/localDocumentDeltaConnection.d.ts +2 -1
- package/lib/localDocumentDeltaConnection.d.ts.map +1 -1
- package/lib/localDocumentDeltaConnection.js +2 -2
- package/lib/localDocumentDeltaConnection.js.map +1 -1
- package/lib/localDocumentService.d.ts +1 -1
- package/lib/localDocumentService.d.ts.map +1 -1
- package/lib/localDocumentService.js.map +1 -1
- package/lib/localDocumentServiceFactory.d.ts +2 -2
- package/lib/localDocumentServiceFactory.d.ts.map +1 -1
- package/lib/localDocumentServiceFactory.js.map +1 -1
- package/lib/localDocumentStorageService.d.ts +2 -2
- package/lib/localDocumentStorageService.d.ts.map +1 -1
- package/lib/localDocumentStorageService.js.map +1 -1
- package/lib/localResolver.d.ts.map +1 -1
- package/lib/localResolver.js +1 -2
- package/lib/localResolver.js.map +1 -1
- package/lib/localSessionStorageDb.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +33 -25
- package/src/auth.ts +2 -1
- package/src/localCreateDocument.ts +1 -1
- package/src/localDeltaStorageService.ts +5 -2
- package/src/localDocumentDeltaConnection.ts +2 -2
- package/src/localDocumentService.ts +1 -1
- package/src/localDocumentServiceFactory.ts +2 -1
- package/src/localDocumentStorageService.ts +7 -13
- package/src/localResolver.ts +9 -3
- package/src/localSessionStorageDb.ts +5 -5
- package/tsconfig.json +2 -0
- package/tsdoc.json +4 -0
- package/api-report/local-driver.api.md +0 -133
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
## API Report File for "@fluidframework/local-driver"
|
|
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 { DocumentDeltaConnection } from '@fluidframework/driver-base/internal';
|
|
8
|
-
import { GitManager } from '@fluidframework/server-services-client';
|
|
9
|
-
import { IClient } from '@fluidframework/protocol-definitions';
|
|
10
|
-
import { ICreateBlobResponse } from '@fluidframework/protocol-definitions';
|
|
11
|
-
import { IDatabaseManager } from '@fluidframework/server-services-core';
|
|
12
|
-
import { IDb } from '@fluidframework/server-services-core';
|
|
13
|
-
import { IDocumentDeltaConnection } from '@fluidframework/driver-definitions/internal';
|
|
14
|
-
import { IDocumentDeltaStorageService } from '@fluidframework/driver-definitions/internal';
|
|
15
|
-
import { IDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
16
|
-
import { IDocumentService } from '@fluidframework/driver-definitions/internal';
|
|
17
|
-
import { IDocumentServiceEvents } from '@fluidframework/driver-definitions/internal';
|
|
18
|
-
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions/internal';
|
|
19
|
-
import { IDocumentServicePolicies } from '@fluidframework/driver-definitions/internal';
|
|
20
|
-
import { IDocumentStorageService } from '@fluidframework/driver-definitions/internal';
|
|
21
|
-
import { IDocumentStorageServicePolicies } from '@fluidframework/driver-definitions/internal';
|
|
22
|
-
import { ILocalDeltaConnectionServer } from '@fluidframework/server-local-server';
|
|
23
|
-
import { IRequest } from '@fluidframework/core-interfaces';
|
|
24
|
-
import { IResolvedUrl } from '@fluidframework/driver-definitions/internal';
|
|
25
|
-
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
26
|
-
import { ISnapshot } from '@fluidframework/driver-definitions/internal';
|
|
27
|
-
import { ISnapshotFetchOptions } from '@fluidframework/driver-definitions/internal';
|
|
28
|
-
import { ISnapshotTreeEx } from '@fluidframework/protocol-definitions';
|
|
29
|
-
import { IStream } from '@fluidframework/driver-definitions/internal';
|
|
30
|
-
import { ISummaryContext } from '@fluidframework/driver-definitions/internal';
|
|
31
|
-
import { ISummaryHandle } from '@fluidframework/protocol-definitions';
|
|
32
|
-
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
33
|
-
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
34
|
-
import { ITestDbFactory } from '@fluidframework/server-test-utils';
|
|
35
|
-
import { ITokenProvider } from '@fluidframework/routerlicious-driver';
|
|
36
|
-
import { IUrlResolver } from '@fluidframework/driver-definitions/internal';
|
|
37
|
-
import { IVersion } from '@fluidframework/protocol-definitions';
|
|
38
|
-
import { IWebSocketServer } from '@fluidframework/server-services-core';
|
|
39
|
-
import { NackErrorType } from '@fluidframework/protocol-definitions';
|
|
40
|
-
import type { Socket } from 'socket.io-client';
|
|
41
|
-
import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
42
|
-
|
|
43
|
-
// @internal
|
|
44
|
-
export function createLocalDocumentService(resolvedUrl: IResolvedUrl, localDeltaConnectionServer: ILocalDeltaConnectionServer, tokenProvider: ITokenProvider, tenantId: string, documentId: string, documentDeltaConnectionsMap: Map<string, LocalDocumentDeltaConnection>, policies?: IDocumentServicePolicies, innerDocumentService?: IDocumentService, logger?: ITelemetryBaseLogger): IDocumentService;
|
|
45
|
-
|
|
46
|
-
// @alpha (undocumented)
|
|
47
|
-
export function createLocalResolverCreateNewRequest(documentId: string): IRequest;
|
|
48
|
-
|
|
49
|
-
// @internal
|
|
50
|
-
export class LocalDeltaStorageService implements IDocumentDeltaStorageService {
|
|
51
|
-
constructor(tenantId: string, id: string, databaseManager: IDatabaseManager);
|
|
52
|
-
// (undocumented)
|
|
53
|
-
fetchMessages(from: number, to: number | undefined, abortSignal?: AbortSignal, cachedOnly?: boolean): IStream<ISequencedDocumentMessage[]>;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// @internal
|
|
57
|
-
export class LocalDocumentDeltaConnection extends DocumentDeltaConnection {
|
|
58
|
-
constructor(socket: Socket, documentId: string, logger?: ITelemetryBaseLogger);
|
|
59
|
-
static create(tenantId: string, id: string, token: string, client: IClient, webSocketServer: IWebSocketServer, timeoutMs?: number, logger?: ITelemetryBaseLogger): Promise<LocalDocumentDeltaConnection>;
|
|
60
|
-
disconnectClient(disconnectReason: string): void;
|
|
61
|
-
nackClient(code: number | undefined, type: NackErrorType | undefined, message: any): void;
|
|
62
|
-
submit(messages: IDocumentMessage[]): void;
|
|
63
|
-
submitSignal(message: string): void;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// @internal
|
|
67
|
-
export class LocalDocumentService extends TypedEventEmitter<IDocumentServiceEvents> implements IDocumentService {
|
|
68
|
-
constructor(resolvedUrl: IResolvedUrl, localDeltaConnectionServer: ILocalDeltaConnectionServer, tokenProvider: ITokenProvider, tenantId: string, documentId: string, documentDeltaConnectionsMap: Map<string, LocalDocumentDeltaConnection>, policies?: IDocumentServicePolicies, innerDocumentService?: IDocumentService | undefined, logger?: ITelemetryBaseLogger | undefined);
|
|
69
|
-
connectToDeltaStorage(): Promise<IDocumentDeltaStorageService>;
|
|
70
|
-
connectToDeltaStream(client: IClient): Promise<IDocumentDeltaConnection>;
|
|
71
|
-
connectToStorage(): Promise<IDocumentStorageService>;
|
|
72
|
-
// (undocumented)
|
|
73
|
-
dispose(): void;
|
|
74
|
-
// (undocumented)
|
|
75
|
-
readonly policies: IDocumentServicePolicies;
|
|
76
|
-
// (undocumented)
|
|
77
|
-
readonly resolvedUrl: IResolvedUrl;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// @alpha
|
|
81
|
-
export class LocalDocumentServiceFactory implements IDocumentServiceFactory {
|
|
82
|
-
constructor(localDeltaConnectionServer: ILocalDeltaConnectionServer, policies?: IDocumentServicePolicies | undefined, innerDocumentService?: IDocumentService | undefined);
|
|
83
|
-
// (undocumented)
|
|
84
|
-
createContainer(createNewSummary: ISummaryTree | undefined, resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
|
|
85
|
-
createDocumentService(resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
|
|
86
|
-
disconnectClient(clientId: string, disconnectReason: string): void;
|
|
87
|
-
nackClient(clientId: string, code?: number, type?: NackErrorType, message?: any): void;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// @internal (undocumented)
|
|
91
|
-
export class LocalDocumentStorageService implements IDocumentStorageService {
|
|
92
|
-
constructor(id: string, manager: GitManager, policies: IDocumentStorageServicePolicies, localDeltaConnectionServer?: ILocalDeltaConnectionServer | undefined, resolvedUrl?: IResolvedUrl | undefined);
|
|
93
|
-
// (undocumented)
|
|
94
|
-
protected readonly blobsShaCache: Map<string, string>;
|
|
95
|
-
// (undocumented)
|
|
96
|
-
createBlob(file: ArrayBufferLike): Promise<ICreateBlobResponse>;
|
|
97
|
-
// (undocumented)
|
|
98
|
-
downloadSummary(handle: ISummaryHandle): Promise<ISummaryTree>;
|
|
99
|
-
// (undocumented)
|
|
100
|
-
getSnapshot(snapshotFetchOptions?: ISnapshotFetchOptions): Promise<ISnapshot>;
|
|
101
|
-
// (undocumented)
|
|
102
|
-
getSnapshotTree(version?: IVersion): Promise<ISnapshotTreeEx | null>;
|
|
103
|
-
// (undocumented)
|
|
104
|
-
getVersions(versionId: string | null, count: number): Promise<IVersion[]>;
|
|
105
|
-
// (undocumented)
|
|
106
|
-
readonly policies: IDocumentStorageServicePolicies;
|
|
107
|
-
// (undocumented)
|
|
108
|
-
readBlob(blobId: string): Promise<ArrayBufferLike>;
|
|
109
|
-
// (undocumented)
|
|
110
|
-
uploadSummaryWithContext(summary: ISummaryTree, context: ISummaryContext): Promise<string>;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// @alpha
|
|
114
|
-
export class LocalResolver implements IUrlResolver {
|
|
115
|
-
constructor();
|
|
116
|
-
// (undocumented)
|
|
117
|
-
createCreateNewRequest(documentId: string): IRequest;
|
|
118
|
-
// (undocumented)
|
|
119
|
-
getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string): Promise<string>;
|
|
120
|
-
resolve(request: IRequest): Promise<IResolvedUrl>;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// @internal
|
|
124
|
-
export class LocalSessionStorageDbFactory implements ITestDbFactory {
|
|
125
|
-
// (undocumented)
|
|
126
|
-
connect(): Promise<IDb>;
|
|
127
|
-
// (undocumented)
|
|
128
|
-
readonly testDatabase: IDb;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
// (No @packageDocumentation comment for this package)
|
|
132
|
-
|
|
133
|
-
```
|