{"_id":"semver-deprecate","_rev":"3-1f7fa06df1429a6f350196b3d1024595","name":"semver-deprecate","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.0":{"name":"semver-deprecate","version":"0.0.0","keywords":[],"author":{"name":"Chris Manson","email":"chris@manson.ie"},"license":"MIT","_id":"semver-deprecate@0.0.0","maintainers":[{"name":"real_ate","email":"chris@manson.ie"}],"contributors":[{"name":"Mehul Kiran Chaudhari","email":"55375534+MehulKChaudhari@users.noreply.github.com"},{"name":"Katie Gengler","email":"katie@kmg.io"},{"name":"Bert De Block","email":"bert.deblock@bagaar.be"}],"dist":{"shasum":"f61403f86399d3108a028c0863925f9aaa093580","tarball":"https://registry.npmjs.org/semver-deprecate/-/semver-deprecate-0.0.0.tgz","fileCount":1,"integrity":"sha512-A2RFllzeelwZOH3xqp4TMv6iMt4U5NOHhWwX5CxkJvP3Ny/BUiiS8/9Za+PgFp3tcYcVNthigC7qHawBiJhq/A==","signatures":[{"sig":"MEUCIQCwDZR7us+oTirt6BDwAn38sdYvCrPMIULM7JCYwCXHOQIgPHataSakffPgeoN23B7lryYJFlqGEcp0vvlZ2fRpDbc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":942},"main":"index.js","type":"module","exports":{".":"./index.js"},"gitHead":"121519906e0442b0a2d73d17a83c9aa0a543fec3","scripts":{"lint":"eslint .","test":"vitest"},"_npmUser":{"name":"real_ate","email":"chris@manson.ie"},"_npmVersion":"10.8.2","description":"Semver aware deprecate function","directories":{},"_nodeVersion":"20.19.0","dependencies":{"semver":"^7.6.3"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.15.1+sha512.34e538c329b5553014ca8e8f4535997f96180a1d0f614339357449935350d924e22f8614682191264ec33d1462ac21561aff97f6bb18065351c162c7e8f6de67","devDependencies":{"eslint":"^9.17.0","vitest":"^2.1.8","globals":"^15.14.0","@eslint/js":"^9.17.0","typescript":"^5.7.2","fixturify-project":"^7.1.3"},"_npmOperationalInternal":{"tmp":"tmp/semver-deprecate_0.0.0_1757281702839_0.014330134745289547","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"semver-deprecate","version":"1.0.0","keywords":[],"author":{"name":"Chris Manson","email":"chris@manson.ie"},"license":"MIT","_id":"semver-deprecate@1.0.0","maintainers":[{"name":"real_ate","email":"chris@manson.ie"}],"contributors":[{"name":"Mehul Kiran Chaudhari","email":"55375534+MehulKChaudhari@users.noreply.github.com"},{"name":"Katie Gengler","email":"katie@kmg.io"},{"name":"Bert De Block","email":"bert.deblock@bagaar.be"}],"homepage":"https://github.com/ember-cli/semver-deprecate#readme","bugs":{"url":"https://github.com/ember-cli/semver-deprecate/issues"},"dist":{"shasum":"02e25a15ec5a83b9fe1db30db4f97967e6e52eac","tarball":"https://registry.npmjs.org/semver-deprecate/-/semver-deprecate-1.0.0.tgz","fileCount":8,"integrity":"sha512-ZhOCbrUbXrkW7+L9Ik7CTgF5Rtd8ozITYcfFV/WFQNYq0kgmwiccfJ3b14184fADA8HozV1ezHJegeUc+YVByA==","signatures":[{"sig":"MEUCIFbOPxSatC45c85CpabMK6Uz1DO80U0C/3jOzHyAtoBCAiEAtdR/4QKa7Y5kT/8yizMtKe5qoSflSZ1EcglFl2NEE+A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/semver-deprecate@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10638},"main":"index.js","type":"module","_from":"file:semver-deprecate-1.0.0.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./index.js"}},"scripts":{"lint":"concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\" --prefixColors auto","test":"vitest --typecheck","build":"tsc","format":"prettier . --cache --write","lint:js":"eslint .","pretest":"pnpm build","lint:fix":"concurrently \"pnpm:lint:*:fix\" --names \"fix:\" --prefixColors auto && pnpm format","lint:format":"prettier . --cache --check","lint:js:fix":"eslint . --fix"},"_npmUser":{"name":"real_ate","email":"chris@manson.ie"},"_resolved":"/tmp/97ad6e7602d18ef18ed047591a6c8fc9/semver-deprecate-1.0.0.tgz","_integrity":"sha512-ZhOCbrUbXrkW7+L9Ik7CTgF5Rtd8ozITYcfFV/WFQNYq0kgmwiccfJ3b14184fADA8HozV1ezHJegeUc+YVByA==","repository":{"url":"git+ssh://git@github.com/ember-cli/semver-deprecate.git","type":"git"},"_npmVersion":"10.8.2","description":"Semver aware deprecate function","directories":{},"_nodeVersion":"18.20.8","dependencies":{"chalk":"^5.4.1","semver":"^7.6.3"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.17.0","vitest":"^3.2.4","globals":"^15.14.0","prettier":"^3.4.2","@eslint/js":"^9.17.0","strip-ansi":"^7.1.0","typescript":"^5.9.2","@types/node":"^22.10.5","concurrently":"^9.1.2","release-plan":"^0.16.0","fixturify-project":"^7.1.3"},"_npmOperationalInternal":{"tmp":"tmp/semver-deprecate_1.0.0_1757282210435_0.8781095180928284","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"semver-deprecate","version":"1.1.0","description":"Semver aware deprecate function","keywords":[],"repository":{"type":"git","url":"git+ssh://git@github.com/ember-cli/semver-deprecate.git"},"license":"MIT","author":{"name":"Chris Manson","email":"chris@manson.ie"},"contributors":[{"name":"Mehul Kiran Chaudhari","email":"55375534+MehulKChaudhari@users.noreply.github.com"},{"name":"Katie Gengler","email":"katie@kmg.io"},{"name":"Bert De Block","email":"bert.deblock@bagaar.be"}],"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./index.js"}},"main":"index.js","dependencies":{"chalk":"^5.4.1","semver":"^7.6.3"},"devDependencies":{"@eslint/js":"^9.17.0","@types/node":"^22.10.5","concurrently":"^9.1.2","eslint":"^9.17.0","fixturify-project":"^7.1.3","globals":"^15.14.0","prettier":"^3.4.2","release-plan":"^0.18.0","strip-ansi":"^7.1.0","typescript":"^5.9.2","vitest":"^3.2.4"},"scripts":{"build":"tsc","format":"prettier . --cache --write","lint":"concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\" --prefixColors auto","lint:fix":"concurrently \"pnpm:lint:*:fix\" --names \"fix:\" --prefixColors auto && pnpm format","lint:format":"prettier . --cache --check","lint:js":"eslint .","lint:js:fix":"eslint . --fix","pretest":"pnpm build","test":"vitest --typecheck"},"_id":"semver-deprecate@1.1.0","bugs":{"url":"https://github.com/ember-cli/semver-deprecate/issues"},"homepage":"https://github.com/ember-cli/semver-deprecate#readme","_integrity":"sha512-5AcYPbRIw9vs80YkyRxmm3Lbe88STkwNIpTKKX0Kxyy/T0yR05BTZ6JhV9B5pjTyc81SjztcFPY93kDPRFwlyA==","_resolved":"/tmp/cb7bbe9bea4e8a27ae07f701b29d8fa3/semver-deprecate-1.1.0.tgz","_from":"file:semver-deprecate-1.1.0.tgz","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-5AcYPbRIw9vs80YkyRxmm3Lbe88STkwNIpTKKX0Kxyy/T0yR05BTZ6JhV9B5pjTyc81SjztcFPY93kDPRFwlyA==","shasum":"cbc9819dc79e5c05a70bc6c7dd0f384c4c66fff2","tarball":"https://registry.npmjs.org/semver-deprecate/-/semver-deprecate-1.1.0.tgz","fileCount":8,"unpackedSize":10733,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/semver-deprecate@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCY/xQEKQfr5ewgIpJhRQFgTN+byfmF4x4FhleeSUx/IAIhAPKAzNQ8njUYhAe4bV/YS8gHD3K/uG4eBPonLYHCEAmn"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f5faf3a7-53ef-412b-a2e4-4c4faa7f48c0"}},"directories":{},"maintainers":[{"name":"real_ate","email":"chris@manson.ie"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/semver-deprecate_1.1.0_1778492336882_0.0701245782130484"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-07T21:48:22.837Z","modified":"2026-05-11T09:38:57.367Z","0.0.0":"2025-09-07T21:48:23.002Z","1.0.0":"2025-09-07T21:56:50.636Z","1.1.0":"2026-05-11T09:38:57.086Z"},"bugs":{"url":"https://github.com/ember-cli/semver-deprecate/issues"},"author":{"name":"Chris Manson","email":"chris@manson.ie"},"license":"MIT","homepage":"https://github.com/ember-cli/semver-deprecate#readme","keywords":[],"repository":{"type":"git","url":"git+ssh://git@github.com/ember-cli/semver-deprecate.git"},"description":"Semver aware deprecate function","contributors":[{"name":"Mehul Kiran Chaudhari","email":"55375534+MehulKChaudhari@users.noreply.github.com"},{"name":"Katie Gengler","email":"katie@kmg.io"},{"name":"Bert De Block","email":"bert.deblock@bagaar.be"}],"maintainers":[{"name":"real_ate","email":"chris@manson.ie"}],"readme":"# semver-deprecate\n\nThis is a tiny micro-library that extracts the \"Ember way\" of doing deprecations into a re-usable library. The philosophy of this library is that if you have marked something to be deprecated \"until\" a certain major version that deprecation call should throw an error once the library's version has exceeded that major version. This allows you to remove code in minor PRs after a major release has been cut because any code-path that used to hit this deprecation is now throwing and thus no longer supported.\n\n## Usage\n\n```js\nimport { makeDeprecate } from 'semver-deprecate';\n\nimport pkg from './package.json' with { type: 'json' };\n\nconst deprecate = makeDeprecate(pkg.name, pkg.version);\n\ndeprecate('The `foo` method is deprecated.', false, {\n  for: 'your-lib',\n  id: 'your-lib.foo-method', // a unique ID for the deprecation\n  since: {\n    available: '4.1.0',\n    enabled: '4.2.0',\n  },\n  until: '5.0.0',\n  url: 'https://example.com',\n});\n```\n","readmeFilename":"README.md"}