@reventlessdev/reventless-core 3.0.0-alpha.342 → 3.0.0-alpha.343

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 CHANGED
@@ -3,6 +3,13 @@
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
+ # 3.0.0-alpha.343 (2026-11-20)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **core:** an outbound translation keeps its claim while it translates ([56672a9](https://github.com/ReventlessDev/reventless-core/commit/56672a9db0261a53a30f10071fe64670d1ff2373))
11
+
12
+
6
13
  # 3.0.0-alpha.342 (2026-11-19)
7
14
 
8
15
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/reventless-core",
3
- "version": "3.0.0-alpha.342",
3
+ "version": "3.0.0-alpha.343",
4
4
  "description": "Core package for Reventless framework",
5
5
  "license": "Apache-2.0",
6
6
  "jest": {
@@ -28,22 +28,22 @@
28
28
  "dependencies": {
29
29
  "sury": "11.1.0",
30
30
  "uuid": "^13.0.0",
31
- "@reventlessdev/rescript-fast-csv": "2.0.0-alpha.26",
32
- "@reventlessdev/rescript-jest": "1.0.0-alpha.13",
31
+ "@reventlessdev/rescript-effect": "1.0.0-alpha.4",
33
32
  "@reventlessdev/rescript-hash-object": "1.2.0-alpha.15",
33
+ "@reventlessdev/rescript-fast-csv": "2.0.0-alpha.26",
34
+ "@reventlessdev/rescript-jest": "1.0.0-alpha.14",
34
35
  "@reventlessdev/rescript-node": "2.0.0-alpha.26",
35
36
  "@reventlessdev/rescript-pulumi-pulumi": "3.0.0-alpha.0",
36
- "@reventlessdev/rescript-uuid": "2.0.0-alpha.1",
37
- "@reventlessdev/reventless-infra": "3.0.0-alpha.235",
38
37
  "@reventlessdev/rescript-ssh2": "2.0.0-alpha.27",
39
- "@reventlessdev/rescript-effect": "1.0.0-alpha.3",
40
- "@reventlessdev/reventless-interop": "3.0.0-alpha.43",
41
- "@reventlessdev/reventless-spec": "3.0.0-alpha.204"
38
+ "@reventlessdev/rescript-uuid": "2.0.0-alpha.1",
39
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.236",
40
+ "@reventlessdev/reventless-interop": "3.0.0-alpha.44",
41
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.205"
42
42
  },
43
43
  "devDependencies": {
44
44
  "rescript": "12.3.1",
45
45
  "sury-ppx": "11.1.0",
46
- "@reventlessdev/reventless-ppx": "1.0.0-alpha.114"
46
+ "@reventlessdev/reventless-ppx": "1.0.0-alpha.116"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "rescript": "^12.3.1"
@@ -456,8 +456,6 @@ module Make = (
456
456
  switch item {
457
457
  | None => ()
458
458
  | Some(item) =>
459
- todoItems->Dict.set(id, {...row, status: Processing, processedAt: now()})
460
-
461
459
  let result = try await Translation.translate(id, item, ~capabilities) catch {
462
460
  | exn =>
463
461
  let msg =
@@ -282,10 +282,6 @@ function Make(Spec) {
282
282
  if (item === undefined) {
283
283
  return;
284
284
  }
285
- let newrecord$2 = {...read};
286
- newrecord$2.processedAt = new Date().toISOString();
287
- newrecord$2.status = "Processing";
288
- todoItems[id] = newrecord$2;
289
285
  let result;
290
286
  try {
291
287
  result = await Translation.translate(id, Primitive_option.valFromOption(item), capabilities);
@@ -351,10 +347,10 @@ function Make(Spec) {
351
347
  return;
352
348
  }
353
349
  }
354
- let newrecord$3 = {...read};
355
- newrecord$3.completedAt = new Date().toISOString();
356
- newrecord$3.status = "Completed";
357
- todoItems[id] = newrecord$3;
350
+ let newrecord$2 = {...read};
351
+ newrecord$2.completedAt = new Date().toISOString();
352
+ newrecord$2.status = "Completed";
353
+ todoItems[id] = newrecord$2;
358
354
  return;
359
355
  } catch (raw_exn$3) {
360
356
  let exn$3 = Primitive_exceptions.internalToException(raw_exn$3);
@@ -380,10 +376,10 @@ function Make(Spec) {
380
376
  }
381
377
  }
382
378
  } else {
383
- let newrecord$4 = {...read};
384
- newrecord$4.completedAt = new Date().toISOString();
385
- newrecord$4.status = "Completed";
386
- todoItems[id] = newrecord$4;
379
+ let newrecord$3 = {...read};
380
+ newrecord$3.completedAt = new Date().toISOString();
381
+ newrecord$3.status = "Completed";
382
+ todoItems[id] = newrecord$3;
387
383
  return;
388
384
  }
389
385
  } else {