Skip to content

Commit 838cfbd

Browse files
committed
v2.0.2
1 parent 465fd21 commit 838cfbd

11 files changed

+223
-172
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [v2.0.1](https://github.com/formsy/formsy-react/compare/v2.0.0...v2.0.1)
8+
9+
> 18 February 2020
10+
11+
- Respect dot notation in reset [`#393`](https://github.com/formsy/formsy-react/pull/393)
12+
- Remove unnecesary externalError state [`#398`](https://github.com/formsy/formsy-react/pull/398)
13+
- Allow validation errors to be React elements [`#394`](https://github.com/formsy/formsy-react/pull/394)
14+
- Update rollup plugin libraries [`#397`](https://github.com/formsy/formsy-react/pull/397)
15+
- Improvements to README and PR Template [`#395`](https://github.com/formsy/formsy-react/pull/395)
16+
- Fix types in Formsy spec tests [`#396`](https://github.com/formsy/formsy-react/pull/396)
17+
- Remove unused Formsy props; tighten types; improve runRules [`#392`](https://github.com/formsy/formsy-react/pull/392)
18+
- Rename cloneIfObject to protectAgainstParamReassignment; Fix isObject [`#391`](https://github.com/formsy/formsy-react/pull/391)
19+
- Added possibility to use browser builtin submit [`#226`](https://github.com/formsy/formsy-react/pull/226)
20+
- Improve test coverage [`#378`](https://github.com/formsy/formsy-react/pull/378)
21+
- Dependabot Automatic Library Bumps [`#376`](https://github.com/formsy/formsy-react/pull/376)
22+
- Use React's New Context API [`#198`](https://github.com/formsy/formsy-react/pull/198)
23+
- Fix in-page link to updateInputsWithValue [`6fcc682`](https://github.com/formsy/formsy-react/commit/6fcc682e1dae82dd5643a744f587713f4d8a9ced)
24+
- Change coveralls from dependency to dev dependency [`c9d9db5`](https://github.com/formsy/formsy-react/commit/c9d9db56f9f75770eaa39288dd009aeac528887e)
25+
- Add coverage to gitignore [`0afef60`](https://github.com/formsy/formsy-react/commit/0afef60136a651f32e6e08b447810fef34856155)
26+
727
#### [v2.0.0](https://github.com/formsy/formsy-react/compare/v2.0.0-beta.8...v2.0.0)
828

929
> 3 February 2020

dist/Wrapper.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface InjectedProps<V> {
4242
ref?: React.Ref<any>;
4343
resetValue: () => void;
4444
setValidations: (validations: Validations<V>, required: RequiredValidation<V>) => void;
45-
setValue: (value: V) => void;
45+
setValue: (value: V, validate?: boolean) => void;
4646
showError: boolean;
4747
showRequired: boolean;
4848
}
@@ -51,8 +51,10 @@ export interface WrapperInstanceMethods<V> {
5151
getErrorMessages: () => ValidationError[];
5252
getValue: () => V;
5353
isFormDisabled: () => boolean;
54+
isFormSubmitted: () => boolean;
5455
isValid: () => boolean;
55-
setValue: (value: V) => void;
56+
isValidValue: (value: V) => boolean;
57+
setValue: (value: V, validate?: boolean) => void;
5658
}
5759
export declare type PassDownProps<V> = WrapperProps<V> & InjectedProps<V>;
5860
export { propTypes };

dist/formsy-react.cjs.js

Lines changed: 63 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/formsy-react.cjs.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)