Skip to content

v0.2.0

Choose a tag to compare

@loreste loreste released this 13 Nov 13:29
· 4 commits to main since this release

v0.2.0

N-API Native Addon Support

The big one. .node files now load and run. The full Node-API function table is implemented -- 149 extern "C" functions covering v1 through v9:

  • Value creation: strings, numbers, booleans, objects, arrays, symbols, BigInt, dates
  • Property access: get/set by name, index, or value; has_property, delete, own property names
  • Functions: create, call, construct (new), get callback info
  • Buffers: create, copy, external, get data pointer
  • Error handling: throw, create, get/set last error
  • References: create, delete, ref/unref, get value
  • Async: napi_async_work (execute + complete), napi_create_promise / resolve / reject
  • Thread-safe functions: create, call, acquire, release
  • Type checking: typeof, is_array, instanceof, strict_equals, coerce

Addons using node-addon-api or raw N-API should work. Tested with a C addon exercising the core surface.

HTTP Response Cache (Rust-level)

Responses with Cache-Control: public, max-age=N are now cached in the hyper thread. Cache hits never cross to JavaScript -- they're served directly from Rust with zero overhead. Just set the header on your response; the runtime handles the rest.

TLS Server Support

tls.createServer({ cert, key }) now works. Uses rustls with async TLS handshake per connection. Accepted sockets use the same read/write/close ops as plain TCP.

Other Changes

  • jse binary retired -- only malia ships now (jse.* globals remain as aliases)
  • Local tarball install: malia install ./pkg.tgz and file: specifiers work
  • HTTP: bodiless methods (GET/HEAD) skip body collection (faster)
  • Cache module: oversized entries rejected, stale-while-revalidate triggers background refresh
  • Cluster: duplicate online events fixed
  • Performance claims updated based on independent benchmark
  • Honest framework compatibility docs (tested vs untested features)

Full Changelog: v0.1.9...v0.2.0

Full Changelog: v0.1.9...v0.2.0