Skip to content

Releases: smikhalevski/roqueform

react-v1.1.0

22 Aug 14:31
Compare
Choose a tag to compare

Added exports to package.json.

doubter-plugin-v2.0.1

22 Aug 14:30
Compare
Choose a tag to compare

constraint-validation-plugin-v1.0.1

22 Aug 14:28
Compare
Choose a tag to compare

Added exports to package.json.

scroll-to-error-plugin-v2.0.0

21 Mar 17:29
Compare
Choose a tag to compare
  • Plugin can be used without any additional plugins. Previously ref-plugin was required to provide an element to scroll to;

  • scrollToError method accepts rtl option that prioritizes left-side or right-side fields first depending on a value.

roqueform-v4.0.0

21 Mar 17:21
Compare
Choose a tag to compare
  • React integration was extracted to a separate package;

  • Read-only properties are now getters, to prevent accidental changes at runtime;

  • Plugin callback now returns void and should mutate the provided Field instance;

  • Added "mixin" term which denotes an interface that is intersected with Field by a Plugin 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

21 Mar 17:34
Compare
Choose a tag to compare
  • dirty was renamed to isDirty;

  • isDirty and initialValue are now read-only getters;

  • Published code isn't minified anymore.

ref-plugin-v4.0.0

21 Mar 17:42
Compare
Choose a tag to compare
  • React dependency was removed, and ref property that held RefObject was replaced with a read-only element getter that holds Element | null;

  • focus and blur are now called only for elements that have a tabIndex attribute.

doubter-plugin-v2.0.0

21 Mar 17:45
Compare
Choose a tag to compare