@fluid-experimental/attributor
Advanced tools
Comparing version 2.0.0-dev-rc.5.0.0.271262 to 2.0.0-dev-rc.5.0.0.271717
@@ -15,3 +15,2 @@ "use strict"; | ||
class Attributor { | ||
keyToInfo; | ||
/** | ||
@@ -18,0 +17,0 @@ * @param initialEntries - Any entries which should be populated on instantiation. |
@@ -32,4 +32,2 @@ "use strict"; | ||
class AttributorSerializer { | ||
makeAttributor; | ||
timestampEncoder; | ||
constructor(makeAttributor, timestampEncoder) { | ||
@@ -36,0 +34,0 @@ this.makeAttributor = makeAttributor; |
@@ -65,3 +65,3 @@ "use strict"; | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
(options.attribution ??= {}).track = true; | ||
(options.attribution ?? (options.attribution = {})).track = true; | ||
} | ||
@@ -104,3 +104,2 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument | ||
} | ||
runtimeAttributor; | ||
addContainerStateToSummary(summaryTree, fullTree, trackState, telemetryContext) { | ||
@@ -116,2 +115,9 @@ super.addContainerStateToSummary(summaryTree, fullTree, trackState, telemetryContext); | ||
class RuntimeAttributor { | ||
constructor() { | ||
this.encoder = { | ||
encode: internal_2.unreachableCase, | ||
decode: internal_2.unreachableCase, | ||
}; | ||
this.isEnabled = false; | ||
} | ||
get IRuntimeAttributor() { | ||
@@ -144,8 +150,2 @@ return this; | ||
} | ||
encoder = { | ||
encode: internal_2.unreachableCase, | ||
decode: internal_2.unreachableCase, | ||
}; | ||
opAttributor; | ||
isEnabled = false; | ||
async initialize(deltaManager, quorum, baseSnapshot, readBlob, shouldAddAttributorOnNewFile) { | ||
@@ -152,0 +152,0 @@ const attributorTree = baseSnapshot?.trees[attributorTreeName]; |
@@ -15,4 +15,2 @@ "use strict"; | ||
class MutableStringInterner { | ||
stringToInternedIdMap = new Map(); | ||
internedStrings = []; | ||
/** | ||
@@ -23,2 +21,4 @@ * @param inputStrings - A list of strings to intern in the order given. Can be used to rehydrate from a previous | ||
constructor(inputStrings = []) { | ||
this.stringToInternedIdMap = new Map(); | ||
this.internedStrings = []; | ||
for (const value of inputStrings) { | ||
@@ -25,0 +25,0 @@ this.getOrCreateInternedId(value); |
@@ -12,3 +12,2 @@ /*! | ||
export class Attributor { | ||
keyToInfo; | ||
/** | ||
@@ -15,0 +14,0 @@ * @param initialEntries - Any entries which should be populated on instantiation. |
@@ -29,4 +29,2 @@ /*! | ||
export class AttributorSerializer { | ||
makeAttributor; | ||
timestampEncoder; | ||
constructor(makeAttributor, timestampEncoder) { | ||
@@ -33,0 +31,0 @@ this.makeAttributor = makeAttributor; |
@@ -61,3 +61,3 @@ /*! | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
(options.attribution ??= {}).track = true; | ||
(options.attribution ?? (options.attribution = {})).track = true; | ||
} | ||
@@ -100,3 +100,2 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument | ||
} | ||
runtimeAttributor; | ||
addContainerStateToSummary(summaryTree, fullTree, trackState, telemetryContext) { | ||
@@ -111,2 +110,9 @@ super.addContainerStateToSummary(summaryTree, fullTree, trackState, telemetryContext); | ||
class RuntimeAttributor { | ||
constructor() { | ||
this.encoder = { | ||
encode: unreachableCase, | ||
decode: unreachableCase, | ||
}; | ||
this.isEnabled = false; | ||
} | ||
get IRuntimeAttributor() { | ||
@@ -139,8 +145,2 @@ return this; | ||
} | ||
encoder = { | ||
encode: unreachableCase, | ||
decode: unreachableCase, | ||
}; | ||
opAttributor; | ||
isEnabled = false; | ||
async initialize(deltaManager, quorum, baseSnapshot, readBlob, shouldAddAttributorOnNewFile) { | ||
@@ -147,0 +147,0 @@ const attributorTree = baseSnapshot?.trees[attributorTreeName]; |
@@ -12,4 +12,2 @@ /*! | ||
export class MutableStringInterner { | ||
stringToInternedIdMap = new Map(); | ||
internedStrings = []; | ||
/** | ||
@@ -20,2 +18,4 @@ * @param inputStrings - A list of strings to intern in the order given. Can be used to rehydrate from a previous | ||
constructor(inputStrings = []) { | ||
this.stringToInternedIdMap = new Map(); | ||
this.internedStrings = []; | ||
for (const value of inputStrings) { | ||
@@ -22,0 +22,0 @@ this.getOrCreateInternedId(value); |
{ | ||
"name": "@fluid-experimental/attributor", | ||
"version": "2.0.0-dev-rc.5.0.0.271262", | ||
"version": "2.0.0-dev-rc.5.0.0.271717", | ||
"description": "Operation attributor", | ||
@@ -50,13 +50,13 @@ "homepage": "https://fluidframework.com", | ||
"dependencies": { | ||
"@fluid-internal/client-utils": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluidframework/container-definitions": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluidframework/container-runtime": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluidframework/container-runtime-definitions": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluidframework/core-interfaces": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluidframework/core-utils": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluidframework/datastore-definitions": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluidframework/driver-definitions": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluidframework/runtime-definitions": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluidframework/runtime-utils": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluidframework/telemetry-utils": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluid-internal/client-utils": "2.0.0-dev-rc.5.0.0.271717", | ||
"@fluidframework/container-definitions": "2.0.0-dev-rc.5.0.0.271717", | ||
"@fluidframework/container-runtime": "2.0.0-dev-rc.5.0.0.271717", | ||
"@fluidframework/container-runtime-definitions": "2.0.0-dev-rc.5.0.0.271717", | ||
"@fluidframework/core-interfaces": "2.0.0-dev-rc.5.0.0.271717", | ||
"@fluidframework/core-utils": "2.0.0-dev-rc.5.0.0.271717", | ||
"@fluidframework/datastore-definitions": "2.0.0-dev-rc.5.0.0.271717", | ||
"@fluidframework/driver-definitions": "2.0.0-dev-rc.5.0.0.271717", | ||
"@fluidframework/runtime-definitions": "2.0.0-dev-rc.5.0.0.271717", | ||
"@fluidframework/runtime-utils": "2.0.0-dev-rc.5.0.0.271717", | ||
"@fluidframework/telemetry-utils": "2.0.0-dev-rc.5.0.0.271717", | ||
"lz4js": "^0.2.0" | ||
@@ -67,4 +67,4 @@ }, | ||
"@biomejs/biome": "^1.7.3", | ||
"@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluid-private/stochastic-test-utils": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.5.0.0.271717", | ||
"@fluid-private/stochastic-test-utils": "2.0.0-dev-rc.5.0.0.271717", | ||
"@fluid-tools/build-cli": "^0.39.0", | ||
@@ -74,5 +74,5 @@ "@fluidframework/build-common": "^2.0.3", | ||
"@fluidframework/eslint-config-fluid": "^5.3.0", | ||
"@fluidframework/merge-tree": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluidframework/sequence": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluidframework/test-runtime-utils": "2.0.0-dev-rc.5.0.0.271262", | ||
"@fluidframework/merge-tree": "2.0.0-dev-rc.5.0.0.271717", | ||
"@fluidframework/sequence": "2.0.0-dev-rc.5.0.0.271717", | ||
"@fluidframework/test-runtime-utils": "2.0.0-dev-rc.5.0.0.271717", | ||
"@microsoft/api-extractor": "^7.45.1", | ||
@@ -79,0 +79,0 @@ "@types/mocha": "^9.1.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
187696
2025
+ Added@fluid-internal/client-utils@2.0.0-dev-rc.5.0.0.271717(transitive)
+ Added@fluidframework/container-definitions@2.0.0-dev-rc.5.0.0.271717(transitive)
+ Added@fluidframework/container-runtime@2.0.0-dev-rc.5.0.0.271717(transitive)
+ Added@fluidframework/container-runtime-definitions@2.0.0-dev-rc.5.0.0.271717(transitive)
+ Added@fluidframework/core-interfaces@2.0.0-dev-rc.5.0.0.271717(transitive)
+ Added@fluidframework/core-utils@2.0.0-dev-rc.5.0.0.271717(transitive)
+ Added@fluidframework/datastore@2.0.0-dev-rc.5.0.0.271717(transitive)
+ Added@fluidframework/datastore-definitions@2.0.0-dev-rc.5.0.0.271717(transitive)
+ Added@fluidframework/driver-definitions@2.0.0-dev-rc.5.0.0.271717(transitive)
+ Added@fluidframework/driver-utils@2.0.0-dev-rc.5.0.0.271717(transitive)
+ Added@fluidframework/id-compressor@2.0.0-dev-rc.5.0.0.271717(transitive)
+ Added@fluidframework/runtime-definitions@2.0.0-dev-rc.5.0.0.271717(transitive)
+ Added@fluidframework/runtime-utils@2.0.0-dev-rc.5.0.0.271717(transitive)
+ Added@fluidframework/telemetry-utils@2.0.0-dev-rc.5.0.0.271717(transitive)
- Removed@fluid-internal/client-utils@2.0.0-dev-rc.5.0.0.271262(transitive)
- Removed@fluidframework/container-definitions@2.0.0-dev-rc.5.0.0.271262(transitive)
- Removed@fluidframework/container-runtime@2.0.0-dev-rc.5.0.0.271262(transitive)
- Removed@fluidframework/container-runtime-definitions@2.0.0-dev-rc.5.0.0.271262(transitive)
- Removed@fluidframework/core-interfaces@2.0.0-dev-rc.5.0.0.271262(transitive)
- Removed@fluidframework/core-utils@2.0.0-dev-rc.5.0.0.271262(transitive)
- Removed@fluidframework/datastore@2.0.0-dev-rc.5.0.0.271262(transitive)
- Removed@fluidframework/datastore-definitions@2.0.0-dev-rc.5.0.0.271262(transitive)
- Removed@fluidframework/driver-definitions@2.0.0-dev-rc.5.0.0.271262(transitive)
- Removed@fluidframework/driver-utils@2.0.0-dev-rc.5.0.0.271262(transitive)
- Removed@fluidframework/id-compressor@2.0.0-dev-rc.5.0.0.271262(transitive)
- Removed@fluidframework/runtime-definitions@2.0.0-dev-rc.5.0.0.271262(transitive)
- Removed@fluidframework/runtime-utils@2.0.0-dev-rc.5.0.0.271262(transitive)
- Removed@fluidframework/telemetry-utils@2.0.0-dev-rc.5.0.0.271262(transitive)
Updated@fluid-internal/client-utils@2.0.0-dev-rc.5.0.0.271717
Updated@fluidframework/container-definitions@2.0.0-dev-rc.5.0.0.271717
Updated@fluidframework/container-runtime@2.0.0-dev-rc.5.0.0.271717
Updated@fluidframework/container-runtime-definitions@2.0.0-dev-rc.5.0.0.271717
Updated@fluidframework/core-interfaces@2.0.0-dev-rc.5.0.0.271717
Updated@fluidframework/datastore-definitions@2.0.0-dev-rc.5.0.0.271717
Updated@fluidframework/driver-definitions@2.0.0-dev-rc.5.0.0.271717
Updated@fluidframework/runtime-definitions@2.0.0-dev-rc.5.0.0.271717
Updated@fluidframework/runtime-utils@2.0.0-dev-rc.5.0.0.271717
Updated@fluidframework/telemetry-utils@2.0.0-dev-rc.5.0.0.271717