@fluid-experimental/attributor 2.0.0-internal.7.3.0 → 2.0.0-internal.7.4.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-extractor-lint.json +13 -0
- package/api-extractor.json +9 -1
- package/api-report/attributor.api.md +9 -9
- package/dist/attributor-alpha.d.ts +27 -0
- package/dist/attributor-beta.d.ts +35 -0
- package/dist/attributor-public.d.ts +35 -0
- package/dist/attributor-untrimmed.d.ts +124 -0
- package/dist/attributor.cjs +2 -2
- package/dist/attributor.cjs.map +1 -1
- package/dist/attributor.d.ts +3 -3
- package/dist/mixinAttributor.cjs +6 -7
- package/dist/mixinAttributor.cjs.map +1 -1
- package/dist/mixinAttributor.d.ts +6 -9
- package/dist/mixinAttributor.d.ts.map +1 -1
- package/lib/attributor-alpha.d.ts +27 -0
- package/lib/attributor-beta.d.ts +35 -0
- package/lib/attributor-public.d.ts +35 -0
- package/lib/attributor-untrimmed.d.ts +124 -0
- package/lib/attributor.d.ts +3 -3
- package/lib/attributor.d.ts.map +1 -1
- package/lib/attributor.mjs +2 -2
- package/lib/attributor.mjs.map +1 -1
- package/lib/encoders.d.ts +2 -2
- package/lib/encoders.d.ts.map +1 -1
- package/lib/index.d.ts +2 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/lz4Encoder.d.ts +1 -1
- package/lib/lz4Encoder.d.ts.map +1 -1
- package/lib/mixinAttributor.d.ts +6 -9
- package/lib/mixinAttributor.d.ts.map +1 -1
- package/lib/mixinAttributor.mjs +6 -7
- package/lib/mixinAttributor.mjs.map +1 -1
- package/package.json +39 -34
- package/src/attributor.ts +3 -3
- package/src/mixinAttributor.ts +9 -10
package/src/mixinAttributor.ts
CHANGED
|
@@ -37,20 +37,17 @@ const attributorTreeName = ".attributor";
|
|
|
37
37
|
const opBlobName = "op";
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
* @
|
|
41
|
-
* Feature Gate Key -
|
|
42
|
-
* Whether or not a container runtime instantiated using `mixinAttributor`'s load should generate an attributor on
|
|
43
|
-
* new files. See package README for more notes on integration.
|
|
40
|
+
* @internal
|
|
44
41
|
*/
|
|
45
42
|
export const enableOnNewFileKey = "Fluid.Attribution.EnableOnNewFile";
|
|
46
43
|
|
|
47
44
|
/**
|
|
48
|
-
* @
|
|
45
|
+
* @internal
|
|
49
46
|
*/
|
|
50
47
|
export const IRuntimeAttributor: keyof IProvideRuntimeAttributor = "IRuntimeAttributor";
|
|
51
48
|
|
|
52
49
|
/**
|
|
53
|
-
* @
|
|
50
|
+
* @internal
|
|
54
51
|
*/
|
|
55
52
|
export interface IProvideRuntimeAttributor {
|
|
56
53
|
readonly IRuntimeAttributor: IRuntimeAttributor;
|
|
@@ -61,7 +58,7 @@ export interface IProvideRuntimeAttributor {
|
|
|
61
58
|
*
|
|
62
59
|
* Attributors are only populated after the container runtime they are injected into has initialized.
|
|
63
60
|
* @sealed
|
|
64
|
-
* @
|
|
61
|
+
* @internal
|
|
65
62
|
*/
|
|
66
63
|
export interface IRuntimeAttributor extends IProvideRuntimeAttributor {
|
|
67
64
|
/**
|
|
@@ -84,7 +81,7 @@ export interface IRuntimeAttributor extends IProvideRuntimeAttributor {
|
|
|
84
81
|
/**
|
|
85
82
|
* @returns an IRuntimeAttributor for usage with `mixinAttributor`. The attributor will only be populated with data
|
|
86
83
|
* once it's passed via scope to a container runtime load flow. See {@link mixinAttributor}.
|
|
87
|
-
* @
|
|
84
|
+
* @internal
|
|
88
85
|
*/
|
|
89
86
|
export function createRuntimeAttributor(): IRuntimeAttributor {
|
|
90
87
|
return new RuntimeAttributor();
|
|
@@ -99,7 +96,7 @@ export function createRuntimeAttributor(): IRuntimeAttributor {
|
|
|
99
96
|
* IRuntimeAttributor is passed via scope to load a document that never previously had attribution information,
|
|
100
97
|
* that attributor's `has` method will always return `false`.
|
|
101
98
|
* @param Base - base class, inherits from FluidAttributorRuntime
|
|
102
|
-
* @
|
|
99
|
+
* @internal
|
|
103
100
|
*/
|
|
104
101
|
export const mixinAttributor = (Base: typeof ContainerRuntime = ContainerRuntime) =>
|
|
105
102
|
class ContainerRuntimeWithAttributor extends Base {
|
|
@@ -185,11 +182,13 @@ export const mixinAttributor = (Base: typeof ContainerRuntime = ContainerRuntime
|
|
|
185
182
|
registryEntries,
|
|
186
183
|
requestHandler,
|
|
187
184
|
provideEntryPoint,
|
|
185
|
+
// ! This prop is needed for back-compat. Can be removed in 2.0.0-internal.8.0.0
|
|
186
|
+
initializeEntryPoint: provideEntryPoint,
|
|
188
187
|
runtimeOptions,
|
|
189
188
|
containerScope,
|
|
190
189
|
existing,
|
|
191
190
|
containerRuntimeCtor,
|
|
192
|
-
})) as ContainerRuntimeWithAttributor;
|
|
191
|
+
} as any)) as ContainerRuntimeWithAttributor;
|
|
193
192
|
runtime.runtimeAttributor = runtimeAttributor as RuntimeAttributor;
|
|
194
193
|
|
|
195
194
|
const logger = createChildLogger({ logger: runtime.logger, namespace: "Attributor" });
|