This is a math and string formula parser, part of the hapi ecosystem and the Joi ecosystem. It is useful when you need to parse and evaluate formula expressions, and its documentation, API, version status, and changelog are available through joi.dev.
Project status
- Active maintenance: The source shows recent activity, with an upstream push on 2026-07-01 and a corresponding v4.0.0 update on the same date, suggesting it is currently being maintained rather than dormant.
- Update cadence: After a long quiet period (last prior listed update was v3.0.2 on 2023-02-19), updates resumed with v4.0.0 in 2026-07, implying bursty or intermittent cadence, not steady monthly releases.
AI summary generated
Recent updates
v4.0.0
Release v4.0.0 has no release notes provided by the publisher. The code diff shows a major packaging and ecosystem migration (notably CommonJS to ESM), along with TypeScript declaration relocation and updated test/lint/typecheck tooling.
v3.0.2
Release v3.0.2 includes no publisher release notes. The diff shows a package rename from @sideway/formula to @hapi/formula, plus CI migration from Travis to GitHub Actions and devDependency upgrades.
Breakingv3.0.1
Release v3.0.1 was published on 2022-12-14, but no release notes or change details were provided by the publisher. Without documented updates, developers should review the actual diff for this version to determine whether any API, configuration, or behavior changes occurred.
v3.0.0
This release (v3.0.0) contains no published release notes. The actual changes are limited to CI configuration (.travis.yml), package metadata (package.json version and devDependency bumps), and documentation/licensing text updates.
Breakingv2.0.0
Release v2.0.0 contains a major API surface change around how the formula parser class is exported, plus TypeScript typings and documentation updates. The provided release notes are empty, so the real impact must be inferred from the code diff.
Featuresv1.2.0
Release v1.2.0 has no published release notes provided. The code changes are small but include a behavioral modification to how function calls are evaluated, specifically the `this` binding for user-supplied functions during formula evaluation.
v1.1.0
v1.1.0 updates the formula parser implementation and tests. It adds stricter handling of the constructor options.constants (including validation), introduces a new formula.single property for single-part formulas, and changes error handling for missing closing parentheses, while also removing the @hapi/hoek dependency.
BreakingFeaturesv1.0.0
Release v1.0.0 was published on 2019-06-24, but no release notes were provided by the publisher. As a result, no documented new features, fixes, breaking changes, or migration guidance are available from the release notes alone.