@fluidframework/odsp-driver 2.103.0 → 2.111.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 +14 -0
- package/api-report/odsp-driver.legacy.beta.api.md +6 -6
- package/dist/WriteBufferUtils.d.ts.map +1 -1
- package/dist/WriteBufferUtils.js +1 -1
- package/dist/WriteBufferUtils.js.map +1 -1
- package/dist/contractsPublic.d.ts +4 -4
- package/dist/contractsPublic.d.ts.map +1 -1
- package/dist/contractsPublic.js.map +1 -1
- package/dist/createFile/createFile.d.ts.map +1 -1
- package/dist/createFile/createFile.js.map +1 -1
- package/dist/createFile/createNewContainerOnExistingFile.d.ts.map +1 -1
- package/dist/createFile/createNewContainerOnExistingFile.js.map +1 -1
- package/dist/createFile/createNewUtils.d.ts.map +1 -1
- package/dist/createFile/createNewUtils.js.map +1 -1
- package/dist/fetchSnapshot.d.ts +2 -3
- package/dist/fetchSnapshot.d.ts.map +1 -1
- package/dist/fetchSnapshot.js +7 -9
- package/dist/fetchSnapshot.js.map +1 -1
- package/dist/getFileLink.d.ts.map +1 -1
- package/dist/getFileLink.js +1 -1
- package/dist/getFileLink.js.map +1 -1
- package/dist/localOdspDriver/localOdspDocumentService.d.ts +1 -1
- package/dist/localOdspDriver/localOdspDocumentService.d.ts.map +1 -1
- package/dist/localOdspDriver/localOdspDocumentService.js +1 -1
- package/dist/localOdspDriver/localOdspDocumentService.js.map +1 -1
- package/dist/localOdspDriver/localOdspDocumentServiceFactory.d.ts +1 -3
- package/dist/localOdspDriver/localOdspDocumentServiceFactory.d.ts.map +1 -1
- package/dist/localOdspDriver/localOdspDocumentServiceFactory.js +1 -1
- package/dist/localOdspDriver/localOdspDocumentServiceFactory.js.map +1 -1
- package/dist/localOdspDriver/localOdspDocumentStorageManager.d.ts +2 -2
- package/dist/localOdspDriver/localOdspDocumentStorageManager.d.ts.map +1 -1
- package/dist/localOdspDriver/localOdspDocumentStorageManager.js +1 -1
- package/dist/localOdspDriver/localOdspDocumentStorageManager.js.map +1 -1
- package/dist/odspDelayLoadedDeltaStream.d.ts +1 -1
- package/dist/odspDelayLoadedDeltaStream.d.ts.map +1 -1
- package/dist/odspDelayLoadedDeltaStream.js +3 -3
- package/dist/odspDelayLoadedDeltaStream.js.map +1 -1
- package/dist/odspDeltaStorageService.d.ts.map +1 -1
- package/dist/odspDeltaStorageService.js.map +1 -1
- package/dist/odspDocumentDeltaConnection.d.ts.map +1 -1
- package/dist/odspDocumentDeltaConnection.js +4 -4
- package/dist/odspDocumentDeltaConnection.js.map +1 -1
- package/dist/odspDocumentService.d.ts.map +1 -1
- package/dist/odspDocumentService.js.map +1 -1
- package/dist/odspDocumentStorageManager.d.ts.map +1 -1
- package/dist/odspDocumentStorageManager.js +3 -3
- package/dist/odspDocumentStorageManager.js.map +1 -1
- package/dist/odspDocumentStorageServiceBase.d.ts +2 -2
- package/dist/odspDocumentStorageServiceBase.d.ts.map +1 -1
- package/dist/odspDocumentStorageServiceBase.js +1 -1
- package/dist/odspDocumentStorageServiceBase.js.map +1 -1
- package/dist/odspSummaryUploadManager.d.ts.map +1 -1
- package/dist/odspSummaryUploadManager.js.map +1 -1
- package/dist/odspUtils.d.ts.map +1 -1
- package/dist/odspUtils.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/prefetchLatestSnapshot.d.ts +5 -5
- package/dist/prefetchLatestSnapshot.d.ts.map +1 -1
- package/dist/prefetchLatestSnapshot.js +6 -6
- package/dist/prefetchLatestSnapshot.js.map +1 -1
- package/dist/retryErrorsStorageAdapter.d.ts.map +1 -1
- package/dist/retryErrorsStorageAdapter.js.map +1 -1
- package/dist/vroom.d.ts.map +1 -1
- package/dist/vroom.js.map +1 -1
- package/dist/zipItDataRepresentationUtils.d.ts +1 -1
- package/dist/zipItDataRepresentationUtils.d.ts.map +1 -1
- package/dist/zipItDataRepresentationUtils.js +4 -3
- package/dist/zipItDataRepresentationUtils.js.map +1 -1
- package/lib/WriteBufferUtils.d.ts.map +1 -1
- package/lib/WriteBufferUtils.js +1 -1
- package/lib/WriteBufferUtils.js.map +1 -1
- package/lib/contractsPublic.d.ts +4 -4
- package/lib/contractsPublic.d.ts.map +1 -1
- package/lib/contractsPublic.js.map +1 -1
- package/lib/createFile/createFile.d.ts.map +1 -1
- package/lib/createFile/createFile.js.map +1 -1
- package/lib/createFile/createNewContainerOnExistingFile.d.ts.map +1 -1
- package/lib/createFile/createNewContainerOnExistingFile.js.map +1 -1
- package/lib/createFile/createNewUtils.d.ts.map +1 -1
- package/lib/createFile/createNewUtils.js.map +1 -1
- package/lib/fetchSnapshot.d.ts +2 -3
- package/lib/fetchSnapshot.d.ts.map +1 -1
- package/lib/fetchSnapshot.js +7 -9
- package/lib/fetchSnapshot.js.map +1 -1
- package/lib/getFileLink.d.ts.map +1 -1
- package/lib/getFileLink.js +2 -2
- package/lib/getFileLink.js.map +1 -1
- package/lib/localOdspDriver/localOdspDocumentService.d.ts +1 -1
- package/lib/localOdspDriver/localOdspDocumentService.d.ts.map +1 -1
- package/lib/localOdspDriver/localOdspDocumentService.js +1 -1
- package/lib/localOdspDriver/localOdspDocumentService.js.map +1 -1
- package/lib/localOdspDriver/localOdspDocumentServiceFactory.d.ts +1 -3
- package/lib/localOdspDriver/localOdspDocumentServiceFactory.d.ts.map +1 -1
- package/lib/localOdspDriver/localOdspDocumentServiceFactory.js +1 -1
- package/lib/localOdspDriver/localOdspDocumentServiceFactory.js.map +1 -1
- package/lib/localOdspDriver/localOdspDocumentStorageManager.d.ts +2 -2
- package/lib/localOdspDriver/localOdspDocumentStorageManager.d.ts.map +1 -1
- package/lib/localOdspDriver/localOdspDocumentStorageManager.js +1 -1
- package/lib/localOdspDriver/localOdspDocumentStorageManager.js.map +1 -1
- package/lib/odspDelayLoadedDeltaStream.d.ts +1 -1
- package/lib/odspDelayLoadedDeltaStream.d.ts.map +1 -1
- package/lib/odspDelayLoadedDeltaStream.js +3 -3
- package/lib/odspDelayLoadedDeltaStream.js.map +1 -1
- package/lib/odspDeltaStorageService.d.ts.map +1 -1
- package/lib/odspDeltaStorageService.js.map +1 -1
- package/lib/odspDocumentDeltaConnection.d.ts.map +1 -1
- package/lib/odspDocumentDeltaConnection.js +4 -4
- package/lib/odspDocumentDeltaConnection.js.map +1 -1
- package/lib/odspDocumentService.d.ts.map +1 -1
- package/lib/odspDocumentService.js.map +1 -1
- package/lib/odspDocumentStorageManager.d.ts.map +1 -1
- package/lib/odspDocumentStorageManager.js +4 -4
- package/lib/odspDocumentStorageManager.js.map +1 -1
- package/lib/odspDocumentStorageServiceBase.d.ts +2 -2
- package/lib/odspDocumentStorageServiceBase.d.ts.map +1 -1
- package/lib/odspDocumentStorageServiceBase.js +1 -1
- package/lib/odspDocumentStorageServiceBase.js.map +1 -1
- package/lib/odspSummaryUploadManager.d.ts.map +1 -1
- package/lib/odspSummaryUploadManager.js +1 -1
- package/lib/odspSummaryUploadManager.js.map +1 -1
- package/lib/odspUtils.d.ts.map +1 -1
- package/lib/odspUtils.js +1 -1
- package/lib/odspUtils.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/prefetchLatestSnapshot.d.ts +5 -5
- package/lib/prefetchLatestSnapshot.d.ts.map +1 -1
- package/lib/prefetchLatestSnapshot.js +6 -6
- package/lib/prefetchLatestSnapshot.js.map +1 -1
- package/lib/retryErrorsStorageAdapter.d.ts.map +1 -1
- package/lib/retryErrorsStorageAdapter.js.map +1 -1
- package/lib/vroom.d.ts.map +1 -1
- package/lib/vroom.js.map +1 -1
- package/lib/zipItDataRepresentationUtils.d.ts +1 -1
- package/lib/zipItDataRepresentationUtils.d.ts.map +1 -1
- package/lib/zipItDataRepresentationUtils.js +4 -3
- package/lib/zipItDataRepresentationUtils.js.map +1 -1
- package/package.json +14 -14
- package/src/WriteBufferUtils.ts +1 -5
- package/src/contractsPublic.ts +4 -4
- package/src/createFile/createFile.ts +1 -1
- package/src/createFile/createNewContainerOnExistingFile.ts +1 -1
- package/src/createFile/createNewUtils.ts +1 -1
- package/src/fetchSnapshot.ts +5 -9
- package/src/getFileLink.ts +3 -3
- package/src/localOdspDriver/localOdspDocumentService.ts +1 -1
- package/src/localOdspDriver/localOdspDocumentServiceFactory.ts +1 -8
- package/src/localOdspDriver/localOdspDocumentStorageManager.ts +2 -3
- package/src/odspDelayLoadedDeltaStream.ts +3 -3
- package/src/odspDeltaStorageService.ts +1 -1
- package/src/odspDocumentDeltaConnection.ts +3 -5
- package/src/odspDocumentService.ts +2 -2
- package/src/odspDocumentStorageManager.ts +3 -6
- package/src/odspDocumentStorageServiceBase.ts +2 -2
- package/src/odspSummaryUploadManager.ts +2 -2
- package/src/odspUtils.ts +2 -2
- package/src/packageVersion.ts +1 -1
- package/src/prefetchLatestSnapshot.ts +7 -8
- package/src/retryErrorsStorageAdapter.ts +1 -1
- package/src/vroom.ts +1 -1
- package/src/zipItDataRepresentationUtils.ts +4 -8
- package/tsconfig.json +2 -0
|
@@ -43,22 +43,22 @@ import {
|
|
|
43
43
|
} from "./odspUtils.js";
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Function to prefetch the snapshot and cached it in the
|
|
46
|
+
* Function to prefetch the snapshot and cached it in the persistent cache, so that when the container is loaded
|
|
47
47
|
* the cached latest snapshot could be used and removes the network call from the critical path.
|
|
48
48
|
*
|
|
49
49
|
* @param resolvedUrl - Resolved url to fetch the snapshot.
|
|
50
50
|
* @param getStorageToken - function that can provide the storage token for a given site. This is
|
|
51
51
|
* is also referred to as the "VROOM" token in SPO.
|
|
52
52
|
* @param persistedCache - Cache to store the fetched snapshot.
|
|
53
|
-
* @param
|
|
53
|
+
* @param _forceAccessTokenViaAuthorizationHeader - Deprecated and not used.
|
|
54
54
|
* @param logger - Logger to have telemetry events.
|
|
55
55
|
* @param hostSnapshotFetchOptions - Options to fetch the snapshot if any. Otherwise default will be used.
|
|
56
56
|
* @param enableRedeemFallback - True to have the sharing link redeem fallback in case the Trees Latest/Redeem
|
|
57
57
|
* 1RT call fails with redeem error. During fallback it will first redeem the sharing link and then make
|
|
58
58
|
* the Trees latest call.
|
|
59
59
|
* Note: this can be considered deprecated - it will be replaced with `snapshotFormatFetchType`.
|
|
60
|
-
* @param
|
|
61
|
-
* @param
|
|
60
|
+
* @param _fetchBinarySnapshotFormat - Deprecated and not used.
|
|
61
|
+
* @param _snapshotFormatFetchType - Deprecated and not used.
|
|
62
62
|
* @param odspDocumentServiceFactory - factory to access the non persistent cache and store the prefetch promise.
|
|
63
63
|
*
|
|
64
64
|
* @returns `true` if the snapshot is cached, `false` otherwise.
|
|
@@ -69,12 +69,12 @@ export async function prefetchLatestSnapshot(
|
|
|
69
69
|
resolvedUrl: IResolvedUrl,
|
|
70
70
|
getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>,
|
|
71
71
|
persistedCache: IPersistedCache,
|
|
72
|
-
|
|
72
|
+
_forceAccessTokenViaAuthorizationHeader: boolean,
|
|
73
73
|
logger: ITelemetryBaseLogger,
|
|
74
74
|
hostSnapshotFetchOptions: ISnapshotOptions | undefined,
|
|
75
75
|
enableRedeemFallback: boolean = true,
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
_fetchBinarySnapshotFormat?: boolean,
|
|
77
|
+
_snapshotFormatFetchType?: SnapshotFormatSupportType,
|
|
78
78
|
odspDocumentServiceFactory?: OdspDocumentServiceFactory,
|
|
79
79
|
): Promise<boolean> {
|
|
80
80
|
const mc = createChildMonitoringContext({ logger, namespace: "PrefetchSnapshot" });
|
|
@@ -144,7 +144,6 @@ export async function prefetchLatestSnapshot(
|
|
|
144
144
|
odspResolvedUrl,
|
|
145
145
|
getAuthHeader,
|
|
146
146
|
hostSnapshotFetchOptions,
|
|
147
|
-
forceAccessTokenViaAuthorizationHeader,
|
|
148
147
|
odspLogger,
|
|
149
148
|
snapshotDownloader,
|
|
150
149
|
putInCache,
|
package/src/vroom.ts
CHANGED
|
@@ -10,8 +10,8 @@ import type {
|
|
|
10
10
|
InstrumentedStorageTokenFetcher,
|
|
11
11
|
} from "@fluidframework/odsp-driver-definitions/internal";
|
|
12
12
|
import {
|
|
13
|
-
type TelemetryLoggerExt,
|
|
14
13
|
PerformanceEvent,
|
|
14
|
+
type TelemetryLoggerExt,
|
|
15
15
|
} from "@fluidframework/telemetry-utils/internal";
|
|
16
16
|
import { v4 as uuid } from "uuid";
|
|
17
17
|
|
|
@@ -128,11 +128,12 @@ export function iteratePairs<T>(it: IterableIterator<T>): IterableIterator<[T, T
|
|
|
128
128
|
next: () => {
|
|
129
129
|
const a = it.next();
|
|
130
130
|
if (a.done) {
|
|
131
|
+
// Note: there is no assertion here that b is also done.
|
|
131
132
|
return { value: undefined, done: true };
|
|
132
133
|
}
|
|
133
134
|
const b = it.next();
|
|
134
135
|
assert(b.done !== true, 0x22b /* "Should be a pair" */);
|
|
135
|
-
return { value: [a.value, b.value], done:
|
|
136
|
+
return { value: [a.value, b.value], done: false };
|
|
136
137
|
},
|
|
137
138
|
[Symbol.iterator]: () => {
|
|
138
139
|
return res;
|
|
@@ -413,9 +414,7 @@ export class NodeCore {
|
|
|
413
414
|
durationStructure: number;
|
|
414
415
|
durationStrings: number;
|
|
415
416
|
} {
|
|
416
|
-
const [stringsToResolve, durationStructure] = measure(() =>
|
|
417
|
-
this.loadStructure(buffer, logger),
|
|
418
|
-
);
|
|
417
|
+
const [stringsToResolve, durationStructure] = measure(() => this.loadStructure(buffer));
|
|
419
418
|
const [, durationStrings] = measure(() =>
|
|
420
419
|
this.loadStrings(buffer, stringsToResolve, logger),
|
|
421
420
|
);
|
|
@@ -426,10 +425,7 @@ export class NodeCore {
|
|
|
426
425
|
* Load and parse the buffer into a tree.
|
|
427
426
|
* @param buffer - buffer to read from.
|
|
428
427
|
*/
|
|
429
|
-
protected loadStructure(
|
|
430
|
-
buffer: ReadBuffer,
|
|
431
|
-
logger: TelemetryLoggerExt,
|
|
432
|
-
): IStringElementInternal[] {
|
|
428
|
+
protected loadStructure(buffer: ReadBuffer): IStringElementInternal[] {
|
|
433
429
|
const stack: NodeTypes[][] = [];
|
|
434
430
|
const stringsToResolve: IStringElementInternal[] = [];
|
|
435
431
|
const dictionary: IStringElement[] = [];
|
package/tsconfig.json
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
"compilerOptions": {
|
|
6
6
|
"rootDir": "./src",
|
|
7
7
|
"outDir": "./lib",
|
|
8
|
+
"noUnusedParameters": true,
|
|
9
|
+
// As of 2026-06-18, there are 47 errors enabling exactOptionalPropertyTypes.
|
|
8
10
|
"exactOptionalPropertyTypes": false,
|
|
9
11
|
// TODO: AB#34163 Enable noUncheckedIndexedAccess for packages/drivers/odsp-driver
|
|
10
12
|
"noUncheckedIndexedAccess": false,
|