Skip to content

Commit 0c681fd

Browse files
committed
v2.0.0
1 parent ca2f3fe commit 0c681fd

10 files changed

+213
-43
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ 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.8](https://github.com/formsy/formsy-react/compare/v2.0.0-beta.7...v2.0.0-beta.8)
8+
9+
> 30 January 2020
10+
11+
- Edit types to parameterize value. Edit validations rules to apply to specific types [`#341`](https://github.com/formsy/formsy-react/pull/341)
12+
- Rewrite isSame to not use circular imports, remove arraysDiffer, objectsDiffer, find [`#362`](https://github.com/formsy/formsy-react/pull/362)
13+
- Dependabot Automatic Library Bumps [`#363`](https://github.com/formsy/formsy-react/pull/363)
14+
- Edit validation function type to add string type (for error message) [`#339`](https://github.com/formsy/formsy-react/pull/339)
15+
- Add cloneIfObject utility to reduce code duplication [`#337`](https://github.com/formsy/formsy-react/pull/337)
16+
- Dependabot Automatic Library Bumps [`#338`](https://github.com/formsy/formsy-react/pull/338)
17+
- bug-fix: Improve performance, prevent redundant exponential data copy [`#317`](https://github.com/formsy/formsy-react/pull/317)
18+
- Fix deprecated lifecycle method usage in tests [`#318`](https://github.com/formsy/formsy-react/pull/318)
19+
- Apply automatic code formatting [`9952dfe`](https://github.com/formsy/formsy-react/commit/9952dfe04eb0cdc749d7ef033fc53b73be08dd1c)
20+
721
#### [v2.0.0-beta.7](https://github.com/formsy/formsy-react/compare/v2.0.0-beta.6...v2.0.0-beta.7)
822

923
> 14 December 2019

dist/formsy-react.cjs.js

Lines changed: 64 additions & 12 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.

dist/formsy-react.esm.js

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

dist/formsy-react.esm.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.

dist/formsy-react.umd.js

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

dist/formsy-react.umd.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.

dist/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
import validationRules from './validationRules';
44
import Wrapper, { propTypes } from './Wrapper';
5-
import { IModel, InputComponent, IResetModel, ISetInputValue, IUpdateInputsWithError, ValidationFunction } from './interfaces';
5+
import { IModel, InputComponent, IResetModel, IUpdateInputsWithValue, IUpdateInputsWithError, ValidationFunction } from './interfaces';
66
declare type FormHTMLAttributesCleaned = Omit<React.FormHTMLAttributes<HTMLFormElement>, 'onChange' | 'onSubmit'>;
77
export interface FormsyProps extends FormHTMLAttributesCleaned {
88
disabled: boolean;
@@ -101,7 +101,6 @@ declare class Formsy extends React.Component<FormsyProps, FormsyState> {
101101
reset: (data?: any) => void;
102102
resetInternal: (event: any) => void;
103103
resetModel: IResetModel;
104-
setValue: ISetInputValue<any>;
105104
runValidation: <V>(component: InputComponent<V>, value?: V) => {
106105
isRequired: boolean;
107106
isValid: boolean;
@@ -112,6 +111,7 @@ declare class Formsy extends React.Component<FormsyProps, FormsyState> {
112111
isChanged: () => boolean;
113112
submit: (event: any) => void;
114113
updateInputsWithError: IUpdateInputsWithError;
114+
updateInputsWithValue: IUpdateInputsWithValue<any>;
115115
validate: <V>(component: InputComponent<V>) => void;
116116
validateForm: () => void;
117117
render: () => React.DetailedReactHTMLElement<{

dist/interfaces.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export interface Values {
66
export declare type IModel = any;
77
export declare type IData = any;
88
export declare type IResetModel = (model?: IModel) => void;
9-
export declare type ISetInputValue<V> = (name: string, value: V, validate?: boolean) => void;
9+
export declare type IUpdateInputsWithValue<V> = (values: any, validate?: boolean) => void;
1010
export declare type IUpdateInputsWithError = (errors: any, invalidate?: boolean) => void;
1111
export declare type ValidationFunction<V> = (values: Values, value: V, extra?: any) => boolean | string;
1212
export declare type Validation<V> = string | boolean | ValidationFunction<V>;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "formsy-react",
3-
"version": "2.0.0-beta.8",
3+
"version": "2.0.0",
44
"description": "A form input builder and validator for React",
55
"keywords": [
66
"form",

0 commit comments

Comments
 (0)