Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(crwa): remove React prop-types package #9206

Merged
merged 4 commits into from
Sep 19, 2023
Merged

Conversation

jtoar
Copy link
Contributor

@jtoar jtoar commented Sep 19, 2023

TypeScript has long been well established; React prop-types is a vestigial feature. The package hasn't been updated in ~2 years (https://www.npmjs.com/package/prop-types) and the legacy React docs recommend moving off it: https://legacy.reactjs.org/docs/typechecking-with-proptypes.html.

image

There are a few things about this PR that are technically breaking. prop-types isn't a huge package so I don't think it's important this goes into the next minor or anything; it can just be scheduled for the next major.

@jtoar jtoar added the release:breaking This PR is a breaking change label Sep 19, 2023
@jtoar jtoar added this to the v7.0.0 milestone Sep 19, 2023
@jtoar jtoar merged commit 5921359 into main Sep 19, 2023
28 checks passed
@jtoar jtoar deleted the ds-crwa/remove-prop-types branch September 19, 2023 18:37
@jtoar jtoar modified the milestones: SSR, v7.0.0 Dec 13, 2023
Tobbe pushed a commit to Tobbe/redwood that referenced this pull request Dec 22, 2023
TypeScript has long been well established; React prop-types is a
vestigial feature. The package hasn't been updated in ~2 years
(https://www.npmjs.com/package/prop-types) and the legacy React docs
recommend moving off it:
https://legacy.reactjs.org/docs/typechecking-with-proptypes.html.

<img width="913" alt="image"
src="https://github.com/redwoodjs/redwood/assets/32992335/acfe01fc-6248-4fc6-a47d-3340b417a637">

There are a few things about this PR that are technically breaking.
`prop-types` isn't a huge package so I don't think it's important this
goes into the next minor or anything; it can just be scheduled for the
next major.
Tobbe pushed a commit that referenced this pull request Dec 22, 2023
TypeScript has long been well established; React prop-types is a
vestigial feature. The package hasn't been updated in ~2 years
(https://www.npmjs.com/package/prop-types) and the legacy React docs
recommend moving off it:
https://legacy.reactjs.org/docs/typechecking-with-proptypes.html.

<img width="913" alt="image"
src="https://github.com/redwoodjs/redwood/assets/32992335/acfe01fc-6248-4fc6-a47d-3340b417a637">

There are a few things about this PR that are technically breaking.
`prop-types` isn't a huge package so I don't think it's important this
goes into the next minor or anything; it can just be scheduled for the
next major.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:breaking This PR is a breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant