@reventlessdev/rescript-node 2.0.0-alpha.11 → 2.0.0-alpha.13

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,29 @@
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
+ # 2.0.0-alpha.13 (2026-09-21)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **deps:** update rescript to 12.3.1 ([ea1ce37](https://github.com/ReventlessDev/reventless-core/commit/ea1ce377297640f6d0d360e6c84c778d59ecbcc5))
11
+
12
+
13
+ # 2.0.0-alpha.12 (2026-09-16)
14
+
15
+ * fix(aws)!: stop a deploy that finds no Lambda layer ([62957f4](https://github.com/ReventlessDev/reventless-core/commit/62957f444ab2120f672b9ac0564f786d64090864))
16
+ ### Features
17
+
18
+ * **aws:** bake the component manifest with a command, in CI and by hand ([4b0dccc](https://github.com/ReventlessDev/reventless-core/commit/4b0dccc8fc3b99874108c82db282d73cc93a48e9))
19
+ * **aws:** deploy and remove a whole app with deploy-app up and down ([b7d0587](https://github.com/ReventlessDev/reventless-core/commit/b7d0587bd02a4b067a3a9fa21b5f77ea5210d792))
20
+
21
+ ### BREAKING CHANGES
22
+
23
+ * PulumiAws.Lambda.reventlessLayerArn is now a function that
24
+ returns the ARN and throws when there is none. Use Lambda.reventlessLayers()
25
+ for a function's layers argument.
26
+
27
+
28
+
6
29
  # 2.0.0-alpha.11 (2026-09-09)
7
30
 
8
31
  ### Bug Fixes
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@reventlessdev/rescript-node",
3
- "version": "2.0.0-alpha.11",
3
+ "version": "2.0.0-alpha.13",
4
4
  "description": "ReScript bindings for the Node.js standard library",
5
5
  "license": "Apache-2.0",
6
6
  "devDependencies": {
7
- "rescript": "12.3.0"
7
+ "rescript": "12.3.1"
8
8
  },
9
9
  "peerDependencies": {
10
- "rescript": "12.3.0"
10
+ "rescript": "^12.3.1"
11
11
  },
12
12
  "publishConfig": {
13
13
  "registry": "https://registry.npmjs.org"
@@ -23,6 +23,11 @@ external fromStringUtf8: (string, @as("utf8") _) => t = "from"
23
23
  @val @scope("Buffer")
24
24
  external fromStringBase64Url: (string, @as("base64url") _) => t = "from"
25
25
 
26
+ /** A `Buffer` over a copy of the bytes. A plain `Uint8Array` — what the AWS SDK
27
+ hands back — has only the array's own `toString`, which joins the numbers. */
28
+ @val @scope("Buffer")
29
+ external fromBytes: Uint8Array.t => t = "from"
30
+
26
31
  @send
27
32
  external toStringUtf8: (t, @as("utf8") _) => string = "toString"
28
33
 
@@ -18,6 +18,20 @@ external execSync: (string, execOptions) => string = "execSync"
18
18
  @module("node:child_process")
19
19
  external execFileSync: (string, array<string>, execOptions) => string = "execFileSync"
20
20
 
21
+ /** Pass `encoding` to get `stdout` / `stderr` as strings. All three stay null
22
+ when the program could not be started at all; `error` then says why. */
23
+ type spawnSyncResult = {
24
+ status: Nullable.t<int>,
25
+ stdout: Nullable.t<string>,
26
+ stderr: Nullable.t<string>,
27
+ error: Nullable.t<JsExn.t>,
28
+ }
29
+
30
+ /** Unlike `execFileSync`, never throws: a non-zero exit comes back as `status`
31
+ with the child's `stderr`, so a caller can tell one failure from another. */
32
+ @module("node:child_process")
33
+ external spawnSync: (string, array<string>, execOptions) => spawnSyncResult = "spawnSync"
34
+
21
35
  /** A running child process. Unlike the `*Sync` calls above, `spawn` returns
22
36
  while the child is still alive, so the caller keeps working alongside it —
23
37
  which is the whole reason to reach for this over `execFileSync`. */
@@ -23,6 +23,10 @@ external exit: int => unit = "exit"
23
23
  @val @scope("process")
24
24
  external pid: int = "pid"
25
25
 
26
+ /** `versions["node"]` is the running Node's version, without the leading `v`. */
27
+ @val @scope("process")
28
+ external versions: dict<string> = "versions"
29
+
26
30
  /** Signalling another process — or, with signal `0`, asking whether it is still
27
31
  there without disturbing it. Throws when the pid is gone (`ESRCH`) or not
28
32
  ours to signal (`EPERM`), so a liveness check is a `try`. */