Skip to content

Commit 402a4dc

Browse files
committed
v2.0.0-beta.5
1 parent f8f99f9 commit 402a4dc

11 files changed

+272
-254
lines changed

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ 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.0-beta.4](https://github.com/formsy/formsy-react/compare/v2.0.0-beta.3...v2.0.0-beta.4)
8+
9+
> 12 July 2019
10+
11+
- Add prettier format to Markdown files [`#197`](https://github.com/formsy/formsy-react/pull/197)
12+
- Fix test imports to use src not dist files [`#196`](https://github.com/formsy/formsy-react/pull/196)
13+
- Bump all libraries [`#195`](https://github.com/formsy/formsy-react/pull/195)
14+
- Allow HTMLFormElement attributes to be passed to a Formsy form [`#193`](https://github.com/formsy/formsy-react/pull/193)
15+
- chore(deps): [Security] Bump lodash from 4.17.11 to 4.17.14 [`#191`](https://github.com/formsy/formsy-react/pull/191)
16+
- Fix 'types' package key to point at the generated type declaration. [`#192`](https://github.com/formsy/formsy-react/pull/192)
17+
718
#### [v2.0.0-beta.3](https://github.com/formsy/formsy-react/compare/v2.0.0-beta.2...v2.0.0-beta.3)
819

920
> 5 July 2019
@@ -64,6 +75,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6475
- Merge v2.0 branch [`#135`](https://github.com/formsy/formsy-react/pull/135)
6576
- Fixing #123 [`#124`](https://github.com/formsy/formsy-react/pull/124)
6677
- Fix isValidValue call in documentation. Closes #99. [`#101`](https://github.com/formsy/formsy-react/pull/101)
78+
- Merge pull request #101 from guillaumevincent/patch-1 [`#99`](https://github.com/formsy/formsy-react/issues/99)
6779
- Fix isValidValue call in documentation [`#99`](https://github.com/formsy/formsy-react/issues/99)
6880
- fix: removed useless default for innerRef prop from the HOC to prevent warnings when the wrapped component is a SFC [`3284327`](https://github.com/formsy/formsy-react/commit/32843279adbaa64248709e3a2b208e54ad2ab0c6)
6981
- Clarified preventExternalInvalidation [`95dd051`](https://github.com/formsy/formsy-react/commit/95dd0516052053accd8781c3acb358d06d28747b)
@@ -186,7 +198,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
186198
- Use better displayNames for components wrapped into HOC [`#357`](https://github.com/formsy/formsy-react/pull/357)
187199
- Fixed #335: getErrorMessages is undocumented in API [`#335`](https://github.com/formsy/formsy-react/issues/335)
188200
- Fixed #298: RangeError: Maximum call stack size exceeded with custom validator [`#298`](https://github.com/formsy/formsy-react/issues/298)
189-
- Fixed #361: Unknown props `onValidSubmit`, `onSubmitted` on <form> tag [`#361`](https://github.com/formsy/formsy-react/issues/361)
201+
- Fixed #361: Unknown props `onValidSubmit`, `onSubmitted` on &lt;form&gt; tag [`#361`](https://github.com/formsy/formsy-react/issues/361)
190202
- Update documentation [`89a2d42`](https://github.com/formsy/formsy-react/commit/89a2d4287ba3decab2b9a52214cf881e60fb7d77)
191203
- Fix: Cannot reset value unless truthy [`6767a6b`](https://github.com/formsy/formsy-react/commit/6767a6b9eba9c0a7c255c46ce2d6f84dc69eeeb4)
192204
- Use better names for components wrapped into HOC [`9e923dd`](https://github.com/formsy/formsy-react/commit/9e923dd0dc27eaad3d42c3b207f28ae66dc2fe93)
@@ -247,6 +259,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
247259
- Made passing all props, except `onSubmit` [`#148`](https://github.com/formsy/formsy-react/pull/148)
248260
- fix typo [`#149`](https://github.com/formsy/formsy-react/pull/149)
249261
- Changed validation behaviour [`#138`](https://github.com/formsy/formsy-react/pull/138)
262+
- Merge pull request #197 from rblakeley/patch-1 [`#196`](https://github.com/formsy/formsy-react/issues/196)
250263
- add built files, fix #196 [`#196`](https://github.com/formsy/formsy-react/issues/196)
251264
- removed obsolete method call, fix #196 [`#196`](https://github.com/formsy/formsy-react/issues/196)
252265
- fix #196 [`#196`](https://github.com/formsy/formsy-react/issues/196)
@@ -373,6 +386,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
373386
- Added npmignore file [`#68`](https://github.com/formsy/formsy-react/pull/68)
374387
- Allow a component to decide whether it is valid (fixes #60) [`#63`](https://github.com/formsy/formsy-react/pull/63)
375388
- Added example [`#69`](https://github.com/formsy/formsy-react/pull/69)
389+
- Merge pull request #63 from philippotto/checkValidity [`#60`](https://github.com/formsy/formsy-react/issues/60)
376390
- Fixed bug with internal ajax [`ebd17fd`](https://github.com/formsy/formsy-react/commit/ebd17fde625101ec602aca34c7cfdf26d7d9b44c)
377391
- Fixed validation bug [`0964b07`](https://github.com/formsy/formsy-react/commit/0964b07e1d35d006e1b791c3f525cae79f4c2f76)
378392
- Added section on validate method [`f1d9d6c`](https://github.com/formsy/formsy-react/commit/f1d9d6c15c7946544d26050b0a00484bea0d0f79)

dist/Wrapper.d.ts

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ declare const propTypes: {
1111
export interface WrapperProps {
1212
innerRef?: (ref: any) => void;
1313
name: string;
14-
required: RequiredValidation;
15-
validationError: any;
16-
validationErrors: any;
17-
validations: Validations | string;
18-
value: any;
14+
required?: RequiredValidation;
15+
validationError?: any;
16+
validationErrors?: any;
17+
validations?: Validations | string;
18+
value?: Value;
1919
}
2020
export interface WrapperState {
2121
[key: string]: unknown;
@@ -28,7 +28,7 @@ export interface WrapperState {
2828
validationError: any[];
2929
value: any;
3030
}
31-
export interface PassDownProps {
31+
export interface PassDownProps extends WrapperProps {
3232
errorMessage: any;
3333
errorMessages: any;
3434
hasValue: boolean;
@@ -38,16 +38,12 @@ export interface PassDownProps {
3838
isRequired: boolean;
3939
isValid: boolean;
4040
isValidValue: (value: Value) => boolean;
41-
name: string;
4241
ref?: any;
4342
resetValue: any;
4443
setValidations: any;
4544
setValue: (value: Value) => void;
4645
showError: boolean;
4746
showRequired: boolean;
48-
validationError: any;
49-
validationErrors: any;
50-
value: Value;
5147
}
5248
export { propTypes };
53-
export default function <Props, State, CompState>(WrappedComponent: React.ComponentClass<Props & State>): React.ComponentClass<Props & State>;
49+
export default function <T>(WrappedComponent: React.ComponentType<T & PassDownProps>): React.ComponentType<T & WrapperProps>;

dist/formsy-react.cjs.js

Lines changed: 79 additions & 77 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)