{
  "name": "import-fresh",
  "url": "https://canirequire.com/package/import-fresh/",
  "description": "Import a module while bypassing the cache",
  "latest": "4.0.0",
  "latestPublished": "2026-02-25T08:03:40.935Z",
  "format": "esm-only",
  "summary": "import-fresh@4.0.0 is ESM-only. import-fresh dropped its CommonJS build in 4.0.0 (February 2026). The last version you can require() on every Node.js version, including 18 and older, is 3.3.1, published Feb 2, 2025. On Node.js 20.19+, 22.12+ and every newer release, require(\"import-fresh\") works anyway: Node can load synchronous ES modules through require(). Verified on Node 22, 24, 26. Node.js 18 and older still fail with ERR_REQUIRE_ESM. import-fresh@4.0.0 declares engines \">=22.15\", so Node.js 18, 20 are outside its supported range regardless of module format.",
  "esmOnlySince": "4.0.0",
  "esmOnlySinceDate": "2026-02-25T08:03:40.935Z",
  "lastCommonJsVersion": "3.3.1",
  "lastCommonJsDate": "2025-02-02T09:45:41.743Z",
  "nativeEsmSince": "4.0.0",
  "types": "bundled",
  "nodeEngines": ">=22.15",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/sindresorhus/import-fresh",
  "weeklyDownloads": 132810299,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:39.672Z",
    "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": "4.0.0",
      "format": "esm-only",
      "published": "2026-02-25T08:03:40.935Z"
    },
    {
      "version": "3.3.1",
      "format": "cjs",
      "published": "2025-02-02T09:45:41.743Z"
    },
    {
      "version": "3.3.0",
      "format": "cjs",
      "published": "2020-12-20T13:35:41.167Z"
    },
    {
      "version": "3.2.2",
      "format": "cjs",
      "published": "2020-11-01T19:03:03.260Z"
    },
    {
      "version": "3.2.1",
      "format": "cjs",
      "published": "2019-11-13T17:09:02.349Z"
    },
    {
      "version": "3.2.0",
      "format": "cjs",
      "published": "2019-11-13T10:39:57.695Z"
    },
    {
      "version": "3.1.0",
      "format": "cjs",
      "published": "2019-06-30T10:01:45.483Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2018-12-25T16:23:55.753Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2017-05-21T11:39:44.813Z"
    }
  ]
}