@reventlessdev/rescript-node 2.0.0-alpha.11 → 2.0.0-alpha.12
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 +16 -0
- package/package.json +1 -1
- package/src/NodeBuffer.res +5 -0
- package/src/NodeChildProcess.res +14 -0
- package/src/NodeProcess.res +4 -0
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
|
+
# 2.0.0-alpha.12 (2026-09-16)
|
|
7
|
+
|
|
8
|
+
* fix(aws)!: stop a deploy that finds no Lambda layer ([62957f4](https://github.com/ReventlessDev/reventless-core/commit/62957f444ab2120f672b9ac0564f786d64090864))
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **aws:** bake the component manifest with a command, in CI and by hand ([4b0dccc](https://github.com/ReventlessDev/reventless-core/commit/4b0dccc8fc3b99874108c82db282d73cc93a48e9))
|
|
12
|
+
* **aws:** deploy and remove a whole app with deploy-app up and down ([b7d0587](https://github.com/ReventlessDev/reventless-core/commit/b7d0587bd02a4b067a3a9fa21b5f77ea5210d792))
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* PulumiAws.Lambda.reventlessLayerArn is now a function that
|
|
17
|
+
returns the ARN and throws when there is none. Use Lambda.reventlessLayers()
|
|
18
|
+
for a function's layers argument.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# 2.0.0-alpha.11 (2026-09-09)
|
|
7
23
|
|
|
8
24
|
### Bug Fixes
|
package/package.json
CHANGED
package/src/NodeBuffer.res
CHANGED
|
@@ -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
|
|
package/src/NodeChildProcess.res
CHANGED
|
@@ -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`. */
|
package/src/NodeProcess.res
CHANGED
|
@@ -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`. */
|