prop-types is a JavaScript package for runtime type checking of React props and similar objects. Developers can use it to document expected prop types on components and have React warn in development when passed values do not match those definitions.
Project status
- facebook/prop-types is upstream-marked as archived, suggesting it is no longer actively maintained.
- The most recent recorded updates are from 2022 (v15.8.1 on 2022-01-05), with earlier updates in late 2021 (v15.8.0) and 2019 (v15.7.2), indicating a long, low update cadence.
AI summary generated Today
Recent updates
v15.8.1
1/5/2022v15.8.1 primarily updates test coverage and CI configuration. The only user-facing code change is a robustness fix in the propType validator path to prevent a crash when a custom propType checker returns a result without a `.data` payload.
v15.8.0
12/22/2021No publisher release notes were provided for v15.8.0. The changelog and code changes indicate this release adds a new PropTypes.bigint validator, updates validation and warning behavior (including more actionable error messages), and refreshes dependencies and CI tooling.
Featuresv15.7.2
2/13/2019Release v15.7.2 was published on 2019-02-13, but the publisher provided no release notes. As a result, no developer-impacting changes (features, fixes, breaking changes, security updates, or migration guidance) can be determined from the provided information.
v15.7.1
2/11/2019This release is a very small patch, updating the package version to 15.7.1. The only code change modifies how a warning string is constructed in `factoryWithTypeCheckers.js`, with the stated intent to avoid template literal syntax.
v15.7.0
2/10/2019No release notes were provided in the release body for v15.7.0. The repo changelog and code changes indicate new runtime support for PropTypes.elementType and a new PropTypes.resetWarningCache API, along with improved oneOf warnings and safer handling of objects without hasOwnProperty.
Featuresv15.6.2
6/19/2018Release v15.6.2 primarily removes the `fbjs` dependency by inlining the small helper functions it previously used for warnings and invariants. The diff also updates README usage examples and modernizes test files (var to let/const), without changing the public PropTypes API surface directly.
v15.6.1
2/26/2018Release v15.6.1 makes mostly non-functional updates, including documentation changes, repository metadata updates, and a dependency bump. The code diff also indicates a change to the exact PropTypes validation warning message content.
v15.6.0
9/25/2017This release (v15.6.0) introduces a new PropTypes validator, PropTypes.exact, which provides stricter object-shape checking and warns on extra keys. It also updates runtime warning and invariant messages, and changes the package and repository licensing from BSD to MIT, including removing the PATENTS file. Release notes were not provided by the publisher in the supplied release_notes data.
Featuresv15.5.10
5/12/2017v15.5.10 updates the prop-types package with a targeted fix related to false positive warnings when mixing a production UMD build with a DEV version of React. The published release notes section was empty, so the change is inferred from the changelog entry and the actual code diff.
v15.5.9
5/9/2017Release v15.5.9 was published on 2017-05-09, but no release notes were provided by the publisher. As a result, there is no documented information here about new features, bug fixes, breaking changes, or security updates.