@vitrinka/web 0.5.1 → 0.5.2
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 +11 -0
- package/build/recorder/lead.js +16 -3
- package/build/recorder/version.d.ts +2 -2
- package/build/recorder/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @vitrinka/web
|
|
2
2
|
|
|
3
|
+
## 0.5.2
|
|
4
|
+
|
|
5
|
+
- **A page that leads keeps the recording against an extension that is only
|
|
6
|
+
starting.** 0.5.1's yield (a page holding the claim lets go when the
|
|
7
|
+
extension records in another tab) also fired on the `starting` the
|
|
8
|
+
extension's Start probe announces before it reads the page's claim. The
|
|
9
|
+
page stepped aside and the extension's Start went through instead of being
|
|
10
|
+
refused (extension 0.11.0 against web 0.5.1). The page now yields only to
|
|
11
|
+
an extension recording or paused elsewhere; a probe meets the claim and is
|
|
12
|
+
refused, as first-to-start-leads demands.
|
|
13
|
+
|
|
3
14
|
## 0.5.1
|
|
4
15
|
|
|
5
16
|
- **A claim names its session.** The server answers a session's id as a
|
package/build/recorder/lead.js
CHANGED
|
@@ -42,6 +42,17 @@ function extensionLive() {
|
|
|
42
42
|
return l;
|
|
43
43
|
return null;
|
|
44
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* The extension's recording is under way in another tab. Its Start probe
|
|
47
|
+
* announces `starting` before it reads this page's claim, and a draining
|
|
48
|
+
* Stop is ending: neither takes a document from the page that leads (D1).
|
|
49
|
+
*/
|
|
50
|
+
function extensionRecordingElsewhere() {
|
|
51
|
+
for (const l of extension.values())
|
|
52
|
+
if (!l.here && (l.state === 'recording' || l.state === 'paused'))
|
|
53
|
+
return true;
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
45
56
|
/** A claim of another holder (any state: a `saved` one keeps its face, D7), else the extension elsewhere. */
|
|
46
57
|
function computeFollowing() {
|
|
47
58
|
if (!env)
|
|
@@ -85,9 +96,11 @@ function syncClaim() {
|
|
|
85
96
|
if (held) {
|
|
86
97
|
// The extension recording elsewhere keeps the browser even over a claim
|
|
87
98
|
// this page holds — a tab thawing after the extension's Start probe
|
|
88
|
-
// could not reach it, or a Start
|
|
89
|
-
// (D14), never two recordings.
|
|
90
|
-
|
|
99
|
+
// could not reach it, or a Start whose probe ran before this claim: let
|
|
100
|
+
// go and wait (D14), never two recordings. Only a recording under way
|
|
101
|
+
// counts — a probe's `starting` meets this claim and is refused (D13).
|
|
102
|
+
// A Stop already draining here keeps its face.
|
|
103
|
+
if (want.state !== 'saved' && want.state !== 'stopping' && extensionRecordingElsewhere()) {
|
|
91
104
|
if (releaseClaim(env, self.inst))
|
|
92
105
|
announce(env, self, null);
|
|
93
106
|
return;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Sent as `meta.recorder` and written as `data-vitrinka-page`; bumped with the package version. */
|
|
2
|
-
export declare const RECORDER_VERSION = "0.5.
|
|
3
|
-
export declare const RECORDER_ID = "web/0.5.
|
|
2
|
+
export declare const RECORDER_VERSION = "0.5.2";
|
|
3
|
+
export declare const RECORDER_ID = "web/0.5.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitrinka/web",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "vitrinka toolkit for React DOM apps — the journey recorder: capture manual-testing sessions (rrweb DOM stream, clicks, navigation, network, console, notes) straight into vitrinka boards.",
|
|
5
5
|
"license": "Elastic-2.0",
|
|
6
6
|
"repository": {
|