Open renovate[bot] opened 1 year ago
Latest commit: fcea9e13aa72ffddc2b2876f9ba711e19ed6c3bb
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
This PR contains the following updates:
3.2.8
->5.4.4
Release Notes
ealush/vest (vest)
### [`v5.4.4`](https://redirect.github.com/ealush/vest/compare/vest@5.4.3...vest@5.4.4) [Compare Source](https://redirect.github.com/ealush/vest/compare/vest@5.4.3...vest@5.4.4) ### [`v5.4.3`](https://redirect.github.com/ealush/vest/compare/vest@5.4.2...vest@5.4.3) [Compare Source](https://redirect.github.com/ealush/vest/compare/vest@5.4.2...vest@5.4.3) ### [`v5.4.2`](https://redirect.github.com/ealush/vest/compare/vest@5.4.1...vest@5.4.2) [Compare Source](https://redirect.github.com/ealush/vest/compare/vest@5.4.1...vest@5.4.2) ### [`v5.4.1`](https://redirect.github.com/ealush/vest/compare/vest@5.4.0...vest@5.4.1) [Compare Source](https://redirect.github.com/ealush/vest/compare/vest@5.4.0...vest@5.4.1) ### [`v5.4.0`](https://redirect.github.com/ealush/vest/releases/tag/vest%405.4.0) [Compare Source](https://redirect.github.com/ealush/vest/compare/vest@5.3.0...vest@5.4.0) Brings a major performance boost to Suites with many (100+) fields. ### [`v5.3.0`](https://redirect.github.com/ealush/vest/compare/ca2a002456437bff19584724fea093d8219cad26...vest@5.3.0) [Compare Source](https://redirect.github.com/ealush/vest/compare/ca2a002456437bff19584724fea093d8219cad26...vest@5.3.0) ### [`v5.2.12`](https://redirect.github.com/ealush/vest/compare/7f691f4ae995dfa4de2dfaece74017cb8020cde5...ca2a002456437bff19584724fea093d8219cad26) [Compare Source](https://redirect.github.com/ealush/vest/compare/7f691f4ae995dfa4de2dfaece74017cb8020cde5...ca2a002456437bff19584724fea093d8219cad26) ### [`v5.2.11`](https://redirect.github.com/ealush/vest/compare/1ebd50a1219c40c27bed9241c0888c5a306667e8...7f691f4ae995dfa4de2dfaece74017cb8020cde5) [Compare Source](https://redirect.github.com/ealush/vest/compare/1ebd50a1219c40c27bed9241c0888c5a306667e8...7f691f4ae995dfa4de2dfaece74017cb8020cde5) ### [`v5.2.10`](https://redirect.github.com/ealush/vest/compare/0f18c3bc7e1ca4f3d165d099ff39b270a3962a92...1ebd50a1219c40c27bed9241c0888c5a306667e8) [Compare Source](https://redirect.github.com/ealush/vest/compare/0f18c3bc7e1ca4f3d165d099ff39b270a3962a92...1ebd50a1219c40c27bed9241c0888c5a306667e8) ### [`v5.2.9`](https://redirect.github.com/ealush/vest/compare/4407656df1d2b02826611e622b978375c66bbd52...0f18c3bc7e1ca4f3d165d099ff39b270a3962a92) [Compare Source](https://redirect.github.com/ealush/vest/compare/4407656df1d2b02826611e622b978375c66bbd52...0f18c3bc7e1ca4f3d165d099ff39b270a3962a92) ### [`v5.2.8`](https://redirect.github.com/ealush/vest/compare/b6400afd6d3bc4f124a1d5f623f8d82dcd06d387...4407656df1d2b02826611e622b978375c66bbd52) [Compare Source](https://redirect.github.com/ealush/vest/compare/b6400afd6d3bc4f124a1d5f623f8d82dcd06d387...4407656df1d2b02826611e622b978375c66bbd52) ### [`v5.2.7`](https://redirect.github.com/ealush/vest/compare/e29b60b171724afe834212cbe924e269fb6e5c6a...b6400afd6d3bc4f124a1d5f623f8d82dcd06d387) [Compare Source](https://redirect.github.com/ealush/vest/compare/e29b60b171724afe834212cbe924e269fb6e5c6a...b6400afd6d3bc4f124a1d5f623f8d82dcd06d387) ### [`v5.2.6`](https://redirect.github.com/ealush/vest/compare/149c8bb1fba75e39eff75c9ba14ebbf10a21f456...e29b60b171724afe834212cbe924e269fb6e5c6a) [Compare Source](https://redirect.github.com/ealush/vest/compare/149c8bb1fba75e39eff75c9ba14ebbf10a21f456...e29b60b171724afe834212cbe924e269fb6e5c6a) ### [`v5.2.5`](https://redirect.github.com/ealush/vest/compare/39a51fc69c03803773e334193b3b054da81c2ed0...149c8bb1fba75e39eff75c9ba14ebbf10a21f456) [Compare Source](https://redirect.github.com/ealush/vest/compare/39a51fc69c03803773e334193b3b054da81c2ed0...149c8bb1fba75e39eff75c9ba14ebbf10a21f456) ### [`v5.2.4`](https://redirect.github.com/ealush/vest/compare/7f336f0abe35b8ff78143fdc0b7a2416c92991eb...39a51fc69c03803773e334193b3b054da81c2ed0) [Compare Source](https://redirect.github.com/ealush/vest/compare/7f336f0abe35b8ff78143fdc0b7a2416c92991eb...39a51fc69c03803773e334193b3b054da81c2ed0) ### [`v5.2.3`](https://redirect.github.com/ealush/vest/compare/bad6e883a552c380e99c088d3661e32e5820bb43...7f336f0abe35b8ff78143fdc0b7a2416c92991eb) [Compare Source](https://redirect.github.com/ealush/vest/compare/bad6e883a552c380e99c088d3661e32e5820bb43...7f336f0abe35b8ff78143fdc0b7a2416c92991eb) ### [`v5.2.2`](https://redirect.github.com/ealush/vest/compare/c8104172dcb4d414430ccdb0d5421e0fbf7b6670...bad6e883a552c380e99c088d3661e32e5820bb43) [Compare Source](https://redirect.github.com/ealush/vest/compare/c8104172dcb4d414430ccdb0d5421e0fbf7b6670...bad6e883a552c380e99c088d3661e32e5820bb43) ### [`v5.2.1`](https://redirect.github.com/ealush/vest/compare/vest@5.2.0...c8104172dcb4d414430ccdb0d5421e0fbf7b6670) [Compare Source](https://redirect.github.com/ealush/vest/compare/vest@5.2.0...c8104172dcb4d414430ccdb0d5421e0fbf7b6670) ### [`v5.2.0`](https://redirect.github.com/ealush/vest/compare/vest@5.1.5...vest@5.2.0) [Compare Source](https://redirect.github.com/ealush/vest/compare/vest@5.1.5...vest@5.2.0) ### [`v5.1.5`](https://redirect.github.com/ealush/vest/compare/4c61b675f5ec6fc80f3363f3263dc2b94ba81046...vest@5.1.5) [Compare Source](https://redirect.github.com/ealush/vest/compare/4c61b675f5ec6fc80f3363f3263dc2b94ba81046...vest@5.1.5) ### [`v5.1.4`](https://redirect.github.com/ealush/vest/compare/289acc4d02cc5cab29bf10ca9992869cd437560e...4c61b675f5ec6fc80f3363f3263dc2b94ba81046) [Compare Source](https://redirect.github.com/ealush/vest/compare/289acc4d02cc5cab29bf10ca9992869cd437560e...4c61b675f5ec6fc80f3363f3263dc2b94ba81046) ### [`v5.1.3`](https://redirect.github.com/ealush/vest/compare/e2aca0cbfd167cd60cd3d08d4573dca88bf3d874...289acc4d02cc5cab29bf10ca9992869cd437560e) [Compare Source](https://redirect.github.com/ealush/vest/compare/e2aca0cbfd167cd60cd3d08d4573dca88bf3d874...289acc4d02cc5cab29bf10ca9992869cd437560e) ### [`v5.1.2`](https://redirect.github.com/ealush/vest/compare/vest@5.1.1...e2aca0cbfd167cd60cd3d08d4573dca88bf3d874) [Compare Source](https://redirect.github.com/ealush/vest/compare/vest@5.1.1...e2aca0cbfd167cd60cd3d08d4573dca88bf3d874) ### [`v5.1.1`](https://redirect.github.com/ealush/vest/compare/vest@5.1.0...vest@5.1.1) [Compare Source](https://redirect.github.com/ealush/vest/compare/vest@5.1.0...vest@5.1.1) ### [`v5.1.0`](https://redirect.github.com/ealush/vest/releases/tag/vest%405.1.0) [Compare Source](https://redirect.github.com/ealush/vest/compare/15aabb7d170a58bb7d7e43511043a7729edf74dc...vest@5.1.0) - [Added AbortSignal support to async tests](https://vestjs.dev/docs/writing_tests/async_tests#using-abortsignal) - [Added Subscribe method to subscribe to changes in the suite state](https://vestjs.dev/docs/writing_your_suite/vests_suite#subscribing-to-suite-state-changes) ### [`v5.0.5`](https://redirect.github.com/ealush/vest/compare/vest@5.0.4...15aabb7d170a58bb7d7e43511043a7729edf74dc) [Compare Source](https://redirect.github.com/ealush/vest/compare/vest@5.0.4...15aabb7d170a58bb7d7e43511043a7729edf74dc) ### [`v5.0.4`](https://redirect.github.com/ealush/vest/compare/4dcddef51a19e64cf2e080c8bdba3525202f3ed8...vest@5.0.4) [Compare Source](https://redirect.github.com/ealush/vest/compare/4dcddef51a19e64cf2e080c8bdba3525202f3ed8...vest@5.0.4) ### [`v5.0.3`](https://redirect.github.com/ealush/vest/compare/vest@5.0.2...4dcddef51a19e64cf2e080c8bdba3525202f3ed8) [Compare Source](https://redirect.github.com/ealush/vest/compare/vest@5.0.2...4dcddef51a19e64cf2e080c8bdba3525202f3ed8) ### [`v5.0.2`](https://redirect.github.com/ealush/vest/compare/vest@5.0.1...vest@5.0.2) [Compare Source](https://redirect.github.com/ealush/vest/compare/vest@5.0.1...vest@5.0.2) ### [`v5.0.1`](https://redirect.github.com/ealush/vest/releases/tag/vest%405.0.1): Vest@5.0.0 [Compare Source](https://redirect.github.com/ealush/vest/compare/vest@5.0.0...vest@5.0.1) ### Major version of Vest 5.0.0 ### Upgrading from V4 to V5 ##### Migration guide Vest 5 is mostly compatible with Vest 4, but some changes were made. In most cases, if you do not change anything, vest will keep working as it did before. However, to take advantage of the new features, you'll need to make some changes. #### Eager execution mode is now the default In previous versions of Vest, Vest continued validating fields even after one of their tests had failed. V5 changes that to improve the runtime performance, and instead, Vest will halt further validations of a given field if it failed. This was an opt-in feature, and it can now be removed. ```diff - import {create, test, eager} from 'vest'; + import {create, test} from 'vest'; const suite = create(() => { - eager(); test(/*...*/); }); ``` To bring back the previous behavior, use the `mode` function that alters the execution mode: ```diff - import {create, test} from 'vest'; + import {create, test, mode, Modes} from 'vest'; const suite = create(() => { + eager(Modes.ALL); test(/*...*/); }); ``` This also means that if you've used `skipWhen` to avoid running of failing fields, you can now remove it: ```diff - import {create, test, skipWhen} from 'vest'; + import {create, test} from 'vest'; const suite = create(() => { - skipWhen(res => res.hasErrors('username'), () => { test('username', 'username already taken', () => { // ... }); - }); }); ``` #### All result methods are now available directly on the suite object In previous versions, you had to call `suite.get()` to access the different methods, such as `getErrors` and `isValid`. In V5, these methods are available directly on the suite object. ```diff - suite.get().getErrors('username'); + suite.getErrors('username') - suite.get().isValid(); + suite.isValid() ``` #### Added `hasError` and `hasWarning` methods The result object has two new methods: hasError and hasWarning. They return a boolean value indicating whether a given field has an error or a warning. With these new methods, you can display the first error of a field. ```diff - res.getErrors('username')[0] + res.hasError('username') ``` #### Removed skip.group and only.group Vest 5 removes the dedicated group interface for skip and only, and instead allows you to call skip and only directly within the groups. ```diff const suite = create(() => { - skip.group('group1', 'username'); group('group1', () => { + skip('username'); test('username', 'message', () => { // ... }); }); }); ``` ```diff const suite = create(() => { - skip.group('group1'); group('group1', () => { + skip(true); test('field1', 'message', () => { // ... }); }); }); ``` #### Optional fields now take into account the suite params In previous versions, optional fields only took into consideration whether the tests ran or not. In V5 optional fields also search the data object passed to the suite. If it has an object with the optional field in it, and the optional field is blank - the test will be considered valid even if it is not passing. #### Server side validations are built-in In previous versions, as a user of Vest you had to set up your own state-reset mechanism. Vest now has a `staticSuite` export that does that for you. ```diff - import {create} from 'vest'; + import {staticSuite} from 'vest'; - const suite = create(() => {/*...*/}); + const suite = staticSuite(() => /*...*/}); - function ServerValidation() { - suite.reset(); - suite(); - } ``` #### First-Class-Citizen typescript support All of Vest's methods are now typed and make use of generics to enforce correct usage throughout your suite. #### Dropped support for \Configuration
📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.