@reventlessdev/rescript-pulumi-aws 3.0.0-alpha.8 → 3.0.0-alpha.9

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.9 (2026-09-08)
7
+
8
+ ### Features
9
+
10
+ * **core:** a reference names a row and shows its picture ([2b40d04](https://github.com/ReventlessDev/reventless-core/commit/2b40d0418bba2bf83463f446e94e372ea0c9898c))
11
+
12
+
6
13
  # 3.0.0-alpha.8 (2026-09-04)
7
14
 
8
15
  **Note:** Version bump only for package @reventlessdev/rescript-pulumi-aws
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/rescript-pulumi-aws",
3
- "version": "3.0.0-alpha.8",
3
+ "version": "3.0.0-alpha.9",
4
4
  "description": "ReScript bindings for @pulumi/aws",
5
5
  "license": "Apache-2.0",
6
6
  "jest": {
@@ -22,8 +22,8 @@
22
22
  "@pulumi/aws": "~7.19.0",
23
23
  "@pulumi/aws-native": "^1.62.0",
24
24
  "sury": "11.0.0-rc.2",
25
- "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.19",
26
- "@reventlessdev/rescript-aws-sdk": "3.0.0-alpha.15"
25
+ "@reventlessdev/rescript-aws-sdk": "3.0.0-alpha.15",
26
+ "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.19"
27
27
  },
28
28
  "devDependencies": {
29
29
  "esbuild": "^0.25.12",
@@ -1529,6 +1529,11 @@ let refsByIds = (
1529
1529
  ~retiredField: option<string>,
1530
1530
  ~retiredValues: option<array<string>>,
1531
1531
  ~namedWhenRetired: bool,
1532
+ // The picture a reference shows this row by, already read off the state schema
1533
+ // by `Reventless.RowImage` — this template only bakes in the expression it
1534
+ // hands over. `None` for a view that declares none, which emits a literal
1535
+ // `null`, exactly what the nullable field promises.
1536
+ ~imageExpr: option<string>=?,
1532
1537
  ~ownerField: option<string>=?,
1533
1538
  ~elevatedGroups: array<string>=[],
1534
1539
  ) => (tableName: string) => {
@@ -1584,6 +1589,7 @@ export function response(ctx) {
1584
1589
  .map(row => ({
1585
1590
  id: row.id,
1586
1591
  label: row['${labelField}'] ?? row.id,
1592
+ image: ${imageExpr->Option.getOr("null")},
1587
1593
  retired: _retired(row),
1588
1594
  retiredState: ${stateExpr},
1589
1595
  }));
@@ -1052,7 +1052,7 @@ export function response(ctx) {
1052
1052
  };
1053
1053
  }
1054
1054
 
1055
- function refsByIds(labelField, retiredField, retiredValues, namedWhenRetired, ownerField, $staropt$star) {
1055
+ function refsByIds(labelField, retiredField, retiredValues, namedWhenRetired, imageExpr, ownerField, $staropt$star) {
1056
1056
  return tableName => {
1057
1057
  let elevatedGroups = $staropt$star !== undefined ? $staropt$star : [];
1058
1058
  let ownerGuard = ownerField !== undefined ? ownerGuardPreamble(ownerField, elevatedGroups) : "\n const _owns = (row) => true;";
@@ -1095,6 +1095,7 @@ export function response(ctx) {
1095
1095
  .map(row => ({
1096
1096
  id: row.id,
1097
1097
  label: row['` + labelField + `'] ?? row.id,
1098
+ image: ` + Stdlib_Option.getOr(imageExpr, "null") + `,
1098
1099
  retired: _retired(row),
1099
1100
  retiredState: ` + stateExpr + `,
1100
1101
  }));