@reventlessdev/reventless-aws 3.0.0-alpha.407 → 3.0.0-alpha.408
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.408 (2026-10-29)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **aws:** every reader's Lambda fetches the keys its events name before decoding ([62b22c7](https://github.com/ReventlessDev/reventless-core/commit/62b22c74ba6e79783c67db962e43f86c273f4503))
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
# 3.0.0-alpha.407 (2026-10-29)
|
|
7
14
|
|
|
8
15
|
**Note:** Version bump only for package @reventlessdev/reventless-aws
|
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.408",
|
|
4
4
|
"description": "AWS adapters for Reventless",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": {
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"yaml": "^2.8.3",
|
|
25
25
|
"@reventlessdev/rescript-aws-sdk": "3.0.0-alpha.37",
|
|
26
26
|
"@reventlessdev/rescript-effect": "1.0.0-alpha.1",
|
|
27
|
-
"@reventlessdev/rescript-jest": "1.0.0-alpha.13",
|
|
28
|
-
"@reventlessdev/rescript-pulumi-aws": "3.0.0-alpha.36",
|
|
29
27
|
"@reventlessdev/rescript-node": "2.0.0-alpha.24",
|
|
28
|
+
"@reventlessdev/rescript-pulumi-aws": "3.0.0-alpha.36",
|
|
29
|
+
"@reventlessdev/rescript-jest": "1.0.0-alpha.13",
|
|
30
30
|
"@reventlessdev/rescript-pulumi-pulumi": "3.0.0-alpha.0",
|
|
31
31
|
"@reventlessdev/rescript-uuid": "2.0.0-alpha.1",
|
|
32
32
|
"@reventlessdev/rescript-web": "1.0.0-alpha.8",
|
|
33
|
-
"@reventlessdev/reventless-
|
|
34
|
-
"@reventlessdev/reventless-infra": "3.0.0-alpha.214",
|
|
33
|
+
"@reventlessdev/reventless-infra": "3.0.0-alpha.215",
|
|
35
34
|
"@reventlessdev/reventless-interop": "3.0.0-alpha.42",
|
|
36
|
-
"@reventlessdev/reventless-postgres": "3.0.0-alpha.
|
|
37
|
-
"@reventlessdev/reventless-spec": "3.0.0-alpha.
|
|
35
|
+
"@reventlessdev/reventless-postgres": "3.0.0-alpha.182",
|
|
36
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.186",
|
|
37
|
+
"@reventlessdev/reventless-core": "3.0.0-alpha.318"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"rescript": "12.3.1",
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
+
|
|
3
|
+
import * as Effect from "effect/Effect";
|
|
4
|
+
import * as Stream from "effect/Stream";
|
|
5
|
+
import * as Pii$Reventless from "@reventlessdev/reventless-spec/src/components/Pii.res.mjs";
|
|
6
|
+
import * as StreamRoutedEntryPoint_Ops$ReventlessAws from "../src/adapter/Runtime/StreamRoutedEntryPoint_Ops.res.mjs";
|
|
7
|
+
|
|
8
|
+
let asked = {
|
|
9
|
+
contents: []
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
let provider_encrypts = Pii$Reventless.plain.encrypts;
|
|
13
|
+
|
|
14
|
+
let provider_seal = Pii$Reventless.plain.seal;
|
|
15
|
+
|
|
16
|
+
async function provider_prefetch(keyIds) {
|
|
17
|
+
asked.contents = asked.contents.concat([keyIds]);
|
|
18
|
+
return {
|
|
19
|
+
TAG: "Ok",
|
|
20
|
+
_0: undefined
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
let provider_openNow = Pii$Reventless.plain.openNow;
|
|
25
|
+
|
|
26
|
+
let provider_release = Pii$Reventless.plain.release;
|
|
27
|
+
|
|
28
|
+
let provider = {
|
|
29
|
+
name: "counting",
|
|
30
|
+
encrypts: provider_encrypts,
|
|
31
|
+
seal: provider_seal,
|
|
32
|
+
prefetch: provider_prefetch,
|
|
33
|
+
openNow: provider_openNow,
|
|
34
|
+
release: provider_release
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
let sealed = Object.fromEntries([[
|
|
38
|
+
"event",
|
|
39
|
+
Object.fromEntries([
|
|
40
|
+
[
|
|
41
|
+
"TAG",
|
|
42
|
+
"MemberNamed"
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
"name",
|
|
46
|
+
Pii$Reventless.wrap("enc:v1:k-7:fake:AAAA")
|
|
47
|
+
]
|
|
48
|
+
])
|
|
49
|
+
]]);
|
|
50
|
+
|
|
51
|
+
globalThis.describe("StreamRoutedEntryPoint_Ops.withPreparedKeys", () => {
|
|
52
|
+
globalThis.beforeEach(() => {
|
|
53
|
+
asked.contents = [];
|
|
54
|
+
Pii$Reventless.Provider.install(provider);
|
|
55
|
+
});
|
|
56
|
+
globalThis.afterEach(() => Pii$Reventless.Provider.install(Pii$Reventless.plain));
|
|
57
|
+
globalThis.test("prefetches before the handler sees the event, and only what it names", async () => {
|
|
58
|
+
let seen = {
|
|
59
|
+
contents: []
|
|
60
|
+
};
|
|
61
|
+
let handler = stream => Stream.runForEach(stream, json => Effect.sync(() => {
|
|
62
|
+
seen.contents = seen.contents.concat([[
|
|
63
|
+
json,
|
|
64
|
+
asked.contents.length
|
|
65
|
+
]]);
|
|
66
|
+
}));
|
|
67
|
+
let wrapped = StreamRoutedEntryPoint_Ops$ReventlessAws.withPreparedKeys(handler);
|
|
68
|
+
await Effect.runPromise(wrapped(Stream.fromIterable([
|
|
69
|
+
sealed,
|
|
70
|
+
"plain"
|
|
71
|
+
])));
|
|
72
|
+
globalThis.expect(asked.contents).toEqual([["k-7"]]);
|
|
73
|
+
globalThis.expect(seen.contents.map(param => param[1])).toEqual([
|
|
74
|
+
1,
|
|
75
|
+
1
|
|
76
|
+
]);
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
export {
|
|
81
|
+
asked,
|
|
82
|
+
provider,
|
|
83
|
+
sealed,
|
|
84
|
+
}
|
|
85
|
+
/* sealed Not a pure module */
|