{
  "name": "magic-string",
  "url": "https://canirequire.com/package/magic-string/",
  "description": "Modify strings, generate sourcemaps",
  "latest": "1.2.3",
  "latestPublished": "2026-08-26T10:41:06.931Z",
  "format": "esm-only",
  "summary": "magic-string@1.2.3 is ESM-only. magic-string dropped its CommonJS build in 1.0.0 (July 2026). The last version you can require() on every Node.js version, including 18 and older, is 0.30.21, published Oct 24, 2025. On Node.js 20.19+, 22.12+ and every newer release, require(\"magic-string\") 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": "1.0.0",
  "esmOnlySinceDate": "2026-07-16T10:15:20.004Z",
  "lastCommonJsVersion": "0.30.21",
  "lastCommonJsDate": "2025-10-24T00:59:47.122Z",
  "nativeEsmSince": "0.26.0",
  "types": "bundled",
  "nodeEngines": null,
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/Rich-Harris/magic-string",
  "weeklyDownloads": 174455207,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:34.934Z",
    "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": "1.2.3",
      "format": "esm-only",
      "published": "2026-08-26T10:41:06.931Z"
    },
    {
      "version": "1.2.2",
      "format": "esm-only",
      "published": "2026-08-20T02:10:26.468Z"
    },
    {
      "version": "1.2.1",
      "format": "esm-only",
      "published": "2026-08-19T06:18:55.657Z"
    },
    {
      "version": "1.2.0",
      "format": "esm-only",
      "published": "2026-08-13T06:15:34.738Z"
    },
    {
      "version": "1.1.1",
      "format": "esm-only",
      "published": "2026-08-12T05:15:42.945Z"
    },
    {
      "version": "1.1.0",
      "format": "esm-only",
      "published": "2026-07-23T09:08:26.164Z"
    },
    {
      "version": "1.0.0",
      "format": "esm-only",
      "published": "2026-07-16T10:15:20.004Z"
    },
    {
      "version": "0.30.21",
      "format": "dual",
      "published": "2025-10-24T00:59:47.122Z"
    },
    {
      "version": "0.30.19",
      "format": "dual",
      "published": "2025-09-08T10:40:18.878Z"
    },
    {
      "version": "0.30.18",
      "format": "dual",
      "published": "2025-08-22T00:18:53.756Z"
    },
    {
      "version": "0.30.17",
      "format": "dual",
      "published": "2024-12-16T06:14:54.054Z"
    },
    {
      "version": "0.30.16",
      "format": "dual",
      "published": "2024-12-16T05:58:15.330Z"
    },
    {
      "version": "0.30.15",
      "format": "dual",
      "published": "2024-12-10T05:31:14.453Z"
    },
    {
      "version": "0.30.14",
      "format": "dual",
      "published": "2024-11-26T06:18:59.877Z"
    },
    {
      "version": "0.30.13",
      "format": "dual",
      "published": "2024-11-18T18:40:25.083Z"
    },
    {
      "version": "0.30.12",
      "format": "dual",
      "published": "2024-10-11T07:34:00.927Z"
    },
    {
      "version": "0.30.11",
      "format": "dual",
      "published": "2024-07-29T12:33:56.240Z"
    },
    {
      "version": "0.30.10",
      "format": "dual",
      "published": "2024-04-17T12:54:58.857Z"
    },
    {
      "version": "0.30.9",
      "format": "dual",
      "published": "2024-04-04T08:27:55.687Z"
    },
    {
      "version": "0.30.8",
      "format": "dual",
      "published": "2024-03-03T21:59:01.229Z"
    },
    {
      "version": "0.30.7",
      "format": "dual",
      "published": "2024-02-05T17:08:28.888Z"
    },
    {
      "version": "0.30.6",
      "format": "dual",
      "published": "2024-01-31T17:21:09.321Z"
    },
    {
      "version": "0.30.5",
      "format": "dual",
      "published": "2023-10-12T13:45:39.178Z"
    },
    {
      "version": "0.30.4",
      "format": "dual",
      "published": "2023-09-29T06:32:03.565Z"
    },
    {
      "version": "0.30.3",
      "format": "dual",
      "published": "2023-08-21T07:53:57.836Z"
    },
    {
      "version": "0.30.2",
      "format": "dual",
      "published": "2023-07-28T01:54:03.613Z"
    },
    {
      "version": "0.30.1",
      "format": "dual",
      "published": "2023-07-04T05:31:35.016Z"
    },
    {
      "version": "0.30.0",
      "format": "dual",
      "published": "2023-02-22T10:38:12.955Z"
    },
    {
      "version": "0.29.0",
      "format": "dual",
      "published": "2023-02-11T16:04:30.947Z"
    },
    {
      "version": "0.28.0",
      "format": "dual",
      "published": "2023-02-11T16:03:30.874Z"
    },
    {
      "version": "0.27.0",
      "format": "dual",
      "published": "2022-12-03T22:01:55.526Z"
    },
    {
      "version": "0.26.7",
      "format": "dual",
      "published": "2022-10-09T22:00:34.930Z"
    },
    {
      "version": "0.26.6",
      "format": "dual",
      "published": "2022-10-05T22:06:37.914Z"
    },
    {
      "version": "0.26.5",
      "format": "dual",
      "published": "2022-09-30T09:56:16.904Z"
    },
    {
      "version": "0.26.4",
      "format": "dual",
      "published": "2022-09-22T08:22:48.374Z"
    },
    {
      "version": "0.26.3",
      "format": "dual",
      "published": "2022-08-30T07:50:19.503Z"
    },
    {
      "version": "0.26.2",
      "format": "dual",
      "published": "2022-05-11T08:55:22.113Z"
    },
    {
      "version": "0.26.1",
      "format": "dual",
      "published": "2022-03-03T09:23:46.554Z"
    },
    {
      "version": "0.26.0",
      "format": "dual",
      "published": "2022-03-03T08:02:36.087Z"
    },
    {
      "version": "0.25.9",
      "format": "cjs",
      "published": "2022-03-03T07:51:52.312Z"
    },
    {
      "version": "0.25.8",
      "format": "cjs",
      "published": "2022-03-02T18:24:38.654Z"
    },
    {
      "version": "0.25.7",
      "format": "cjs",
      "published": "2020-03-06T13:09:43.545Z"
    },
    {
      "version": "0.25.6",
      "format": "cjs",
      "published": "2020-01-09T13:46:17.172Z"
    },
    {
      "version": "0.25.5",
      "format": "cjs",
      "published": "2020-01-02T22:04:13.576Z"
    },
    {
      "version": "0.25.4",
      "format": "cjs",
      "published": "2019-09-30T15:12:31.607Z"
    },
    {
      "version": "0.25.3",
      "format": "cjs",
      "published": "2019-07-01T11:29:09.533Z"
    },
    {
      "version": "0.25.2",
      "format": "cjs",
      "published": "2019-02-03T17:40:02.125Z"
    },
    {
      "version": "0.25.1",
      "format": "cjs",
      "published": "2018-09-18T20:45:23.176Z"
    },
    {
      "version": "0.25.0",
      "format": "cjs",
      "published": "2018-05-31T09:29:30.358Z"
    },
    {
      "version": "0.24.1",
      "format": "cjs",
      "published": "2018-05-15T12:36:56.988Z"
    },
    {
      "version": "0.24.0",
      "format": "cjs",
      "published": "2018-03-19T15:30:52.638Z"
    },
    {
      "version": "0.23.2",
      "format": "cjs",
      "published": "2018-03-15T12:46:51.326Z"
    },
    {
      "version": "0.23.1",
      "format": "cjs",
      "published": "2018-03-14T19:53:42.353Z"
    },
    {
      "version": "0.23.0",
      "format": "cjs",
      "published": "2018-03-14T19:51:15.792Z"
    },
    {
      "version": "0.22.5",
      "format": "cjs",
      "published": "2018-03-14T14:52:05.198Z"
    },
    {
      "version": "0.22.4",
      "format": "cjs",
      "published": "2017-07-30T18:26:50.695Z"
    },
    {
      "version": "0.22.3",
      "format": "cjs",
      "published": "2017-07-21T23:34:48.473Z"
    },
    {
      "version": "0.22.2",
      "format": "cjs",
      "published": "2017-07-08T03:51:35.769Z"
    },
    {
      "version": "0.22.1",
      "format": "cjs",
      "published": "2017-07-07T17:51:14.860Z"
    },
    {
      "version": "0.22.0",
      "format": "cjs",
      "published": "2017-07-07T17:46:56.092Z"
    }
  ]
}