You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@fluidframework/map

Package Overview
Dependencies
Maintainers
1
Versions
660
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluidframework/map - npm Package Compare versions

Comparing version
2.80.0
to
2.81.0-374083
+2
-0
api-report/map.legacy.beta.api.md

@@ -81,3 +81,5 @@ ## Beta API Report File for "@fluidframework/map"

(event: "valueChanged", listener: (changed: IDirectoryValueChanged, local: boolean, target: IEventThisPlaceHolder) => void): any;
// @deprecated
(event: "clear", listener: (local: boolean, target: IEventThisPlaceHolder) => void): any;
(event: "cleared", listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void): any;
(event: "subDirectoryCreated", listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void): any;

@@ -84,0 +86,0 @@ (event: "subDirectoryDeleted", listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void): any;

+2
-2

@@ -11,3 +11,3 @@ /*!

import { type ITelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal";
import type { IDirectory, IDirectoryEvents, ISharedDirectory, ISharedDirectoryEventsInternal } from "./interfaces.js";
import type { IDirectory, IDirectoryEvents, ISharedDirectory, ISharedDirectoryEvents } from "./interfaces.js";
import type { ISerializableValue, ISerializedValue } from "./internalInterfaces.js";

@@ -216,3 +216,3 @@ /**

*/
export declare class SharedDirectory extends SharedObject<ISharedDirectoryEventsInternal> implements ISharedDirectory {
export declare class SharedDirectory extends SharedObject<ISharedDirectoryEvents> implements ISharedDirectory {
/**

@@ -219,0 +219,0 @@ * String representation for the class.

@@ -117,2 +117,4 @@ /*!

*
* @deprecated Use the "cleared" event instead which provides the path that was cleared.
*
* @remarks Listener parameters:

@@ -126,2 +128,14 @@ *

/**
* Emitted when the {@link ISharedDirectory} is cleared.
*
* @remarks Listener parameters:
*
* - `path` - The absolute path to the directory that was cleared.
*
* - `local` - Whether the clear originated from this client.
*
* - `target` - The {@link ISharedDirectory} itself.
*/
(event: "cleared", listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void): any;
/**
* Emitted when a subdirectory is created.

@@ -221,20 +235,2 @@ *

/**
* Internal events for {@link ISharedDirectory}.
* @internal
*/
export interface ISharedDirectoryEventsInternal extends ISharedDirectoryEvents {
/**
* Emitted when the {@link ISharedDirectory} is cleared.
*
* @remarks Listener parameters:
*
* - `path` - The absolute path to the directory that was cleared.
*
* - `local` - Whether the clear originated from this client.
*
* - `target` - The {@link ISharedDirectory} itself.
*/
(event: "clearInternal", listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void): any;
}
/**
* Provides a hierarchical organization of map-like data structures as SubDirectories.

@@ -241,0 +237,0 @@ * The values stored within can be accessed like a map, and the hierarchy can be navigated using path syntax.

@@ -82,3 +82,3 @@ "use strict";

forEach(callbackFn) {
// eslint-disable-next-line unicorn/no-array-for-each, unicorn/no-array-callback-reference
// eslint-disable-next-line unicorn/no-array-for-each
this.kernel.forEach(callbackFn);

@@ -85,0 +85,0 @@ }

@@ -454,3 +454,5 @@ "use strict";

const pendingClear = this.pendingData.pop();
(0, internal_1.assert)(pendingClear !== undefined &&
(0, internal_1.assert)(
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain -- using ?. could change behavior
pendingClear !== undefined &&
pendingClear.type === "clear" &&

@@ -498,3 +500,5 @@ pendingClear === typedLocalOpMetadata, 0xbf2 /* Unexpected clear rollback */);

const pendingClear = this.pendingData.shift();
(0, internal_1.assert)(pendingClear !== undefined &&
(0, internal_1.assert)(
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain -- using ?. could change behavior
pendingClear !== undefined &&
pendingClear.type === "clear" &&

@@ -536,3 +540,5 @@ pendingClear === localOpMetadata, 0xbf6 /* Got a local clear message we weren't expecting */);

const pendingEntry = this.pendingData[pendingEntryIndex];
(0, internal_1.assert)(pendingEntry !== undefined &&
(0, internal_1.assert)(
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain -- using ?. could change behavior
pendingEntry !== undefined &&
pendingEntry.type === "delete" &&

@@ -562,3 +568,5 @@ pendingEntry === localOpMetadata, 0xbf7 /* Got a local delete message we weren't expecting */);

const pendingEntry = this.pendingData[pendingEntryIndex];
(0, internal_1.assert)(pendingEntry !== undefined && pendingEntry.type === "lifetime", 0xbf8 /* Couldn't match local set message to pending lifetime */);
(0, internal_1.assert)(
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain -- using ?. could change behavior
pendingEntry !== undefined && pendingEntry.type === "lifetime", 0xbf8 /* Couldn't match local set message to pending lifetime */);
const pendingKeySet = pendingEntry.keySets.shift();

@@ -565,0 +573,0 @@ (0, internal_1.assert)(pendingKeySet !== undefined && pendingKeySet === localOpMetadata, 0xbf9 /* Got a local set message we weren't expecting */);

@@ -8,3 +8,3 @@ /*!

export declare const pkgName = "@fluidframework/map";
export declare const pkgVersion = "2.80.0";
export declare const pkgVersion = "2.81.0-374083";
//# sourceMappingURL=packageVersion.d.ts.map

@@ -11,3 +11,3 @@ "use strict";

exports.pkgName = "@fluidframework/map";
exports.pkgVersion = "2.80.0";
exports.pkgVersion = "2.81.0-374083";
//# sourceMappingURL=packageVersion.js.map

@@ -1,6 +0,6 @@

/* eslint-disable */
/**
* GENERATED FILE - DO NOT EDIT DIRECTLY.
* To regenerate: pnpm tsx scripts/generate-flat-eslint-configs.ts --typescript
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import type { Linter } from "eslint";

@@ -7,0 +7,0 @@ import { strict } from "../../../common/build/eslint-config-fluid/flat.mts";

@@ -11,3 +11,3 @@ /*!

import { type ITelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal";
import type { IDirectory, IDirectoryEvents, ISharedDirectory, ISharedDirectoryEventsInternal } from "./interfaces.js";
import type { IDirectory, IDirectoryEvents, ISharedDirectory, ISharedDirectoryEvents } from "./interfaces.js";
import type { ISerializableValue, ISerializedValue } from "./internalInterfaces.js";

@@ -216,3 +216,3 @@ /**

*/
export declare class SharedDirectory extends SharedObject<ISharedDirectoryEventsInternal> implements ISharedDirectory {
export declare class SharedDirectory extends SharedObject<ISharedDirectoryEvents> implements ISharedDirectory {
/**

@@ -219,0 +219,0 @@ * String representation for the class.

@@ -117,2 +117,4 @@ /*!

*
* @deprecated Use the "cleared" event instead which provides the path that was cleared.
*
* @remarks Listener parameters:

@@ -126,2 +128,14 @@ *

/**
* Emitted when the {@link ISharedDirectory} is cleared.
*
* @remarks Listener parameters:
*
* - `path` - The absolute path to the directory that was cleared.
*
* - `local` - Whether the clear originated from this client.
*
* - `target` - The {@link ISharedDirectory} itself.
*/
(event: "cleared", listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void): any;
/**
* Emitted when a subdirectory is created.

@@ -221,20 +235,2 @@ *

/**
* Internal events for {@link ISharedDirectory}.
* @internal
*/
export interface ISharedDirectoryEventsInternal extends ISharedDirectoryEvents {
/**
* Emitted when the {@link ISharedDirectory} is cleared.
*
* @remarks Listener parameters:
*
* - `path` - The absolute path to the directory that was cleared.
*
* - `local` - Whether the clear originated from this client.
*
* - `target` - The {@link ISharedDirectory} itself.
*/
(event: "clearInternal", listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void): any;
}
/**
* Provides a hierarchical organization of map-like data structures as SubDirectories.

@@ -241,0 +237,0 @@ * The values stored within can be accessed like a map, and the hierarchy can be navigated using path syntax.

@@ -79,3 +79,3 @@ /*!

forEach(callbackFn) {
// eslint-disable-next-line unicorn/no-array-for-each, unicorn/no-array-callback-reference
// eslint-disable-next-line unicorn/no-array-for-each
this.kernel.forEach(callbackFn);

@@ -82,0 +82,0 @@ }

@@ -451,3 +451,5 @@ /*!

const pendingClear = this.pendingData.pop();
assert(pendingClear !== undefined &&
assert(
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain -- using ?. could change behavior
pendingClear !== undefined &&
pendingClear.type === "clear" &&

@@ -495,3 +497,5 @@ pendingClear === typedLocalOpMetadata, 0xbf2 /* Unexpected clear rollback */);

const pendingClear = this.pendingData.shift();
assert(pendingClear !== undefined &&
assert(
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain -- using ?. could change behavior
pendingClear !== undefined &&
pendingClear.type === "clear" &&

@@ -533,3 +537,5 @@ pendingClear === localOpMetadata, 0xbf6 /* Got a local clear message we weren't expecting */);

const pendingEntry = this.pendingData[pendingEntryIndex];
assert(pendingEntry !== undefined &&
assert(
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain -- using ?. could change behavior
pendingEntry !== undefined &&
pendingEntry.type === "delete" &&

@@ -559,3 +565,5 @@ pendingEntry === localOpMetadata, 0xbf7 /* Got a local delete message we weren't expecting */);

const pendingEntry = this.pendingData[pendingEntryIndex];
assert(pendingEntry !== undefined && pendingEntry.type === "lifetime", 0xbf8 /* Couldn't match local set message to pending lifetime */);
assert(
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain -- using ?. could change behavior
pendingEntry !== undefined && pendingEntry.type === "lifetime", 0xbf8 /* Couldn't match local set message to pending lifetime */);
const pendingKeySet = pendingEntry.keySets.shift();

@@ -562,0 +570,0 @@ assert(pendingKeySet !== undefined && pendingKeySet === localOpMetadata, 0xbf9 /* Got a local set message we weren't expecting */);

@@ -8,3 +8,3 @@ /*!

export declare const pkgName = "@fluidframework/map";
export declare const pkgVersion = "2.80.0";
export declare const pkgVersion = "2.81.0-374083";
//# sourceMappingURL=packageVersion.d.ts.map

@@ -8,3 +8,3 @@ /*!

export const pkgName = "@fluidframework/map";
export const pkgVersion = "2.80.0";
export const pkgVersion = "2.81.0-374083";
//# sourceMappingURL=packageVersion.js.map
{
"name": "@fluidframework/map",
"version": "2.80.0",
"version": "2.81.0-374083",
"description": "Distributed map",

@@ -84,12 +84,12 @@ "homepage": "https://fluidframework.com",

"dependencies": {
"@fluid-internal/client-utils": "~2.80.0",
"@fluidframework/core-interfaces": "~2.80.0",
"@fluidframework/core-utils": "~2.80.0",
"@fluidframework/datastore-definitions": "~2.80.0",
"@fluidframework/driver-definitions": "~2.80.0",
"@fluidframework/driver-utils": "~2.80.0",
"@fluidframework/runtime-definitions": "~2.80.0",
"@fluidframework/runtime-utils": "~2.80.0",
"@fluidframework/shared-object-base": "~2.80.0",
"@fluidframework/telemetry-utils": "~2.80.0",
"@fluid-internal/client-utils": "2.81.0-374083",
"@fluidframework/core-interfaces": "2.81.0-374083",
"@fluidframework/core-utils": "2.81.0-374083",
"@fluidframework/datastore-definitions": "2.81.0-374083",
"@fluidframework/driver-definitions": "2.81.0-374083",
"@fluidframework/driver-utils": "2.81.0-374083",
"@fluidframework/runtime-definitions": "2.81.0-374083",
"@fluidframework/runtime-utils": "2.81.0-374083",
"@fluidframework/shared-object-base": "2.81.0-374083",
"@fluidframework/telemetry-utils": "2.81.0-374083",
"path-browserify": "^1.0.1"

@@ -100,13 +100,13 @@ },

"@biomejs/biome": "~1.9.3",
"@fluid-internal/mocha-test-setup": "~2.80.0",
"@fluid-private/stochastic-test-utils": "~2.80.0",
"@fluid-private/test-dds-utils": "~2.80.0",
"@fluid-tools/benchmark": "^0.51.0",
"@fluid-tools/build-cli": "^0.62.0",
"@fluid-internal/mocha-test-setup": "2.81.0-374083",
"@fluid-private/stochastic-test-utils": "2.81.0-374083",
"@fluid-private/test-dds-utils": "2.81.0-374083",
"@fluid-tools/benchmark": "^0.52.0",
"@fluid-tools/build-cli": "^0.63.0",
"@fluidframework/build-common": "^2.0.3",
"@fluidframework/build-tools": "^0.62.0",
"@fluidframework/container-definitions": "~2.80.0",
"@fluidframework/eslint-config-fluid": "~2.80.0",
"@fluidframework/map-previous": "npm:@fluidframework/map@2.74.0",
"@fluidframework/test-runtime-utils": "~2.80.0",
"@fluidframework/build-tools": "^0.63.0",
"@fluidframework/container-definitions": "2.81.0-374083",
"@fluidframework/eslint-config-fluid": "2.81.0-374083",
"@fluidframework/map-previous": "npm:@fluidframework/map@2.80.0",
"@fluidframework/test-runtime-utils": "2.81.0-374083",
"@microsoft/api-extractor": "7.52.11",

@@ -113,0 +113,0 @@ "@types/mocha": "^10.0.10",

@@ -156,2 +156,4 @@ /*!

*
* @deprecated Use the "cleared" event instead which provides the path that was cleared.
*
* @remarks Listener parameters:

@@ -166,2 +168,18 @@ *

/**
* Emitted when the {@link ISharedDirectory} is cleared.
*
* @remarks Listener parameters:
*
* - `path` - The absolute path to the directory that was cleared.
*
* - `local` - Whether the clear originated from this client.
*
* - `target` - The {@link ISharedDirectory} itself.
*/
(
event: "cleared",
listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void,
);
/**
* Emitted when a subdirectory is created.

@@ -283,24 +301,2 @@ *

/**
* Internal events for {@link ISharedDirectory}.
* @internal
*/
export interface ISharedDirectoryEventsInternal extends ISharedDirectoryEvents {
/**
* Emitted when the {@link ISharedDirectory} is cleared.
*
* @remarks Listener parameters:
*
* - `path` - The absolute path to the directory that was cleared.
*
* - `local` - Whether the clear originated from this client.
*
* - `target` - The {@link ISharedDirectory} itself.
*/
(
event: "clearInternal",
listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void,
);
}
/**
* Provides a hierarchical organization of map-like data structures as SubDirectories.

@@ -307,0 +303,0 @@ * The values stored within can be accessed like a map, and the hierarchy can be navigated using path syntax.

@@ -127,3 +127,3 @@ /*!

public forEach(callbackFn: (value: any, key: string, map: Map<string, any>) => void): void {
// eslint-disable-next-line unicorn/no-array-for-each, unicorn/no-array-callback-reference
// eslint-disable-next-line unicorn/no-array-for-each
this.kernel.forEach(callbackFn);

@@ -130,0 +130,0 @@ }

@@ -644,2 +644,3 @@ /*!

assert(
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain -- using ?. could change behavior
pendingClear !== undefined &&

@@ -718,2 +719,3 @@ pendingClear.type === "clear" &&

assert(
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain -- using ?. could change behavior
pendingClear !== undefined &&

@@ -775,2 +777,3 @@ pendingClear.type === "clear" &&

assert(
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain -- using ?. could change behavior
pendingEntry !== undefined &&

@@ -816,2 +819,3 @@ pendingEntry.type === "delete" &&

assert(
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain -- using ?. could change behavior
pendingEntry !== undefined && pendingEntry.type === "lifetime",

@@ -818,0 +822,0 @@ 0xbf8 /* Couldn't match local set message to pending lifetime */,

@@ -9,2 +9,2 @@ /*!

export const pkgName = "@fluidframework/map";
export const pkgVersion = "2.80.0";
export const pkgVersion = "2.81.0-374083";
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
module.exports = {
extends: [require.resolve("@fluidframework/eslint-config-fluid/strict"), "prettier"],
parserOptions: {
project: ["./tsconfig.json", "./src/test/tsconfig.json"],
},
rules: {
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
// TODO: consider re-enabling once we have addressed how this rule conflicts with our error codes.
"unicorn/numeric-separators-style": "off",
"@fluid-internal/fluid/no-unchecked-record-access": "warn",
},
overrides: [
{
files: ["src/test/**"],
rules: {
// Allow tests (which only run in Node.js) use `__dirname`
"unicorn/prefer-module": "off",
},
},
],
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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 too big to display