@fluidframework/odsp-driver 2.32.0 → 2.33.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 +4 -0
- package/api-report/odsp-driver.legacy.alpha.api.md +31 -31
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.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/tsdoc-metadata.json +1 -1
- package/package.json +13 -14
- package/src/packageVersion.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,25 +4,25 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
-
// @alpha
|
|
7
|
+
// @alpha @legacy
|
|
8
8
|
export function checkUrl(documentUrl: URL): DriverPreCheckInfo | undefined;
|
|
9
9
|
|
|
10
|
-
// @alpha
|
|
10
|
+
// @alpha @legacy
|
|
11
11
|
export function createLocalOdspDocumentServiceFactory(localSnapshot: Uint8Array | string): IDocumentServiceFactory;
|
|
12
12
|
|
|
13
|
-
// @alpha
|
|
13
|
+
// @alpha @legacy
|
|
14
14
|
export function createOdspCreateContainerRequest(siteUrl: string, driveId: string, filePath: string, fileName: string, createShareLinkType?: ISharingLinkKind): IRequest;
|
|
15
15
|
|
|
16
|
-
// @alpha @deprecated
|
|
16
|
+
// @alpha @deprecated @legacy
|
|
17
17
|
export function createOdspCreateContainerRequest(siteUrl: string, driveId: string, filePath: string, fileName: string, createShareLinkType: ISharingLinkKind | undefined, containerPackageInfo: IContainerPackageInfo | undefined): IRequest;
|
|
18
18
|
|
|
19
|
-
// @alpha
|
|
19
|
+
// @alpha @legacy
|
|
20
20
|
export function createOdspUrl(l: OdspFluidDataStoreLocator): string;
|
|
21
21
|
|
|
22
|
-
// @alpha
|
|
22
|
+
// @alpha @legacy
|
|
23
23
|
export function encodeOdspFluidDataStoreLocator(locator: OdspFluidDataStoreLocator): string;
|
|
24
24
|
|
|
25
|
-
// @alpha
|
|
25
|
+
// @alpha @legacy
|
|
26
26
|
export class EpochTracker implements IPersistedFileCache {
|
|
27
27
|
constructor(cache: IPersistedCache, fileEntry: IFileEntry, logger: ITelemetryLoggerExt, clientIsSummarizer?: boolean | undefined);
|
|
28
28
|
// (undocumented)
|
|
@@ -56,19 +56,19 @@ export class EpochTracker implements IPersistedFileCache {
|
|
|
56
56
|
protected validateEpochFromResponse(epochFromResponse: string | undefined, fetchType: FetchTypeInternal, fromCache?: boolean): void;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
// @alpha (undocumented)
|
|
59
|
+
// @alpha @legacy (undocumented)
|
|
60
60
|
export type FetchType = "blob" | "createBlob" | "createFile" | "joinSession" | "ops" | "test" | "snapshotTree" | "treesLatest" | "uploadSummary" | "push" | "versions" | "renameFile";
|
|
61
61
|
|
|
62
|
-
// @alpha (undocumented)
|
|
62
|
+
// @alpha @legacy (undocumented)
|
|
63
63
|
export type FetchTypeInternal = FetchType | "cache";
|
|
64
64
|
|
|
65
|
-
// @alpha
|
|
65
|
+
// @alpha @legacy
|
|
66
66
|
export function getHashedDocumentId(driveId: string, itemId: string): Promise<string>;
|
|
67
67
|
|
|
68
|
-
// @alpha
|
|
68
|
+
// @alpha @legacy
|
|
69
69
|
export function getLocatorFromOdspUrl(url: URL, requireFluidSignature?: boolean): OdspFluidDataStoreLocator | undefined;
|
|
70
70
|
|
|
71
|
-
// @alpha (undocumented)
|
|
71
|
+
// @alpha @legacy (undocumented)
|
|
72
72
|
export interface ICacheAndTracker {
|
|
73
73
|
// (undocumented)
|
|
74
74
|
cache: IOdspCache;
|
|
@@ -76,7 +76,7 @@ export interface ICacheAndTracker {
|
|
|
76
76
|
epochTracker: EpochTracker;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
// @alpha
|
|
79
|
+
// @alpha @legacy
|
|
80
80
|
export interface INonPersistentCache {
|
|
81
81
|
readonly fileUrlCache: PromiseCache<string, IOdspResolvedUrl>;
|
|
82
82
|
readonly sessionJoinCache: PromiseCache<string, {
|
|
@@ -86,12 +86,12 @@ export interface INonPersistentCache {
|
|
|
86
86
|
readonly snapshotPrefetchResultCache: PromiseCache<string, IPrefetchSnapshotContents>;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
// @alpha
|
|
89
|
+
// @alpha @legacy
|
|
90
90
|
export interface IOdspCache extends INonPersistentCache {
|
|
91
91
|
readonly persistedCache: IPersistedFileCache;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
// @alpha (undocumented)
|
|
94
|
+
// @alpha @legacy (undocumented)
|
|
95
95
|
export interface IOdspResponse<T> {
|
|
96
96
|
// (undocumented)
|
|
97
97
|
content: T;
|
|
@@ -103,7 +103,7 @@ export interface IOdspResponse<T> {
|
|
|
103
103
|
propsToLog: ITelemetryBaseProperties;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
// @alpha
|
|
106
|
+
// @alpha @legacy
|
|
107
107
|
export interface IPersistedFileCache {
|
|
108
108
|
// (undocumented)
|
|
109
109
|
get(entry: IEntry): Promise<any>;
|
|
@@ -113,7 +113,7 @@ export interface IPersistedFileCache {
|
|
|
113
113
|
removeEntries(): Promise<void>;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
// @alpha (undocumented)
|
|
116
|
+
// @alpha @legacy (undocumented)
|
|
117
117
|
export interface IPrefetchSnapshotContents extends ISnapshot {
|
|
118
118
|
// (undocumented)
|
|
119
119
|
fluidEpoch: string;
|
|
@@ -121,7 +121,7 @@ export interface IPrefetchSnapshotContents extends ISnapshot {
|
|
|
121
121
|
prefetchStartTime: number;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
// @alpha @deprecated (undocumented)
|
|
124
|
+
// @alpha @deprecated @legacy (undocumented)
|
|
125
125
|
export interface ISnapshotContents {
|
|
126
126
|
// (undocumented)
|
|
127
127
|
blobs: Map<string, ArrayBuffer>;
|
|
@@ -133,24 +133,24 @@ export interface ISnapshotContents {
|
|
|
133
133
|
snapshotTree: ISnapshotTree;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
// @alpha
|
|
136
|
+
// @alpha @legacy
|
|
137
137
|
export function isOdspResolvedUrl(resolvedUrl: IResolvedUrl): resolvedUrl is IOdspResolvedUrl;
|
|
138
138
|
|
|
139
|
-
// @alpha
|
|
139
|
+
// @alpha @legacy
|
|
140
140
|
export const locatorQueryParamName = "nav";
|
|
141
141
|
|
|
142
|
-
// @alpha (undocumented)
|
|
142
|
+
// @alpha @legacy (undocumented)
|
|
143
143
|
export const OdcApiSiteOrigin = "https://my.microsoftpersonalcontent.com";
|
|
144
144
|
|
|
145
|
-
// @alpha (undocumented)
|
|
145
|
+
// @alpha @legacy (undocumented)
|
|
146
146
|
export const OdcFileSiteOrigin = "https://1drv.ms";
|
|
147
147
|
|
|
148
|
-
// @alpha
|
|
148
|
+
// @alpha @legacy
|
|
149
149
|
export class OdspDocumentServiceFactory extends OdspDocumentServiceFactoryCore {
|
|
150
150
|
constructor(getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>, getWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined, persistedCache?: IPersistedCache, hostPolicy?: HostStoragePolicy);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
// @alpha
|
|
153
|
+
// @alpha @legacy
|
|
154
154
|
export class OdspDocumentServiceFactoryCore implements IDocumentServiceFactory, IRelaySessionAwareDriverFactory {
|
|
155
155
|
constructor(getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>, getWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined, persistedCache?: IPersistedCache, hostPolicy?: HostStoragePolicy);
|
|
156
156
|
// (undocumented)
|
|
@@ -168,14 +168,14 @@ export class OdspDocumentServiceFactoryCore implements IDocumentServiceFactory,
|
|
|
168
168
|
get snapshotPrefetchResultCache(): PromiseCache<string, IPrefetchSnapshotContents>;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
// @alpha
|
|
171
|
+
// @alpha @legacy
|
|
172
172
|
export class OdspDriverUrlResolver implements IUrlResolver {
|
|
173
173
|
constructor();
|
|
174
174
|
getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string, packageInfoSource?: IContainerPackageInfo): Promise<string>;
|
|
175
175
|
resolve(request: IRequest): Promise<IOdspResolvedUrl>;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
// @alpha
|
|
178
|
+
// @alpha @legacy
|
|
179
179
|
export class OdspDriverUrlResolverForShareLink implements IUrlResolver {
|
|
180
180
|
constructor(shareLinkFetcherProps?: ShareLinkFetcherProps | undefined, logger?: ITelemetryBaseLogger, appName?: string | undefined, getContext?: ((resolvedUrl: IOdspResolvedUrl, dataStorePath: string) => Promise<string | undefined>) | undefined, containerPackageInfo?: IContainerPackageInfo | undefined);
|
|
181
181
|
appendDataStorePath(requestUrl: URL, pathToAppend: string): string | undefined;
|
|
@@ -185,7 +185,7 @@ export class OdspDriverUrlResolverForShareLink implements IUrlResolver {
|
|
|
185
185
|
resolve(request: IRequest): Promise<IOdspResolvedUrl>;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
// @alpha (undocumented)
|
|
188
|
+
// @alpha @legacy (undocumented)
|
|
189
189
|
export interface OdspFluidDataStoreLocator extends IOdspUrlParts {
|
|
190
190
|
// (undocumented)
|
|
191
191
|
appName?: string;
|
|
@@ -199,16 +199,16 @@ export interface OdspFluidDataStoreLocator extends IOdspUrlParts {
|
|
|
199
199
|
fileVersion?: string;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
// @alpha @deprecated
|
|
202
|
+
// @alpha @deprecated @legacy
|
|
203
203
|
export function prefetchLatestSnapshot(resolvedUrl: IResolvedUrl, getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>, persistedCache: IPersistedCache, forceAccessTokenViaAuthorizationHeader: boolean, logger: ITelemetryBaseLogger, hostSnapshotFetchOptions: ISnapshotOptions | undefined, enableRedeemFallback?: boolean, fetchBinarySnapshotFormat?: boolean, snapshotFormatFetchType?: SnapshotFormatSupportType, odspDocumentServiceFactory?: OdspDocumentServiceFactory): Promise<boolean>;
|
|
204
204
|
|
|
205
|
-
// @alpha
|
|
205
|
+
// @alpha @legacy
|
|
206
206
|
export interface ShareLinkFetcherProps {
|
|
207
207
|
identityType: IdentityType;
|
|
208
208
|
tokenFetcher: TokenFetcher<OdspResourceTokenFetchOptions>;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
// @alpha
|
|
211
|
+
// @alpha @legacy
|
|
212
212
|
export enum SnapshotFormatSupportType {
|
|
213
213
|
// (undocumented)
|
|
214
214
|
Binary = 1,
|
|
@@ -218,7 +218,7 @@ export enum SnapshotFormatSupportType {
|
|
|
218
218
|
JsonAndBinary = 2
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
// @alpha
|
|
221
|
+
// @alpha @legacy
|
|
222
222
|
export function storeLocatorInOdspUrl(url: URL, locator: OdspFluidDataStoreLocator): void;
|
|
223
223
|
|
|
224
224
|
// (No @packageDocumentation comment for this package)
|
package/dist/packageVersion.d.ts
CHANGED
|
@@ -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/odsp-driver";
|
|
8
|
-
export declare const pkgVersion = "2.
|
|
8
|
+
export declare const pkgVersion = "2.33.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/dist/packageVersion.js
CHANGED
|
@@ -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/odsp-driver";
|
|
11
|
-
exports.pkgVersion = "2.
|
|
11
|
+
exports.pkgVersion = "2.33.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,6BAA6B,CAAC;AACxC,QAAA,UAAU,GAAG,QAAQ,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/odsp-driver\";\nexport const pkgVersion = \"2.
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,6BAA6B,CAAC;AACxC,QAAA,UAAU,GAAG,QAAQ,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/odsp-driver\";\nexport const pkgVersion = \"2.33.0\";\n"]}
|
package/lib/packageVersion.d.ts
CHANGED
|
@@ -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/odsp-driver";
|
|
8
|
-
export declare const pkgVersion = "2.
|
|
8
|
+
export declare const pkgVersion = "2.33.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/lib/packageVersion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,6BAA6B,CAAC;AACrD,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,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/odsp-driver\";\nexport const pkgVersion = \"2.
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,6BAA6B,CAAC;AACrD,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,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/odsp-driver\";\nexport const pkgVersion = \"2.33.0\";\n"]}
|
package/lib/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/odsp-driver",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.33.0",
|
|
4
4
|
"description": "Socket storage implementation for SPO and ODC",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -69,28 +69,28 @@
|
|
|
69
69
|
"temp-directory": "nyc/.nyc_output"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@fluid-internal/client-utils": "~2.
|
|
73
|
-
"@fluidframework/core-interfaces": "~2.
|
|
74
|
-
"@fluidframework/core-utils": "~2.
|
|
75
|
-
"@fluidframework/driver-base": "~2.
|
|
76
|
-
"@fluidframework/driver-definitions": "~2.
|
|
77
|
-
"@fluidframework/driver-utils": "~2.
|
|
78
|
-
"@fluidframework/odsp-doclib-utils": "~2.
|
|
79
|
-
"@fluidframework/odsp-driver-definitions": "~2.
|
|
80
|
-
"@fluidframework/telemetry-utils": "~2.
|
|
72
|
+
"@fluid-internal/client-utils": "~2.33.0",
|
|
73
|
+
"@fluidframework/core-interfaces": "~2.33.0",
|
|
74
|
+
"@fluidframework/core-utils": "~2.33.0",
|
|
75
|
+
"@fluidframework/driver-base": "~2.33.0",
|
|
76
|
+
"@fluidframework/driver-definitions": "~2.33.0",
|
|
77
|
+
"@fluidframework/driver-utils": "~2.33.0",
|
|
78
|
+
"@fluidframework/odsp-doclib-utils": "~2.33.0",
|
|
79
|
+
"@fluidframework/odsp-driver-definitions": "~2.33.0",
|
|
80
|
+
"@fluidframework/telemetry-utils": "~2.33.0",
|
|
81
81
|
"socket.io-client": "~4.7.5",
|
|
82
82
|
"uuid": "^9.0.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@arethetypeswrong/cli": "^0.17.1",
|
|
86
86
|
"@biomejs/biome": "~1.9.3",
|
|
87
|
-
"@fluid-internal/mocha-test-setup": "~2.
|
|
87
|
+
"@fluid-internal/mocha-test-setup": "~2.33.0",
|
|
88
88
|
"@fluid-tools/build-cli": "^0.55.0",
|
|
89
89
|
"@fluidframework/build-common": "^2.0.3",
|
|
90
90
|
"@fluidframework/build-tools": "^0.55.0",
|
|
91
91
|
"@fluidframework/eslint-config-fluid": "^5.7.3",
|
|
92
|
-
"@fluidframework/odsp-driver-previous": "npm:@fluidframework/odsp-driver@2.
|
|
93
|
-
"@microsoft/api-extractor": "7.
|
|
92
|
+
"@fluidframework/odsp-driver-previous": "npm:@fluidframework/odsp-driver@2.32.0",
|
|
93
|
+
"@microsoft/api-extractor": "7.52.5",
|
|
94
94
|
"@types/mocha": "^10.0.10",
|
|
95
95
|
"@types/node": "^18.19.0",
|
|
96
96
|
"@types/sinon": "^17.0.3",
|
|
@@ -102,7 +102,6 @@
|
|
|
102
102
|
"eslint": "~8.55.0",
|
|
103
103
|
"mocha": "^10.8.2",
|
|
104
104
|
"mocha-multi-reporters": "^1.5.1",
|
|
105
|
-
"moment": "^2.21.0",
|
|
106
105
|
"rimraf": "^4.4.0",
|
|
107
106
|
"sinon": "^18.0.1",
|
|
108
107
|
"typescript": "~5.4.5"
|
package/src/packageVersion.ts
CHANGED