Releases: smikhalevski/roqueform
Releases · smikhalevski/roqueform
roqueform-v5.2.0
Changelog: roqueform-v5.1.1...roqueform-v5.2.0
- Default value can be provided when the child field is accessed for the first time:
const filed = createField<{ text?: string }>({});
field.at('text', 'Hello').value
// ⮕ 'Hello'
- Check that BigInt and Symbol are defined in older environents.
roqueform-v5.1.1
Changelog: roqueform-v5.1.0...roqueform-v5.1.1
Build with ES6 lib.
roqueform-v5.1.0
Changelog: roqueform-v5.0.0...roqueform-v5.1.0
Field<Plugin, Value>
was reverted toField<Value, Plugin>
;FieldController
was renamed toBareField
;- Most generics now default to
any
instead ofunknown
to simplify usage.
Affected packages
roqueform@5.1.0
@roqueform/annotations-plugin@1.1.0
@roqueform/constraint-validation-plugin@2.1.0
@roqueform/doubter-plugin@3.1.0
@roqueform/react@2.1.0
@roqueform/reset-plugin@4.1.0
@roqueform/scroll-to-error-plugin@3.1.0
@roqueform/uncontrolled-plugin@2.1.0
@roqueform/zod-plugin@2.1.0
roqueform-v5.0.0
Changelog: roqueform-v4.1.0...roqueform-v5.0.0
- Roqueform was fully rewritten to provide more flexibility for plugins;
errorsPlugin
was extracted fromvalidationPlugin
;errorsPlugin
now supports multiple errors to be associated with the field;annotationsPlugin
was introduced.
Affected packages
roqueform@5.0.0
@roqueform/annotations-plugin@1.0.0
@roqueform/constraint-validation-plugin@2.0.0
@roqueform/doubter-plugin@3.0.0
@roqueform/react@2.0.0
@roqueform/ref-plugin@5.0.0
@roqueform/reset-plugin@4.0.0
@roqueform/scroll-to-error-plugin@3.0.0
@roqueform/uncontrolled-plugin@2.0.0
@roqueform/zod-plugin@2.0.0
zod-plugin-v1.0.1
Added exports
to package.json.
uncontrolled-plugin-v1.0.1
Added exports
to package.json.
scroll-to-error-plugin-v2.0.1
-
Added
exports
to package.json; -
Fewer allocations.
roqueform-v4.1.0
-
Added
exports
to package.json; -
Plugins create backing
WeakMap
only when called; -
objectAccessor
was renamed tonaturalAccessor
and now supports objects, arrays,Map
-like andSet
-like instances; -
callOrGet
andcallAll
don't use rest arguments anymore; -
applyPlugins
was renamed tocomposePlugins
to better reflect the intended operation;
reset-plugin-v3.0.1
-
Added
exports
to package.json; -
Fewer allocations.
ref-plugin-v4.0.1
Added exports
to package.json.