{"_id":"compatx","_rev":"3644975","name":"compatx","description":"🌴 Gradual feature flags.","dist-tags":{"latest":"0.1.8"},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"time":{"modified":"2024-11-19T02:25:54.000Z","created":"2024-06-10T11:28:21.509Z","0.1.8":"2024-06-12T12:45:17.851Z","0.1.7":"2024-06-12T12:32:44.645Z","0.1.6":"2024-06-12T12:07:30.822Z","0.1.5":"2024-06-12T11:27:45.922Z","0.1.4":"2024-06-12T11:03:35.151Z","0.1.3":"2024-06-10T16:15:40.775Z","0.1.2":"2024-06-10T16:06:46.126Z","0.1.1":"2024-06-10T15:38:46.408Z","0.1.0":"2024-06-10T12:00:11.070Z","0.0.0":"2024-06-10T11:28:21.509Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/unjs/compatx.git"},"versions":{"0.1.8":{"name":"compatx","version":"0.1.8","description":"🌴 Gradual feature flags.","repository":{"type":"git","url":"git+https://github.com/unjs/compatx.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","lint":"eslint --cache . && prettier -c src test","lint:fix":"automd && eslint --cache . --fix && prettier -c src test -w","prepack":"pnpm build","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && pnpm test:types && vitest run --coverage","test:types":"tsc --noEmit --skipLibCheck"},"devDependencies":{"@types/node":"^20.14.2","@vitest/coverage-v8":"^1.6.0","automd":"^0.3.7","changelogen":"^0.5.5","eslint":"^9.4.0","eslint-config-unjs":"^0.3.2","jiti":"^1.21.6","prettier":"^3.3.2","typescript":"^5.4.5","unbuild":"^2.0.0","vitest":"^1.6.0"},"packageManager":"pnpm@9.3.0","_id":"compatx@0.1.8","gitHead":"b3b35c4807b64bf00a34912b6123c8e40de2afad","bugs":{"url":"https://github.com/unjs/compatx/issues"},"homepage":"https://github.com/unjs/compatx#readme","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"shasum":"af6f61910ade6ce1073c0fdff23c786bcd75c026","size":4108,"noattachment":false,"key":"/compatx/-/compatx-0.1.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/compatx/download/compatx-0.1.8.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/compatx_0.1.8_1718196317686_0.37179614156830154"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-12T12:45:17.851Z","publish_time":1718196317851,"_source_registry_name":"default","_cnpm_publish_time":1718196317851},"0.1.7":{"name":"compatx","version":"0.1.7","license":"MIT","_id":"compatx@0.1.7","maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"homepage":"https://github.com/unjs/compatx#readme","bugs":{"url":"https://github.com/unjs/compatx/issues"},"dist":{"shasum":"c0b45e6268b81d9b59bc46c3f3a0b11b9dc65c32","size":3926,"noattachment":false,"key":"/compatx/-/compatx-0.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/compatx/download/compatx-0.1.7.tgz"},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"a9bff3e322288de996f2d15c1c1371feb2bbcc7d","scripts":{"dev":"vitest dev","lint":"eslint --cache . && prettier -c src test","test":"pnpm lint && pnpm test:types && vitest run --coverage","build":"unbuild","prepack":"pnpm build","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","lint:fix":"automd && eslint --cache . --fix && prettier -c src test -w","test:types":"tsc --noEmit --skipLibCheck"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"repository":{"url":"git+https://github.com/unjs/compatx.git","type":"git"},"_npmVersion":"10.7.0","description":"🌴 Gradual feature flags.","directories":{},"sideEffects":false,"_nodeVersion":"20.14.0","_hasShrinkwrap":false,"packageManager":"pnpm@9.3.0","devDependencies":{"jiti":"^1.21.6","automd":"^0.3.7","eslint":"^9.4.0","vitest":"^1.6.0","unbuild":"^2.0.0","prettier":"^3.3.2","typescript":"^5.4.5","@types/node":"^20.14.2","changelogen":"^0.5.5","eslint-config-unjs":"^0.3.2","@vitest/coverage-v8":"^1.6.0"},"_npmOperationalInternal":{"tmp":"tmp/compatx_0.1.7_1718195564499_0.7875565047286579","host":"s3://npm-registry-packages"},"_cnpmcore_publish_time":"2024-06-12T12:32:44.645Z","publish_time":1718195564645,"_source_registry_name":"default","_cnpm_publish_time":1718195564645},"0.1.6":{"name":"compatx","version":"0.1.6","license":"MIT","_id":"compatx@0.1.6","maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"homepage":"https://github.com/unjs/compatx#readme","bugs":{"url":"https://github.com/unjs/compatx/issues"},"dist":{"shasum":"562587c3c07a97e2c950436e7f34ec2ca693c6e3","size":3894,"noattachment":false,"key":"/compatx/-/compatx-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/compatx/download/compatx-0.1.6.tgz"},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"5dcac6d8e82edb834d734e7bd1d96bc0419d48a7","scripts":{"dev":"vitest dev","lint":"eslint --cache . && prettier -c src test","test":"pnpm lint && pnpm test:types && vitest run --coverage","build":"unbuild","prepack":"pnpm build","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","lint:fix":"automd && eslint --cache . --fix && prettier -c src test -w","test:types":"tsc --noEmit --skipLibCheck"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"repository":{"url":"git+https://github.com/unjs/compatx.git","type":"git"},"_npmVersion":"10.7.0","description":"🌴 Gradual feature flags.","directories":{},"sideEffects":false,"_nodeVersion":"20.14.0","_hasShrinkwrap":false,"packageManager":"pnpm@9.3.0","devDependencies":{"jiti":"^1.21.6","automd":"^0.3.7","eslint":"^9.4.0","vitest":"^1.6.0","unbuild":"^2.0.0","prettier":"^3.3.2","typescript":"^5.4.5","@types/node":"^20.14.2","changelogen":"^0.5.5","eslint-config-unjs":"^0.3.2","@vitest/coverage-v8":"^1.6.0"},"_npmOperationalInternal":{"tmp":"tmp/compatx_0.1.6_1718194050667_0.4347822024845913","host":"s3://npm-registry-packages"},"_cnpmcore_publish_time":"2024-06-12T12:07:30.822Z","publish_time":1718194050822,"_source_registry_name":"default","_cnpm_publish_time":1718194050822},"0.1.5":{"name":"compatx","version":"0.1.5","license":"MIT","_id":"compatx@0.1.5","maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"homepage":"https://github.com/unjs/compatx#readme","bugs":{"url":"https://github.com/unjs/compatx/issues"},"dist":{"shasum":"d174869ce9fbcd893081d8407113e709e77ca702","size":3880,"noattachment":false,"key":"/compatx/-/compatx-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/compatx/download/compatx-0.1.5.tgz"},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"ed1fbf4d68ee4e9db9579b7d0c76f47fc7ca70f6","scripts":{"dev":"vitest dev","lint":"eslint --cache . && prettier -c src test","test":"pnpm lint && pnpm test:types && vitest run --coverage","build":"unbuild","prepack":"pnpm build","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","lint:fix":"automd && eslint --cache . --fix && prettier -c src test -w","test:types":"tsc --noEmit --skipLibCheck"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"repository":{"url":"git+https://github.com/unjs/compatx.git","type":"git"},"_npmVersion":"10.7.0","description":"🌴 Gradual feature flags.","directories":{},"sideEffects":false,"_nodeVersion":"20.14.0","_hasShrinkwrap":false,"packageManager":"pnpm@9.3.0","devDependencies":{"jiti":"^1.21.6","automd":"^0.3.7","eslint":"^9.4.0","vitest":"^1.6.0","unbuild":"^2.0.0","prettier":"^3.3.2","typescript":"^5.4.5","@types/node":"^20.14.2","changelogen":"^0.5.5","eslint-config-unjs":"^0.3.2","@vitest/coverage-v8":"^1.6.0"},"_npmOperationalInternal":{"tmp":"tmp/compatx_0.1.5_1718191665761_0.12767460774140527","host":"s3://npm-registry-packages"},"_cnpmcore_publish_time":"2024-06-12T11:27:45.922Z","publish_time":1718191665922,"_source_registry_name":"default","_cnpm_publish_time":1718191665922},"0.1.4":{"name":"compatx","version":"0.1.4","license":"MIT","_id":"compatx@0.1.4","maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"homepage":"https://github.com/unjs/compatx#readme","bugs":{"url":"https://github.com/unjs/compatx/issues"},"dist":{"shasum":"4e0fe4a1219dd8fba69c0874131a252f0cde7b2c","size":3861,"noattachment":false,"key":"/compatx/-/compatx-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/compatx/download/compatx-0.1.4.tgz"},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"3bd47ef45e1a57c377f56c6b889b0b98648dcf28","scripts":{"dev":"vitest dev","lint":"eslint --cache . && prettier -c src test","test":"pnpm lint && pnpm test:types && vitest run --coverage","build":"unbuild","prepack":"pnpm build","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","lint:fix":"automd && eslint --cache . --fix && prettier -c src test -w","test:types":"tsc --noEmit --skipLibCheck"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"repository":{"url":"git+https://github.com/unjs/compatx.git","type":"git"},"_npmVersion":"10.7.0","description":"🌴 Gradual feature flags.","directories":{},"sideEffects":false,"_nodeVersion":"20.14.0","_hasShrinkwrap":false,"packageManager":"pnpm@9.3.0","devDependencies":{"jiti":"^1.21.6","automd":"^0.3.7","eslint":"^9.4.0","vitest":"^1.6.0","unbuild":"^2.0.0","prettier":"^3.3.2","typescript":"^5.4.5","@types/node":"^20.14.2","changelogen":"^0.5.5","eslint-config-unjs":"^0.3.2","@vitest/coverage-v8":"^1.6.0"},"_npmOperationalInternal":{"tmp":"tmp/compatx_0.1.4_1718190214994_0.2936350369561229","host":"s3://npm-registry-packages"},"_cnpmcore_publish_time":"2024-06-12T11:03:35.151Z","publish_time":1718190215151,"_source_registry_name":"default","_cnpm_publish_time":1718190215151},"0.1.3":{"name":"compatx","version":"0.1.3","description":"🌴 Gradual feature flags.","repository":{"type":"git","url":"git+https://github.com/unjs/compatx.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","lint":"eslint --cache . && prettier -c src test","lint:fix":"automd && eslint --cache . --fix && prettier -c src test -w","prepack":"pnpm build","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && pnpm test:types && vitest run --coverage","test:types":"tsc --noEmit --skipLibCheck"},"devDependencies":{"@types/node":"^20.14.2","@vitest/coverage-v8":"^1.6.0","automd":"^0.3.7","changelogen":"^0.5.5","eslint":"^9.4.0","eslint-config-unjs":"^0.3.2","jiti":"^1.21.3","prettier":"^3.3.1","typescript":"^5.4.5","unbuild":"^2.0.0","vitest":"^1.6.0"},"packageManager":"pnpm@9.2.0","_id":"compatx@0.1.3","gitHead":"dc3c9dde666205414ebe4ec1da579d83ecf348d1","bugs":{"url":"https://github.com/unjs/compatx/issues"},"homepage":"https://github.com/unjs/compatx#readme","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"shasum":"24a5a113612bcfc98519e1b033ca3828462428e7","size":3849,"noattachment":false,"key":"/compatx/-/compatx-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/compatx/download/compatx-0.1.3.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/compatx_0.1.3_1718036140619_0.5533618321926728"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-10T16:15:40.775Z","publish_time":1718036140775,"_source_registry_name":"default","_cnpm_publish_time":1718036140775},"0.1.2":{"name":"compatx","version":"0.1.2","description":"🌴 Gradual feature flags.","repository":{"type":"git","url":"git+https://github.com/unjs/compatx.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","lint":"eslint --cache . && prettier -c src test","lint:fix":"automd && eslint --cache . --fix && prettier -c src test -w","prepack":"pnpm build","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && pnpm test:types && vitest run --coverage","test:types":"tsc --noEmit --skipLibCheck"},"devDependencies":{"@types/node":"^20.14.2","@vitest/coverage-v8":"^1.6.0","automd":"^0.3.7","changelogen":"^0.5.5","eslint":"^9.4.0","eslint-config-unjs":"^0.3.2","jiti":"^1.21.3","prettier":"^3.3.1","typescript":"^5.4.5","unbuild":"^2.0.0","vitest":"^1.6.0"},"packageManager":"pnpm@9.2.0","_id":"compatx@0.1.2","gitHead":"f9e423b115519d46a935388d5e284bb2fcc14fff","bugs":{"url":"https://github.com/unjs/compatx/issues"},"homepage":"https://github.com/unjs/compatx#readme","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"shasum":"f5c29fe6e75eebdeb7d623c918156724b0fb9abe","size":3818,"noattachment":false,"key":"/compatx/-/compatx-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/compatx/download/compatx-0.1.2.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/compatx_0.1.2_1718035605999_0.6665076874487208"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-10T16:06:46.126Z","publish_time":1718035606126,"_source_registry_name":"default","_cnpm_publish_time":1718035606126},"0.1.1":{"name":"compatx","version":"0.1.1","license":"MIT","_id":"compatx@0.1.1","maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"homepage":"https://github.com/unjs/compatx#readme","bugs":{"url":"https://github.com/unjs/compatx/issues"},"dist":{"shasum":"ea8d345051883cdb0173b10f5e72db8528b59fcc","size":3263,"noattachment":false,"key":"/compatx/-/compatx-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/compatx/download/compatx-0.1.1.tgz"},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"cdb5a326fe0d0b3ef6e49d45c08722f95f99968e","scripts":{"dev":"vitest dev","lint":"eslint --cache . && prettier -c src test","test":"pnpm lint && pnpm test:types && vitest run --coverage","build":"unbuild","prepack":"pnpm build","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","lint:fix":"automd && eslint --cache . --fix && prettier -c src test -w","test:types":"tsc --noEmit --skipLibCheck"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"repository":{"url":"git+https://github.com/unjs/compatx.git","type":"git"},"_npmVersion":"10.7.0","description":"🌴 Gradual feature flags.","directories":{},"sideEffects":false,"_nodeVersion":"20.14.0","_hasShrinkwrap":false,"packageManager":"pnpm@9.2.0","devDependencies":{"jiti":"^1.21.3","automd":"^0.3.7","eslint":"^9.4.0","vitest":"^1.6.0","unbuild":"^2.0.0","prettier":"^3.3.1","typescript":"^5.4.5","@types/node":"^20.14.2","changelogen":"^0.5.5","eslint-config-unjs":"^0.3.2","@vitest/coverage-v8":"^1.6.0"},"_npmOperationalInternal":{"tmp":"tmp/compatx_0.1.1_1718033926204_0.1402947796109033","host":"s3://npm-registry-packages"},"_cnpmcore_publish_time":"2024-06-10T15:38:46.408Z","publish_time":1718033926408,"_source_registry_name":"default","_cnpm_publish_time":1718033926408},"0.1.0":{"name":"compatx","version":"0.1.0","description":"🌴 Gradual feature flags.","repository":{"type":"git","url":"git+https://github.com/unjs/compatx.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"vitest dev","lint":"eslint --cache . && prettier -c src test","lint:fix":"eslint --cache . --fix && prettier -c src test -w","prepack":"pnpm build","play":"jiti playground","release":"pnpm test && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && pnpm test:types && vitest run --coverage","test:types":"tsc --noEmit --skipLibCheck"},"devDependencies":{"@types/node":"^20.14.2","@vitest/coverage-v8":"^1.6.0","automd":"^0.3.7","changelogen":"^0.5.5","eslint":"^9.4.0","eslint-config-unjs":"^0.3.2","jiti":"^1.21.3","prettier":"^3.3.1","typescript":"^5.4.5","unbuild":"^2.0.0","vitest":"^1.6.0"},"packageManager":"pnpm@9.2.0","_id":"compatx@0.1.0","gitHead":"7057dbfdba542316c95e8c6805892c4fc4b8a22b","bugs":{"url":"https://github.com/unjs/compatx/issues"},"homepage":"https://github.com/unjs/compatx#readme","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"shasum":"e4ca6a8ded77a06f6bb2643bdb4948c73d56ce1e","size":2427,"noattachment":false,"key":"/compatx/-/compatx-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/compatx/download/compatx-0.1.0.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/compatx_0.1.0_1718020810909_0.9849158217919476"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-10T12:00:11.070Z","publish_time":1718020811070,"_source_registry_name":"default","_cnpm_publish_time":1718020811070},"0.0.0":{"name":"compatx","version":"0.0.0","_id":"compatx@0.0.0","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"shasum":"2a17c40666057540fc27a8ba72590f05755b62d3","size":135,"noattachment":false,"key":"/compatx/-/compatx-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/compatx/download/compatx-0.0.0.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/compatx_0.0.0_1718018901372_0.9615661749442452"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-10T11:28:21.509Z","publish_time":1718018901509,"_source_registry_name":"default","_cnpm_publish_time":1718018901509}},"readme":"# `compatx`\n\n<!-- automd:badges -->\n\n[![npm version](https://img.shields.io/npm/v/compatx)](https://npmjs.com/package/compatx)\n[![npm downloads](https://img.shields.io/npm/dm/compatx)](https://npmjs.com/package/compatx)\n\n<!-- /automd -->\n\n???? Compatibility toolkit.\n\n> [!NOTE]\n> This is a WIP toolkit. See [RFC](./RFC.md) for initial motivations.\n\n## Install\n\n<!-- automd:pm-install dev -->\n\n```sh\n# ✨ Auto-detect\nnpx nypm install -D compatx\n\n# npm\nnpm install -D compatx\n\n# yarn\nyarn add -D compatx\n\n# pnpm\npnpm install -D compatx\n\n# bun\nbun install -D compatx\n```\n\n<!-- /automd -->\n\n## Utils\n\n<!-- automd:jsdocs src=\"./src/index.ts\" -->\n\n### `formatCompatibilityDate(input)`\n\nFormat compatibility date spec to a string\n\n### `formatDate(date)`\n\nFormat a date to a `YYYY-MM-DD` string\n\n**Example:**\n\n```ts\nformatDateString(new Date(\"2021/01/01\")) // \"2021-01-01\"\n```\n\n### `getCompatibilityChanges(allUpdates, compatibilityDate1, compatibilityDate2)`\n\nGet compatibility changes between two dates.\n\n### `getCompatibilityUpdates(allUpdates, compatibilityDate)`\n\nGet compatibility updates applicable for the user given platform and date range.\n\n### `platforms`\n\n- **Type**: `array`\n- **Default**: `[\"aws\",\"azure\",\"cloudflare\",\"deno\",\"firebase\",\"netlify\",\"vercel\"]`\n\n### `resolveCompatibilityDates(input?, defaults?)`\n\nNormalize the compatibility dates from input config and defaults.\n\n### `resolveCompatibilityDatesFromEnv(overridesInput?)`\n\nResolve compatibility dates with environment variables as defaults.\n\nEnvironment variable name format is `COMPATIBILITY_DATE` for default and `COMPATIBILITY_DATE_<PLATFORM>` for specific platforms.\n\n<!-- /automd -->\n\n## Types\n\n```js\nimport type {\n  // Typed date string in `YYYY-MM-DD` format\n  DateString,\n  // Platform names\n  PlatformName,\n  // Compatibility dates\n  CompatibilityDateSpec,\n  CompatibilityDates,\n  // Compatibility updates\n  CompatibilityUpdate,\n  CompatibilityUpdates\n} from \"./types\";\n```\n\n## Development\n\n- Clone this repository\n- Install latest LTS version of [Node.js](https://nodejs.org/en/)\n- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`\n- Install dependencies using `pnpm install`\n- Run interactive tests using `pnpm dev`\n\n## License\n\nMade with ????\n\nPublished under [MIT License](./LICENSE).\n","_attachments":{},"homepage":"https://github.com/unjs/compatx#readme","bugs":{"url":"https://github.com/unjs/compatx/issues"},"license":"MIT"}