@fluidframework/local-driver 2.118.0 → 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 +40 -4
- package/README.md +54 -51
- package/{api-extractor.json → api-extractor/api-extractor-model.json} +1 -1
- package/api-report/local-driver.legacy.beta.api.md +1 -0
- package/dist/auth.js +2 -3
- package/dist/auth.js.map +1 -1
- package/dist/ephemeralService.js +15 -12
- package/dist/ephemeralService.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/localCreateDocument.js +1 -2
- package/dist/localCreateDocument.js.map +1 -1
- package/dist/localDeltaStorageService.js +3 -0
- package/dist/localDeltaStorageService.js.map +1 -1
- package/dist/localDocumentDeltaConnection.d.ts.map +1 -1
- package/dist/localDocumentService.d.ts.map +1 -1
- package/dist/localDocumentService.js +11 -2
- package/dist/localDocumentService.js.map +1 -1
- package/dist/localDocumentServiceFactory.d.ts +9 -0
- package/dist/localDocumentServiceFactory.d.ts.map +1 -1
- package/dist/localDocumentServiceFactory.js +22 -10
- package/dist/localDocumentServiceFactory.js.map +1 -1
- package/dist/localDocumentStorageService.d.ts.map +1 -1
- package/dist/localDocumentStorageService.js +15 -5
- package/dist/localDocumentStorageService.js.map +1 -1
- package/dist/localLayerCompatState.d.ts +8 -1
- package/dist/localLayerCompatState.d.ts.map +1 -1
- package/dist/localLayerCompatState.js +20 -1
- package/dist/localLayerCompatState.js.map +1 -1
- package/dist/localResolver.js +5 -6
- package/dist/localResolver.js.map +1 -1
- package/dist/localSessionStorageDb.js +3 -7
- package/dist/localSessionStorageDb.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/lib/alpha.d.ts +1 -1
- package/lib/ephemeralService.js +11 -8
- package/lib/ephemeralService.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/legacy.d.ts +1 -1
- package/lib/localDeltaStorageService.js +3 -0
- package/lib/localDeltaStorageService.js.map +1 -1
- package/lib/localDocumentDeltaConnection.d.ts.map +1 -1
- package/lib/localDocumentService.d.ts.map +1 -1
- package/lib/localDocumentService.js +9 -0
- package/lib/localDocumentService.js.map +1 -1
- package/lib/localDocumentServiceFactory.d.ts +9 -0
- package/lib/localDocumentServiceFactory.d.ts.map +1 -1
- package/lib/localDocumentServiceFactory.js +23 -11
- package/lib/localDocumentServiceFactory.js.map +1 -1
- package/lib/localDocumentStorageService.d.ts.map +1 -1
- package/lib/localDocumentStorageService.js +16 -6
- package/lib/localDocumentStorageService.js.map +1 -1
- package/lib/localLayerCompatState.d.ts +8 -1
- package/lib/localLayerCompatState.d.ts.map +1 -1
- package/lib/localLayerCompatState.js +20 -1
- package/lib/localLayerCompatState.js.map +1 -1
- package/lib/localResolver.js +3 -4
- package/lib/localResolver.js.map +1 -1
- package/lib/localSessionStorageDb.js +3 -7
- package/lib/localSessionStorageDb.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.d.ts.map +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/public.d.ts +1 -1
- package/package.json +42 -58
- package/src/ephemeralService.ts +1 -1
- package/src/index.ts +4 -1
- package/src/localDocumentServiceFactory.ts +15 -1
- package/src/localDocumentStorageService.ts +9 -3
- package/src/localLayerCompatState.ts +29 -1
- package/src/packageVersion.ts +1 -1
- package/tsconfig.json +1 -1
- package/alpha.d.ts +0 -11
- package/internal.d.ts +0 -11
- package/legacy.d.ts +0 -11
- /package/api-extractor/{api-extractor.current.json → api-extractor-report.current.json} +0 -0
- /package/api-extractor/{api-extractor.legacy.json → api-extractor-report.legacy.json} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/local-driver",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Fluid local driver",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -13,48 +13,31 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"require": {
|
|
21
|
-
"types": "./dist/public.d.ts",
|
|
22
|
-
"default": "./dist/index.js"
|
|
16
|
+
"types": "./lib/public.d.ts",
|
|
17
|
+
"default": "./lib/index.js",
|
|
18
|
+
"internal-entrypoint-generation": {
|
|
19
|
+
"types": "./dist/public.d.ts"
|
|
23
20
|
}
|
|
24
21
|
},
|
|
25
22
|
"./alpha": {
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"require": {
|
|
31
|
-
"types": "./dist/alpha.d.ts",
|
|
32
|
-
"default": "./dist/index.js"
|
|
23
|
+
"types": "./lib/alpha.d.ts",
|
|
24
|
+
"default": "./lib/index.js",
|
|
25
|
+
"internal-entrypoint-generation": {
|
|
26
|
+
"types": "./dist/alpha.d.ts"
|
|
33
27
|
}
|
|
34
28
|
},
|
|
35
29
|
"./legacy": {
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"require": {
|
|
41
|
-
"types": "./dist/legacy.d.ts",
|
|
42
|
-
"default": "./dist/index.js"
|
|
30
|
+
"types": "./lib/legacy.d.ts",
|
|
31
|
+
"default": "./lib/index.js",
|
|
32
|
+
"internal-entrypoint-generation": {
|
|
33
|
+
"types": "./dist/legacy.d.ts"
|
|
43
34
|
}
|
|
44
35
|
},
|
|
45
36
|
"./internal": {
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
"default": "./lib/index.js"
|
|
49
|
-
},
|
|
50
|
-
"require": {
|
|
51
|
-
"types": "./dist/index.d.ts",
|
|
52
|
-
"default": "./dist/index.js"
|
|
53
|
-
}
|
|
37
|
+
"types": "./lib/index.d.ts",
|
|
38
|
+
"default": "./lib/index.js"
|
|
54
39
|
}
|
|
55
40
|
},
|
|
56
|
-
"main": "lib/index.js",
|
|
57
|
-
"types": "lib/public.d.ts",
|
|
58
41
|
"c8": {
|
|
59
42
|
"all": true,
|
|
60
43
|
"cache-dir": "nyc/.cache",
|
|
@@ -78,37 +61,37 @@
|
|
|
78
61
|
"temp-directory": "nyc/.nyc_output"
|
|
79
62
|
},
|
|
80
63
|
"dependencies": {
|
|
81
|
-
"@fluid-internal/client-utils": "~
|
|
82
|
-
"@fluidframework/container-definitions": "~
|
|
83
|
-
"@fluidframework/container-loader": "~
|
|
84
|
-
"@fluidframework/container-runtime": "~
|
|
85
|
-
"@fluidframework/container-runtime-definitions": "~
|
|
86
|
-
"@fluidframework/core-interfaces": "~
|
|
87
|
-
"@fluidframework/core-utils": "~
|
|
88
|
-
"@fluidframework/driver-base": "~
|
|
89
|
-
"@fluidframework/driver-definitions": "~
|
|
90
|
-
"@fluidframework/driver-utils": "~
|
|
64
|
+
"@fluid-internal/client-utils": "~3.0.0",
|
|
65
|
+
"@fluidframework/container-definitions": "~3.0.0",
|
|
66
|
+
"@fluidframework/container-loader": "~3.0.0",
|
|
67
|
+
"@fluidframework/container-runtime": "~3.0.0",
|
|
68
|
+
"@fluidframework/container-runtime-definitions": "~3.0.0",
|
|
69
|
+
"@fluidframework/core-interfaces": "~3.0.0",
|
|
70
|
+
"@fluidframework/core-utils": "~3.0.0",
|
|
71
|
+
"@fluidframework/driver-base": "~3.0.0",
|
|
72
|
+
"@fluidframework/driver-definitions": "~3.0.0",
|
|
73
|
+
"@fluidframework/driver-utils": "~3.0.0",
|
|
91
74
|
"@fluidframework/protocol-base": "^7.0.1",
|
|
92
|
-
"@fluidframework/routerlicious-driver": "~
|
|
93
|
-
"@fluidframework/runtime-utils": "~
|
|
75
|
+
"@fluidframework/routerlicious-driver": "~3.0.0",
|
|
76
|
+
"@fluidframework/runtime-utils": "~3.0.0",
|
|
94
77
|
"@fluidframework/server-local-server": "^7.0.1",
|
|
95
78
|
"@fluidframework/server-services-client": "^7.0.1",
|
|
96
79
|
"@fluidframework/server-services-core": "^7.0.1",
|
|
97
80
|
"@fluidframework/server-test-utils": "^7.0.1",
|
|
98
|
-
"@fluidframework/telemetry-utils": "~
|
|
81
|
+
"@fluidframework/telemetry-utils": "~3.0.0",
|
|
99
82
|
"jsrsasign": "^11.1.1",
|
|
100
83
|
"uuid": "^11.1.0"
|
|
101
84
|
},
|
|
102
85
|
"devDependencies": {
|
|
103
86
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
104
87
|
"@biomejs/biome": "~2.4.5",
|
|
105
|
-
"@fluid-internal/mocha-test-setup": "~
|
|
88
|
+
"@fluid-internal/mocha-test-setup": "~3.0.0",
|
|
106
89
|
"@fluid-tools/build-cli": "^0.67.0",
|
|
107
90
|
"@fluidframework/build-common": "^2.0.3",
|
|
108
91
|
"@fluidframework/build-tools": "^0.67.0",
|
|
109
92
|
"@fluidframework/eslint-config-fluid": "^14.0.0",
|
|
110
93
|
"@fluidframework/local-driver-previous": "npm:@fluidframework/local-driver@2.116.0",
|
|
111
|
-
"@fluidframework/shared-object-base": "~
|
|
94
|
+
"@fluidframework/shared-object-base": "~3.0.0",
|
|
112
95
|
"@microsoft/api-extractor": "7.58.1",
|
|
113
96
|
"@types/jsrsasign": "^10.5.12",
|
|
114
97
|
"@types/mocha": "^10.0.10",
|
|
@@ -123,7 +106,7 @@
|
|
|
123
106
|
"mocha-multi-reporters": "^1.5.1",
|
|
124
107
|
"rimraf": "^6.1.3",
|
|
125
108
|
"socket.io-client": "^4.8.3",
|
|
126
|
-
"typescript": "~
|
|
109
|
+
"typescript": "~6.0.3"
|
|
127
110
|
},
|
|
128
111
|
"typeValidation": {
|
|
129
112
|
"broken": {},
|
|
@@ -132,20 +115,21 @@
|
|
|
132
115
|
"scripts": {
|
|
133
116
|
"build": "fluid-build . --task build",
|
|
134
117
|
"build:api-reports": "concurrently \"npm:build:api-reports:*\"",
|
|
135
|
-
"build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json",
|
|
136
|
-
"build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json",
|
|
118
|
+
"build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor-report.current.json",
|
|
119
|
+
"build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor-report.legacy.json",
|
|
120
|
+
"build:cjs": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
|
|
137
121
|
"build:commonjs": "fluid-build . --task commonjs",
|
|
138
122
|
"build:compile": "fluid-build . --task compile",
|
|
139
|
-
"build:docs": "api-extractor run --local",
|
|
123
|
+
"build:docs": "api-extractor run --local --config api-extractor/api-extractor-model.json",
|
|
140
124
|
"build:entrypoints": "fluid-build . --task build:entrypoints",
|
|
141
125
|
"build:entrypoints:cjs": "flub generate entrypoints --resolutionConditions require --outFileLegacyBeta legacy --outDir ./dist",
|
|
142
|
-
"build:entrypoints:esm": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib
|
|
143
|
-
"build:
|
|
126
|
+
"build:entrypoints:esm": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib",
|
|
127
|
+
"build:esm": "tsc --project ./tsconfig.json",
|
|
144
128
|
"build:genver": "gen-version",
|
|
145
129
|
"build:test": "concurrently npm:build:test:esm npm:build:test:cjs",
|
|
146
130
|
"build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
|
|
147
131
|
"build:test:esm": "tsc --project ./src/test/tsconfig.json",
|
|
148
|
-
"check:are-the-types-wrong": "attw --pack .",
|
|
132
|
+
"check:are-the-types-wrong": "attw --pack . --profile esm-only",
|
|
149
133
|
"check:biome": "biome check .",
|
|
150
134
|
"check:exports": "concurrently \"npm:check:exports:*\"",
|
|
151
135
|
"check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json",
|
|
@@ -156,10 +140,11 @@
|
|
|
156
140
|
"check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json",
|
|
157
141
|
"check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json",
|
|
158
142
|
"check:format": "npm run check:biome",
|
|
143
|
+
"check:types:inexactOptionalPropertyTypes": "tsc --project ./tsconfig.json --noEmit --exactOptionalPropertyTypes false --skipLibCheck --emitDeclarationOnly false --tsBuildInfoFile ./tsconfig.inexactOptionalPropertyTypes.tsbuildinfo",
|
|
159
144
|
"ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"",
|
|
160
|
-
"ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json",
|
|
161
|
-
"ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json",
|
|
162
|
-
"ci:build:docs": "api-extractor run",
|
|
145
|
+
"ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor-report.current.json",
|
|
146
|
+
"ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor-report.legacy.json",
|
|
147
|
+
"ci:build:docs": "api-extractor run --config api-extractor/api-extractor-model.json",
|
|
163
148
|
"clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
|
|
164
149
|
"eslint": "eslint --quiet --format stylish src",
|
|
165
150
|
"eslint:fix": "eslint --quiet --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
@@ -173,7 +158,6 @@
|
|
|
173
158
|
"test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha",
|
|
174
159
|
"test:mocha:esm": "mocha",
|
|
175
160
|
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
176
|
-
"tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
|
|
177
161
|
"typetests:gen": "flub generate typetests --dir . -v"
|
|
178
162
|
}
|
|
179
163
|
}
|
package/src/ephemeralService.ts
CHANGED
|
@@ -421,7 +421,7 @@ const containerRuntimeLoader: ContainerRuntimeLoader = async (
|
|
|
421
421
|
registry: parameters.registry,
|
|
422
422
|
provideEntryPoint: parameters.provideEntryPoint,
|
|
423
423
|
existing: parameters.existing,
|
|
424
|
-
|
|
424
|
+
oldestSupportedClient: parameters.minVersionForCollab,
|
|
425
425
|
runtimeOptions: { enableRuntimeIdCompressor: "on" },
|
|
426
426
|
});
|
|
427
427
|
if (!parameters.existing) {
|
package/src/index.ts
CHANGED
|
@@ -9,7 +9,10 @@ export { createLocalDocumentService, LocalDocumentService } from "./localDocumen
|
|
|
9
9
|
export { LocalDocumentServiceFactory } from "./localDocumentServiceFactory.js";
|
|
10
10
|
export { LocalDocumentStorageService } from "./localDocumentStorageService.js";
|
|
11
11
|
export { createLocalResolverCreateNewRequest, LocalResolver } from "./localResolver.js";
|
|
12
|
-
export {
|
|
12
|
+
export {
|
|
13
|
+
localDriverCompatDetailsForLoader,
|
|
14
|
+
localDriverCompatRequirementsForLoader,
|
|
15
|
+
} from "./localLayerCompatState.js";
|
|
13
16
|
export { LocalSessionStorageDbFactory } from "./localSessionStorageDb.js";
|
|
14
17
|
export type {
|
|
15
18
|
EphemeralService,
|
|
@@ -18,7 +18,10 @@ import type { ILocalDeltaConnectionServer } from "@fluidframework/server-local-s
|
|
|
18
18
|
import { createDocument } from "./localCreateDocument.js";
|
|
19
19
|
import type { LocalDocumentDeltaConnection } from "./localDocumentDeltaConnection.js";
|
|
20
20
|
import { createLocalDocumentService } from "./localDocumentService.js";
|
|
21
|
-
import {
|
|
21
|
+
import {
|
|
22
|
+
localDriverCompatDetailsForLoader,
|
|
23
|
+
localDriverCompatRequirementsForLoader,
|
|
24
|
+
} from "./localLayerCompatState.js";
|
|
22
25
|
|
|
23
26
|
/**
|
|
24
27
|
* Implementation of document service factory for local use.
|
|
@@ -47,6 +50,17 @@ export class LocalDocumentServiceFactory implements IDocumentServiceFactory {
|
|
|
47
50
|
*/
|
|
48
51
|
public readonly ILayerCompatDetails?: unknown = localDriverCompatDetailsForLoader;
|
|
49
52
|
|
|
53
|
+
/**
|
|
54
|
+
* The requirements that the Loader layer must meet to be compatible with this Local Driver. This is exposed to
|
|
55
|
+
* the Loader layer so that it can validate Loader / Driver compatibility on this Driver's behalf (the Driver has
|
|
56
|
+
* no reference to the Loader to validate it directly).
|
|
57
|
+
* @remarks This is for internal use only.
|
|
58
|
+
* The type of this should be ILayerCompatSupportRequirements. However, ILayerCompatSupportRequirements is
|
|
59
|
+
* internal and this class is currently marked as legacy alpha. So, using unknown here.
|
|
60
|
+
*/
|
|
61
|
+
public readonly ILayerCompatSupportRequirements?: unknown =
|
|
62
|
+
localDriverCompatRequirementsForLoader;
|
|
63
|
+
|
|
50
64
|
public async createContainer(
|
|
51
65
|
createNewSummary: ISummaryTree | undefined,
|
|
52
66
|
resolvedUrl: IResolvedUrl,
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
import type { IsoBufferEncoding } from "@fluid-internal/client-utils";
|
|
6
7
|
import {
|
|
8
|
+
ArrayBufferLikeToArrayBuffer,
|
|
7
9
|
IsoBuffer,
|
|
8
10
|
Uint8ArrayToString,
|
|
9
11
|
bufferToString,
|
|
@@ -150,7 +152,7 @@ export class LocalDocumentStorageService implements IDocumentStorageService {
|
|
|
150
152
|
const groupId = await this.readGroupId(tree);
|
|
151
153
|
if (groupId === undefined || loadingGroupIds.has(groupId)) {
|
|
152
154
|
for (const id of Object.values(tree.blobs)) {
|
|
153
|
-
blobContents.set(id, await this.readBlob(id));
|
|
155
|
+
blobContents.set(id, ArrayBufferLikeToArrayBuffer(await this.readBlob(id)));
|
|
154
156
|
}
|
|
155
157
|
await Promise.all(
|
|
156
158
|
Object.values(tree.trees).map(async (childTree) => {
|
|
@@ -204,7 +206,7 @@ export class LocalDocumentStorageService implements IDocumentStorageService {
|
|
|
204
206
|
// Collect blobsIds so that we can return blob contents only for these blobs.
|
|
205
207
|
if (groupIdInLoadingGroupIds || isChildOfAncestorWithGroupId) {
|
|
206
208
|
for (const id of Object.values(tree.blobs)) {
|
|
207
|
-
blobContents.set(id, await this.readBlob(id));
|
|
209
|
+
blobContents.set(id, ArrayBufferLikeToArrayBuffer(await this.readBlob(id)));
|
|
208
210
|
}
|
|
209
211
|
}
|
|
210
212
|
// Keep tree if it has a child that has a groupId that is in loadingGroupIds
|
|
@@ -291,7 +293,11 @@ export class LocalDocumentStorageService implements IDocumentStorageService {
|
|
|
291
293
|
public async readBlob(blobId: string): Promise<ArrayBufferLike> {
|
|
292
294
|
const blob = await this.manager.getBlob(blobId);
|
|
293
295
|
this.blobsShaCache.set(blob.sha, "");
|
|
294
|
-
|
|
296
|
+
// stringToBuffer has only ever reliably supported limited encodings.
|
|
297
|
+
// Despite server `IBlob.encoding` type being string, cast as one of
|
|
298
|
+
// the supported types and expect throw under browser if not.
|
|
299
|
+
// TODO: AB:#81373: Consider formalizing `IBlob.encoding` literals allowed.
|
|
300
|
+
const bufferContent = stringToBuffer(blob.content, blob.encoding as IsoBufferEncoding);
|
|
295
301
|
return bufferContent;
|
|
296
302
|
}
|
|
297
303
|
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
generation,
|
|
8
|
+
LayerCompatibilityPolicyWindowMonths,
|
|
9
|
+
type ILayerCompatDetails,
|
|
10
|
+
type ILayerCompatSupportRequirements,
|
|
11
|
+
} from "@fluid-internal/client-utils";
|
|
7
12
|
|
|
8
13
|
import { pkgVersion } from "./packageVersion.js";
|
|
9
14
|
|
|
@@ -25,3 +30,26 @@ export const localDriverCompatDetailsForLoader: ILayerCompatDetails = {
|
|
|
25
30
|
*/
|
|
26
31
|
supportedFeatures: new Set<string>(),
|
|
27
32
|
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The requirements that the Loader layer must meet to be compatible with this Local Driver. This is published to
|
|
36
|
+
* the Loader layer (which holds the reference to this Driver) so that it can validate Loader / Driver compatibility
|
|
37
|
+
* on this Driver's behalf.
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
export const localDriverCompatRequirementsForLoader: ILayerCompatSupportRequirements = {
|
|
41
|
+
/**
|
|
42
|
+
* Minimum generation that Loader must be at to be compatible with this Driver. This is calculated based on the
|
|
43
|
+
* LayerCompatibilityPolicyWindowMonths.NewDriverOldLoader value which defines how many months old can the Loader
|
|
44
|
+
* layer be compared to the Driver layer for them to still be considered compatible.
|
|
45
|
+
* The minimum valid generation value is 0.
|
|
46
|
+
*/
|
|
47
|
+
minSupportedGeneration: Math.max(
|
|
48
|
+
0,
|
|
49
|
+
generation - LayerCompatibilityPolicyWindowMonths.NewDriverOldLoader,
|
|
50
|
+
),
|
|
51
|
+
/**
|
|
52
|
+
* The features that the Loader must support to be compatible with this Driver.
|
|
53
|
+
*/
|
|
54
|
+
requiredFeatures: [],
|
|
55
|
+
};
|
package/src/packageVersion.ts
CHANGED
package/tsconfig.json
CHANGED
package/alpha.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/*
|
|
7
|
-
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat" in @fluid-tools/build-cli.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export * from "./lib/alpha.js";
|
package/internal.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/*
|
|
7
|
-
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat" in @fluid-tools/build-cli.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export * from "./lib/index.js";
|
package/legacy.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/*
|
|
7
|
-
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat" in @fluid-tools/build-cli.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export * from "./lib/legacy.js";
|
|
File without changes
|
|
File without changes
|