1.4.x → 1.5.x
Release 1.5
includes crucial architecture rewrite to allow new features in the future.
Removed ImmutableJS
ImmutableJS is no longer a peer dependency of React Advanced Form. Having react
alone is now sufficient to use your favorite form library!
Uninstall immutable
package from your project in case you do not use it.
Deprecated withImmutable
withImmutable
Consequentially after removing immutable from library's dependencies, we deprecated the usage of immutable instances in various callback methods provided by the form. Please use plain JavaScript data types from now on.
FormProvider
and Form
components no longer support withImmutable
prop.
Before:
After:
Remove withImmutable
prop and (optionally) re-write the usage of immutable instances in callback arguments to use plain JavaScript primitives.
Deprecated fields
in rule resolvers
fields
in rule resolversReplace fields.foo.bar
by get(['foo', 'bar'])
in the validation rules resolvers.
Changed fieldProps.ref
fieldProps.ref
The reference to a field component is now available via fieldProps.getRef()
.
Before:
After:
Last updated