@fluidframework/driver-utils 0.52.1 → 0.54.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.
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { bufferToString, fromBase64ToUtf8 } from "@fluidframework/common-utils";
6
+ import { bufferToString } from "@fluidframework/common-utils";
7
7
  import { IDocumentStorageService } from "@fluidframework/driver-definitions";
8
8
 
9
9
  /**
@@ -18,17 +18,3 @@ export async function readAndParse<T>(storage: Pick<IDocumentStorageService, "re
18
18
  const decoded = bufferToString(blob, "utf8");
19
19
  return JSON.parse(decoded) as T;
20
20
  }
21
-
22
- /**
23
- * @deprecated - Older Runtime needs to use this api.
24
- * Read a blob from map, decode it (from "base64") and JSON.parse it into object of type T
25
- *
26
- * @param blobs - the blob map to read from
27
- * @param id - the id of the blob to read and parse
28
- * @returns the object that we decoded and JSON.parse
29
- */
30
- export function readAndParseFromBlobs<T>(blobs: {[index: string]: string}, id: string): T {
31
- const encoded = blobs[id];
32
- const decoded = fromBase64ToUtf8(encoded);
33
- return JSON.parse(decoded) as T;
34
- }