Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuykendall committed Feb 3, 2020
1 parent ca2f3fe commit 0c681fd
Show file tree
Hide file tree
Showing 10 changed files with 213 additions and 43 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file. Dates are d

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

#### [v2.0.0-beta.8](https://github.com/formsy/formsy-react/compare/v2.0.0-beta.7...v2.0.0-beta.8)

> 30 January 2020
- Edit types to parameterize value. Edit validations rules to apply to specific types [`#341`](https://github.com/formsy/formsy-react/pull/341)
- Rewrite isSame to not use circular imports, remove arraysDiffer, objectsDiffer, find [`#362`](https://github.com/formsy/formsy-react/pull/362)
- Dependabot Automatic Library Bumps [`#363`](https://github.com/formsy/formsy-react/pull/363)
- Edit validation function type to add string type (for error message) [`#339`](https://github.com/formsy/formsy-react/pull/339)
- Add cloneIfObject utility to reduce code duplication [`#337`](https://github.com/formsy/formsy-react/pull/337)
- Dependabot Automatic Library Bumps [`#338`](https://github.com/formsy/formsy-react/pull/338)
- bug-fix: Improve performance, prevent redundant exponential data copy [`#317`](https://github.com/formsy/formsy-react/pull/317)
- Fix deprecated lifecycle method usage in tests [`#318`](https://github.com/formsy/formsy-react/pull/318)
- Apply automatic code formatting [`9952dfe`](https://github.com/formsy/formsy-react/commit/9952dfe04eb0cdc749d7ef033fc53b73be08dd1c)

#### [v2.0.0-beta.7](https://github.com/formsy/formsy-react/compare/v2.0.0-beta.6...v2.0.0-beta.7)

> 14 December 2019
Expand Down
76 changes: 64 additions & 12 deletions dist/formsy-react.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/formsy-react.cjs.js.map

Large diffs are not rendered by default.

76 changes: 64 additions & 12 deletions dist/formsy-react.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/formsy-react.esm.js.map

Large diffs are not rendered by default.

76 changes: 64 additions & 12 deletions dist/formsy-react.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/formsy-react.umd.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import validationRules from './validationRules';
import Wrapper, { propTypes } from './Wrapper';
import { IModel, InputComponent, IResetModel, ISetInputValue, IUpdateInputsWithError, ValidationFunction } from './interfaces';
import { IModel, InputComponent, IResetModel, IUpdateInputsWithValue, IUpdateInputsWithError, ValidationFunction } from './interfaces';
declare type FormHTMLAttributesCleaned = Omit<React.FormHTMLAttributes<HTMLFormElement>, 'onChange' | 'onSubmit'>;
export interface FormsyProps extends FormHTMLAttributesCleaned {
disabled: boolean;
Expand Down Expand Up @@ -101,7 +101,6 @@ declare class Formsy extends React.Component<FormsyProps, FormsyState> {
reset: (data?: any) => void;
resetInternal: (event: any) => void;
resetModel: IResetModel;
setValue: ISetInputValue<any>;
runValidation: <V>(component: InputComponent<V>, value?: V) => {
isRequired: boolean;
isValid: boolean;
Expand All @@ -112,6 +111,7 @@ declare class Formsy extends React.Component<FormsyProps, FormsyState> {
isChanged: () => boolean;
submit: (event: any) => void;
updateInputsWithError: IUpdateInputsWithError;
updateInputsWithValue: IUpdateInputsWithValue<any>;
validate: <V>(component: InputComponent<V>) => void;
validateForm: () => void;
render: () => React.DetailedReactHTMLElement<{
Expand Down
2 changes: 1 addition & 1 deletion dist/interfaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface Values {
export declare type IModel = any;
export declare type IData = any;
export declare type IResetModel = (model?: IModel) => void;
export declare type ISetInputValue<V> = (name: string, value: V, validate?: boolean) => void;
export declare type IUpdateInputsWithValue<V> = (values: any, validate?: boolean) => void;
export declare type IUpdateInputsWithError = (errors: any, invalidate?: boolean) => void;
export declare type ValidationFunction<V> = (values: Values, value: V, extra?: any) => boolean | string;
export declare type Validation<V> = string | boolean | ValidationFunction<V>;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "formsy-react",
"version": "2.0.0-beta.8",
"version": "2.0.0",
"description": "A form input builder and validator for React",
"keywords": [
"form",
Expand Down

0 comments on commit 0c681fd

Please sign in to comment.