@fluidframework/garbage-collector
Advanced tools
Comparing version 0.32.3 to 0.33.0-13708
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/garbage-collector"; | ||
export declare const pkgVersion = "0.32.3"; | ||
export declare const pkgVersion = "0.33.0-13708"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -10,3 +10,3 @@ "use strict"; | ||
exports.pkgName = "@fluidframework/garbage-collector"; | ||
exports.pkgVersion = "0.32.3"; | ||
exports.pkgVersion = "0.33.0-13708"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -12,2 +12,8 @@ /*! | ||
export declare function cloneGCData(gcData: IGarbageCollectionData): IGarbageCollectionData; | ||
/** | ||
* Helper function that generates the used routes of the children from a given node's used routes. | ||
* @param usedRoutes - The used routes of a node. | ||
* @returns A map of used routes of each children of the the given node. | ||
*/ | ||
export declare function getChildNodesUsedRoutes(usedRoutes: string[]): Map<string, string[]>; | ||
export declare class GCDataBuilder implements IGarbageCollectionData { | ||
@@ -14,0 +20,0 @@ readonly gcNodes: { |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const common_utils_1 = require("@fluidframework/common-utils"); | ||
/** | ||
@@ -23,2 +24,24 @@ * Helper function that clones the GC data. | ||
exports.cloneGCData = cloneGCData; | ||
/** | ||
* Helper function that generates the used routes of the children from a given node's used routes. | ||
* @param usedRoutes - The used routes of a node. | ||
* @returns A map of used routes of each children of the the given node. | ||
*/ | ||
function getChildNodesUsedRoutes(usedRoutes) { | ||
const usedNodesRoutes = new Map(); | ||
for (const route of usedRoutes) { | ||
common_utils_1.assert(route.startsWith("/"), "Used route should always be an absolute route"); | ||
const childId = route.split("/")[1]; | ||
const childUsedRoute = route.slice(childId.length + 1); | ||
const childUsedRoutes = usedNodesRoutes.get(childId); | ||
if (childUsedRoutes !== undefined) { | ||
childUsedRoutes.push(childUsedRoute); | ||
} | ||
else { | ||
usedNodesRoutes.set(childId, [childUsedRoute]); | ||
} | ||
} | ||
return usedNodesRoutes; | ||
} | ||
exports.getChildNodesUsedRoutes = getChildNodesUsedRoutes; | ||
class GCDataBuilder { | ||
@@ -25,0 +48,0 @@ constructor() { |
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/garbage-collector"; | ||
export declare const pkgVersion = "0.32.3"; | ||
export declare const pkgVersion = "0.33.0-13708"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -8,3 +8,3 @@ /*! | ||
export const pkgName = "@fluidframework/garbage-collector"; | ||
export const pkgVersion = "0.32.3"; | ||
export const pkgVersion = "0.33.0-13708"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -12,2 +12,8 @@ /*! | ||
export declare function cloneGCData(gcData: IGarbageCollectionData): IGarbageCollectionData; | ||
/** | ||
* Helper function that generates the used routes of the children from a given node's used routes. | ||
* @param usedRoutes - The used routes of a node. | ||
* @returns A map of used routes of each children of the the given node. | ||
*/ | ||
export declare function getChildNodesUsedRoutes(usedRoutes: string[]): Map<string, string[]>; | ||
export declare class GCDataBuilder implements IGarbageCollectionData { | ||
@@ -14,0 +20,0 @@ readonly gcNodes: { |
@@ -5,2 +5,3 @@ /*! | ||
*/ | ||
import { assert } from "@fluidframework/common-utils"; | ||
/** | ||
@@ -20,2 +21,23 @@ * Helper function that clones the GC data. | ||
} | ||
/** | ||
* Helper function that generates the used routes of the children from a given node's used routes. | ||
* @param usedRoutes - The used routes of a node. | ||
* @returns A map of used routes of each children of the the given node. | ||
*/ | ||
export function getChildNodesUsedRoutes(usedRoutes) { | ||
const usedNodesRoutes = new Map(); | ||
for (const route of usedRoutes) { | ||
assert(route.startsWith("/"), "Used route should always be an absolute route"); | ||
const childId = route.split("/")[1]; | ||
const childUsedRoute = route.slice(childId.length + 1); | ||
const childUsedRoutes = usedNodesRoutes.get(childId); | ||
if (childUsedRoutes !== undefined) { | ||
childUsedRoutes.push(childUsedRoute); | ||
} | ||
else { | ||
usedNodesRoutes.set(childId, [childUsedRoute]); | ||
} | ||
} | ||
return usedNodesRoutes; | ||
} | ||
export class GCDataBuilder { | ||
@@ -22,0 +44,0 @@ constructor() { |
{ | ||
"name": "@fluidframework/garbage-collector", | ||
"version": "0.32.3", | ||
"version": "0.33.0-13708", | ||
"description": "Garbage Collector implementation for Fluid", | ||
@@ -20,3 +20,2 @@ "homepage": "https://fluidframework.com", | ||
"build": "npm run build:genver && concurrently npm:build:compile npm:lint", | ||
"build:ci": "npm run build:genver && npm run build:compile", | ||
"build:commonjs": "npm run tsc && npm run build:test", | ||
@@ -65,3 +64,4 @@ "build:compile": "concurrently npm:build:commonjs npm:build:esnext", | ||
"@fluidframework/common-definitions": "^0.19.1", | ||
"@fluidframework/runtime-definitions": "^0.32.3" | ||
"@fluidframework/common-utils": "^0.27.0-0", | ||
"@fluidframework/runtime-definitions": "0.33.0-13708" | ||
}, | ||
@@ -71,3 +71,3 @@ "devDependencies": { | ||
"@fluidframework/eslint-config-fluid": "^0.21.0", | ||
"@fluidframework/mocha-test-setup": "^0.32.3", | ||
"@fluidframework/mocha-test-setup": "0.33.0-13708", | ||
"@microsoft/api-extractor": "^7.7.2", | ||
@@ -74,0 +74,0 @@ "@types/debug": "^4.1.5", |
@@ -9,2 +9,2 @@ /*! | ||
export const pkgName = "@fluidframework/garbage-collector"; | ||
export const pkgVersion = "0.32.3"; | ||
export const pkgVersion = "0.33.0-13708"; |
@@ -6,2 +6,3 @@ /*! | ||
import { assert } from "@fluidframework/common-utils"; | ||
import { IGarbageCollectionData } from "@fluidframework/runtime-definitions"; | ||
@@ -24,2 +25,24 @@ | ||
/** | ||
* Helper function that generates the used routes of the children from a given node's used routes. | ||
* @param usedRoutes - The used routes of a node. | ||
* @returns A map of used routes of each children of the the given node. | ||
*/ | ||
export function getChildNodesUsedRoutes(usedRoutes: string[]) { | ||
const usedNodesRoutes: Map<string, string[]> = new Map(); | ||
for (const route of usedRoutes) { | ||
assert(route.startsWith("/"), "Used route should always be an absolute route"); | ||
const childId = route.split("/")[1]; | ||
const childUsedRoute = route.slice(childId.length + 1); | ||
const childUsedRoutes = usedNodesRoutes.get(childId); | ||
if (childUsedRoutes !== undefined) { | ||
childUsedRoutes.push(childUsedRoute); | ||
} else { | ||
usedNodesRoutes.set(childId, [ childUsedRoute ]); | ||
} | ||
} | ||
return usedNodesRoutes; | ||
} | ||
export class GCDataBuilder implements IGarbageCollectionData { | ||
@@ -26,0 +49,0 @@ public readonly gcNodes: { [ id: string ]: string[] } = {}; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78822
907
3
+ Added@fluidframework/common-utils@0.27.2(transitive)
+ Added@fluidframework/container-definitions@0.33.0-13708(transitive)
+ Added@fluidframework/core-interfaces@0.33.0-13708(transitive)
+ Added@fluidframework/driver-definitions@0.33.0-13708(transitive)
+ Added@fluidframework/protocol-definitions@0.1018.0(transitive)
+ Added@fluidframework/runtime-definitions@0.33.0-13708(transitive)
- Removed@fluidframework/common-utils@0.26.0(transitive)
- Removed@fluidframework/container-definitions@0.32.5(transitive)
- Removed@fluidframework/core-interfaces@0.32.5(transitive)
- Removed@fluidframework/driver-definitions@0.32.5(transitive)
- Removed@fluidframework/protocol-definitions@0.1017.1(transitive)
- Removed@fluidframework/runtime-definitions@0.32.5(transitive)