@vaernjs/vaern 0.0.4 → 0.0.6
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/README.md +6 -4
- package/index.d.ts +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -6,24 +6,26 @@
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
> ### Status: v0.0.
|
|
9
|
+
> ### Status: v0.0.6, early native runtime
|
|
10
10
|
>
|
|
11
11
|
> This release ships the native `vaern` binary for Linux, macOS and Windows.
|
|
12
12
|
> The API surface is small and will change before v1.0.
|
|
13
13
|
|
|
14
14
|
**Works today**
|
|
15
15
|
|
|
16
|
-
- `vaern run <file>`: JavaScript and TypeScript, with types stripped at load time
|
|
17
|
-
- Relative ES module imports
|
|
16
|
+
- `vaern run <file>`: JavaScript and TypeScript, with types stripped at load time and line numbers kept
|
|
17
|
+
- Relative ES module imports, and ES module packages already installed in `node_modules`
|
|
18
18
|
- `console`, `setTimeout` / `setInterval`, `queueMicrotask`
|
|
19
19
|
- `process.argv`, `process.env`, `process.exit()`
|
|
20
20
|
- `fetch` with `Headers`, `Response`, `AbortController`, redirects and timeouts (hyper and rustls)
|
|
21
|
+
- `URL`, `URLSearchParams`, `TextEncoder` and `TextDecoder`
|
|
21
22
|
- `serve()` from `vaern:http`, an HTTP server with Web-standard `Request` / `Response` and streamed bodies
|
|
23
|
+
- `readFile`, `writeFile` and `appendFile` from `vaern:fs`
|
|
22
24
|
- Uncaught exceptions, unhandled rejections and throwing timers exit non-zero with a `file:line:col` location
|
|
23
25
|
|
|
24
26
|
**Not implemented yet**
|
|
25
27
|
|
|
26
|
-
- `node:*` modules and
|
|
28
|
+
- `node:*` modules, CommonJS packages and downloading packages
|
|
27
29
|
- Capability sandboxing (`vaern.toml`)
|
|
28
30
|
- `agent()`, `tool()`, MCP, budgets and `vaern replay`
|
|
29
31
|
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChildProcess, SpawnOptions } from "node:child_process";
|
|
2
2
|
|
|
3
|
-
/** Package version, e.g. "0.0.
|
|
3
|
+
/** Package version, e.g. "0.0.6". */
|
|
4
4
|
export declare const version: string;
|
|
5
5
|
|
|
6
6
|
/** Name of the platform package that carries the binary for this host, e.g. "@vaernjs/vaern-linux-x64". */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaernjs/vaern",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Vaern — an agent-native JavaScript & TypeScript runtime. Runs TypeScript directly, with fetch and an HTTP server built in.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"runtime",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"prepublishOnly": "node ../../scripts/check-publish.mjs"
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@vaernjs/vaern-linux-x64": "0.0.
|
|
55
|
-
"@vaernjs/vaern-linux-arm64": "0.0.
|
|
56
|
-
"@vaernjs/vaern-darwin-arm64": "0.0.
|
|
57
|
-
"@vaernjs/vaern-darwin-x64": "0.0.
|
|
58
|
-
"@vaernjs/vaern-win32-x64": "0.0.
|
|
54
|
+
"@vaernjs/vaern-linux-x64": "0.0.6",
|
|
55
|
+
"@vaernjs/vaern-linux-arm64": "0.0.6",
|
|
56
|
+
"@vaernjs/vaern-darwin-arm64": "0.0.6",
|
|
57
|
+
"@vaernjs/vaern-darwin-x64": "0.0.6",
|
|
58
|
+
"@vaernjs/vaern-win32-x64": "0.0.6"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=18.0.0"
|