{
  "name": "assertion-error",
  "url": "https://canirequire.com/package/assertion-error/",
  "description": "Error constructor for test and validation frameworks that implements standardized AssertionError specification.",
  "latest": "2.0.1",
  "latestPublished": "2023-10-18T18:04:13.507Z",
  "format": "esm-only",
  "summary": "assertion-error@2.0.1 is ESM-only. assertion-error dropped its CommonJS build in 2.0.0 (October 2021). The last version you can require() on every Node.js version, including 18 and older, is 1.1.0, published Jan 7, 2018. On Node.js 20.19+, 22.12+ and every newer release, require(\"assertion-error\") works anyway: Node can load synchronous ES modules through require(). Verified on Node 20, 22, 24, 26. Node.js 18 and older still fail with ERR_REQUIRE_ESM.",
  "esmOnlySince": "2.0.0",
  "esmOnlySinceDate": "2021-10-05T15:20:51.185Z",
  "lastCommonJsVersion": "1.1.0",
  "lastCommonJsDate": "2018-01-07T14:59:31.257Z",
  "nativeEsmSince": "2.0.0",
  "types": "bundled",
  "nodeEngines": ">=12",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/chaijs/assertion-error",
  "weeklyDownloads": 89591846,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:49.993Z",
    "node": {
      "18": {
        "require": false,
        "import": true,
        "requireError": "ERR_REQUIRE_ESM",
        "importError": null
      },
      "20": {
        "require": true,
        "import": true,
        "requireError": null,
        "importError": null
      },
      "22": {
        "require": true,
        "import": true,
        "requireError": null,
        "importError": null
      },
      "24": {
        "require": true,
        "import": true,
        "requireError": null,
        "importError": null
      },
      "26": {
        "require": true,
        "import": true,
        "requireError": null,
        "importError": null
      }
    },
    "bun": {
      "require": true,
      "import": true,
      "requireError": null,
      "importError": null
    }
  },
  "formatHistory": [
    {
      "version": "2.0.1",
      "format": "esm-only",
      "published": "2023-10-18T18:04:13.507Z"
    },
    {
      "version": "2.0.0",
      "format": "esm-only",
      "published": "2021-10-05T15:20:51.185Z"
    },
    {
      "version": "1.1.0",
      "format": "cjs",
      "published": "2018-01-07T14:59:31.257Z"
    },
    {
      "version": "1.0.2",
      "format": "cjs",
      "published": "2016-06-06T18:25:29.009Z"
    },
    {
      "version": "1.0.1",
      "format": "cjs",
      "published": "2015-03-05T23:45:54.576Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2013-06-08T20:41:17.202Z"
    },
    {
      "version": "0.1.0",
      "format": "cjs",
      "published": "2013-04-07T22:59:42.826Z"
    }
  ]
}