- [Fix]
nonNegativeInteger
: mock should match reality and not be a noopThunk, only a noop
- [New] add optional
mapper
function touniqueArrayOf
(#29, #28) - [Deps] update
function.prototype.name
- [Dev Deps] update
eslint
,eslint-config-airbnb
- [Fix] Make
getComponentName
more robust in IE (#27) - [Deps] update
prop-types-exact
- [Dev Deps] update
babel-preset-airbnb
,chai
,eslint-plugin-airbnb
,eslint-plugin-import
,eslint-plugin-jsx-a11y
- [New] Added compatibility for React 16 alpha (#25)
- [Fix]
restrictedProp
: ensure it passes with a custom message when nullary
- [New]
restrictedProp
: add ability to overwrite error with custom function (#22) - [Refactor] Allow object rest/spread and
Object.assign
by transforming toobject.assign
- [Deps] update
prop-types
- [Dev Deps] update
babel-plugin-istanbul
,chai
,eslint-config-airbnb
,eslint-plugin-import
,eslint-plugin-jsx-a11y
,eslint-plugin-react
,mocha
- [Tests] on
node
v8
;npm
v5
+ breaks onnode
< v4 - [Tests] greenkeeper-ignore
nyc
- [Fix]
childrenHavePropXorChildren
Ensure validator skips over falsy children - [Deps] update
prop-types
- [Dev Deps] update
babel-plugin-istanbul
,mocha
,nyc
,react
- [Refactor] Use
prop-types
package instead ofReact.PropTypes
- [Deps] update
array.prototype.find
,prop-types
- [Dev Deps] update
babel-cli
,babel-register
,eslint
,nyc
,react
- [Tests] improve test matrix
- [Fix] remove requirement to polyfill
- [Fix]
componentWithName
: throw if given a non-string/non-regex name - [Fix]
or
: ensure it works withexplicitNull
(#12) - [Fix]
between
: avoid React PropType warning by usingvaluesOf
instead ofPropTypes.objectOf
- [Refactor]
or
: add some extra tests; remove unnecessaryoneOfType
wrapper - [Tests] fail tests on console warnings or errors
- [New] Adds regex capabilities to componentWithName (#11)
- [New]
childrenOfType
: add support for*
which supports anything. - [Dev Deps] update
babel-cli
,babel-register
,eslint
,rimraf
,babel-plugin-istanbul
,eslint-plugin-react
- [Tests] improve coverage to 100%
- [Fix]
childrenOfType
: partially revert fc0e37f84e1537a875c30d0db69b5121d790eb40
- [New] add
childrenSequenceOf
- [New] add
sequenceOf
- [New]
between
: allow it to take props-taking number thunks as option values as well. - [New] add
between
- [New] add
shape
- [New] add
nonNegativeNumber
- [New] add
elementType
- [New] add
childrenOf
- [New] add
object
- [New] add
keysOf
(#8) - [New] add
valuesOf
- [New] add
isPrimitive
andisPlainObject
helpers - [New] add
wrapValidator
helper - [New] add
renderableChildren
helper - [New] add
getComponentName
helper - [New]
nChildren
,restrictedProp
,childrenHavePropXorChildren
: addisRequired
for consistency - [New]
and
:isRequired
validator typeName should indicate such. - [Tests] run coverage as part of tests
- [Tests] fix test script
- [Tests] improve coverage to 100%
- [Tests] add
npm run coverage
- [babel] build with source maps
- [New] add
integer
- [Dev Deps] update
eslint
,rimraf
- [New] add
numericString
- [New] add
explicitNull
- [Dev Deps] update
airbnb-js-shims
,babel-cli
,babel-register
,eslint-plugin-react
- [Fix]
childrenOfType
: improve the error message - [Dev Deps] update
eslint
,eslint-config-airbnb
,eslint-plugin-jsx-a11y
- [New] add
mutuallyExclusiveTrueProps
- [Dev Deps] update
babel-cli
,babel-preset-airbnb
,babel-register
,eslint
- [Fix] ensure production mocks have
.isRequired
- [breaking] when
NODE_ENV
isproduction
, export mocks instead of real validators - [new] add mocks
- [New] add
uniqueArray
/uniqueArrayOf
- [New] add
withShape
- [Breaking] ensure every export is a function that returns a validator, for consistency (
restrictedProp
) - [Deps] move
safe-publish-latest
to devDeps - [Dev Deps] update
eslint
,eslint-config-airbnb
,eslint-plugin-import
,eslint-plugin-react
,eslint-plugin-jsx-a11y
,mocha
,react
; add missingbabel-register
- [Tests] on
node
v7
- [enhancement]
forbidExtraProps
: add the componentName into the error message
- [Fix]
forbidPropTypes
: allow propTypes to be processed multiple times - [Fix]
forbidPropTypes
: fix unknown props error message
- [New] add
forbidExtraProps
- [Dev Deps] update
babel-cli
- [New] add
and
combinator - [New] add
isRequired
tononNegativeInteger
- [Dev Deps] update
eslint-plugin-react
,mocha
- [Fix]
mutuallyExclusiveProps
: include the “current” prop in the exclusives list
- [Fix] [New] add
isRequired
tomutuallyExclusiveProps
; ensuremutuallyExclusiveProps
is not required by default - [Fix] [New] add
isRequired
tocomponentWithName
; ensurecomponentWithName
is not required by default - [Deps] update
safe-publish-latest
- Initial release.