Skip to content

Release 2.2.0

Latest

Choose a tag to compare

@muhammadarslan muhammadarslan released this 30 Nov 14:32
· 3 commits to main since this release
665e43a

Data and numerical computing

HazelJS 2.2.0 adds typed data queries, numerical arrays, and statistical analysis for Node.js and TypeScript. It also fixes Agent imports, execution defaults, and approval retries.

  • @hazeljs/frame adds immutable, typed DataFrame queries over records, CSV, and Parquet using DuckDB. Filter, group, aggregate, sort, and slice data, then materialize results as JavaScript rows. Query plans can be serialized for use by agents. PR #46
  • @hazeljs/numeric adds NumPy-style multidimensional arrays with typed storage, broadcasting, reductions, seeded sampling, and linear algebra including solves and matrix decompositions. PR #46
  • @hazeljs/stats adds probability distributions, hypothesis tests, regression, bootstrapping, and streaming summaries. Optional Frame adapters let you compute summaries over DataFrame queries. PR #46
  • @hazeljs/notebook adds the hazel-notebook CLI and a local browser workspace for running TypeScript cells, viewing tabular output, and exporting notebooks. The repository includes a Frame notebook demo, a sales-query example, and benchmarks for Frame, Numeric, and Stats. PR #46

Agent fixes

  • Optional Eval peer. CommonJS and ESM consumers can import @hazeljs/agent without @hazeljs/eval. The three synchronous evaluation helpers remain available from the package root and load Eval when called. Issue #43, PR #47
  • Execution defaults. Standard and streaming runs now honor the agent's maxSteps and enableMemory decorator settings. Per-call options take precedence. Disabling memory skips both retrieval and persistence. PR #44
  • Durable approvals. Duplicate or overlapping approveAndResume calls are rejected with APPROVAL_NOT_PENDING once another caller has claimed the approval. An approved run that remains suspended after a process crash can still be resumed. PR #45

Upgrading

Custom HumanTaskService implementations must implement tryResolve(id, decision, resolvedBy?). Update the task atomically while its status is pending, return the updated task on success, and return undefined if the task is missing or already resolved. The bundled in-memory, file, and SQL implementations include this method. PR #45

Frame, Numeric, Stats, and Notebook require Node.js 20 or later.

Full changelog from v2.1.3 to v2.2.0