@fluidframework/container-loader 2.0.0-internal.7.3.0 → 2.0.0-internal.8.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.
Files changed (124) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/api-extractor-lint.json +13 -0
  3. package/api-extractor.json +3 -3
  4. package/api-report/container-loader.api.md +17 -27
  5. package/dist/connectionState.cjs +3 -0
  6. package/dist/connectionState.cjs.map +1 -1
  7. package/dist/connectionState.d.ts +3 -0
  8. package/dist/connectionState.d.ts.map +1 -1
  9. package/dist/connectionStateHandler.cjs +3 -3
  10. package/dist/connectionStateHandler.cjs.map +1 -1
  11. package/dist/connectionStateHandler.d.ts +10 -0
  12. package/dist/connectionStateHandler.d.ts.map +1 -1
  13. package/dist/container-loader-alpha.d.ts +227 -0
  14. package/dist/container-loader-beta.d.ts +87 -0
  15. package/dist/container-loader-public.d.ts +87 -0
  16. package/dist/container-loader-untrimmed.d.ts +331 -0
  17. package/dist/container.cjs +11 -22
  18. package/dist/container.cjs.map +1 -1
  19. package/dist/container.d.ts +6 -16
  20. package/dist/container.d.ts.map +1 -1
  21. package/dist/containerStorageAdapter.cjs +4 -2
  22. package/dist/containerStorageAdapter.cjs.map +1 -1
  23. package/dist/containerStorageAdapter.d.ts.map +1 -1
  24. package/dist/deltaManager.cjs +18 -1
  25. package/dist/deltaManager.cjs.map +1 -1
  26. package/dist/deltaManager.d.ts.map +1 -1
  27. package/dist/index.cjs +1 -2
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.ts +1 -1
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/loader.cjs +2 -65
  32. package/dist/loader.cjs.map +1 -1
  33. package/dist/loader.d.ts +11 -25
  34. package/dist/loader.d.ts.map +1 -1
  35. package/dist/location-redirection-utilities/resolveWithLocationRedirection.cjs +2 -0
  36. package/dist/location-redirection-utilities/resolveWithLocationRedirection.cjs.map +1 -1
  37. package/dist/location-redirection-utilities/resolveWithLocationRedirection.d.ts +2 -0
  38. package/dist/location-redirection-utilities/resolveWithLocationRedirection.d.ts.map +1 -1
  39. package/dist/packageVersion.cjs +1 -1
  40. package/dist/packageVersion.cjs.map +1 -1
  41. package/dist/packageVersion.d.ts +1 -1
  42. package/dist/protocol.cjs.map +1 -1
  43. package/dist/protocol.d.ts +4 -0
  44. package/dist/protocol.d.ts.map +1 -1
  45. package/dist/utils.cjs +1 -0
  46. package/dist/utils.cjs.map +1 -1
  47. package/dist/utils.d.ts +2 -0
  48. package/dist/utils.d.ts.map +1 -1
  49. package/lib/audience.d.ts +0 -4
  50. package/lib/audience.d.ts.map +1 -1
  51. package/lib/catchUpMonitor.d.ts.map +1 -1
  52. package/lib/connectionManager.d.ts +1 -1
  53. package/lib/connectionManager.d.ts.map +1 -1
  54. package/lib/connectionState.d.ts +3 -0
  55. package/lib/connectionState.d.ts.map +1 -1
  56. package/lib/connectionState.mjs +3 -0
  57. package/lib/connectionState.mjs.map +1 -1
  58. package/lib/connectionStateHandler.d.ts +13 -3
  59. package/lib/connectionStateHandler.d.ts.map +1 -1
  60. package/lib/connectionStateHandler.mjs +3 -3
  61. package/lib/connectionStateHandler.mjs.map +1 -1
  62. package/lib/container-loader-alpha.d.ts +227 -0
  63. package/lib/container-loader-beta.d.ts +87 -0
  64. package/lib/container-loader-public.d.ts +87 -0
  65. package/lib/container-loader-untrimmed.d.ts +331 -0
  66. package/lib/container.d.ts +10 -20
  67. package/lib/container.d.ts.map +1 -1
  68. package/lib/container.mjs +11 -22
  69. package/lib/container.mjs.map +1 -1
  70. package/lib/containerContext.d.ts.map +1 -1
  71. package/lib/containerStorageAdapter.d.ts +1 -1
  72. package/lib/containerStorageAdapter.d.ts.map +1 -1
  73. package/lib/containerStorageAdapter.mjs +4 -2
  74. package/lib/containerStorageAdapter.mjs.map +1 -1
  75. package/lib/contracts.d.ts.map +1 -1
  76. package/lib/debugLogger.d.ts.map +1 -1
  77. package/lib/deltaManager.d.ts +1 -1
  78. package/lib/deltaManager.d.ts.map +1 -1
  79. package/lib/deltaManager.mjs +18 -1
  80. package/lib/deltaManager.mjs.map +1 -1
  81. package/lib/deltaQueue.d.ts.map +1 -1
  82. package/lib/disposal.d.ts.map +1 -1
  83. package/lib/error.d.ts.map +1 -1
  84. package/lib/index.d.ts +6 -6
  85. package/lib/index.d.ts.map +1 -1
  86. package/lib/index.mjs +1 -1
  87. package/lib/index.mjs.map +1 -1
  88. package/lib/loader.d.ts +13 -27
  89. package/lib/loader.d.ts.map +1 -1
  90. package/lib/loader.mjs +1 -63
  91. package/lib/loader.mjs.map +1 -1
  92. package/lib/location-redirection-utilities/index.d.ts +1 -1
  93. package/lib/location-redirection-utilities/index.d.ts.map +1 -1
  94. package/lib/location-redirection-utilities/resolveWithLocationRedirection.d.ts +2 -0
  95. package/lib/location-redirection-utilities/resolveWithLocationRedirection.d.ts.map +1 -1
  96. package/lib/location-redirection-utilities/resolveWithLocationRedirection.mjs +2 -0
  97. package/lib/location-redirection-utilities/resolveWithLocationRedirection.mjs.map +1 -1
  98. package/lib/noopHeuristic.d.ts.map +1 -1
  99. package/lib/packageVersion.d.ts +1 -1
  100. package/lib/packageVersion.mjs +1 -1
  101. package/lib/packageVersion.mjs.map +1 -1
  102. package/lib/protocol.d.ts +4 -0
  103. package/lib/protocol.d.ts.map +1 -1
  104. package/lib/protocol.mjs.map +1 -1
  105. package/lib/protocolTreeDocumentStorageService.d.ts.map +1 -1
  106. package/lib/quorum.d.ts +0 -4
  107. package/lib/quorum.d.ts.map +1 -1
  108. package/lib/retriableDocumentStorageService.d.ts.map +1 -1
  109. package/lib/utils.d.ts +2 -0
  110. package/lib/utils.d.ts.map +1 -1
  111. package/lib/utils.mjs +1 -0
  112. package/lib/utils.mjs.map +1 -1
  113. package/package.json +46 -16
  114. package/src/connectionState.ts +3 -0
  115. package/src/connectionStateHandler.ts +16 -3
  116. package/src/container.ts +26 -39
  117. package/src/containerStorageAdapter.ts +4 -2
  118. package/src/deltaManager.ts +25 -1
  119. package/src/index.ts +0 -1
  120. package/src/loader.ts +10 -84
  121. package/src/location-redirection-utilities/resolveWithLocationRedirection.ts +2 -0
  122. package/src/packageVersion.ts +1 -1
  123. package/src/protocol.ts +4 -0
  124. package/src/utils.ts +2 -0
