@rerun-io/web-viewer-react 0.30.0-alpha.5 → 0.30.0-alpha.6
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 +1 -1
- package/index.js +4 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ export default function App() {
|
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
The `rrd` in the snippet above should be a URL pointing to either:
|
|
38
|
-
- A hosted `.rrd` file, such as <https://app.rerun.io/version/0.30.0-alpha.
|
|
38
|
+
- A hosted `.rrd` file, such as <https://app.rerun.io/version/0.30.0-alpha.6/examples/dna.rrd>
|
|
39
39
|
- A gRPC connection to the SDK opened via the [`serve`](https://www.rerun.io/docs/reference/sdk/operating-modes#serve) API
|
|
40
40
|
|
|
41
41
|
If `rrd` is not set, the Viewer will display the same welcome screen as <https://app.rerun.io>.
|
package/index.js
CHANGED
|
@@ -172,17 +172,18 @@ function diff(prev, current) {
|
|
|
172
172
|
function keysChanged(prev, curr, keys) {
|
|
173
173
|
for (const key of keys) {
|
|
174
174
|
if (prev[key] !== curr[key]) {
|
|
175
|
-
return
|
|
175
|
+
return true;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
return
|
|
178
|
+
return false;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
182
|
* @template T
|
|
183
|
-
* @param {T | T[]} a
|
|
183
|
+
* @param {T | T[] | undefined | null} a
|
|
184
184
|
* @returns {T[]}
|
|
185
185
|
*/
|
|
186
186
|
function toArray(a) {
|
|
187
|
+
if (a == null) return [];
|
|
187
188
|
return Array.isArray(a) ? a : [a];
|
|
188
189
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rerun-io/web-viewer-react",
|
|
3
|
-
"version": "0.30.0-alpha.
|
|
3
|
+
"version": "0.30.0-alpha.6",
|
|
4
4
|
"description": "Embed the Rerun web viewer in your React app",
|
|
5
5
|
"licenses": [
|
|
6
6
|
{
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"tsconfig.json"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@rerun-io/web-viewer": "0.30.0-alpha.
|
|
46
|
+
"@rerun-io/web-viewer": "0.30.0-alpha.6"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@types/react": "^18.2.33 || ^19.0.0",
|