@reventlessdev/reventless-aws 3.0.0-alpha.341 → 3.0.0-alpha.342

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.342 (2026-09-08)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **aws:** the boot files a deploy rewrites in place carry no-cache ([01a4d21](https://github.com/ReventlessDev/reventless-core/commit/01a4d21a50a7890fcbd541f8a336b1333100148a))
11
+
12
+
6
13
  # 3.0.0-alpha.341 (2026-09-08)
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.341",
3
+ "version": "3.0.0-alpha.342",
4
4
  "description": "AWS adapters for Reventless",
5
5
  "license": "Apache-2.0",
6
6
  "bin": {
@@ -15,18 +15,18 @@
15
15
  "@aws-sdk/s3-request-presigner": "3.970.0",
16
16
  "sury": "11.0.0-rc.2",
17
17
  "uuid": "^13.0.0",
18
- "@reventlessdev/rescript-aws-sdk": "3.0.0-alpha.15",
19
- "@reventlessdev/rescript-jest": "1.0.0-alpha.10",
20
- "@reventlessdev/rescript-node": "2.0.0-alpha.9",
18
+ "@reventlessdev/rescript-aws-sdk": "3.0.0-alpha.16",
21
19
  "@reventlessdev/rescript-effect": "0.1.0-alpha.32",
22
- "@reventlessdev/rescript-pulumi-aws": "3.0.0-alpha.9",
20
+ "@reventlessdev/rescript-jest": "1.0.0-alpha.10",
21
+ "@reventlessdev/rescript-node": "2.0.0-alpha.10",
22
+ "@reventlessdev/rescript-pulumi-aws": "3.0.0-alpha.10",
23
23
  "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.19",
24
24
  "@reventlessdev/rescript-uuid": "2.0.0-alpha.0",
25
- "@reventlessdev/reventless-core": "3.0.0-alpha.259",
26
- "@reventlessdev/reventless-infra": "3.0.0-alpha.160",
25
+ "@reventlessdev/reventless-core": "3.0.0-alpha.260",
26
+ "@reventlessdev/reventless-postgres": "3.0.0-alpha.124",
27
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.133",
27
28
  "@reventlessdev/reventless-interop": "3.0.0-alpha.35",
28
- "@reventlessdev/reventless-postgres": "3.0.0-alpha.123",
29
- "@reventlessdev/reventless-spec": "3.0.0-alpha.132"
29
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.161"
30
30
  },
31
31
  "devDependencies": {
32
32
  "rescript": "12.3.0",
package/src/Platform.res CHANGED
@@ -2321,6 +2321,11 @@ module MakeWithConfig = (
2321
2321
  ->JSON.stringify
2322
2322
  })
2323
2323
 
2324
+ // `Plugin_Stack.cacheControlFor`'s rule, for this file and the two below:
2325
+ // the content changes across deploys while the URL does not, so without it
2326
+ // CloudFront and the browser serve the previous deploy's answer.
2327
+ let bootFileCacheControl = Pulumi.Input.make("no-cache")
2328
+
2324
2329
  let _ = PulumiAws.S3.BucketObject.make(
2325
2330
  ~name="host-ui-config-json",
2326
2331
  ~args={
@@ -2328,6 +2333,7 @@ module MakeWithConfig = (
2328
2333
  key: Pulumi.Input.make("config.json"),
2329
2334
  content: configJsonContent->Pulumi.Output.asInput,
2330
2335
  contentType: Pulumi.Input.make("application/json"),
2336
+ cacheControl: bootFileCacheControl,
2331
2337
  },
2332
2338
  )
2333
2339
 
@@ -2350,6 +2356,7 @@ module MakeWithConfig = (
2350
2356
  key: Pulumi.Input.make("ui-hints.json"),
2351
2357
  content: Pulumi.Input.make(hintsContent),
2352
2358
  contentType: Pulumi.Input.make("application/json"),
2359
+ cacheControl: bootFileCacheControl,
2353
2360
  },
2354
2361
  )
2355
2362
  }
@@ -2386,6 +2393,7 @@ module MakeWithConfig = (
2386
2393
  key: Pulumi.Input.make(ReventlessCore.Platform_UiSlots.fileName),
2387
2394
  content: Pulumi.Input.make(slotsContent),
2388
2395
  contentType: Pulumi.Input.make("application/javascript; charset=utf-8"),
2396
+ cacheControl: bootFileCacheControl,
2389
2397
  },
2390
2398
  )
2391
2399
  }
@@ -1251,11 +1251,13 @@ function MakeWithConfig(Config) {
1251
1251
  ]) : computed;
1252
1252
  return JSON.stringify(Util_ShellConfig$ReventlessAws.fields(withEvents, hostUiBundle.viewModes, hostUiBundle.bakedManifest, hostUiBundle.uiSlotsFile, hostUiBundle.shellConfig));
