Releases: smikhalevski/roqueform
react-v1.1.0
Added exports
to package.json.
doubter-plugin-v2.0.1
-
Added
exports
to package.json; -
Added support of doubter@3.0.0.
constraint-validation-plugin-v1.0.1
Added exports
to package.json.
scroll-to-error-plugin-v2.0.0
-
Plugin can be used without any additional plugins. Previously
ref-plugin
was required to provide an element to scroll to; -
scrollToError
method acceptsrtl
option that prioritizes left-side or right-side fields first depending on a value.
roqueform-v4.0.0
-
Read-only properties are now getters, to prevent accidental changes at runtime;
-
Plugin
callback now returns void and should mutate the providedField
instance; -
Added "mixin" term which denotes an interface that is intersected with
Field
by aPlugin
callback; -
Renamed boolean getters to
isInvalid
,isValidating
, etc; -
Changed
createField
signature, so it accepts an initial state as the first argument; -
callAll
re-throws errors asynchronously, so methods that notify listeners won't fail if any of them throw an error; -
Published code isn't minified anymore;
-
Field value type can now be represented as a union, and derived fields have correct typings:
const field = createField<{ aaa: number } | { aaa: boolean; bbb: string }>({ aaa: 111 });
field2.at('aaa').value;
// ⮕ number | boolean
field2.at('bbb').value;
// ⮕ string | undefined
reset-plugin-v3.0.0
-
dirty
was renamed toisDirty
; -
isDirty
andinitialValue
are now read-only getters; -
Published code isn't minified anymore.
ref-plugin-v4.0.0
-
React dependency was removed, and
ref
property that heldRefObject
was replaced with a read-onlyelement
getter that holdsElement | null
; -
focus
andblur
are now called only for elements that have atabIndex
attribute.
doubter-plugin-v2.0.0
-
Migrated to doubter@2.1.0;
-
shape
property was removed.