@synapse-sdk/react 0.3.8 → 0.3.9
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/README.md +5 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -6,6 +6,11 @@ React hooks for a Synapse node: `<SynapseProvider node={node}>` above your compo
|
|
|
6
6
|
`useSceneStatus(scene)`, `useTasks(select?)` and `useDiscover()` (your clusters, once signed in). Every hook reads a value the node keeps current; none keeps its own
|
|
7
7
|
copy.
|
|
8
8
|
|
|
9
|
+
`useCatalog().topics` lists every topic that has a publisher or a subscriber that reads it with a schema: each entry
|
|
10
|
+
has the topic's shape (`desc`), its `publishers` and its `subscribers` (`{ name }` per node). A controller waiting for
|
|
11
|
+
commands shows up there before anyone publishes. A subscription by name only, or to a topic defined without a schema,
|
|
12
|
+
is not listed.
|
|
13
|
+
|
|
9
14
|
## Two kinds of users
|
|
10
15
|
|
|
11
16
|
- **Node author** (a robot driver, a sim, a task, a panel that edits a few known things): `node.store(name)` with
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synapse-sdk/react",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"description": "Synapse SDK React hooks: connection, topics, calls, services, store.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@synapse-sdk/core": "0.3.
|
|
18
|
-
"@synapse-sdk/client": "0.3.
|
|
17
|
+
"@synapse-sdk/core": "0.3.9",
|
|
18
|
+
"@synapse-sdk/client": "0.3.9"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": ">=18"
|