@reventlessdev/reventless-aws 3.0.0-alpha.203 → 3.0.0-alpha.204
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.204 (2026-07-13)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **admin:** skip over-long Source-C subscriptions on the ApiFragmentRegistry aggregate (deploy [#6](https://github.com/ReventlessDev/reventless-core/issues/6)) ([0977120](https://github.com/ReventlessDev/reventless-core/commit/0977120d5c6cb2331d9384747d136fe99855690e))
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
# 3.0.0-alpha.203 (2026-07-13)
|
|
7
14
|
|
|
8
15
|
### Bug Fixes
|
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.204",
|
|
4
4
|
"description": "AWS adapters for Reventless",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"dependencies": {
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
"@aws-sdk/client-cloudfront": "3.970.0",
|
|
9
9
|
"sury": "11.0.0-alpha.4",
|
|
10
10
|
"uuid": "^13.0.0",
|
|
11
|
-
"@reventlessdev/rescript-
|
|
11
|
+
"@reventlessdev/rescript-effect": "0.1.0-alpha.27",
|
|
12
12
|
"@reventlessdev/rescript-pulumi-aws": "2.4.0-alpha.50",
|
|
13
13
|
"@reventlessdev/rescript-jest": "1.0.0-alpha.7",
|
|
14
14
|
"@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.15",
|
|
15
|
-
"@reventlessdev/rescript-
|
|
16
|
-
"@reventlessdev/reventless-core": "3.0.0-alpha.162",
|
|
15
|
+
"@reventlessdev/rescript-aws-sdk": "2.2.0-alpha.21",
|
|
17
16
|
"@reventlessdev/rescript-uuid": "1.1.0-alpha.15",
|
|
18
|
-
"@reventlessdev/reventless-
|
|
17
|
+
"@reventlessdev/reventless-core": "3.0.0-alpha.163",
|
|
19
18
|
"@reventlessdev/reventless-infra": "3.0.0-alpha.98",
|
|
20
|
-
"@reventlessdev/reventless-
|
|
19
|
+
"@reventlessdev/reventless-interop": "3.0.0-alpha.26",
|
|
20
|
+
"@reventlessdev/reventless-postgres": "3.0.0-alpha.27",
|
|
21
21
|
"@reventlessdev/reventless-spec": "3.0.0-alpha.76"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
@@ -150,9 +150,18 @@ let make: ReventlessCore.CommandGenerator_Adapter.resolversMaker<api, Util.Lambd
|
|
|
150
150
|
// fragment's subscription-source metadata) handles
|
|
151
151
|
// delivery. AWS requires a dataSourceName even on UNIT subscription resolvers,
|
|
152
152
|
// so we reuse the mutation's data source (its code never executes for subs).
|
|
153
|
+
//
|
|
154
|
+
// Skip fields whose `on<field>` subscription name exceeds AppSync's 50-char cap — the
|
|
155
|
+
// pushed SDL drops those Source-C subscription fields (Plugin_SubscriptionSchema.sourceCFields
|
|
156
|
+
// applies the SAME gate), so creating their resolvers would fail CreateResolver NotFound
|
|
157
|
+
// (e.g. the admin-aggregate `Platform_ApiFragmentRegistry_DeregisterApiFragment` → 52 chars).
|
|
158
|
+
let subscribableFields =
|
|
159
|
+
fields->Array.filter(field =>
|
|
160
|
+
`on${field}`->String.length <= ReventlessCore.Api_Naming.appSyncSubscriptionMaxLen
|
|
161
|
+
)
|
|
153
162
|
CommandSubscriptionResolvers_AppSync.make(
|
|
154
163
|
~api,
|
|
155
|
-
~mutationFields=
|
|
164
|
+
~mutationFields=subscribableFields,
|
|
156
165
|
~dataSourceName=dataSource.name->Pulumi.Output.asInput,
|
|
157
166
|
~opts,
|
|
158
167
|
)
|
|
@@ -11,6 +11,7 @@ import * as Lambda$PulumiAws from "@reventlessdev/rescript-pulumi-aws/src/Lambda
|
|
|
11
11
|
import * as AWS$ReventlessAws from "../AWS.res.mjs";
|
|
12
12
|
import * as Adapter$ReventlessCore from "@reventlessdev/reventless-core/src/adapter/Adapter.res.mjs";
|
|
13
13
|
import * as PolicyDocument$PulumiAws from "@reventlessdev/rescript-pulumi-aws/src/IAM/PolicyDocument.res.mjs";
|
|
14
|
+
import * as Api_Naming$ReventlessCore from "@reventlessdev/reventless-core/src/components/Api/Api_Naming.res.mjs";
|
|
14
15
|
import * as Util_AppSync$ReventlessAws from "../../util/Util_AppSync.res.mjs";
|
|
15
16
|
import * as Util_Pulumi$ReventlessCore from "@reventlessdev/reventless-core/src/util/Util_Pulumi.res.mjs";
|
|
16
17
|
import * as Util_Adapter$ReventlessCore from "@reventlessdev/reventless-core/src/util/Util_Adapter.res.mjs";
|
|
@@ -78,7 +79,8 @@ function make(name, api, fields, param, runtime, resources, opts) {
|
|
|
78
79
|
let commandName = Stdlib_String.capitalize(Stdlib_Option.getOr(parts[parts.length - 1 | 0], field));
|
|
79
80
|
return AppSync_Resolver_Retrying$ReventlessAws.makeUnitJsResolver(Stdlib_String.capitalize(field), api, dataSource.name, "Mutation", field, AppSync_Resolver_Functions$PulumiAws.invokeCommandGenerator(commandName), opts$1);
|
|
80
81
|
});
|
|
81
|
-
|
|
82
|
+
let subscribableFields = fields.filter(field => (`on` + field).length <= Api_Naming$ReventlessCore.appSyncSubscriptionMaxLen);
|
|
83
|
+
CommandSubscriptionResolvers_AppSync$ReventlessAws.make(api, subscribableFields, dataSource.name, opts$1);
|
|
82
84
|
let resources$1 = resolvers.map(Util_AppSync$ReventlessAws.toResourceNative);
|
|
83
85
|
return {
|
|
84
86
|
resources: resources$1
|