@reventlessdev/reventless-aws 3.0.0-alpha.351 → 3.0.0-alpha.353
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 +16 -0
- package/README.md +1 -1
- package/package.json +18 -18
- package/scripts/DeployManifest.res.mjs +3 -4
- package/src/adapter/Counter/CounterHandler_DynamoDbStream_Runtime.res.mjs +1 -1
- package/src/adapter/DcbEventLog/DcbEventLogStorage_DynamoDb_Runtime.res.mjs +8 -8
- package/src/adapter/Postgres/PgConnection.res.mjs +1 -1
- package/src/adapter/Runtime/CounterEntryPoint_Ops.res.mjs +1 -1
- package/tests/PgQueryDbUnion_IntegrationTest.res.mjs +2 -2
- package/tests/ProjectionEntryPoint_UnionStampTest.res.mjs +2 -2
- package/tests/integration/QueryDbUnion_DynamoDb_IntegrationTest.res.mjs +2 -2
- package/tests/integration/SvsTestSlice.res.mjs +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.353 (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
|
+
* **deps:** update sury to 11.0.0 ([8715b22](https://github.com/ReventlessDev/reventless-core/commit/8715b22b33856c46ba57518aad151065c123a995))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# 3.0.0-alpha.352 (2026-09-21)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @reventlessdev/reventless-aws
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# 3.0.0-alpha.351 (2026-09-21)
|
|
7
23
|
|
|
8
24
|
* feat(spec)!: typed projection keys ([fc6a018](https://github.com/ReventlessDev/reventless-core/commit/fc6a01811ba788f3289e84a435a09f77fa627e1a))
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reventlessdev/reventless-aws",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.353",
|
|
4
4
|
"description": "AWS adapters for Reventless",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": {
|
|
@@ -17,29 +17,29 @@
|
|
|
17
17
|
"@aws-sdk/client-location": "3.970.0",
|
|
18
18
|
"@aws-sdk/client-s3": "3.970.0",
|
|
19
19
|
"@aws-sdk/s3-request-presigner": "3.970.0",
|
|
20
|
-
"sury": "11.0.0
|
|
20
|
+
"sury": "11.0.0",
|
|
21
21
|
"uuid": "^13.0.0",
|
|
22
22
|
"yaml": "^2.8.3",
|
|
23
|
-
"@reventlessdev/rescript-aws-sdk": "3.0.0-alpha.
|
|
24
|
-
"@reventlessdev/rescript-effect": "0.1.0-alpha.
|
|
25
|
-
"@reventlessdev/rescript-
|
|
26
|
-
"@reventlessdev/rescript-
|
|
27
|
-
"@reventlessdev/rescript-pulumi-aws": "3.0.0-alpha.
|
|
28
|
-
"@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.
|
|
29
|
-
"@reventlessdev/rescript-uuid": "2.0.0-alpha.
|
|
30
|
-
"@reventlessdev/
|
|
31
|
-
"@reventlessdev/
|
|
32
|
-
"@reventlessdev/reventless-
|
|
33
|
-
"@reventlessdev/reventless-interop": "3.0.0-alpha.
|
|
34
|
-
"@reventlessdev/reventless-
|
|
35
|
-
"@reventlessdev/reventless-
|
|
23
|
+
"@reventlessdev/rescript-aws-sdk": "3.0.0-alpha.20",
|
|
24
|
+
"@reventlessdev/rescript-effect": "0.1.0-alpha.34",
|
|
25
|
+
"@reventlessdev/rescript-node": "2.0.0-alpha.13",
|
|
26
|
+
"@reventlessdev/rescript-jest": "1.0.0-alpha.11",
|
|
27
|
+
"@reventlessdev/rescript-pulumi-aws": "3.0.0-alpha.15",
|
|
28
|
+
"@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.22",
|
|
29
|
+
"@reventlessdev/rescript-uuid": "2.0.0-alpha.1",
|
|
30
|
+
"@reventlessdev/reventless-infra": "3.0.0-alpha.169",
|
|
31
|
+
"@reventlessdev/rescript-web": "1.0.0-alpha.5",
|
|
32
|
+
"@reventlessdev/reventless-core": "3.0.0-alpha.269",
|
|
33
|
+
"@reventlessdev/reventless-interop": "3.0.0-alpha.38",
|
|
34
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.141",
|
|
35
|
+
"@reventlessdev/reventless-postgres": "3.0.0-alpha.133"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"rescript": "12.3.
|
|
39
|
-
"sury-ppx": "11.0.0
|
|
38
|
+
"rescript": "12.3.1",
|
|
39
|
+
"sury-ppx": "11.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"rescript": "12.3.
|
|
42
|
+
"rescript": "^12.3.1"
|
|
43
43
|
},
|
|
44
44
|
"jest": {
|
|
45
45
|
"setupFiles": [
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as S from "sury/src/S.res.mjs";
|
|
4
3
|
import * as Sury from "sury";
|
|
5
4
|
import * as Yaml from "yaml";
|
|
6
5
|
import * as Nodefs from "node:fs";
|
|
@@ -12,14 +11,14 @@ import * as Primitive_exceptions from "@rescript/runtime/lib/es6/Primitive_excep
|
|
|
12
11
|
let platformSchema = Sury.$schema(s => ({
|
|
13
12
|
path: s.m(Sury.string),
|
|
14
13
|
name: s.m(Sury.$option(Sury.string)),
|
|
15
|
-
"stack-defaults": s.m(Sury.$option(Sury.
|
|
14
|
+
"stack-defaults": s.m(Sury.$option(Sury.record(Sury.string)))
|
|
16
15
|
}));
|
|
17
16
|
|
|
18
17
|
let pluginSchema = Sury.$schema(s => ({
|
|
19
18
|
name: s.m(Sury.string),
|
|
20
19
|
path: s.m(Sury.string),
|
|
21
20
|
"depends-on": s.m(Sury.$option(Sury.array(Sury.string))),
|
|
22
|
-
"stack-defaults": s.m(Sury.$option(Sury.
|
|
21
|
+
"stack-defaults": s.m(Sury.$option(Sury.record(Sury.string)))
|
|
23
22
|
}));
|
|
24
23
|
|
|
25
24
|
let schema = Sury.$schema(s => ({
|
|
@@ -32,7 +31,7 @@ function parseString(text) {
|
|
|
32
31
|
try {
|
|
33
32
|
return {
|
|
34
33
|
TAG: "Ok",
|
|
35
|
-
_0:
|
|
34
|
+
_0: Sury.parseOrThrow(Yaml.parse(text), schema)
|
|
36
35
|
};
|
|
37
36
|
} catch (raw_err) {
|
|
38
37
|
let err = Primitive_exceptions.internalToException(raw_err);
|
|
@@ -72,7 +72,7 @@ async function addToCounterTarget(table, param) {
|
|
|
72
72
|
|
|
73
73
|
let referencesViewSchema = Sury.$schema(s => ({
|
|
74
74
|
id: s.m(Sury.string),
|
|
75
|
-
inc: s.m(Sury.
|
|
75
|
+
inc: s.m(Sury.int32)
|
|
76
76
|
}));
|
|
77
77
|
|
|
78
78
|
function handleStreamEvent(referencesStream, countsStream, counterHandler, streamEvent, param) {
|
|
@@ -486,9 +486,9 @@ function mergeSortedEvents(streams) {
|
|
|
486
486
|
}));
|
|
487
487
|
}
|
|
488
488
|
|
|
489
|
-
function read(table,
|
|
489
|
+
function read(table, crossPartitionTagKeysOpt) {
|
|
490
|
+
let crossPartitionTagKeys = crossPartitionTagKeysOpt !== undefined ? crossPartitionTagKeysOpt : [];
|
|
490
491
|
return async (query, after) => {
|
|
491
|
-
let crossPartitionTagKeys = $staropt$star !== undefined ? $staropt$star : [];
|
|
492
492
|
let queryResults = await Promise.all(query.map(queryItem => executeQueryItem(table, queryItem, after, crossPartitionTagKeys)));
|
|
493
493
|
let allItems = queryResults.flat();
|
|
494
494
|
let allEvents = allItems.map(fromItem);
|
|
@@ -1024,9 +1024,9 @@ async function appendConditional(table, events, cond, partitionTag, crossPartiti
|
|
|
1024
1024
|
return await runTransactWrite(input, basePosition, "DCB append failed");
|
|
1025
1025
|
}
|
|
1026
1026
|
|
|
1027
|
-
function append(table, partitionTag,
|
|
1027
|
+
function append(table, partitionTag, crossPartitionTagKeysOpt) {
|
|
1028
|
+
let crossPartitionTagKeys = crossPartitionTagKeysOpt !== undefined ? crossPartitionTagKeysOpt : [];
|
|
1028
1029
|
return async (events, condition) => {
|
|
1029
|
-
let crossPartitionTagKeys = $staropt$star !== undefined ? $staropt$star : [];
|
|
1030
1030
|
if (condition !== undefined) {
|
|
1031
1031
|
return await appendConditional(table, events, condition, partitionTag, crossPartitionTagKeys);
|
|
1032
1032
|
} else {
|
|
@@ -1158,10 +1158,10 @@ function executeQueryItemStream(table, queryItem, after, strongConsistencyOpt, c
|
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
1160
1160
|
|
|
1161
|
-
function readStream(table,
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
let strongConsistency =
|
|
1161
|
+
function readStream(table, crossPartitionTagKeysOpt) {
|
|
1162
|
+
let crossPartitionTagKeys = crossPartitionTagKeysOpt !== undefined ? crossPartitionTagKeysOpt : [];
|
|
1163
|
+
return (query, after, strongConsistencyOpt) => {
|
|
1164
|
+
let strongConsistency = strongConsistencyOpt !== undefined ? strongConsistencyOpt : false;
|
|
1165
1165
|
let streams = query.map(qi => executeQueryItemStream(table, qi, after, strongConsistency, crossPartitionTagKeys));
|
|
1166
1166
|
let match = streams.length;
|
|
1167
1167
|
if (match === 0) {
|
|
@@ -13,7 +13,7 @@ import * as PgMigration_Builder$ReventlessAws from "./PgMigration_Builder.res.mj
|
|
|
13
13
|
|
|
14
14
|
let connectionConfigSchema = Sury.$schema(s => ({
|
|
15
15
|
host: s.m(Sury.string),
|
|
16
|
-
port: s.m(Sury.
|
|
16
|
+
port: s.m(Sury.int32),
|
|
17
17
|
database: s.m(Sury.string),
|
|
18
18
|
username: s.m(Sury.string),
|
|
19
19
|
secretArn: s.m(Sury.string)
|
|
@@ -7,7 +7,7 @@ let consumedEventSchema = Sury.$schema(s => ({
|
|
|
7
7
|
TAG: "ItemAddedToCart",
|
|
8
8
|
cartId: s.m(Sury.string),
|
|
9
9
|
productId: s.m(Sury.string),
|
|
10
|
-
qty: s.m(Sury.
|
|
10
|
+
qty: s.m(Sury.int32)
|
|
11
11
|
}));
|
|
12
12
|
|
|
13
13
|
let fulfilmentSchema = Sury.union([
|
|
@@ -26,7 +26,7 @@ let fulfilmentSchema$1 = TaggedUnion$Reventless.named("Fulfilment", fulfilmentSc
|
|
|
26
26
|
let stateSchema = Sury.$schema(s => ({
|
|
27
27
|
cartId: s.m(Sury.string),
|
|
28
28
|
productId: s.m(Sury.string),
|
|
29
|
-
qty: s.m(Sury.
|
|
29
|
+
qty: s.m(Sury.int32),
|
|
30
30
|
fulfilment: s.m(fulfilmentSchema$1)
|
|
31
31
|
}));
|
|
32
32
|
|