{
  "name": "dom-serializer",
  "url": "https://canirequire.com/package/dom-serializer/",
  "description": "render domhandler DOM nodes to a string",
  "latest": "3.1.1",
  "latestPublished": "2026-05-02T11:26:46.442Z",
  "format": "esm-only",
  "summary": "dom-serializer@3.1.1 is ESM-only. dom-serializer dropped its CommonJS build in 3.0.0 (March 2026). The last version you can require() on every Node.js version, including 18 and older, is 2.0.0, published Apr 9, 2022. On Node.js 20.19+, 22.12+ and every newer release, require(\"dom-serializer\") 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. dom-serializer@3.1.1 declares engines \">=20.19.0\", so Node.js 18 is outside its supported range regardless of module format.",
  "esmOnlySince": "3.0.0",
  "esmOnlySinceDate": "2026-03-17T22:49:51.598Z",
  "lastCommonJsVersion": "2.0.0",
  "lastCommonJsDate": "2022-04-09T17:21:48.457Z",
  "nativeEsmSince": "1.4.0",
  "types": "bundled",
  "nodeEngines": ">=20.19.0",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/cheeriojs/dom-serializer",
  "weeklyDownloads": 94304390,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:48.412Z",
    "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": "3.1.1",
      "format": "esm-only",
      "published": "2026-05-02T11:26:46.442Z"
    },
    {
      "version": "3.1.0",
      "format": "esm-only",
      "published": "2026-05-02T11:24:02.365Z"
    },
    {
      "version": "3.0.0",
      "format": "esm-only",
      "published": "2026-03-17T22:49:51.598Z"
    },
    {
      "version": "2.0.0",
      "format": "dual",
      "published": "2022-04-09T17:21:48.457Z"
    },
    {
      "version": "1.4.1",
      "format": "cjs",
      "published": "2022-04-09T17:19:31.927Z"
    },
    {
      "version": "1.4.0",
      "format": "dual",
      "published": "2022-04-09T17:05:24.224Z"
    },
    {
      "version": "1.3.2",
      "format": "cjs",
      "published": "2021-05-17T13:06:44.016Z"
    },
    {
      "version": "1.3.1",
      "format": "cjs",
      "published": "2021-04-08T19:45:53.695Z"
    },
    {
      "version": "1.3.0",
      "format": "cjs",
      "published": "2021-04-08T18:55:45.719Z"
    },
    {
      "version": "1.2.0",
      "format": "cjs",
      "published": "2020-12-05T19:00:20.031Z"
    },
    {
      "version": "1.1.0",
      "format": "cjs",
      "published": "2020-09-13T20:13:48.831Z"
    },
    {
      "version": "1.0.1",
      "format": "cjs",
      "published": "2020-05-09T23:22:52.025Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2020-05-09T22:51:10.992Z"
    },
    {
      "version": "0.2.2",
      "format": "cjs",
      "published": "2019-11-09T22:49:34.548Z"
    },
    {
      "version": "0.2.1",
      "format": "cjs",
      "published": "2019-08-02T01:55:53.155Z"
    },
    {
      "version": "0.2.0",
      "format": "cjs",
      "published": "2019-08-02T01:49:28.252Z"
    },
    {
      "version": "0.1.1",
      "format": "cjs",
      "published": "2019-02-14T18:35:24.541Z"
    },
    {
      "version": "0.1.0",
      "format": "cjs",
      "published": "2015-02-11T22:37:38.358Z"
    },
    {
      "version": "0.0.1",
      "format": "cjs",
      "published": "2014-06-03T17:14:23.674Z"
    },
    {
      "version": "0.0.0",
      "format": "cjs",
      "published": "2014-05-20T13:20:43.000Z"
    }
  ]
}