import { useForm } from 'react-hook-form';
import { fluentValidationResolver } from '@hookform/resolvers/fluentvalidation-ts';
import { Validator } from 'fluentvalidation-ts';
class FormDataValidator extends Validator<FormData> {
constructor() {
super();
this.ruleFor('username')
.notEmpty()
.withMessage('username is a required field');
this.ruleFor('password')
.notEmpty()
.withMessage('password is a required field');
This bugfix release fixes issues with "TS type portability" errors, improves build artifact tree shaking behavior, and exports some additional TS types.
Changelog
TS Type Portability
We've had a slew of issues reported around "TS type portability" errors, such as:
The error messages are typically along the lines of:
Type error: The inferred type of 'configureStore' cannot be named without a reference to '@reduxjs/toolkit/node_modules/redux'. This is likely not portable. A type annotation is necessary.
@aryaemami59 did some deep investigation and concluded these were due to a mixture of using interface instead of type in most places, not pre-bundling our TS typedefs, and not exporting some of the unique symbols we use internally.
Arya put together a highly detailed writeup and set of fixes in [ #4467: Fix: TypeScript Type Portability Issues](#4467), and that appears to resolve all of those issues we've seen. Thank you!
Other Changes
Arya also did significant work to improve RTK's treeshaking, tweaking internal definitions to let bundlers better separate out unused code.
We've exported additional types like UpdateDefinitions and RetryOptions, per request.
listenerMiddleware.withTypes() methods now allow passing in an ExtraArgument generic.
⚛️ close #11932 enable react 19 peer dependency (#11935)
👮♀️ close #11954 getFieldState remove unnessaried inValidating and touched subscription (#11995)
🐞 fix #11985 logic createFormControl check field before usage (#11986)
⌨️ fix: enforce type safety for deps property in RegisterOptions (#11969)
🐞 fix #11922 keep dirty on reset with dirty fields (#11958)
🚔 close #11937 add validation in the cleanup process in useController (#11938)
Revert "⌨️ close: correct type of error field in getFieldState return object (#11831)"
📖 fix: change info.values type in WatchObserver (#11917)
Implement shared atomic counters and replace static integers in RCTImageLoader and RCTNetworkTask that were accessed concurrently, which in some cases lead to data races. (ffc16fc18b by @hakonk)
Implement shared atomic counters and replace static integers in RCTImageLoader and RCTNetworkTask that were accessed concurrently, which in some cases lead to data races. (ffc16fc18b by @hakonk)
Bumps the mobile group with 36 updates in the /frontend/mobile directory:
0.5.2
0.5.16
6.5.2
6.6.0
6.5.2
6.6.0
6.5.2
6.6.0
6.5.2
6.6.0
0.0.189
0.0.193
4.6.3
4.6.4
3.6.0
3.9.0
1.23.1
1.24.0
6.1.17
6.1.18
2.2.5
2.2.7
5.44.0
5.51.18
51.0.11
51.0.24
4.0.15
4.0.21
3.5.15
3.5.20
13.0.1
13.0.2
3.0.6
3.0.7
7.51.5
7.52.1
0.74.2
0.74.4
1.22.22
1.22.261
2.12.0
2.12.1
2.16.2
2.18.1
1.14.0
1.17.3
3.11.0
3.14.0
4.10.1
4.10.8
3.31.1
3.33.0
15.2.0
15.4.0
1.4.0
1.5.0
11.26.1
13.10.5
7.24.7
7.25.2
18.2.79
18.3.3
8.57.0
9.8.0
5.1.3
5.2.1
51.0.2
51.0.3
3.3.1
3.3.3
5.3.3
5.5.4
Updates
@10play/tentap-editor
from 0.5.2 to 0.5.16Release notes
Sourced from
@10play/tentap-editor
's releases.... (truncated)
Commits
6bab9b0
chore: release 0.5.16 [skip ci]182490c
Merge pull request #176 from 10play/rm-tp-view-externalcf37cea
fix: advanced examplecff5f83
Merge branch 'main' into rm-tp-view-externale8ea6ae
fix: expose internal tiptap view/state78fdb33
chore: release 0.5.15 [skip ci]558ccf3
Merge pull request #174 from 10play/rm-tp-view-external1ed95e8
fix: vite config for web editor utils88a4ca9
chore: release 0.5.14 [skip ci]90ab3ea
Merge pull request #172 from arpitv96171/add-active-styling-to-link-iconUpdates
@fortawesome/fontawesome-svg-core
from 6.5.2 to 6.6.0Release notes
Sourced from
@fortawesome/fontawesome-svg-core
's releases.Commits
37eff7f
Release 6.6.0 (#20295)138f8c3
Update 000_icon_request.yml05235ab
Updating Icon Request Template (#20275)Updates
@fortawesome/free-brands-svg-icons
from 6.5.2 to 6.6.0Release notes
Sourced from
@fortawesome/free-brands-svg-icons
's releases.Commits
37eff7f
Release 6.6.0 (#20295)138f8c3
Update 000_icon_request.yml05235ab
Updating Icon Request Template (#20275)Updates
@fortawesome/free-regular-svg-icons
from 6.5.2 to 6.6.0Release notes
Sourced from
@fortawesome/free-regular-svg-icons
's releases.Commits
37eff7f
Release 6.6.0 (#20295)138f8c3
Update 000_icon_request.yml05235ab
Updating Icon Request Template (#20275)Updates
@fortawesome/free-solid-svg-icons
from 6.5.2 to 6.6.0Release notes
Sourced from
@fortawesome/free-solid-svg-icons
's releases.Commits
37eff7f
Release 6.6.0 (#20295)138f8c3
Update 000_icon_request.yml05235ab
Updating Icon Request Template (#20275)Updates
@generatesac/lib
from 0.0.189 to 0.0.193Commits
Updates
@gorhom/bottom-sheet
from 4.6.3 to 4.6.4Release notes
Sourced from
@gorhom/bottom-sheet
's releases.Changelog
Sourced from
@gorhom/bottom-sheet
's changelog.Commits
bb3e7f6
chore: release v4.6.4b906f5e
fix: replace getRefNativeTag with findNodeHandle (#1823)(by@AndreiCalazans
)6b99810
fix: add missing rest props to backdrop component (#1895)(by@hraschan
)efd4e92
fix: assigning to read-only property 'reduceMotion' (#1848)(by@pafry7
)Updates
@hookform/resolvers
from 3.6.0 to 3.9.0Release notes
Sourced from
@hookform/resolvers
's releases.... (truncated)
Commits
5fc1e63
feat(fluentvalidation-ts): add fluentvalidation-ts resolver (#702)039385e
ci: node (#701)1c277bb
ci: fix publish step (#700)18e423f
feat: add typeschema resolver (#699)4b9acb7
Revert "fix: move back to in-build set and remove lodash.set (#685)"e8e0f80
feat(typeboxResolver): make TypeBox resolver work with compiled schema (#674)c0d528b
feat: add VineJS resolver (#677)a3e50c6
fix(zodResolver): cannot read properties of undefined (reading 'length')f0174e0
chore: update valibot dependency to version >=0.33.0 (#695)f7a4fd4
Update README.mdUpdates
@react-native-async-storage/async-storage
from 1.23.1 to 1.24.0Release notes
Sourced from
@react-native-async-storage/async-storage
's releases.Commits
Updates
@react-navigation/native
from 6.1.17 to 6.1.18Release notes
Sourced from
@react-navigation/native
's releases.Changelog
Sourced from
@react-navigation/native
's changelog.Commits
a2269aa
chore: publishUpdates
@reduxjs/toolkit
from 2.2.5 to 2.2.7Release notes
Sourced from
@reduxjs/toolkit
's releases.... (truncated)
Commits
75b4f69
Release 2.2.7dd3ef70
Merge pull request #4529 from reduxjs/feature/2.3.0-types-exports70f627d
Export RetryOptions6a3de08
Merge pull request #4435 from aryaemami59/improve-treeshakeability8be6e5f
Merge branch 'master' of https://github.com/reduxjs/redux-toolkit into improv...9e7e6f6
Merge branch 'master' of https://github.com/reduxjs/redux-toolkit into improv...ee51d76
Bumptsup
to version 8.2.3ff6db42
Bumptsup
to version 8.2.220f579b
Bumptsup
to version 8.2.0a1b4e80
Bumptsup
andesbuild
Updates
@tanstack/react-query
from 5.44.0 to 5.51.18Release notes
Sourced from
@tanstack/react-query
's releases.... (truncated)
Commits
23c3da2
release: v5.51.18fdb8ce1
fix(query-options): allow returning undefined in initialData function (#7351)5ab13b9
release: v5.51.17de931d0
release: v5.51.1674f10b7
chore(deps): lock file maintenance (#7819)ec8e800
release: v5.51.15fec324f
release: v5.51.1434a5672
refactor(react-query): add error message for skipToken in useSuspenseQueries...bd3296b
chore: Update@tanstack/config
to v0.11.0 (#7795)c3dffbd
release: v5.51.11Updates
expo
from 51.0.11 to 51.0.24Changelog
Sourced from expo's changelog.
... (truncated)
Commits
Updates
expo-dev-client
from 4.0.15 to 4.0.21Changelog
Sourced from expo-dev-client's changelog.
Commits
Updates
expo-font
from 12.0.7 to 12.0.9Changelog
Sourced from expo-font's changelog.
Commits
Updates
expo-router
from 3.5.15 to 3.5.20Changelog
Sourced from expo-router's changelog.
... (truncated)
Commits
Updates
expo-secure-store
from 13.0.1 to 13.0.2Changelog
Sourced from expo-secure-store's changelog.
Commits
Updates
expo-system-ui
from 3.0.6 to 3.0.7Changelog
Sourced from expo-system-ui's changelog.
Commits
Updates
react-hook-form
from 7.51.5 to 7.52.1Release notes
Sourced from react-hook-form's releases.
Commits
ee7b588
7.52.103f9d72
💉 related #12024 include unit test coverage (#12045)fe8de6d
🐞 fix #12024 dirty not update issue with values prop (#12041)6b2093d
🐞 fix: field array validate rules shift errors (#12033)a4370c3
7.52.0dfb8dda
🌅 update README.md (#12019)1d0503b
👮♀️ close #11954 getFieldState remove unnessaried inValidating and touched s...f13f060
🐞 fix #11985 logic createFormControl check field before usage (#11986)e90d264
⌨️ fix: enforce type safety fordeps
property inRegisterOptions
(#11969)e9f6ddb
🐞 fix #11922 keep dirty on reset with dirty fields (#11958)Updates
react-native
from 0.74.2 to 0.74.4Release notes
Sourced from react-native's releases.
... (truncated)
Changelog
Sourced from react-native's changelog.
... (truncated)
Commits
097ce07
Release 0.74.4b9f7005
Not all the targets have a definedsymbol_type
(#45591)3597552
[LOCAL][RN][CI] Fix Build Slice Job for VisionOS713b6b9
[LOCAL][RN][CI] Fix Hermes for iOS in CIc0dd236
Factor out the CXX language standard in a separate const (#45374)8271278
feat: build visionos hermes binary on the CI (#44691)c374415
Adding space to $(inherited) string to avoid mergi... _Description has been truncated_