{
  "name": "class-validator",
  "url": "https://canirequire.com/package/class-validator/",
  "description": "Decorator-based property validation for classes.",
  "latest": "0.15.1",
  "latestPublished": "2026-02-26T10:46:55.062Z",
  "format": "cjs",
  "summary": "class-validator@0.15.1 is a CommonJS package. class-validator ships CommonJS only. require(\"class-validator\") works everywhere. import \"class-validator\" also works because Node.js and Bun can import CommonJS from ES modules, but only the default export is guaranteed; named imports depend on Node's static analysis of the module. It also declares a \"module\" field, so bundlers such as webpack, Vite and esbuild pick up an ESM build for tree-shaking.",
  "esmOnlySince": null,
  "esmOnlySinceDate": null,
  "lastCommonJsVersion": "0.15.1",
  "lastCommonJsDate": "2026-02-26T10:46:55.062Z",
  "nativeEsmSince": null,
  "types": "bundled",
  "nodeEngines": null,
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/typestack/class-validator",
  "weeklyDownloads": 10537209,
  "runtime": {
    "verifiedAt": "2026-09-09T15:29:08.289Z",
    "node": {
      "18": {
        "require": true,
        "import": true,
        "requireError": null,
        "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": "0.15.1",
      "format": "cjs",
      "published": "2026-02-26T10:46:55.062Z"
    },
    {
      "version": "0.14.4",
      "format": "cjs",
      "published": "2026-02-25T19:21:39.502Z"
    },
    {
      "version": "0.14.3",
      "format": "cjs",
      "published": "2025-11-24T09:53:50.504Z"
    },
    {
      "version": "0.14.2",
      "format": "cjs",
      "published": "2025-05-02T16:00:41.102Z"
    },
    {
      "version": "0.14.1",
      "format": "cjs",
      "published": "2024-01-12T13:15:59.225Z"
    },
    {
      "version": "0.14.0",
      "format": "cjs",
      "published": "2022-12-09T18:06:07.774Z"
    },
    {
      "version": "0.13.2",
      "format": "cjs",
      "published": "2021-11-20T11:28:22.711Z"
    },
    {
      "version": "0.13.1",
      "format": "cjs",
      "published": "2021-01-14T04:48:23.041Z"
    },
    {
      "version": "0.13.0",
      "format": "cjs",
      "published": "2021-01-11T16:17:48.855Z"
    },
    {
      "version": "0.12.2",
      "format": "cjs",
      "published": "2020-04-23T18:11:07.338Z"
    },
    {
      "version": "0.12.1",
      "format": "cjs",
      "published": "2020-04-18T12:21:13.561Z"
    },
    {
      "version": "0.12.0",
      "format": "cjs",
      "published": "2020-04-18T10:18:44.202Z"
    },
    {
      "version": "0.11.1",
      "format": "cjs",
      "published": "2020-03-18T10:10:40.038Z"
    },
    {
      "version": "0.11.0",
      "format": "cjs",
      "published": "2019-11-01T19:19:34.854Z"
    },
    {
      "version": "0.10.2",
      "format": "cjs",
      "published": "2019-10-14T09:57:41.245Z"
    },
    {
      "version": "0.10.1",
      "format": "cjs",
      "published": "2019-09-25T06:54:25.789Z"
    },
    {
      "version": "0.10.0",
      "format": "cjs",
      "published": "2019-08-10T12:53:14.930Z"
    },
    {
      "version": "0.9.1",
      "format": "cjs",
      "published": "2018-07-19T12:15:08.210Z"
    },
    {
      "version": "0.9.0",
      "format": "cjs",
      "published": "2018-07-19T07:58:10.775Z"
    },
    {
      "version": "0.8.5",
      "format": "cjs",
      "published": "2018-03-23T00:28:30.803Z"
    },
    {
      "version": "0.8.4",
      "format": "cjs",
      "published": "2018-03-19T19:31:23.792Z"
    },
    {
      "version": "0.8.3",
      "format": "cjs",
      "published": "2018-03-18T23:54:43.738Z"
    },
    {
      "version": "0.8.2",
      "format": "cjs",
      "published": "2018-03-18T21:51:34.479Z"
    },
    {
      "version": "0.8.1",
      "format": "cjs",
      "published": "2018-01-24T12:48:57.088Z"
    },
    {
      "version": "0.8.0",
      "format": "cjs",
      "published": "2018-01-24T02:58:38.875Z"
    },
    {
      "version": "0.7.3",
      "format": "cjs",
      "published": "2017-10-17T04:40:59.773Z"
    },
    {
      "version": "0.7.2",
      "format": "cjs",
      "published": "2017-06-27T14:09:58.935Z"
    },
    {
      "version": "0.7.1",
      "format": "cjs",
      "published": "2017-06-19T13:31:04.883Z"
    },
    {
      "version": "0.7.0",
      "format": "cjs",
      "published": "2017-03-23T12:40:32.821Z"
    },
    {
      "version": "0.6.8",
      "format": "cjs",
      "published": "2017-01-07T18:37:42.514Z"
    },
    {
      "version": "0.6.7",
      "format": "cjs",
      "published": "2017-01-07T18:35:53.713Z"
    },
    {
      "version": "0.6.6",
      "format": "cjs",
      "published": "2016-11-15T09:22:14.913Z"
    },
    {
      "version": "0.6.5",
      "format": "cjs",
      "published": "2016-11-15T07:52:41.812Z"
    },
    {
      "version": "0.6.4",
      "format": "cjs",
      "published": "2016-10-18T10:47:09.080Z"
    },
    {
      "version": "0.6.3",
      "format": "cjs",
      "published": "2016-10-17T05:09:09.906Z"
    },
    {
      "version": "0.6.2",
      "format": "cjs",
      "published": "2016-10-17T04:49:05.507Z"
    },
    {
      "version": "0.6.1",
      "format": "cjs",
      "published": "2016-09-23T21:38:23.294Z"
    },
    {
      "version": "0.6.0",
      "format": "cjs",
      "published": "2016-09-19T16:04:55.921Z"
    },
    {
      "version": "0.5.0",
      "format": "cjs",
      "published": "2016-07-29T18:10:12.430Z"
    },
    {
      "version": "0.4.1",
      "format": "cjs",
      "published": "2016-07-14T06:36:06.417Z"
    },
    {
      "version": "0.4.0",
      "format": "cjs",
      "published": "2016-07-06T10:18:09.509Z"
    },
    {
      "version": "0.3.2",
      "format": "cjs",
      "published": "2016-05-12T06:14:31.886Z"
    },
    {
      "version": "0.3.1",
      "format": "cjs",
      "published": "2016-04-21T04:31:21.211Z"
    },
    {
      "version": "0.3.0",
      "format": "cjs",
      "published": "2016-04-18T06:35:14.229Z"
    }
  ]
}