{"id":15297108,"url":"https://github.com/thefrontside/deprecated-prop-type","last_synced_at":"2025-04-13T23:01:29.004Z","repository":{"id":32742873,"uuid":"141478011","full_name":"thefrontside/deprecated-prop-type","owner":"thefrontside","description":"Communicate to the consumers of your component that the marked prop is deprecated.","archived":false,"fork":false,"pushed_at":"2023-01-03T15:16:22.000Z","size":875,"stargazers_count":4,"open_issues_count":11,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T13:12:44.214Z","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/thefrontside.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-18T19:01:19.000Z","updated_at":"2020-12-01T22:36:46.000Z","dependencies_parsed_at":"2023-01-14T22:05:54.588Z","dependency_job_id":null,"html_url":"https://github.com/thefrontside/deprecated-prop-type","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefrontside%2Fdeprecated-prop-type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefrontside%2Fdeprecated-prop-type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefrontside%2Fdeprecated-prop-type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thefrontside%2Fdeprecated-prop-type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thefrontside","download_url":"https://codeload.github.com/thefrontside/deprecated-prop-type/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248339286,"owners_count":21087215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-09-30T19:15:10.943Z","updated_at":"2025-04-13T23:01:28.961Z","avatar_url":"https://github.com/thefrontside.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deprecated-prop-type\n\n`deprecated` prop type communicates to the developer that the marked prop should not be used. \n\n## Installation\n\n```bash\nyarn add deprecated-prop-type\n\n# \n\nnpm i deprecated-prop-type\n```\n\n## Usage\n\n`deprecated` prop type takes two arguments: original prop type and reason for the deprecation. It will not show the warning if the original prop type failes. \n\n```jsx\nimport React from 'react';\nimport propTypes from 'prop-types';\nimport deprecated from 'deprecated-prop-type';\n\nexport default class MyComponent extends React.Component {\n  static propTypes = {\n    excludeDates: deprecated(propTypes.string, `Use excluded instead.`)\n  }\n\n  ...\n}\n```\n\n## Tests\n\n```bash\nnpm install;\nnpm test\n```\n\n## Credits\n\nThe code was taken from https://reactjs.org/warnings/dont-call-proptypes.html#fixing-the-false-positive-in-third-party-proptypes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthefrontside%2Fdeprecated-prop-type","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthefrontside%2Fdeprecated-prop-type","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthefrontside%2Fdeprecated-prop-type/lists"}