Back to Explore

chaijs/assertion-error

GitHub
1 watchersOpen source

Last release: 9 months ago

Provides `AssertionError` and `AssertionResult` classes for test and validation frameworks that implement a standardized AssertionError specification. Useful for returning or throwing consistent assertion outcomes from functions, including checking `.name`, `.ok`, or using `instanceof Error`.

Project status

  • The source appears actively maintained, with a very recent upstream push (2026-05-25) and updates as late as v2.0.2 (2025-08-25).
  • Apparent update cadence is bursty: v2.0.1 and v2.0.2 landed within about a day (2025-08-15 to 2025-08-25), after a much longer period since the last major rewrite in v2.0.0 (2021-10-05).

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v2.0.2

    9 months ago

    v2.0.2 removes the npm script named `posttest` from package.json. All other shown changes are limited to script configuration, and the `test` command itself remains the same.

    Breaking
  • v2.0.1

    9 months ago

    v2.0.1 is primarily a tooling and implementation refactor, moving the project to a Deno-based build/test flow. Release notes mention CI updates and the Deno refactor, but the diff also shows changes to packaging, type declaration strategy, and AssertionError stack trace behavior.

    BreakingFeatures
  • v2.0.0

    10/5/2021

    v2.0.0 is a rewrite of the package using TypeScript and ES6 classes. It introduces a new `AssertionResult` class and adds an `.ok` boolean property on both `AssertionError` and `AssertionResult`. The release notes are minimal and do not document several important module, typing, and behavioral changes visible in the code diff.

    Features
  • 1.1.0

    1/7/2018

    Release 1.1.0 primarily adds TypeScript type definitions for the AssertionError export. It also introduces a TypeScript compile-time test step and updates the package metadata to expose types.

    Features
  • 1.0.2

    6/6/2016

    This release is a small maintenance update that fixes incorrect stack traces when using PhantomJS. The change is intended to improve debugging output, without introducing new features or expected API changes.