@fluidframework/local-driver 2.0.0-dev-rc.3.0.0.250606 → 2.0.0-dev-rc.3.0.0.254274
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/api-report/local-driver.api.md +15 -15
- package/dist/local-driver-alpha.d.ts +15 -15
- package/dist/local-driver-beta.d.ts +15 -15
- package/dist/local-driver-public.d.ts +15 -15
- package/dist/local-driver-untrimmed.d.ts +16 -16
- package/dist/localCreateDocument.d.ts +1 -1
- package/dist/localCreateDocument.d.ts.map +1 -1
- package/dist/localCreateDocument.js +4 -4
- package/dist/localCreateDocument.js.map +1 -1
- package/dist/localDeltaStorageService.d.ts +1 -1
- package/dist/localDeltaStorageService.d.ts.map +1 -1
- package/dist/localDeltaStorageService.js +2 -2
- package/dist/localDeltaStorageService.js.map +1 -1
- package/dist/localDocumentDeltaConnection.d.ts +1 -1
- package/dist/localDocumentDeltaConnection.d.ts.map +1 -1
- package/dist/localDocumentDeltaConnection.js +4 -4
- 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 +1 -1
- package/dist/localDocumentServiceFactory.d.ts.map +1 -1
- package/dist/localDocumentServiceFactory.js +2 -2
- 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 +13 -10
- package/dist/localDocumentStorageService.js.map +1 -1
- package/dist/localResolver.d.ts +1 -1
- package/dist/localResolver.d.ts.map +1 -1
- package/dist/localResolver.js +4 -4
- package/dist/localResolver.js.map +1 -1
- package/lib/local-driver-alpha.d.ts +15 -15
- package/lib/local-driver-beta.d.ts +15 -15
- package/lib/local-driver-public.d.ts +15 -15
- package/lib/local-driver-untrimmed.d.ts +16 -16
- package/lib/localCreateDocument.d.ts +1 -1
- package/lib/localCreateDocument.d.ts.map +1 -1
- package/lib/localCreateDocument.js +1 -1
- package/lib/localCreateDocument.js.map +1 -1
- package/lib/localDeltaStorageService.d.ts +1 -1
- package/lib/localDeltaStorageService.d.ts.map +1 -1
- package/lib/localDeltaStorageService.js +1 -1
- package/lib/localDeltaStorageService.js.map +1 -1
- package/lib/localDocumentDeltaConnection.d.ts +1 -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 +1 -1
- package/lib/localDocumentServiceFactory.d.ts.map +1 -1
- package/lib/localDocumentServiceFactory.js +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 +12 -9
- package/lib/localDocumentStorageService.js.map +1 -1
- package/lib/localResolver.d.ts +1 -1
- package/lib/localResolver.d.ts.map +1 -1
- package/lib/localResolver.js +2 -2
- package/lib/localResolver.js.map +1 -1
- package/lib/tsdoc-metadata.json +11 -0
- package/package.json +11 -23
- package/src/localCreateDocument.ts +2 -2
- package/src/localDeltaStorageService.ts +2 -2
- package/src/localDocumentDeltaConnection.ts +2 -2
- package/src/localDocumentService.ts +2 -1
- package/src/localDocumentServiceFactory.ts +3 -2
- package/src/localDocumentStorageService.ts +16 -9
- package/src/localResolver.ts +7 -2
- package/lib/test/localResolverTest.spec.js +0 -47
- package/lib/test/localResolverTest.spec.js.map +0 -1
- package/lib/test/types/validateLocalDriverPrevious.generated.js +0 -26
- package/lib/test/types/validateLocalDriverPrevious.generated.js.map +0 -1
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
bufferToString,
|
|
10
10
|
stringToBuffer,
|
|
11
11
|
} from "@fluid-internal/client-utils";
|
|
12
|
-
import { assert } from "@fluidframework/core-utils";
|
|
12
|
+
import { assert } from "@fluidframework/core-utils/internal";
|
|
13
13
|
import {
|
|
14
14
|
IDocumentStorageService,
|
|
15
15
|
IDocumentStorageServicePolicies,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
type ISnapshot,
|
|
18
18
|
type ISnapshotFetchOptions,
|
|
19
19
|
ISummaryContext,
|
|
20
|
-
} from "@fluidframework/driver-definitions";
|
|
20
|
+
} from "@fluidframework/driver-definitions/internal";
|
|
21
21
|
import { buildGitTreeHierarchy } from "@fluidframework/protocol-base";
|
|
22
22
|
import {
|
|
23
23
|
ICreateBlobResponse,
|
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
ISummaryUploadManager,
|
|
33
33
|
SummaryTreeUploadManager,
|
|
34
34
|
} from "@fluidframework/server-services-client";
|
|
35
|
+
|
|
35
36
|
import { createDocument } from "./localCreateDocument.js";
|
|
36
37
|
|
|
37
38
|
const minTTLInSeconds = 24 * 60 * 60; // Same TTL as ODSP
|
|
@@ -97,16 +98,19 @@ export class LocalDocumentStorageService implements IDocumentStorageService {
|
|
|
97
98
|
}
|
|
98
99
|
const rawTree = await this.manager.getTree(versionId);
|
|
99
100
|
const snapshotTree = buildGitTreeHierarchy(rawTree, this.blobsShaCache, true);
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
const groupIds = new Set<string>(snapshotFetchOptions?.loadingGroupIds ?? []);
|
|
102
|
+
if (groupIds.has("") || groupIds.size === 0) {
|
|
103
|
+
// If the root is in the groupIds, we don't need to filter the tree.
|
|
104
|
+
// We can just strip the tree of all groupIds.
|
|
105
|
+
// If we want to include the root groupId,
|
|
106
|
+
await this.stripTreeOfMissingLoadingGroupIds(snapshotTree, groupIds);
|
|
107
|
+
} else {
|
|
102
108
|
const hasFoundTree = await this.filterTreeByLoadingGroupIds(
|
|
103
109
|
snapshotTree,
|
|
104
110
|
groupIds,
|
|
105
111
|
false,
|
|
106
112
|
);
|
|
107
113
|
assert(hasFoundTree, 0x8dd /* No tree found for the given groupIds */);
|
|
108
|
-
} else {
|
|
109
|
-
await this.stripTreeOfLoadingGroupIds(snapshotTree);
|
|
110
114
|
}
|
|
111
115
|
|
|
112
116
|
const blobContents = new Map<string, ArrayBufferLike>();
|
|
@@ -131,16 +135,19 @@ export class LocalDocumentStorageService implements IDocumentStorageService {
|
|
|
131
135
|
* @param tree - The tree to strip of loading groupIds
|
|
132
136
|
* @returns a tree that has trees with groupIds that are empty
|
|
133
137
|
*/
|
|
134
|
-
private async
|
|
138
|
+
private async stripTreeOfMissingLoadingGroupIds(
|
|
139
|
+
tree: ISnapshotTreeEx,
|
|
140
|
+
loadingGroupIds: Set<string>,
|
|
141
|
+
) {
|
|
135
142
|
const groupId = await this.readGroupId(tree);
|
|
136
|
-
if (groupId !== undefined) {
|
|
143
|
+
if (groupId !== undefined && !loadingGroupIds.has(groupId)) {
|
|
137
144
|
// strip
|
|
138
145
|
this.stripTree(tree, groupId);
|
|
139
146
|
return;
|
|
140
147
|
}
|
|
141
148
|
await Promise.all(
|
|
142
149
|
Object.values(tree.trees).map(async (childTree) => {
|
|
143
|
-
await this.
|
|
150
|
+
await this.stripTreeOfMissingLoadingGroupIds(childTree, loadingGroupIds);
|
|
144
151
|
}),
|
|
145
152
|
);
|
|
146
153
|
}
|
package/src/localResolver.ts
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { IRequest } from "@fluidframework/core-interfaces";
|
|
7
|
-
import { assert } from "@fluidframework/core-utils";
|
|
8
|
-
import {
|
|
7
|
+
import { assert } from "@fluidframework/core-utils/internal";
|
|
8
|
+
import {
|
|
9
|
+
DriverHeader,
|
|
10
|
+
IResolvedUrl,
|
|
11
|
+
IUrlResolver,
|
|
12
|
+
} from "@fluidframework/driver-definitions/internal";
|
|
9
13
|
import { ScopeType } from "@fluidframework/protocol-definitions";
|
|
14
|
+
|
|
10
15
|
import { generateToken } from "./auth.js";
|
|
11
16
|
|
|
12
17
|
/**
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
import { strict as assert } from "assert";
|
|
6
|
-
import { DriverHeader } from "@fluidframework/driver-definitions";
|
|
7
|
-
import { LocalResolver } from "../localResolver.js";
|
|
8
|
-
describe("Local Driver Resolver", () => {
|
|
9
|
-
const documentId = "localResolverTest";
|
|
10
|
-
let resolver;
|
|
11
|
-
describe("CreateNew Flow", () => {
|
|
12
|
-
let request;
|
|
13
|
-
beforeEach(() => {
|
|
14
|
-
resolver = new LocalResolver();
|
|
15
|
-
request = resolver.createCreateNewRequest(documentId);
|
|
16
|
-
});
|
|
17
|
-
it("should successfully create a creatNewRequest", async () => {
|
|
18
|
-
assert(!!request.headers?.[DriverHeader.createNew], "Request should contain create new header");
|
|
19
|
-
const expectedUrl = `http://localhost:3000/${documentId}`;
|
|
20
|
-
assert.equal(request.url, expectedUrl, "The url in createNewRequest should match");
|
|
21
|
-
});
|
|
22
|
-
it("should successfully resolve a createNewRequest", async () => {
|
|
23
|
-
const resolvedUrl = await resolver.resolve(request);
|
|
24
|
-
const expectedUrl = `https://localhost:3000/tenantId/${documentId}`;
|
|
25
|
-
assert.equal(resolvedUrl.url, expectedUrl, "The resolved url should match");
|
|
26
|
-
});
|
|
27
|
-
it("should successfully create requestUrl for a data store from resolvedUrl", async () => {
|
|
28
|
-
const resolvedUrl = await resolver.resolve(request);
|
|
29
|
-
const dataStoreId = "datastore";
|
|
30
|
-
const response = await resolver.getAbsoluteUrl(resolvedUrl, dataStoreId);
|
|
31
|
-
const expectedUrl = `http://localhost:3000/${documentId}/${dataStoreId}`;
|
|
32
|
-
assert.equal(response, expectedUrl, "The requestUrl should match");
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
describe("Container Request Resolution", () => {
|
|
36
|
-
beforeEach(() => {
|
|
37
|
-
resolver = new LocalResolver();
|
|
38
|
-
});
|
|
39
|
-
it("should successfully resolve request for a container url", async () => {
|
|
40
|
-
const url = `http://localhost/${documentId}`;
|
|
41
|
-
const resolvedUrl = await resolver.resolve({ url });
|
|
42
|
-
const expectedUrl = `https://localhost:3000/tenantId/${documentId}`;
|
|
43
|
-
assert.equal(resolvedUrl.url, expectedUrl, "The resolved container url should match");
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
//# sourceMappingURL=localResolverTest.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"localResolverTest.spec.js","sourceRoot":"","sources":["../../src/test/localResolverTest.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACtC,MAAM,UAAU,GAAG,mBAAmB,CAAC;IACvC,IAAI,QAAuB,CAAC;IAE5B,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;QAC/B,IAAI,OAAiB,CAAC;QAEtB,UAAU,CAAC,GAAG,EAAE;YACf,QAAQ,GAAG,IAAI,aAAa,EAAE,CAAC;YAC/B,OAAO,GAAG,QAAQ,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACvD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,8CAA8C,EAAE,KAAK,IAAI,EAAE;YAC7D,MAAM,CACL,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,EAC3C,0CAA0C,CAC1C,CAAC;YACF,MAAM,WAAW,GAAG,yBAAyB,UAAU,EAAE,CAAC;YAC1D,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,WAAW,EAAE,0CAA0C,CAAC,CAAC;QACpF,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gDAAgD,EAAE,KAAK,IAAI,EAAE;YAC/D,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACpD,MAAM,WAAW,GAAG,mCAAmC,UAAU,EAAE,CAAC;YACpE,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,+BAA+B,CAAC,CAAC;QAC7E,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,yEAAyE,EAAE,KAAK,IAAI,EAAE;YACxF,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACpD,MAAM,WAAW,GAAG,WAAW,CAAC;YAChC,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,cAAc,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;YACzE,MAAM,WAAW,GAAG,yBAAyB,UAAU,IAAI,WAAW,EAAE,CAAC;YACzE,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,WAAW,EAAE,6BAA6B,CAAC,CAAC;QACpE,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;QAC7C,UAAU,CAAC,GAAG,EAAE;YACf,QAAQ,GAAG,IAAI,aAAa,EAAE,CAAC;QAChC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,yDAAyD,EAAE,KAAK,IAAI,EAAE;YACxE,MAAM,GAAG,GAAG,oBAAoB,UAAU,EAAE,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;YACpD,MAAM,WAAW,GAAG,mCAAmC,UAAU,EAAE,CAAC;YACpE,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,yCAAyC,CAAC,CAAC;QACvF,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { strict as assert } from \"assert\";\nimport { IRequest } from \"@fluidframework/core-interfaces\";\nimport { DriverHeader } from \"@fluidframework/driver-definitions\";\nimport { LocalResolver } from \"../localResolver.js\";\n\ndescribe(\"Local Driver Resolver\", () => {\n\tconst documentId = \"localResolverTest\";\n\tlet resolver: LocalResolver;\n\n\tdescribe(\"CreateNew Flow\", () => {\n\t\tlet request: IRequest;\n\n\t\tbeforeEach(() => {\n\t\t\tresolver = new LocalResolver();\n\t\t\trequest = resolver.createCreateNewRequest(documentId);\n\t\t});\n\n\t\tit(\"should successfully create a creatNewRequest\", async () => {\n\t\t\tassert(\n\t\t\t\t!!request.headers?.[DriverHeader.createNew],\n\t\t\t\t\"Request should contain create new header\",\n\t\t\t);\n\t\t\tconst expectedUrl = `http://localhost:3000/${documentId}`;\n\t\t\tassert.equal(request.url, expectedUrl, \"The url in createNewRequest should match\");\n\t\t});\n\n\t\tit(\"should successfully resolve a createNewRequest\", async () => {\n\t\t\tconst resolvedUrl = await resolver.resolve(request);\n\t\t\tconst expectedUrl = `https://localhost:3000/tenantId/${documentId}`;\n\t\t\tassert.equal(resolvedUrl.url, expectedUrl, \"The resolved url should match\");\n\t\t});\n\n\t\tit(\"should successfully create requestUrl for a data store from resolvedUrl\", async () => {\n\t\t\tconst resolvedUrl = await resolver.resolve(request);\n\t\t\tconst dataStoreId = \"datastore\";\n\t\t\tconst response = await resolver.getAbsoluteUrl(resolvedUrl, dataStoreId);\n\t\t\tconst expectedUrl = `http://localhost:3000/${documentId}/${dataStoreId}`;\n\t\t\tassert.equal(response, expectedUrl, \"The requestUrl should match\");\n\t\t});\n\t});\n\n\tdescribe(\"Container Request Resolution\", () => {\n\t\tbeforeEach(() => {\n\t\t\tresolver = new LocalResolver();\n\t\t});\n\n\t\tit(\"should successfully resolve request for a container url\", async () => {\n\t\t\tconst url = `http://localhost/${documentId}`;\n\t\t\tconst resolvedUrl = await resolver.resolve({ url });\n\t\t\tconst expectedUrl = `https://localhost:3000/tenantId/${documentId}`;\n\t\t\tassert.equal(resolvedUrl.url, expectedUrl, \"The resolved container url should match\");\n\t\t});\n\t});\n});\n"]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
use_current_ClassDeclaration_LocalDeltaStorageService(get_old_ClassDeclaration_LocalDeltaStorageService());
|
|
2
|
-
use_old_ClassDeclaration_LocalDeltaStorageService(get_current_ClassDeclaration_LocalDeltaStorageService());
|
|
3
|
-
use_current_ClassDeclaration_LocalDocumentDeltaConnection(get_old_ClassDeclaration_LocalDocumentDeltaConnection());
|
|
4
|
-
use_old_ClassDeclaration_LocalDocumentDeltaConnection(get_current_ClassDeclaration_LocalDocumentDeltaConnection());
|
|
5
|
-
use_current_ClassDeclaration_LocalDocumentService(
|
|
6
|
-
// @ts-expect-error compatibility expected to be broken
|
|
7
|
-
get_old_ClassDeclaration_LocalDocumentService());
|
|
8
|
-
use_old_ClassDeclaration_LocalDocumentService(get_current_ClassDeclaration_LocalDocumentService());
|
|
9
|
-
use_current_ClassDeclaration_LocalDocumentServiceFactory(get_old_ClassDeclaration_LocalDocumentServiceFactory());
|
|
10
|
-
use_old_ClassDeclaration_LocalDocumentServiceFactory(get_current_ClassDeclaration_LocalDocumentServiceFactory());
|
|
11
|
-
use_current_ClassDeclaration_LocalDocumentStorageService(
|
|
12
|
-
// @ts-expect-error compatibility expected to be broken
|
|
13
|
-
get_old_ClassDeclaration_LocalDocumentStorageService());
|
|
14
|
-
use_old_ClassDeclaration_LocalDocumentStorageService(
|
|
15
|
-
// @ts-expect-error compatibility expected to be broken
|
|
16
|
-
get_current_ClassDeclaration_LocalDocumentStorageService());
|
|
17
|
-
use_current_ClassDeclaration_LocalResolver(get_old_ClassDeclaration_LocalResolver());
|
|
18
|
-
use_old_ClassDeclaration_LocalResolver(get_current_ClassDeclaration_LocalResolver());
|
|
19
|
-
use_current_ClassDeclaration_LocalSessionStorageDbFactory(get_old_ClassDeclaration_LocalSessionStorageDbFactory());
|
|
20
|
-
use_old_ClassDeclaration_LocalSessionStorageDbFactory(get_current_ClassDeclaration_LocalSessionStorageDbFactory());
|
|
21
|
-
use_current_FunctionDeclaration_createLocalDocumentService(get_old_FunctionDeclaration_createLocalDocumentService());
|
|
22
|
-
use_old_FunctionDeclaration_createLocalDocumentService(get_current_FunctionDeclaration_createLocalDocumentService());
|
|
23
|
-
use_current_FunctionDeclaration_createLocalResolverCreateNewRequest(get_old_FunctionDeclaration_createLocalResolverCreateNewRequest());
|
|
24
|
-
use_old_FunctionDeclaration_createLocalResolverCreateNewRequest(get_current_FunctionDeclaration_createLocalResolverCreateNewRequest());
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=validateLocalDriverPrevious.generated.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validateLocalDriverPrevious.generated.js","sourceRoot":"","sources":["../../../src/test/types/validateLocalDriverPrevious.generated.ts"],"names":[],"mappings":"AAgCA,qDAAqD,CACjD,iDAAiD,EAAE,CAAC,CAAC;AAWzD,iDAAiD,CAC7C,qDAAqD,EAAE,CAAC,CAAC;AAW7D,yDAAyD,CACrD,qDAAqD,EAAE,CAAC,CAAC;AAW7D,qDAAqD,CACjD,yDAAyD,EAAE,CAAC,CAAC;AAWjE,iDAAiD;AAC7C,uDAAuD;AACvD,6CAA6C,EAAE,CAAC,CAAC;AAWrD,6CAA6C,CACzC,iDAAiD,EAAE,CAAC,CAAC;AAWzD,wDAAwD,CACpD,oDAAoD,EAAE,CAAC,CAAC;AAW5D,oDAAoD,CAChD,wDAAwD,EAAE,CAAC,CAAC;AAWhE,wDAAwD;AACpD,uDAAuD;AACvD,oDAAoD,EAAE,CAAC,CAAC;AAW5D,oDAAoD;AAChD,uDAAuD;AACvD,wDAAwD,EAAE,CAAC,CAAC;AAWhE,0CAA0C,CACtC,sCAAsC,EAAE,CAAC,CAAC;AAW9C,sCAAsC,CAClC,0CAA0C,EAAE,CAAC,CAAC;AAWlD,yDAAyD,CACrD,qDAAqD,EAAE,CAAC,CAAC;AAW7D,qDAAqD,CACjD,yDAAyD,EAAE,CAAC,CAAC;AAWjE,0DAA0D,CACtD,sDAAsD,EAAE,CAAC,CAAC;AAW9D,sDAAsD,CAClD,0DAA0D,EAAE,CAAC,CAAC;AAWlE,mEAAmE,CAC/D,+DAA+D,EAAE,CAAC,CAAC;AAWvE,+DAA+D,CAC3D,mEAAmE,EAAE,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/*\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.\n * Generated by fluid-type-test-generator in @fluidframework/build-tools.\n */\nimport type * as old from \"@fluidframework/local-driver-previous\";\nimport type * as current from \"../../index.js\";\n\n\n// See 'build-tools/src/type-test-generator/compatibility.ts' for more information.\ntype TypeOnly<T> = T extends number\n\t? number\n\t: T extends string\n\t? string\n\t: T extends boolean | bigint | symbol\n\t? T\n\t: {\n\t\t\t[P in keyof T]: TypeOnly<T[P]>;\n\t };\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDeltaStorageService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_LocalDeltaStorageService():\n TypeOnly<old.LocalDeltaStorageService>;\ndeclare function use_current_ClassDeclaration_LocalDeltaStorageService(\n use: TypeOnly<current.LocalDeltaStorageService>): void;\nuse_current_ClassDeclaration_LocalDeltaStorageService(\n get_old_ClassDeclaration_LocalDeltaStorageService());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDeltaStorageService\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_LocalDeltaStorageService():\n TypeOnly<current.LocalDeltaStorageService>;\ndeclare function use_old_ClassDeclaration_LocalDeltaStorageService(\n use: TypeOnly<old.LocalDeltaStorageService>): void;\nuse_old_ClassDeclaration_LocalDeltaStorageService(\n get_current_ClassDeclaration_LocalDeltaStorageService());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDocumentDeltaConnection\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_LocalDocumentDeltaConnection():\n TypeOnly<old.LocalDocumentDeltaConnection>;\ndeclare function use_current_ClassDeclaration_LocalDocumentDeltaConnection(\n use: TypeOnly<current.LocalDocumentDeltaConnection>): void;\nuse_current_ClassDeclaration_LocalDocumentDeltaConnection(\n get_old_ClassDeclaration_LocalDocumentDeltaConnection());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDocumentDeltaConnection\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_LocalDocumentDeltaConnection():\n TypeOnly<current.LocalDocumentDeltaConnection>;\ndeclare function use_old_ClassDeclaration_LocalDocumentDeltaConnection(\n use: TypeOnly<old.LocalDocumentDeltaConnection>): void;\nuse_old_ClassDeclaration_LocalDocumentDeltaConnection(\n get_current_ClassDeclaration_LocalDocumentDeltaConnection());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDocumentService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_LocalDocumentService():\n TypeOnly<old.LocalDocumentService>;\ndeclare function use_current_ClassDeclaration_LocalDocumentService(\n use: TypeOnly<current.LocalDocumentService>): void;\nuse_current_ClassDeclaration_LocalDocumentService(\n // @ts-expect-error compatibility expected to be broken\n get_old_ClassDeclaration_LocalDocumentService());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDocumentService\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_LocalDocumentService():\n TypeOnly<current.LocalDocumentService>;\ndeclare function use_old_ClassDeclaration_LocalDocumentService(\n use: TypeOnly<old.LocalDocumentService>): void;\nuse_old_ClassDeclaration_LocalDocumentService(\n get_current_ClassDeclaration_LocalDocumentService());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDocumentServiceFactory\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_LocalDocumentServiceFactory():\n TypeOnly<old.LocalDocumentServiceFactory>;\ndeclare function use_current_ClassDeclaration_LocalDocumentServiceFactory(\n use: TypeOnly<current.LocalDocumentServiceFactory>): void;\nuse_current_ClassDeclaration_LocalDocumentServiceFactory(\n get_old_ClassDeclaration_LocalDocumentServiceFactory());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDocumentServiceFactory\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_LocalDocumentServiceFactory():\n TypeOnly<current.LocalDocumentServiceFactory>;\ndeclare function use_old_ClassDeclaration_LocalDocumentServiceFactory(\n use: TypeOnly<old.LocalDocumentServiceFactory>): void;\nuse_old_ClassDeclaration_LocalDocumentServiceFactory(\n get_current_ClassDeclaration_LocalDocumentServiceFactory());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDocumentStorageService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_LocalDocumentStorageService():\n TypeOnly<old.LocalDocumentStorageService>;\ndeclare function use_current_ClassDeclaration_LocalDocumentStorageService(\n use: TypeOnly<current.LocalDocumentStorageService>): void;\nuse_current_ClassDeclaration_LocalDocumentStorageService(\n // @ts-expect-error compatibility expected to be broken\n get_old_ClassDeclaration_LocalDocumentStorageService());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalDocumentStorageService\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_LocalDocumentStorageService():\n TypeOnly<current.LocalDocumentStorageService>;\ndeclare function use_old_ClassDeclaration_LocalDocumentStorageService(\n use: TypeOnly<old.LocalDocumentStorageService>): void;\nuse_old_ClassDeclaration_LocalDocumentStorageService(\n // @ts-expect-error compatibility expected to be broken\n get_current_ClassDeclaration_LocalDocumentStorageService());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalResolver\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_LocalResolver():\n TypeOnly<old.LocalResolver>;\ndeclare function use_current_ClassDeclaration_LocalResolver(\n use: TypeOnly<current.LocalResolver>): void;\nuse_current_ClassDeclaration_LocalResolver(\n get_old_ClassDeclaration_LocalResolver());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalResolver\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_LocalResolver():\n TypeOnly<current.LocalResolver>;\ndeclare function use_old_ClassDeclaration_LocalResolver(\n use: TypeOnly<old.LocalResolver>): void;\nuse_old_ClassDeclaration_LocalResolver(\n get_current_ClassDeclaration_LocalResolver());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalSessionStorageDbFactory\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_LocalSessionStorageDbFactory():\n TypeOnly<old.LocalSessionStorageDbFactory>;\ndeclare function use_current_ClassDeclaration_LocalSessionStorageDbFactory(\n use: TypeOnly<current.LocalSessionStorageDbFactory>): void;\nuse_current_ClassDeclaration_LocalSessionStorageDbFactory(\n get_old_ClassDeclaration_LocalSessionStorageDbFactory());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_LocalSessionStorageDbFactory\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_LocalSessionStorageDbFactory():\n TypeOnly<current.LocalSessionStorageDbFactory>;\ndeclare function use_old_ClassDeclaration_LocalSessionStorageDbFactory(\n use: TypeOnly<old.LocalSessionStorageDbFactory>): void;\nuse_old_ClassDeclaration_LocalSessionStorageDbFactory(\n get_current_ClassDeclaration_LocalSessionStorageDbFactory());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_createLocalDocumentService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_createLocalDocumentService():\n TypeOnly<typeof old.createLocalDocumentService>;\ndeclare function use_current_FunctionDeclaration_createLocalDocumentService(\n use: TypeOnly<typeof current.createLocalDocumentService>): void;\nuse_current_FunctionDeclaration_createLocalDocumentService(\n get_old_FunctionDeclaration_createLocalDocumentService());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_createLocalDocumentService\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_createLocalDocumentService():\n TypeOnly<typeof current.createLocalDocumentService>;\ndeclare function use_old_FunctionDeclaration_createLocalDocumentService(\n use: TypeOnly<typeof old.createLocalDocumentService>): void;\nuse_old_FunctionDeclaration_createLocalDocumentService(\n get_current_FunctionDeclaration_createLocalDocumentService());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_createLocalResolverCreateNewRequest\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_createLocalResolverCreateNewRequest():\n TypeOnly<typeof old.createLocalResolverCreateNewRequest>;\ndeclare function use_current_FunctionDeclaration_createLocalResolverCreateNewRequest(\n use: TypeOnly<typeof current.createLocalResolverCreateNewRequest>): void;\nuse_current_FunctionDeclaration_createLocalResolverCreateNewRequest(\n get_old_FunctionDeclaration_createLocalResolverCreateNewRequest());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_createLocalResolverCreateNewRequest\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_createLocalResolverCreateNewRequest():\n TypeOnly<typeof current.createLocalResolverCreateNewRequest>;\ndeclare function use_old_FunctionDeclaration_createLocalResolverCreateNewRequest(\n use: TypeOnly<typeof old.createLocalResolverCreateNewRequest>): void;\nuse_old_FunctionDeclaration_createLocalResolverCreateNewRequest(\n get_current_FunctionDeclaration_createLocalResolverCreateNewRequest());\n"]}
|