@reventlessdev/reventless-seed 1.0.0-alpha.22 → 1.0.0-alpha.24
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 +14 -0
- package/README.md +1 -1
- package/lib/bs/.compiler.log +2 -2
- package/lib/bs/compiler-info.json +3 -3
- package/lib/bs/src/Seed-ReventlessSeed.cmi +0 -0
- package/lib/bs/src/Seed-ReventlessSeed.cmt +0 -0
- package/lib/bs/src/Seed.ast +0 -0
- package/lib/bs/src/Seed.res +1 -0
- package/lib/bs/src/Seed_Runner-ReventlessSeed.cmi +0 -0
- package/lib/bs/src/Seed_Runner-ReventlessSeed.cmt +0 -0
- package/lib/bs/src/Seed_Runner.ast +0 -0
- package/lib/bs/src/Seed_Runner.res +8 -0
- package/lib/bs/src/Seed_Runner.res.mjs +4 -0
- package/lib/ocaml/.compiler.log +2 -2
- package/lib/ocaml/Seed-ReventlessSeed.cmi +0 -0
- package/lib/ocaml/Seed-ReventlessSeed.cmt +0 -0
- package/lib/ocaml/Seed.ast +0 -0
- package/lib/ocaml/Seed.res +1 -0
- package/lib/ocaml/Seed_Runner-ReventlessSeed.cmi +0 -0
- package/lib/ocaml/Seed_Runner-ReventlessSeed.cmt +0 -0
- package/lib/ocaml/Seed_Runner.ast +0 -0
- package/lib/ocaml/Seed_Runner.res +8 -0
- package/package.json +5 -5
- package/src/Seed.res +1 -0
- package/src/Seed_Runner.res +8 -0
- package/src/Seed_Runner.res.mjs +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
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.24 (2026-09-21)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **deps:** update rescript to 12.3.1 ([ea1ce37](https://github.com/ReventlessDev/reventless-core/commit/ea1ce377297640f6d0d360e6c84c778d59ecbcc5))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# 1.0.0-alpha.23 (2026-09-17)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **seed:** let a data set refuse to start before anything is sent ([6fc5135](https://github.com/ReventlessDev/reventless-core/commit/6fc5135107f9af3016a48423cfee625216babca1))
|
|
18
|
+
|
|
19
|
+
|
|
6
20
|
# 1.0.0-alpha.22 (2026-09-16)
|
|
7
21
|
|
|
8
22
|
### Bug Fixes
|
package/README.md
CHANGED
package/lib/bs/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1790002910130)
|
|
2
|
+
#Done(1790002910195)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "12.3.
|
|
2
|
+
"version": "12.3.1",
|
|
3
3
|
"bsc_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/linux-x64/bin/bsc.exe",
|
|
4
|
-
"bsc_hash": "
|
|
4
|
+
"bsc_hash": "1006241435e8d5052329c523202a7fe6359a37e1e1688c023d37d6a7ebb5fb6d",
|
|
5
5
|
"rescript_config_hash": "25cfff836d200084949fdfdfec2f6875901bfee1f04d84634eca252ef1ca1ef1",
|
|
6
6
|
"runtime_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/runtime",
|
|
7
|
-
"generated_at": "
|
|
7
|
+
"generated_at": "1790002910198"
|
|
8
8
|
}
|
|
Binary file
|
|
Binary file
|
package/lib/bs/src/Seed.ast
CHANGED
|
Binary file
|
package/lib/bs/src/Seed.res
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -151,6 +151,10 @@ type dataSet = {
|
|
|
151
151
|
// View names probed by the fresh-store guard before any command is sent; a
|
|
152
152
|
// non-empty one aborts the run at startup. Omit to skip the guard.
|
|
153
153
|
probeViews?: array<string>,
|
|
154
|
+
// Any other check that must pass before a command is sent — a set that adds to
|
|
155
|
+
// an existing store refuses an empty one here. Throw `Failed` to refuse; the
|
|
156
|
+
// run then reports that nothing was written.
|
|
157
|
+
preflight?: Seed_Connect.connection => promise<unit>,
|
|
154
158
|
}
|
|
155
159
|
|
|
156
160
|
/**
|
|
@@ -205,6 +209,10 @@ let seed = (~sets: array<dataSet>, ~connect: unit => promise<Seed_Connect.connec
|
|
|
205
209
|
// Runs inside this pre-seed `try`, so refusing a non-empty store (or a
|
|
206
210
|
// failed probe query) is reported as "did not start", not "half-seeded".
|
|
207
211
|
await assertStoreEmpty(connection.client, ~probeViews=chosen.probeViews->Option.getOr([]))
|
|
212
|
+
switch chosen.preflight {
|
|
213
|
+
| Some(check) => await check(connection)
|
|
214
|
+
| None => ()
|
|
215
|
+
}
|
|
208
216
|
Some((chosen, connection))
|
|
209
217
|
} catch {
|
|
210
218
|
| Failed(message) =>
|
|
@@ -163,6 +163,10 @@ function seed(sets, connect) {
|
|
|
163
163
|
let connection = await connect();
|
|
164
164
|
Seed_Prompt$ReventlessSeed.close();
|
|
165
165
|
await assertStoreEmpty(connection.client, Stdlib_Option.getOr(chosen.probeViews, []));
|
|
166
|
+
let check = chosen.preflight;
|
|
167
|
+
if (check !== undefined) {
|
|
168
|
+
await check(connection);
|
|
169
|
+
}
|
|
166
170
|
started = [
|
|
167
171
|
chosen,
|
|
168
172
|
connection
|
package/lib/ocaml/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1790002910130)
|
|
2
|
+
#Done(1790002910195)
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/Seed.ast
CHANGED
|
Binary file
|
package/lib/ocaml/Seed.res
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -151,6 +151,10 @@ type dataSet = {
|
|
|
151
151
|
// View names probed by the fresh-store guard before any command is sent; a
|
|
152
152
|
// non-empty one aborts the run at startup. Omit to skip the guard.
|
|
153
153
|
probeViews?: array<string>,
|
|
154
|
+
// Any other check that must pass before a command is sent — a set that adds to
|
|
155
|
+
// an existing store refuses an empty one here. Throw `Failed` to refuse; the
|
|
156
|
+
// run then reports that nothing was written.
|
|
157
|
+
preflight?: Seed_Connect.connection => promise<unit>,
|
|
154
158
|
}
|
|
155
159
|
|
|
156
160
|
/**
|
|
@@ -205,6 +209,10 @@ let seed = (~sets: array<dataSet>, ~connect: unit => promise<Seed_Connect.connec
|
|
|
205
209
|
// Runs inside this pre-seed `try`, so refusing a non-empty store (or a
|
|
206
210
|
// failed probe query) is reported as "did not start", not "half-seeded".
|
|
207
211
|
await assertStoreEmpty(connection.client, ~probeViews=chosen.probeViews->Option.getOr([]))
|
|
212
|
+
switch chosen.preflight {
|
|
213
|
+
| Some(check) => await check(connection)
|
|
214
|
+
| None => ()
|
|
215
|
+
}
|
|
208
216
|
Some((chosen, connection))
|
|
209
217
|
} catch {
|
|
210
218
|
| Failed(message) =>
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reventlessdev/reventless-seed",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.24",
|
|
4
4
|
"description": "Reusable harness for seeding a Reventless platform through its public GraphQL command API",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"yaml": "^2.8.3",
|
|
8
|
-
"@reventlessdev/rescript-node": "2.0.0-alpha.
|
|
8
|
+
"@reventlessdev/rescript-node": "2.0.0-alpha.13"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"rescript": "12.3.
|
|
12
|
-
"@reventlessdev/rescript-jest": "1.0.0-alpha.
|
|
11
|
+
"rescript": "12.3.1",
|
|
12
|
+
"@reventlessdev/rescript-jest": "1.0.0-alpha.11"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"rescript": "12.3.
|
|
15
|
+
"rescript": "^12.3.1"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"registry": "https://registry.npmjs.org"
|
package/src/Seed.res
CHANGED
package/src/Seed_Runner.res
CHANGED
|
@@ -151,6 +151,10 @@ type dataSet = {
|
|
|
151
151
|
// View names probed by the fresh-store guard before any command is sent; a
|
|
152
152
|
// non-empty one aborts the run at startup. Omit to skip the guard.
|
|
153
153
|
probeViews?: array<string>,
|
|
154
|
+
// Any other check that must pass before a command is sent — a set that adds to
|
|
155
|
+
// an existing store refuses an empty one here. Throw `Failed` to refuse; the
|
|
156
|
+
// run then reports that nothing was written.
|
|
157
|
+
preflight?: Seed_Connect.connection => promise<unit>,
|
|
154
158
|
}
|
|
155
159
|
|
|
156
160
|
/**
|
|
@@ -205,6 +209,10 @@ let seed = (~sets: array<dataSet>, ~connect: unit => promise<Seed_Connect.connec
|
|
|
205
209
|
// Runs inside this pre-seed `try`, so refusing a non-empty store (or a
|
|
206
210
|
// failed probe query) is reported as "did not start", not "half-seeded".
|
|
207
211
|
await assertStoreEmpty(connection.client, ~probeViews=chosen.probeViews->Option.getOr([]))
|
|
212
|
+
switch chosen.preflight {
|
|
213
|
+
| Some(check) => await check(connection)
|
|
214
|
+
| None => ()
|
|
215
|
+
}
|
|
208
216
|
Some((chosen, connection))
|
|
209
217
|
} catch {
|
|
210
218
|
| Failed(message) =>
|
package/src/Seed_Runner.res.mjs
CHANGED
|
@@ -163,6 +163,10 @@ function seed(sets, connect) {
|
|
|
163
163
|
let connection = await connect();
|
|
164
164
|
Seed_Prompt$ReventlessSeed.close();
|
|
165
165
|
await assertStoreEmpty(connection.client, Stdlib_Option.getOr(chosen.probeViews, []));
|
|
166
|
+
let check = chosen.preflight;
|
|
167
|
+
if (check !== undefined) {
|
|
168
|
+
await check(connection);
|
|
169
|
+
}
|
|
166
170
|
started = [
|
|
167
171
|
chosen,
|
|
168
172
|
connection
|