Back to Explore

facebook/prop-types

GitHub
3 watchersOpen source

Last release:

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

  • Source facebook/prop-types appears to be archived upstream, with no evidence of ongoing active development, suggesting it is in maintenance mode or effectively dormant for new work.
  • The apparent package updates cadence is very infrequent, with the newest documented update being v15.8.1 on 2022-01-05, and no further update evidence shown up to today (2026-09-10). The last upstream push provided (2024-05-17) is newer than the latest listed update but does not show corresponding published updates here.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v15.8.1

    v15.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

    No 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.

    Features
  • v15.7.2

    Release 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

    This 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

    No 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.

    Features
  • v15.6.2

    Release 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

    Release 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

    This 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.

    Features
  • v15.5.10

    v15.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

    Release 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.