prop-types
prop-types copied to clipboard
Runtime type checking for React props and similar objects
I imagine that it would makes sense to match what `react` is doing: https://github.com/facebook/react/pull/23351 and https://github.com/facebook/react/pull/28480
Unless I misunderstand, resulting bundle from browserify still contains some `process.env.NODE_ENV` references because the `prop-types` package depends on a another package that does not specify `browserify.transform` in its `package.json`. In...
Nesting a server component inside a client component that has `PropTypes.node` defined for its `children` results in a warning: ``` Warning: Failed prop type: Invalid prop `children` supplied to `WithPropTypes`,...
In tests it would be nice to throw an error if the property isn't of its expected type. It would be nice if this could be scoped to our own...
Suppose I want something like this: ``` PropTypes.exact({ x: PropTypes.boolean, y: PropTypes.string.isRequired, "...rest": PropTypes.objectOf(PropTypes.string) }) ``` The above won't work because I don't want to apply that last validator to...
Bumps [browserify-sign](https://github.com/crypto-browserify/browserify-sign) from 4.2.1 to 4.2.2. Changelog Sourced from browserify-sign's changelog. v4.2.2 - 2023-10-25 Fixed [Tests] log when openssl doesn't support cipher [#37](https://github.com/crypto-browserify/browserify-sign/issues/37) Commits Only apps should have lockfiles 09a8995...
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. Release notes Sourced from word-wrap's releases. 1.2.4 What's Changed Remove default indent by @mohd-akram in jonschlinkert/word-wrap#24 🔒fix: CVE 2023 26115 (2) by @OlafConijn in...
using `"prop-types": "15.8.1"` Previously discussed at https://github.com/facebook/react/issues/8901, #226, and (sort of) #9. (there are probably some I've missed) I am opening this to suggest that the message produced during a...
#### What is the issue? In cases when react creates jsx that references itself and that jsx is passed as a prop, an exception is thrown when that prop fails...
Now it depends on react-is ^16 which may introduce extra library for react 17 projects. https://github.com/facebook/prop-types/blob/master/package.json#L31