@reventlessdev/reventless-gwt 1.0.0-alpha.100 → 1.0.0-alpha.101
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 +8 -0
- package/package.json +4 -4
- package/rescript.json +1 -1
- package/src/DomainDeadCode.res +1 -1
- package/src/DomainGraph.res +0 -0
- package/src/FormatterVsCode.res +2 -2
- package/src/FormatterVsCode.res.mjs +29 -29
- package/tests/DomainGraphTest.res +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 1.0.0-alpha.101 (2026-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @reventlessdev/reventless-gwt
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# 1.0.0-alpha.100 (2026-07-11)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @reventlessdev/reventless-gwt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reventlessdev/reventless-gwt",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.101",
|
|
4
4
|
"description": "Given-When-Then DSLs and CLI runner for Reventless slice testing",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": {
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"chokidar": "^3.6.0",
|
|
21
21
|
"picocolors": "^1.1.1",
|
|
22
22
|
"sury": "11.0.0-alpha.4",
|
|
23
|
-
"@reventlessdev/rescript-effect": "0.1.0-alpha.26",
|
|
24
23
|
"@reventlessdev/rescript-jest": "1.0.0-alpha.6",
|
|
24
|
+
"@reventlessdev/reventless-domain-protocol": "1.0.0-alpha.19",
|
|
25
25
|
"@reventlessdev/reventless-core": "3.0.0-alpha.155",
|
|
26
|
+
"@reventlessdev/rescript-effect": "0.1.0-alpha.26",
|
|
26
27
|
"@reventlessdev/reventless-infra": "3.0.0-alpha.96",
|
|
27
|
-
"@reventlessdev/reventless-spec": "3.0.0-alpha.74"
|
|
28
|
-
"@reventlessdev/reventless-vscode-protocol": "1.0.0-alpha.18"
|
|
28
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.74"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"rescript": "^12.3.0",
|
package/rescript.json
CHANGED
package/src/DomainDeadCode.res
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
// Finding kinds are the typed protocol vocabulary — constructing the variant here
|
|
30
30
|
// (not a string literal) means a typo or rename is a compile error, and the emitter
|
|
31
31
|
// forwards findings without conversion.
|
|
32
|
-
module P =
|
|
32
|
+
module P = ReventlessDomainProtocol.Protocol
|
|
33
33
|
|
|
34
34
|
type finding = {
|
|
35
35
|
kind: P.deadCodeKind,
|
package/src/DomainGraph.res
CHANGED
|
Binary file
|
package/src/FormatterVsCode.res
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// to a `TestRun` method call; field names mirror `TestItem` / `TestMessage` so the
|
|
3
3
|
// extension needs no translation layer.
|
|
4
4
|
//
|
|
5
|
-
// The contract is the shared `@reventlessdev/reventless-
|
|
5
|
+
// The contract is the shared `@reventlessdev/reventless-domain-protocol` `Protocol`
|
|
6
6
|
// module — the SAME sury `@schema` the extension decodes with. Every event is built as
|
|
7
7
|
// a `Protocol.streamEvent` variant and serialized via `Protocol.toJsonLine`, so a
|
|
8
8
|
// `protocolVersion` bump or field change touches that one definition instead of
|
|
9
9
|
// drifting between this emitter and the extension's decoder.
|
|
10
10
|
|
|
11
|
-
module P =
|
|
11
|
+
module P = ReventlessDomainProtocol.Protocol
|
|
12
12
|
|
|
13
13
|
@val external processStdout: {"write": string => unit} = "process.stdout"
|
|
14
14
|
let write = (s: string) => processStdout["write"](s)
|
|
@@ -8,7 +8,7 @@ import * as Hint$ReventlessGwt from "./Hint.res.mjs";
|
|
|
8
8
|
import * as Outcome$ReventlessGwt from "./Outcome.res.mjs";
|
|
9
9
|
import * as ComponentMeta$ReventlessGwt from "./ComponentMeta.res.mjs";
|
|
10
10
|
import * as RenderRescript$ReventlessGwt from "./RenderRescript.res.mjs";
|
|
11
|
-
import * as Protocol$
|
|
11
|
+
import * as Protocol$ReventlessDomainProtocol from "@reventlessdev/reventless-domain-protocol/src/Protocol.res.mjs";
|
|
12
12
|
|
|
13
13
|
function write(s) {
|
|
14
14
|
process.stdout.write(s);
|
|
@@ -19,7 +19,7 @@ function writeLine(s) {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
function emit(e) {
|
|
22
|
-
let s = Protocol$
|
|
22
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine(e);
|
|
23
23
|
process.stdout.write(s + "\n");
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -132,15 +132,15 @@ function locationOf(loc) {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
function hello() {
|
|
135
|
-
let s = Protocol$
|
|
135
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
136
136
|
event: "hello",
|
|
137
|
-
protocol: Protocol$
|
|
137
|
+
protocol: Protocol$ReventlessDomainProtocol.protocolVersion
|
|
138
138
|
});
|
|
139
139
|
process.stdout.write(s + "\n");
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
function discoverStart() {
|
|
143
|
-
let s = Protocol$
|
|
143
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
144
144
|
event: "discoverStart"
|
|
145
145
|
});
|
|
146
146
|
process.stdout.write(s + "\n");
|
|
@@ -169,7 +169,7 @@ function emitDiscoveryItems(files) {
|
|
|
169
169
|
uri: e_5,
|
|
170
170
|
component: component
|
|
171
171
|
};
|
|
172
|
-
let s = Protocol$
|
|
172
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine(e);
|
|
173
173
|
process.stdout.write(s + "\n");
|
|
174
174
|
let seenDescribes = {};
|
|
175
175
|
param[1].forEach(t => {
|
|
@@ -198,7 +198,7 @@ function emitDiscoveryItems(files) {
|
|
|
198
198
|
uri: e_5,
|
|
199
199
|
range: e_6
|
|
200
200
|
};
|
|
201
|
-
let s = Protocol$
|
|
201
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine(e);
|
|
202
202
|
process.stdout.write(s + "\n");
|
|
203
203
|
});
|
|
204
204
|
let parent = t.describePath.length === 0 ? path : path + "::" + t.describePath.join("::");
|
|
@@ -221,14 +221,14 @@ function emitDiscoveryItems(files) {
|
|
|
221
221
|
uri: e_5,
|
|
222
222
|
range: e_6
|
|
223
223
|
};
|
|
224
|
-
let s = Protocol$
|
|
224
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine(e);
|
|
225
225
|
process.stdout.write(s + "\n");
|
|
226
226
|
});
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
function discoverEnd(total) {
|
|
231
|
-
let s = Protocol$
|
|
231
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
232
232
|
event: "discoverEnd",
|
|
233
233
|
total: total
|
|
234
234
|
});
|
|
@@ -244,7 +244,7 @@ function packages(pkgs) {
|
|
|
244
244
|
build: p.build
|
|
245
245
|
}))
|
|
246
246
|
};
|
|
247
|
-
let s = Protocol$
|
|
247
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine(e);
|
|
248
248
|
process.stdout.write(s + "\n");
|
|
249
249
|
}
|
|
250
250
|
|
|
@@ -258,7 +258,7 @@ function components(comps) {
|
|
|
258
258
|
files: c.files
|
|
259
259
|
}))
|
|
260
260
|
};
|
|
261
|
-
let s = Protocol$
|
|
261
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine(e);
|
|
262
262
|
process.stdout.write(s + "\n");
|
|
263
263
|
}
|
|
264
264
|
|
|
@@ -272,12 +272,12 @@ function deadCode(findings) {
|
|
|
272
272
|
detail: f.detail
|
|
273
273
|
}))
|
|
274
274
|
};
|
|
275
|
-
let s = Protocol$
|
|
275
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine(e);
|
|
276
276
|
process.stdout.write(s + "\n");
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
function graph(g) {
|
|
280
|
-
let s = Protocol$
|
|
280
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
281
281
|
event: "graph",
|
|
282
282
|
nodes: g.nodes,
|
|
283
283
|
edges: g.edges
|
|
@@ -286,7 +286,7 @@ function graph(g) {
|
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
function definitions(entries) {
|
|
289
|
-
let s = Protocol$
|
|
289
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
290
290
|
event: "definitions",
|
|
291
291
|
entries: entries
|
|
292
292
|
});
|
|
@@ -294,7 +294,7 @@ function definitions(entries) {
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
function buildStart(pkg) {
|
|
297
|
-
let s = Protocol$
|
|
297
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
298
298
|
event: "buildStart",
|
|
299
299
|
package: pkg
|
|
300
300
|
});
|
|
@@ -302,7 +302,7 @@ function buildStart(pkg) {
|
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
function buildOk(pkg, durationMs) {
|
|
305
|
-
let s = Protocol$
|
|
305
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
306
306
|
event: "buildOk",
|
|
307
307
|
package: pkg,
|
|
308
308
|
durationMs: durationMs
|
|
@@ -311,7 +311,7 @@ function buildOk(pkg, durationMs) {
|
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
function buildFail(pkg, message) {
|
|
314
|
-
let s = Protocol$
|
|
314
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
315
315
|
event: "buildFail",
|
|
316
316
|
package: pkg,
|
|
317
317
|
message: message
|
|
@@ -320,7 +320,7 @@ function buildFail(pkg, message) {
|
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
function buildExternal(pkg) {
|
|
323
|
-
let s = Protocol$
|
|
323
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
324
324
|
event: "buildExternal",
|
|
325
325
|
package: pkg
|
|
326
326
|
});
|
|
@@ -328,7 +328,7 @@ function buildExternal(pkg) {
|
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
function platformStart($$package, dir, domainPort, platformPort) {
|
|
331
|
-
let s = Protocol$
|
|
331
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
332
332
|
event: "platformStart",
|
|
333
333
|
package: $$package,
|
|
334
334
|
dir: dir,
|
|
@@ -339,7 +339,7 @@ function platformStart($$package, dir, domainPort, platformPort) {
|
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
function platformReady(domainEndpoint) {
|
|
342
|
-
let s = Protocol$
|
|
342
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
343
343
|
event: "platformReady",
|
|
344
344
|
domainEndpoint: domainEndpoint
|
|
345
345
|
});
|
|
@@ -352,7 +352,7 @@ function domainEvent(payload) {
|
|
|
352
352
|
}
|
|
353
353
|
|
|
354
354
|
function platformLog(line) {
|
|
355
|
-
let s = Protocol$
|
|
355
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
356
356
|
event: "platformLog",
|
|
357
357
|
line: line
|
|
358
358
|
});
|
|
@@ -360,7 +360,7 @@ function platformLog(line) {
|
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
function platformStop(code) {
|
|
363
|
-
let s = Protocol$
|
|
363
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
364
364
|
event: "platformStop",
|
|
365
365
|
code: code
|
|
366
366
|
});
|
|
@@ -368,7 +368,7 @@ function platformStop(code) {
|
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
function runStart(total, filter) {
|
|
371
|
-
let s = Protocol$
|
|
371
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
372
372
|
event: "runStart",
|
|
373
373
|
total: total,
|
|
374
374
|
filter: filter
|
|
@@ -377,7 +377,7 @@ function runStart(total, filter) {
|
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
function testStart(id) {
|
|
380
|
-
let s = Protocol$
|
|
380
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
381
381
|
event: "testStart",
|
|
382
382
|
id: id
|
|
383
383
|
});
|
|
@@ -385,7 +385,7 @@ function testStart(id) {
|
|
|
385
385
|
}
|
|
386
386
|
|
|
387
387
|
function testPass(id, durationMs) {
|
|
388
|
-
let s = Protocol$
|
|
388
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
389
389
|
event: "testPass",
|
|
390
390
|
id: id,
|
|
391
391
|
durationMs: durationMs
|
|
@@ -394,7 +394,7 @@ function testPass(id, durationMs) {
|
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
function testSkip(id, reason) {
|
|
397
|
-
let s = Protocol$
|
|
397
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
398
398
|
event: "testSkip",
|
|
399
399
|
id: id,
|
|
400
400
|
reason: reason
|
|
@@ -481,12 +481,12 @@ function testFail(t, id) {
|
|
|
481
481
|
durationMs: e_1,
|
|
482
482
|
messages: e_2
|
|
483
483
|
};
|
|
484
|
-
let s = Protocol$
|
|
484
|
+
let s = Protocol$ReventlessDomainProtocol.toJsonLine(e);
|
|
485
485
|
process.stdout.write(s + "\n");
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
function runEnd(s) {
|
|
489
|
-
let s$1 = Protocol$
|
|
489
|
+
let s$1 = Protocol$ReventlessDomainProtocol.toJsonLine({
|
|
490
490
|
event: "runEnd",
|
|
491
491
|
passed: s.passed,
|
|
492
492
|
failed: s.failed,
|
|
@@ -498,7 +498,7 @@ function runEnd(s) {
|
|
|
498
498
|
|
|
499
499
|
let P;
|
|
500
500
|
|
|
501
|
-
let protocolVersion = Protocol$
|
|
501
|
+
let protocolVersion = Protocol$ReventlessDomainProtocol.protocolVersion;
|
|
502
502
|
|
|
503
503
|
export {
|
|
504
504
|
P,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// LocalHost integration; here hand-built fixtures pin the edge wiring.
|
|
5
5
|
|
|
6
6
|
open JestGlobals
|
|
7
|
-
open
|
|
7
|
+
open ReventlessDomainProtocol.Protocol
|
|
8
8
|
|
|
9
9
|
let command = (~name, ~mutationField, ~apiExposed=None): Reventless.Plugin.commandDef => {
|
|
10
10
|
name,
|