@reventlessdev/rescript-pulumi-aws 3.0.0-alpha.14 → 3.0.0-alpha.16

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,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.16 (2026-09-23)
7
+
8
+ **Note:** Version bump only for package @reventlessdev/rescript-pulumi-aws
9
+
10
+
11
+
12
+
13
+
14
+ # 3.0.0-alpha.15 (2026-09-21)
15
+
16
+ ### Bug Fixes
17
+
18
+ * **deps:** update rescript to 12.3.1 ([ea1ce37](https://github.com/ReventlessDev/reventless-core/commit/ea1ce377297640f6d0d360e6c84c778d59ecbcc5))
19
+ * **deps:** update sury to 11.0.0 ([8715b22](https://github.com/ReventlessDev/reventless-core/commit/8715b22b33856c46ba57518aad151065c123a995))
20
+
21
+
6
22
  # 3.0.0-alpha.14 (2026-09-16)
7
23
 
8
24
  * fix(aws)!: stop a deploy that finds no Lambda layer ([62957f4](https://github.com/ReventlessDev/reventless-core/commit/62957f444ab2120f672b9ac0564f786d64090864))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/rescript-pulumi-aws",
3
- "version": "3.0.0-alpha.14",
3
+ "version": "3.0.0-alpha.16",
4
4
  "description": "ReScript bindings for @pulumi/aws",
5
5
  "license": "Apache-2.0",
6
6
  "jest": {
@@ -21,18 +21,18 @@
21
21
  "dependencies": {
22
22
  "@pulumi/aws": "~7.19.0",
23
23
  "@pulumi/aws-native": "^1.62.0",
24
- "sury": "11.0.0-rc.2",
25
- "@reventlessdev/rescript-aws-sdk": "3.0.0-alpha.19",
26
- "@reventlessdev/rescript-node": "2.0.0-alpha.12",
27
- "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.21"
24
+ "sury": "11.0.0",
25
+ "@reventlessdev/rescript-aws-sdk": "3.0.0-alpha.21",
26
+ "@reventlessdev/rescript-node": "2.0.0-alpha.14",
27
+ "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.22"
28
28
  },
29
29
  "devDependencies": {
30
30
  "esbuild": "^0.25.12",
31
- "rescript": "12.3.0",
32
- "sury-ppx": "11.0.0-rc.2"
31
+ "rescript": "12.3.1",
32
+ "sury-ppx": "11.0.0"
33
33
  },
34
34
  "peerDependencies": {
35
- "rescript": "12.3.0"
35
+ "rescript": "^12.3.1"
36
36
  },
37
37
  "gitHead": "ddea51534dc210635d7b11968089627b3b697ce2",
38
38
  "publishConfig": {
@@ -977,9 +977,9 @@ export function request(ctx) {
977
977
  `;
978
978
  }
979
979
 
980
- function resolveIds(idsField, sortField, ownerField, retiredField, retiredValues, $staropt$star) {
980
+ function resolveIds(idsField, sortField, ownerField, retiredField, retiredValues, elevatedGroupsOpt) {
981
+ let elevatedGroups = elevatedGroupsOpt !== undefined ? elevatedGroupsOpt : [];
981
982
  return tableName => {
982
- let elevatedGroups = $staropt$star !== undefined ? $staropt$star : [];
983
983
  let keysCode = sortField !== undefined ? `id => ({ id: util.dynamodb.toString(id.id), ` + sortField + `: util.dynamodb.toString(id.` + sortField + `) })` : `id => ({ id: util.dynamodb.toString(id) })`;
984
984
  return importUtil + `
985
985
  import { runtime } from '@aws-appsync/utils';
@@ -1011,10 +1011,9 @@ export function response(ctx) {
1011
1011
  };
1012
1012
  }
1013
1013
 
1014
- function batchGetItemsByIds(ownerField, retiredField, retiredValues, $staropt$star) {
1015
- return tableName => {
1016
- let elevatedGroups = $staropt$star !== undefined ? $staropt$star : [];
1017
- return importUtil + `
1014
+ function batchGetItemsByIds(ownerField, retiredField, retiredValues, elevatedGroupsOpt) {
1015
+ let elevatedGroups = elevatedGroupsOpt !== undefined ? elevatedGroupsOpt : [];
1016
+ return tableName => importUtil + `
1018
1017
  import { runtime } from '@aws-appsync/utils';
1019
1018
  export function request(ctx) {
1020
1019
  const ids = ctx.args.ids ?? [];
@@ -1039,22 +1038,21 @@ export function response(ctx) {
1039
1038
  // caller does not own is dropped rather than refused, for the reason the
1040
1039
  // single-key door answers null: distinguishing "not yours" from "not there"
1041
1040
  // would make this door an oracle for which ids exist.` + (
1042
- ownerField !== undefined ? ownerGuardPreamble(ownerField, elevatedGroups) : ""
1043
- ) + retiredGuardPreamble(retiredField, retiredValues, elevatedGroups, Stdlib_Option.isSome(ownerField)) + `
1041
+ ownerField !== undefined ? ownerGuardPreamble(ownerField, elevatedGroups) : ""
1042
+ ) + retiredGuardPreamble(retiredField, retiredValues, elevatedGroups, Stdlib_Option.isSome(ownerField)) + `
1044
1043
  return (ctx.result?.data?.['` + tableName + `'] ?? []).filter(item =>
1045
1044
  item !== null` + (
1046
- Stdlib_Option.isSome(ownerField) ? " && _owns(item)" : ""
1047
- ) + (
1048
- Stdlib_Option.isSome(retiredField) ? " && _live(item)" : ""
1049
- ) + `);
1045
+ Stdlib_Option.isSome(ownerField) ? " && _owns(item)" : ""
1046
+ ) + (
1047
+ Stdlib_Option.isSome(retiredField) ? " && _live(item)" : ""
1048
+ ) + `);
1050
1049
  }
1051
1050
  `;
1052
- };
1053
1051
  }
1054
1052
 
1055
- function refsByIds(labelField, retiredField, retiredValues, namedWhenRetired, imageExpr, ownerField, $staropt$star) {
1053
+ function refsByIds(labelField, retiredField, retiredValues, namedWhenRetired, imageExpr, ownerField, elevatedGroupsOpt) {
1054
+ let elevatedGroups = elevatedGroupsOpt !== undefined ? elevatedGroupsOpt : [];
1056
1055
  return tableName => {
1057
- let elevatedGroups = $staropt$star !== undefined ? $staropt$star : [];
1058
1056
  let ownerGuard = ownerField !== undefined ? ownerGuardPreamble(ownerField, elevatedGroups) : "\n const _owns = (row) => true;";
1059
1057
  let retiredExpr;
1060
1058
  if (retiredField !== undefined) {
@@ -124,12 +124,12 @@ type t = policy
124
124
 
125
125
  let toJsonString: t => string = t => {
126
126
  t
127
- ->S.decodeOrThrow(~from=policySchema, ~to=S.json)
127
+ ->S.convertOrThrow(~from=policySchema, ~to=S.json)
128
128
  ->JSON.stringify(~space=1)
129
129
  }
130
130
 
131
131
  let fromJsonString: string => t = (policyString: string) =>
132
- policyString->S.decodeOrThrow(~from=S.jsonString, ~to=policySchema)
132
+ S.JsonString(policyString)->S.convertOrThrow(~from=S.jsonString, ~to=policySchema)
133
133
 
134
134
  let make = (~version=Version2012, ~id=?, ~statements) => {
135
135
  version,
@@ -48,7 +48,7 @@ let conditionEntrySchema = Sury.union([
48
48
  Sury.$schema(s => (s.m(Sury.array(Sury.string))))
49
49
  ]);
50
50
 
51
- let conditionMapSchema = Sury.dict(conditionEntrySchema);
51
+ let conditionMapSchema = Sury.record(conditionEntrySchema);
52
52
 
53
53
  let conditionSchema = Sury.$schema(s => ({
54
54
  StringEquals: s.m(Sury.$option(conditionMapSchema)),
@@ -121,11 +121,11 @@ let policySchema = Sury.$schema(s => ({
121
121
  }));
122
122
 
123
123
  function toJsonString(t) {
124
- return JSON.stringify(S.decodeOrThrow(t, policySchema, Sury.json), undefined, 1);
124
+ return JSON.stringify(S.convertOrThrow(t, policySchema, undefined, Sury.json), undefined, 1);
125
125
  }
126
126
 
127
127
  function fromJsonString(policyString) {
128
- return S.decodeOrThrow(policyString, Sury.jsonString, policySchema);
128
+ return S.convertOrThrow(policyString, Sury.jsonString, undefined, policySchema);
129
129
  }
130
130
 
131
131
  function make(versionOpt, id, statements) {