@fluid-experimental/oldest-client-observer 2.3.0-288113 → 2.3.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/dist/interfaces.d.ts +1 -1
- package/dist/interfaces.js.map +1 -1
- package/lib/interfaces.d.ts +1 -1
- package/lib/interfaces.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +18 -12
- package/src/interfaces.ts +1 -1
package/CHANGELOG.md
CHANGED
package/dist/interfaces.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface IOldestClientObservableEvents extends IEvent {
|
|
|
15
15
|
(event: "disconnected", listener: () => void): any;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* This is to make OldestClientObserver work with either a
|
|
18
|
+
* This is to make OldestClientObserver work with either a IContainerRuntime or an IFluidDataStoreRuntime
|
|
19
19
|
* (both expose the relevant API surface and eventing). However, really this info probably shouldn't live on either,
|
|
20
20
|
* since neither is really the source of truth (they are just the only currently-available plumbing options).
|
|
21
21
|
* It's information about the connection, so the real source of truth is lower (at the connection layer).
|
package/dist/interfaces.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { AttachState } from \"@fluidframework/container-definitions\";\nimport { IEvent, IEventProvider } from \"@fluidframework/core-interfaces\";\nimport { IQuorumClients } from \"@fluidframework/driver-definitions\";\n\n/**\n * Events emitted by {@link IOldestClientObservable}.\n * @legacy\n * @alpha\n */\nexport interface IOldestClientObservableEvents extends IEvent {\n\t(event: \"connected\", listener: () => void);\n\t(event: \"disconnected\", listener: () => void);\n}\n\n/**\n * This is to make OldestClientObserver work with either a
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { AttachState } from \"@fluidframework/container-definitions\";\nimport { IEvent, IEventProvider } from \"@fluidframework/core-interfaces\";\nimport { IQuorumClients } from \"@fluidframework/driver-definitions\";\n\n/**\n * Events emitted by {@link IOldestClientObservable}.\n * @legacy\n * @alpha\n */\nexport interface IOldestClientObservableEvents extends IEvent {\n\t(event: \"connected\", listener: () => void);\n\t(event: \"disconnected\", listener: () => void);\n}\n\n/**\n * This is to make OldestClientObserver work with either a IContainerRuntime or an IFluidDataStoreRuntime\n * (both expose the relevant API surface and eventing). However, really this info probably shouldn't live on either,\n * since neither is really the source of truth (they are just the only currently-available plumbing options).\n * It's information about the connection, so the real source of truth is lower (at the connection layer).\n * @legacy\n * @alpha\n */\nexport interface IOldestClientObservable\n\textends IEventProvider<IOldestClientObservableEvents> {\n\tgetQuorum(): IQuorumClients;\n\t// Generic usage of attachState is a little unusual here. We will treat ourselves as \"the oldest client that\n\t// has information about this [container | data store]\", which in the case of detached data store may disagree\n\t// with whether we're the oldest client on the connected container. So in the data store case, it's only\n\t// safe use this as an indicator about rights to tasks performed against this specific data store, and not\n\t// more broadly.\n\tattachState: AttachState;\n\tconnected: boolean;\n\tclientId: string | undefined;\n}\n\n/**\n * Events emitted by {@link IOldestClientObservable}.\n * @legacy\n * @alpha\n */\nexport interface IOldestClientObserverEvents extends IEvent {\n\t(event: \"becameOldest\" | \"lostOldest\", listener: () => void);\n}\n\n/**\n * @legacy\n * @alpha\n */\nexport interface IOldestClientObserver extends IEventProvider<IOldestClientObserverEvents> {\n\tisOldest(): boolean;\n}\n"]}
|
package/lib/interfaces.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface IOldestClientObservableEvents extends IEvent {
|
|
|
15
15
|
(event: "disconnected", listener: () => void): any;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* This is to make OldestClientObserver work with either a
|
|
18
|
+
* This is to make OldestClientObserver work with either a IContainerRuntime or an IFluidDataStoreRuntime
|
|
19
19
|
* (both expose the relevant API surface and eventing). However, really this info probably shouldn't live on either,
|
|
20
20
|
* since neither is really the source of truth (they are just the only currently-available plumbing options).
|
|
21
21
|
* It's information about the connection, so the real source of truth is lower (at the connection layer).
|
package/lib/interfaces.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { AttachState } from \"@fluidframework/container-definitions\";\nimport { IEvent, IEventProvider } from \"@fluidframework/core-interfaces\";\nimport { IQuorumClients } from \"@fluidframework/driver-definitions\";\n\n/**\n * Events emitted by {@link IOldestClientObservable}.\n * @legacy\n * @alpha\n */\nexport interface IOldestClientObservableEvents extends IEvent {\n\t(event: \"connected\", listener: () => void);\n\t(event: \"disconnected\", listener: () => void);\n}\n\n/**\n * This is to make OldestClientObserver work with either a
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { AttachState } from \"@fluidframework/container-definitions\";\nimport { IEvent, IEventProvider } from \"@fluidframework/core-interfaces\";\nimport { IQuorumClients } from \"@fluidframework/driver-definitions\";\n\n/**\n * Events emitted by {@link IOldestClientObservable}.\n * @legacy\n * @alpha\n */\nexport interface IOldestClientObservableEvents extends IEvent {\n\t(event: \"connected\", listener: () => void);\n\t(event: \"disconnected\", listener: () => void);\n}\n\n/**\n * This is to make OldestClientObserver work with either a IContainerRuntime or an IFluidDataStoreRuntime\n * (both expose the relevant API surface and eventing). However, really this info probably shouldn't live on either,\n * since neither is really the source of truth (they are just the only currently-available plumbing options).\n * It's information about the connection, so the real source of truth is lower (at the connection layer).\n * @legacy\n * @alpha\n */\nexport interface IOldestClientObservable\n\textends IEventProvider<IOldestClientObservableEvents> {\n\tgetQuorum(): IQuorumClients;\n\t// Generic usage of attachState is a little unusual here. We will treat ourselves as \"the oldest client that\n\t// has information about this [container | data store]\", which in the case of detached data store may disagree\n\t// with whether we're the oldest client on the connected container. So in the data store case, it's only\n\t// safe use this as an indicator about rights to tasks performed against this specific data store, and not\n\t// more broadly.\n\tattachState: AttachState;\n\tconnected: boolean;\n\tclientId: string | undefined;\n}\n\n/**\n * Events emitted by {@link IOldestClientObservable}.\n * @legacy\n * @alpha\n */\nexport interface IOldestClientObserverEvents extends IEvent {\n\t(event: \"becameOldest\" | \"lostOldest\", listener: () => void);\n}\n\n/**\n * @legacy\n * @alpha\n */\nexport interface IOldestClientObserver extends IEventProvider<IOldestClientObserverEvents> {\n\tisOldest(): boolean;\n}\n"]}
|
package/lib/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-experimental/oldest-client-observer",
|
|
3
|
-
"version": "2.3.0
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Data object to determine if the local client is the oldest amongst connected clients",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -67,21 +67,21 @@
|
|
|
67
67
|
"temp-directory": "nyc/.nyc_output"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@fluid-internal/client-utils": "2.3.0
|
|
71
|
-
"@fluidframework/container-definitions": "2.3.0
|
|
72
|
-
"@fluidframework/core-interfaces": "2.3.0
|
|
73
|
-
"@fluidframework/core-utils": "2.3.0
|
|
74
|
-
"@fluidframework/driver-definitions": "2.3.0
|
|
70
|
+
"@fluid-internal/client-utils": "~2.3.0",
|
|
71
|
+
"@fluidframework/container-definitions": "~2.3.0",
|
|
72
|
+
"@fluidframework/core-interfaces": "~2.3.0",
|
|
73
|
+
"@fluidframework/core-utils": "~2.3.0",
|
|
74
|
+
"@fluidframework/driver-definitions": "~2.3.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@arethetypeswrong/cli": "^0.15.2",
|
|
78
78
|
"@biomejs/biome": "~1.8.3",
|
|
79
|
-
"@fluid-private/test-dds-utils": "2.3.0
|
|
80
|
-
"@fluid-tools/build-cli": "^0.
|
|
79
|
+
"@fluid-private/test-dds-utils": "~2.3.0",
|
|
80
|
+
"@fluid-tools/build-cli": "^0.46.0",
|
|
81
81
|
"@fluidframework/build-common": "^2.0.3",
|
|
82
|
-
"@fluidframework/build-tools": "^0.
|
|
83
|
-
"@fluidframework/eslint-config-fluid": "^5.
|
|
84
|
-
"@microsoft/api-extractor": "
|
|
82
|
+
"@fluidframework/build-tools": "^0.46.0",
|
|
83
|
+
"@fluidframework/eslint-config-fluid": "^5.4.0",
|
|
84
|
+
"@microsoft/api-extractor": "7.47.8",
|
|
85
85
|
"@types/node": "^18.19.0",
|
|
86
86
|
"concurrently": "^8.2.1",
|
|
87
87
|
"copyfiles": "^2.4.1",
|
|
@@ -93,14 +93,20 @@
|
|
|
93
93
|
},
|
|
94
94
|
"fluidBuild": {
|
|
95
95
|
"tasks": {
|
|
96
|
+
"build:esnext": [
|
|
97
|
+
"...",
|
|
98
|
+
"typetests:gen"
|
|
99
|
+
],
|
|
96
100
|
"tsc": [
|
|
101
|
+
"...",
|
|
97
102
|
"typetests:gen"
|
|
98
103
|
]
|
|
99
104
|
}
|
|
100
105
|
},
|
|
101
106
|
"typeValidation": {
|
|
102
107
|
"disabled": true,
|
|
103
|
-
"broken": {}
|
|
108
|
+
"broken": {},
|
|
109
|
+
"entrypoint": "internal"
|
|
104
110
|
},
|
|
105
111
|
"scripts": {
|
|
106
112
|
"api": "fluid-build . --task api",
|
package/src/interfaces.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface IOldestClientObservableEvents extends IEvent {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* This is to make OldestClientObserver work with either a
|
|
21
|
+
* This is to make OldestClientObserver work with either a IContainerRuntime or an IFluidDataStoreRuntime
|
|
22
22
|
* (both expose the relevant API surface and eventing). However, really this info probably shouldn't live on either,
|
|
23
23
|
* since neither is really the source of truth (they are just the only currently-available plumbing options).
|
|
24
24
|
* It's information about the connection, so the real source of truth is lower (at the connection layer).
|