# Migration guide
There are some breaking changes between v1 and v2 of v9s. First of all, the chain execution direction was changed to the human friendly left-to-right. Second, the default library export (default export
) became a function which specifies a type of error messages and the optional default error message. Third, check
method returns T | undefined
(here T
- the error message type) instead of T | boolean
.
If you want to preserve of v1 behavior use the simplify
wrapper and reverse the rule order:
To receive only a true/false
result follow the next pattern (the chain is different):
← Introduction Tutorial →