1253
1253
  });
1254
+ let bootFileCacheControl = "no-cache";
1254
1255
  new (Aws.s3.BucketObject)("host-ui-config-json", {
1255
1256
  bucket: bucketName,
1256
1257
  key: "config.json",
1257
1258
  content: configJsonContent,
1258
- contentType: "application/json"
1259
+ contentType: "application/json",
1260
+ cacheControl: bootFileCacheControl
1259
1261
  });
1260
1262
  let hintsPath = hostUiBundle.uiHintsFile;
1261
1263
  if (hintsPath !== undefined) {
@@ -1264,7 +1266,8 @@ function MakeWithConfig(Config) {
1264
1266
  bucket: bucketName,
1265
1267
  key: "ui-hints.json",
1266
1268
  content: hintsContent,
1267
- contentType: "application/json"
1269
+ contentType: "application/json",
1270
+ cacheControl: bootFileCacheControl
1268
1271
  });
1269
1272
  }
1270
1273
  let slotsPath = hostUiBundle.uiSlotsFile;
@@ -1274,7 +1277,8 @@ function MakeWithConfig(Config) {
1274
1277
  bucket: bucketName,
1275
1278
  key: Platform_UiSlots$ReventlessCore.fileName,
1276
1279
  content: slotsContent,
1277
- contentType: "application/javascript; charset=utf-8"
1280
+ contentType: "application/javascript; charset=utf-8",
1281
+ cacheControl: bootFileCacheControl
1278
1282
  });
1279
1283
  }
1280
1284
  let match$9 = hostUiBundle.bakedManifest;
@@ -2623,11 +2627,13 @@ function Make($star) {
2623
2627
  ]) : computed;
2624
2628
  return JSON.stringify(Util_ShellConfig$ReventlessAws.fields(withEvents, hostUiBundle.viewModes, hostUiBundle.bakedManifest, hostUiBundle.uiSlotsFile, hostUiBundle.shellConfig));
2625
2629
  });
2630
+ let bootFileCacheControl = "no-cache";
2626
2631
  new (Aws.s3.BucketObject)("host-ui-config-json", {
2627
2632
  bucket: bucketName,
2628
2633
  key: "config.json",
2629
2634
  content: configJsonContent,
2630
- contentType: "application/json"
2635
+ contentType: "application/json",
2636
+ cacheControl: bootFileCacheControl
2631
2637
  });
2632
2638
  let hintsPath = hostUiBundle.uiHintsFile;
2633
2639
  if (hintsPath !== undefined) {
@@ -2636,7 +2642,8 @@ function Make($star) {
2636
2642
  bucket: bucketName,
2637
2643
  key: "ui-hints.json",
2638
2644
  content: hintsContent,
2639
- contentType: "application/json"
2645
+ contentType: "application/json",
2646
+ cacheControl: bootFileCacheControl
2640
2647
  });
2641
2648
  }
2642
2649
  let slotsPath = hostUiBundle.uiSlotsFile;
@@ -2646,7 +2653,8 @@ function Make($star) {
2646
2653
  bucket: bucketName,
2647
2654
  key: Platform_UiSlots$ReventlessCore.fileName,
2648
2655
  content: slotsContent,
2649
- contentType: "application/javascript; charset=utf-8"
2656
+ contentType: "application/javascript; charset=utf-8",
2657
+ cacheControl: bootFileCacheControl
2650
2658
  });
2651
2659
  }
2652
2660
  let match$9 = hostUiBundle.bakedManifest;
@@ -645,6 +645,11 @@ let runBake = async (
645
645
  key,
646
646
  body: AwsSdk.S3.PutObjectCommand.bodyFromString(body),
647
647
  contentType: "application/json",
648
+ // Stable-named, rewritten in place every deploy — `Plugin_Stack.cacheControlFor`'s
649
+ // rule. This file needs it most: it is written AFTER the deploy's `/*`
650
+ // invalidation, so nothing else dislodges a stale copy, and a shell
651
+ // holding one queries fields the API no longer has.
652
+ cacheControl: "no-cache",
648
653
  })->AwsSdk.S3.PutObjectCommand.send
649
654
  let report = Dict.fromArray([
650
655
  ("baked", JSON.Encode.bool(true)),
@@ -550,7 +550,8 @@ async function runBake(target, structures) {
550
550
  Bucket: target.bucket,
551
551
  Key: key,
552
552
  Body: body,
553
- ContentType: "application/json"
553
+ ContentType: "application/json",
554
+ CacheControl: "no-cache"
554
555
  }));
555
556
  let report = Object.fromEntries([
556
557
  [