@fluidframework/ordered-collection 2.33.0-333010 → 2.33.1
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-report/ordered-collection.legacy.alpha.api.md +10 -10
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.d.ts.map +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +15 -17
- package/src/packageVersion.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
-
// @alpha
|
|
7
|
+
// @alpha @legacy
|
|
8
8
|
export type ConsensusCallback<T> = (value: T) => Promise<ConsensusResult>;
|
|
9
9
|
|
|
10
|
-
// @alpha
|
|
10
|
+
// @alpha @legacy
|
|
11
11
|
export class ConsensusOrderedCollection<T = any> extends SharedObject<IConsensusOrderedCollectionEvents<T>> implements IConsensusOrderedCollection<T> {
|
|
12
12
|
protected constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes, data: IOrderedCollection<T>);
|
|
13
13
|
acquire(callback: ConsensusCallback<T>): Promise<boolean>;
|
|
@@ -34,18 +34,18 @@ export class ConsensusOrderedCollection<T = any> extends SharedObject<IConsensus
|
|
|
34
34
|
waitAndAcquire(callback: ConsensusCallback<T>): Promise<void>;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
// @alpha
|
|
37
|
+
// @alpha @legacy
|
|
38
38
|
export const ConsensusQueue: ISharedObjectKind<IConsensusOrderedCollection<any>> & SharedObjectKind<IConsensusOrderedCollection<any>>;
|
|
39
39
|
|
|
40
|
-
// @alpha
|
|
40
|
+
// @alpha @legacy
|
|
41
41
|
export type ConsensusQueue<T = any> = ConsensusQueueClass<T>;
|
|
42
42
|
|
|
43
|
-
// @alpha
|
|
43
|
+
// @alpha @legacy
|
|
44
44
|
export class ConsensusQueueClass<T = any> extends ConsensusOrderedCollection<T> {
|
|
45
45
|
constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
// @alpha (undocumented)
|
|
48
|
+
// @alpha @legacy (undocumented)
|
|
49
49
|
export enum ConsensusResult {
|
|
50
50
|
// (undocumented)
|
|
51
51
|
Complete = 1,
|
|
@@ -53,14 +53,14 @@ export enum ConsensusResult {
|
|
|
53
53
|
Release = 0
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
// @alpha
|
|
56
|
+
// @alpha @legacy
|
|
57
57
|
export interface IConsensusOrderedCollection<T = any> extends ISharedObject<IConsensusOrderedCollectionEvents<T>> {
|
|
58
58
|
acquire(callback: ConsensusCallback<T>): Promise<boolean>;
|
|
59
59
|
add(value: T): Promise<void>;
|
|
60
60
|
waitAndAcquire(callback: ConsensusCallback<T>): Promise<void>;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
// @alpha
|
|
63
|
+
// @alpha @legacy
|
|
64
64
|
export interface IConsensusOrderedCollectionEvents<T> extends ISharedObjectEvents {
|
|
65
65
|
(event: "add", listener: (value: T, newlyAdded: boolean) => void): this;
|
|
66
66
|
(event: "acquire", listener: (value: T, clientId?: string) => void): this;
|
|
@@ -68,14 +68,14 @@ export interface IConsensusOrderedCollectionEvents<T> extends ISharedObjectEvent
|
|
|
68
68
|
(event: "localRelease", listener: (value: T, intentional: boolean) => void): this;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
// @alpha
|
|
71
|
+
// @alpha @legacy
|
|
72
72
|
export interface IOrderedCollection<T = any> extends ISnapshotable<T> {
|
|
73
73
|
add(value: T): any;
|
|
74
74
|
remove(): T;
|
|
75
75
|
size(): number;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
// @alpha
|
|
78
|
+
// @alpha @legacy
|
|
79
79
|
export interface ISnapshotable<T> {
|
|
80
80
|
// (undocumented)
|
|
81
81
|
asArray(): T[];
|
package/dist/packageVersion.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export declare const pkgName = "@fluidframework/ordered-collection";
|
|
8
|
-
export declare const pkgVersion = "2.33.
|
|
8
|
+
export declare const pkgVersion = "2.33.1";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,uCAAuC,CAAC;AAC5D,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,uCAAuC,CAAC;AAC5D,eAAO,MAAM,UAAU,WAAW,CAAC"}
|
package/dist/packageVersion.js
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.pkgVersion = exports.pkgName = void 0;
|
|
10
10
|
exports.pkgName = "@fluidframework/ordered-collection";
|
|
11
|
-
exports.pkgVersion = "2.33.
|
|
11
|
+
exports.pkgVersion = "2.33.1";
|
|
12
12
|
//# sourceMappingURL=packageVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,oCAAoC,CAAC;AAC/C,QAAA,UAAU,GAAG,
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,oCAAoC,CAAC;AAC/C,QAAA,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/ordered-collection\";\nexport const pkgVersion = \"2.33.1\";\n"]}
|
package/lib/packageVersion.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export declare const pkgName = "@fluidframework/ordered-collection";
|
|
8
|
-
export declare const pkgVersion = "2.33.
|
|
8
|
+
export declare const pkgVersion = "2.33.1";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,uCAAuC,CAAC;AAC5D,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,uCAAuC,CAAC;AAC5D,eAAO,MAAM,UAAU,WAAW,CAAC"}
|
package/lib/packageVersion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,oCAAoC,CAAC;AAC5D,MAAM,CAAC,MAAM,UAAU,GAAG,
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,oCAAoC,CAAC;AAC5D,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/ordered-collection\";\nexport const pkgVersion = \"2.33.1\";\n"]}
|
package/lib/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/ordered-collection",
|
|
3
|
-
"version": "2.33.
|
|
3
|
+
"version": "2.33.1",
|
|
4
4
|
"description": "Consensus Collection",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -69,29 +69,29 @@
|
|
|
69
69
|
"temp-directory": "nyc/.nyc_output"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@fluid-internal/client-utils": "2.33.
|
|
73
|
-
"@fluidframework/core-interfaces": "2.33.
|
|
74
|
-
"@fluidframework/core-utils": "2.33.
|
|
75
|
-
"@fluidframework/datastore-definitions": "2.33.
|
|
76
|
-
"@fluidframework/driver-definitions": "2.33.
|
|
77
|
-
"@fluidframework/runtime-definitions": "2.33.
|
|
78
|
-
"@fluidframework/runtime-utils": "2.33.
|
|
79
|
-
"@fluidframework/shared-object-base": "2.33.
|
|
80
|
-
"@fluidframework/telemetry-utils": "2.33.
|
|
72
|
+
"@fluid-internal/client-utils": "~2.33.1",
|
|
73
|
+
"@fluidframework/core-interfaces": "~2.33.1",
|
|
74
|
+
"@fluidframework/core-utils": "~2.33.1",
|
|
75
|
+
"@fluidframework/datastore-definitions": "~2.33.1",
|
|
76
|
+
"@fluidframework/driver-definitions": "~2.33.1",
|
|
77
|
+
"@fluidframework/runtime-definitions": "~2.33.1",
|
|
78
|
+
"@fluidframework/runtime-utils": "~2.33.1",
|
|
79
|
+
"@fluidframework/shared-object-base": "~2.33.1",
|
|
80
|
+
"@fluidframework/telemetry-utils": "~2.33.1",
|
|
81
81
|
"uuid": "^9.0.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@arethetypeswrong/cli": "^0.17.1",
|
|
85
85
|
"@biomejs/biome": "~1.9.3",
|
|
86
|
-
"@fluid-internal/mocha-test-setup": "2.33.
|
|
87
|
-
"@fluid-private/test-dds-utils": "2.33.
|
|
86
|
+
"@fluid-internal/mocha-test-setup": "~2.33.1",
|
|
87
|
+
"@fluid-private/test-dds-utils": "~2.33.1",
|
|
88
88
|
"@fluid-tools/build-cli": "^0.55.0",
|
|
89
89
|
"@fluidframework/build-common": "^2.0.3",
|
|
90
90
|
"@fluidframework/build-tools": "^0.55.0",
|
|
91
91
|
"@fluidframework/eslint-config-fluid": "^5.7.3",
|
|
92
|
-
"@fluidframework/ordered-collection-previous": "npm:@fluidframework/ordered-collection@2.
|
|
93
|
-
"@fluidframework/test-runtime-utils": "2.33.
|
|
94
|
-
"@microsoft/api-extractor": "7.
|
|
92
|
+
"@fluidframework/ordered-collection-previous": "npm:@fluidframework/ordered-collection@2.33.0",
|
|
93
|
+
"@fluidframework/test-runtime-utils": "~2.33.1",
|
|
94
|
+
"@microsoft/api-extractor": "7.52.5",
|
|
95
95
|
"@types/mocha": "^10.0.10",
|
|
96
96
|
"@types/node": "^18.19.0",
|
|
97
97
|
"@types/uuid": "^9.0.2",
|
|
@@ -102,8 +102,6 @@
|
|
|
102
102
|
"eslint": "~8.55.0",
|
|
103
103
|
"mocha": "^10.8.2",
|
|
104
104
|
"mocha-multi-reporters": "^1.5.1",
|
|
105
|
-
"moment": "^2.21.0",
|
|
106
|
-
"replace-in-file": "^6.3.5",
|
|
107
105
|
"rimraf": "^4.4.0",
|
|
108
106
|
"typescript": "~5.4.5"
|
|
109
107
|
},
|
package/src/packageVersion.ts
CHANGED