@@ -15,6 +15,7 @@ import { createChildLogger } from "@fluidframework/telemetry-utils";
15
15
  * Checks if the error is location redirection error.
16
16
  * @param error - error whose type is to be determined.
17
17
  * @returns `true` is the error is location redirection error, otherwise `false`.
18
+ * @internal
18
19
  */
19
20
  export function isLocationRedirectionError(error: any): error is ILocationRedirectionError {
20
21
  return (
@@ -31,6 +32,7 @@ export function isLocationRedirectionError(error: any): error is ILocationRedire
31
32
  * @param urlResolver - resolver used to resolve the url.
32
33
  * @param logger - logger to send events.
33
34
  * @returns Response from the API call.
35
+ * @internal
34
36
  */
35
37
  export async function resolveWithLocationRedirectionHandling<T>(
36
38
  api: (request: IRequest) => Promise<T>,
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/container-loader";
9
- export const pkgVersion = "2.0.0-internal.7.3.0";
9
+ export const pkgVersion = "2.0.0-internal.8.0.0";
package/src/protocol.ts CHANGED
@@ -28,6 +28,7 @@ export enum SignalType {
28
28
 
29
29
  /**
30
30
  * Function to be used for creating a protocol handler.
31
+ * @alpha
31
32
  */
32
33
  export type ProtocolHandlerBuilder = (
33
34
  attributes: IDocumentAttributes,
@@ -35,6 +36,9 @@ export type ProtocolHandlerBuilder = (
35
36
  sendProposal: (key: string, value: any) => number,
36
37
  ) => IProtocolHandler;
37
38
 
39
+ /**
40
+ * @alpha
41
+ */
38
42
  export interface IProtocolHandler extends IBaseProtocolHandler {
39
43
  readonly audience: IAudienceOwner;
40
44
  processSignal(message: ISignalMessage);
package/src/utils.ts CHANGED
@@ -27,6 +27,7 @@ export interface ISnapshotTreeWithBlobContents extends ISnapshotTree {
27
27
  * Interface to represent the parsed parts of IResolvedUrl.url to help
28
28
  * in getting info about different parts of the url.
29
29
  * May not be compatible or relevant for any Url Resolver
30
+ * @internal
30
31
  */
31
32
  export interface IParsedUrl {
32
33
  /**
@@ -56,6 +57,7 @@ export interface IParsedUrl {
56
57
  * with urls of type: protocol://<string>/.../..?<querystring>
57
58
  * @param url - This is the IResolvedUrl.url part of the resolved url.
58
59
  * @returns The IParsedUrl representing the input URL, or undefined if the format was not supported
60
+ * @internal
59
61
  */
60
62
  export function tryParseCompatibleResolvedUrl(url: string): IParsedUrl | undefined {
61
63
  const parsed = parse(url, true);