@reventlessdev/rescript-node 2.0.0-alpha.1 → 2.0.0-alpha.3

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,20 @@
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.3 (2026-08-09)
7
+
8
+ ### Features
9
+
10
+ * **core,aws:** bundle a runtime extension's companion packages, guard imports at deploy ([e975175](https://github.com/ReventlessDev/reventless-core/commit/e9751758f51582a8e46db362219f725bb5f1bcde))
11
+
12
+
13
+ # 2.0.0-alpha.2 (2026-08-05)
14
+
15
+ ### Features
16
+
17
+ * **local:** persist the object store beside the SQLite database ([f37e4a1](https://github.com/ReventlessDev/reventless-core/commit/f37e4a1ad3191a97f14f3db7e2ead0e2b27b46c2))
18
+
19
+
6
20
  # 2.0.0-alpha.1 (2026-08-02)
7
21
 
8
22
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/rescript-node",
3
- "version": "2.0.0-alpha.1",
3
+ "version": "2.0.0-alpha.3",
4
4
  "description": "ReScript bindings for the Node.js standard library",
5
5
  "license": "Apache-2.0",
6
6
  "devDependencies": {
@@ -0,0 +1,21 @@
1
+ /** Bindings for Node's global [`Buffer`](https://nodejs.org/api/buffer.html).
2
+
3
+ `t` aliases `Uint8Array.t` rather than being abstract: a Node `Buffer` *is* a
4
+ `Uint8Array` subclass, so the bytes a stream hands over, the bytes
5
+ {!NodeFs.readFileSyncBuffer} returns, and the bytes {!NodeFs.writeFileSyncBuffer}
6
+ takes are all the same values. Aliasing lets them flow between those calls
7
+ without a cast that would exist only to satisfy the type checker. */
8
+ type t = Uint8Array.t
9
+
10
+ /** Joins byte chunks into one buffer — how a request body is assembled from the
11
+ chunks its `data` events deliver. */
12
+ @val @scope("Buffer")
13
+ external concat: array<t> => t = "concat"
14
+
15
+ /** Bakes the encoding in for the same reason {!NodeFs.readFileSync} does: the
16
+ `(string, string)` form permits a different, silently wrong, encoding name. */
17
+ @val @scope("Buffer")
18
+ external fromStringUtf8: (string, @as("utf8") _) => t = "from"
19
+
20
+ @send
21
+ external toStringUtf8: (t, @as("utf8") _) => string = "toString"
@@ -0,0 +1,2 @@
1
+ // Generated by ReScript, PLEASE EDIT WITH CARE
2
+ /* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */
package/src/NodeFs.res CHANGED
@@ -32,6 +32,12 @@ external readFileSyncBuffer: string => Uint8Array.t = "readFileSync"
32
32
  @module("node:fs")
33
33
  external writeFileSync: (string, string, @as("utf8") _) => unit = "writeFileSync"
34
34
 
35
+ /** The byte-oriented companion to {!writeFileSync}, mirroring
36
+ {!readFileSyncBuffer}: no encoding to bake in, because the payload is
37
+ already bytes. */
38
+ @module("node:fs")
39
+ external writeFileSyncBuffer: (string, Uint8Array.t) => unit = "writeFileSync"
40
+
35
41
  // ── Directories ──────────────────────────────────────────────────────────────
36
42
 
37
43
  type dirent
@@ -10,3 +10,8 @@ type require
10
10
  external createRequire: string => require = "createRequire"
11
11
 
12
12
  @send external requireResolve: (require, string) => string = "resolve"
13
+
14
+ /** The names of Node's built-in modules (both bare and some `node:`-only
15
+ entries like `node:test`), plus subpath forms such as `fs/promises`. */
16
+ @module("node:module")
17
+ external builtinModules: array<string> = "builtinModules"