@reventlessdev/reventless-core 3.0.0-alpha.162 → 3.0.0-alpha.163

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.163 (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.162 (2026-07-13)
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.162",
3
+ "version": "3.0.0-alpha.163",
4
4
  "description": "Core package for Reventless framework",
5
5
  "license": "Apache-2.0",
6
6
  "jest": {
@@ -29,16 +29,16 @@
29
29
  "sury": "11.0.0-alpha.4",
30
30
  "uuid": "^13.0.0",
31
31
  "@reventlessdev/rescript-effect": "0.1.0-alpha.27",
32
- "@reventlessdev/rescript-hash-object": "1.2.0-alpha.11",
33
32
  "@reventlessdev/rescript-jest": "1.0.0-alpha.7",
34
- "@reventlessdev/rescript-node-streams": "1.1.0-alpha.11",
35
33
  "@reventlessdev/rescript-fast-csv": "1.2.0-alpha.12",
34
+ "@reventlessdev/rescript-node-streams": "1.1.0-alpha.11",
35
+ "@reventlessdev/rescript-hash-object": "1.2.0-alpha.11",
36
36
  "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.15",
37
- "@reventlessdev/rescript-uuid": "1.1.0-alpha.15",
37
+ "@reventlessdev/rescript-ssh2": "1.1.0-alpha.12",
38
38
  "@reventlessdev/reventless-infra": "3.0.0-alpha.98",
39
39
  "@reventlessdev/reventless-interop": "3.0.0-alpha.26",
40
- "@reventlessdev/reventless-spec": "3.0.0-alpha.76",
41
- "@reventlessdev/rescript-ssh2": "1.1.0-alpha.12"
40
+ "@reventlessdev/rescript-uuid": "1.1.0-alpha.15",
41
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.76"
42
42
  },
43
43
  "devDependencies": {
44
44
  "rescript": "^12.3.0",
@@ -30,8 +30,16 @@ let sourceCFields = (
30
30
  let fields: array<string> = []
31
31
  let sources: array<GraphQL_Stitcher.subscriptionSource> = []
32
32
  let pushField = (fieldName: string) => {
33
- fields->Array.push(` on${fieldName}(id: ID): CommandResult`)
34
- sources->Array.push({GraphQL_Stitcher.field: `on${fieldName}`, mutations: [fieldName]})
33
+ // AppSync caps subscription field names at 50 chars. A mutation whose `on<field>`
34
+ // Source-C subscription would exceed that (e.g. the admin-aggregate-convention
35
+ // `Platform_ApiFragmentRegistry_DeregisterApiFragment` → 52) simply gets NO
36
+ // mutation-triggered subscription — the field is dropped here so the pushed SDL stays
37
+ // valid, and the resolver side (CommandSubscriptionResolvers) applies the same gate so
38
+ // no orphan resolver is created. Plugin mutations are far under the cap and unaffected.
39
+ if `on${fieldName}`->String.length <= Api_Naming.appSyncSubscriptionMaxLen {
40
+ fields->Array.push(` on${fieldName}(id: ID): CommandResult`)
41
+ sources->Array.push({GraphQL_Stitcher.field: `on${fieldName}`, mutations: [fieldName]})
42
+ }
35
43
  }
36
44
  mutationEntries->Array.forEach(entry => {
37
45
  let schema = entry.commandSchema
@@ -1,16 +1,20 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
3
  import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
4
+ import * as Api_Naming$ReventlessCore from "../../components/Api/Api_Naming.res.mjs";
4
5
 
5
6
  function sourceCFields(mutationEntries) {
6
7
  let fields = [];
7
8
  let sources = [];
8
9
  let pushField = fieldName => {
9
- fields.push(` on` + fieldName + `(id: ID): CommandResult`);
10
- sources.push({
11
- field: `on` + fieldName,
12
- mutations: [fieldName]
13
- });
10
+ if ((`on` + fieldName).length <= Api_Naming$ReventlessCore.appSyncSubscriptionMaxLen) {
11
+ fields.push(` on` + fieldName + `(id: ID): CommandResult`);
12
+ sources.push({
13
+ field: `on` + fieldName,
14
+ mutations: [fieldName]
15
+ });
16
+ return;
17
+ }
14
18
  };
15
19
  mutationEntries.forEach(entry => {
16
20
  let schema = entry.commandSchema;
@@ -77,4 +81,4 @@ export {
77
81
  sourceAFieldsAndTypes,
78
82
  generate,
79
83
  }
80
- /* No side effect */
84
+ /* Api_Naming-ReventlessCore Not a pure module */