{"id":28972592,"url":"https://github.com/ember-cli/semver-deprecate","last_synced_at":"2026-02-02T13:13:47.383Z","repository":{"id":270601253,"uuid":"910578071","full_name":"ember-cli/semver-deprecate","owner":"ember-cli","description":"Semver aware deprecate function","archived":false,"fork":false,"pushed_at":"2025-09-07T21:56:52.000Z","size":270,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-12-23T07:44:59.886Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ember-cli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"emberjs","open_collective":"emberjs"}},"created_at":"2024-12-31T17:34:40.000Z","updated_at":"2025-09-07T21:56:28.000Z","dependencies_parsed_at":"2025-01-01T18:25:21.249Z","dependency_job_id":"c73e3b85-3715-462b-a92e-64c061bcc3e1","html_url":"https://github.com/ember-cli/semver-deprecate","commit_stats":null,"previous_names":["ember-cli/semver-deprecate"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ember-cli/semver-deprecate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-cli%2Fsemver-deprecate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-cli%2Fsemver-deprecate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-cli%2Fsemver-deprecate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-cli%2Fsemver-deprecate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ember-cli","download_url":"https://codeload.github.com/ember-cli/semver-deprecate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-cli%2Fsemver-deprecate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29012691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T12:48:30.580Z","status":"ssl_error","status_checked_at":"2026-02-02T12:46:38.384Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-24T11:07:08.330Z","updated_at":"2026-02-02T13:13:47.378Z","avatar_url":"https://github.com/ember-cli.png","language":"JavaScript","funding_links":["https://github.com/sponsors/emberjs","https://opencollective.com/emberjs"],"categories":[],"sub_categories":[],"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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fember-cli%2Fsemver-deprecate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fember-cli%2Fsemver-deprecate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fember-cli%2Fsemver-deprecate/lists"}