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

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
+ # 2.0.0-alpha.11 (2026-09-09)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **spec:** let the formatter settle the lifecycle model's layout ([09e1742](https://github.com/ReventlessDev/reventless-core/commit/09e17429c24d3b84ee6d324b0641d62db4f0d9f9))
11
+
12
+
6
13
  # 2.0.0-alpha.10 (2026-09-08)
7
14
 
8
15
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/rescript-node",
3
- "version": "2.0.0-alpha.10",
3
+ "version": "2.0.0-alpha.11",
4
4
  "description": "ReScript bindings for the Node.js standard library",
5
5
  "license": "Apache-2.0",
6
6
  "devDependencies": {
@@ -1,12 +1,13 @@
1
1
  /** Bindings for
2
2
  [`node:child_process`](https://nodejs.org/api/child_process.html). */
3
-
4
3
  type execOptions = {
5
4
  cwd?: string,
6
5
  encoding?: string,
7
6
  env?: dict<string>,
8
7
  stdio?: array<string>,
9
8
  maxBuffer?: int,
9
+ /** Written to the child's stdin, which is then closed. */
10
+ input?: string,
10
11
  }
11
12
 
12
13
  @module("node:child_process")
@@ -1,5 +1,4 @@
1
1
  /** Bindings for [`node:crypto`](https://nodejs.org/api/crypto.html). */
2
-
3
2
  /** A Node `Buffer`. Abstract rather than aliased to `Uint8Array.t`: a digest
4
3
  buffer is only ever fed back into `createHmac` or stringified, and giving it
5
4
  its own type keeps those two uses from being confused with file bytes. */
package/src/NodeFs.res CHANGED
@@ -8,11 +8,10 @@
8
8
  passed wrongly — the `(string, string)` form is the one that permits
9
9
  `readFileSync(path, "utf-8")`, a different string, silently. Use
10
10
  {!readFileSyncBuffer} when the bytes are wanted rather than text. */
11
-
12
- // ── Existence and metadata ───────────────────────────────────────────────────
13
-
14
11
  @module("node:fs")
15
- external existsSync: string => bool = "existsSync"
12
+ external // ── Existence and metadata ───────────────────────────────────────────────────
13
+
14
+ existsSync: string => bool = "existsSync"
16
15
 
17
16
  @module("node:fs")
18
17
  external realpathSync: string => string = "realpathSync"
@@ -9,7 +9,6 @@
9
9
  `dirname` and `filename` are Node's own additions and are defined only for
10
10
  `file:` URLs; a bundler that rewrites modules to CommonJS drops them. `url`
11
11
  is the portable form and the one to reach for when either could apply. */
12
-
13
12
  @val @scope(("import", "meta"))
14
13
  external url: string = "url"
15
14
 
@@ -3,7 +3,6 @@
3
3
  `createRequire` is how an ESM module gets at CommonJS resolution, which is
4
4
  what `require.resolve` is wanted for here — locating a dependency's on-disk
5
5
  path without importing it. */
6
-
7
6
  type require
8
7
 
9
8
  @module("node:module")
package/src/NodeNet.res CHANGED
@@ -1,6 +1,5 @@
1
1
  /** Bindings for [`node:net`](https://nodejs.org/api/net.html) — TCP servers and
2
2
  the sockets they accept. */
3
-
4
3
  type socket
5
4
  type server
6
5
 
package/src/NodeOs.res CHANGED
@@ -1,4 +1,3 @@
1
1
  /** Bindings for [`node:os`](https://nodejs.org/api/os.html). */
2
-
3
2
  @module("node:os")
4
3
  external tmpdir: unit => string = "tmpdir"
package/src/NodePath.res CHANGED
@@ -5,7 +5,6 @@
5
5
  two-argument `join` and a variadic one are not duplicates of each other —
6
6
  they are different functions with the same name, and which one a call site
7
7
  got used to depend on which inline binding block it happened to sit near. */
8
-
9
8
  @module("node:path") @variadic
10
9
  external join: array<string> => string = "join"
11
10
 
@@ -5,7 +5,6 @@
5
5
  "process.env"` and `@val @scope("process") external env: dict<string> =
6
6
  "env"` compile to the same access, and the tree had both spellings. This is
7
7
  the one. */
8
-
9
8
  @val @scope("process")
10
9
  external argv: array<string> = "argv"
11
10
 
package/src/NodeUrl.res CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  Only the two path/URL converters — the `URL` class itself is a WHATWG global
4
4
  rather than a `node:` import, so it belongs to `rescript-web`, not here. */
5
-
6
5
  @module("node:url")
7
6
  external fileURLToPath: string => string = "fileURLToPath"
8
7