Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

formsy-react

Package Overview
Dependencies
Maintainers
10
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formsy-react - npm Package Compare versions

Comparing version 2.2.5 to 2.2.6

14

CHANGELOG.md

@@ -7,2 +7,15 @@ ### Changelog

#### [v2.2.6](https://github.com/formsy/formsy-react/compare/v2.2.5...v2.2.6)
- Bump deps [`#668`](https://github.com/formsy/formsy-react/pull/668)
- Update CHANGELOG.md [`80acda7`](https://github.com/formsy/formsy-react/commit/80acda7623353f0520dc3a2152c855fcc190e4ff)
- Make changelog change properly on deploy [`e528cfd`](https://github.com/formsy/formsy-react/commit/e528cfd786fd60dcf1c0f08288be0346b8b63559)
#### [v2.2.5](https://github.com/formsy/formsy-react/compare/v2.2.4...v2.2.5)
> 15 March 2021
- Add lodash-es to support tsdx lodash optimisation [`#610`](https://github.com/formsy/formsy-react/pull/610)
- Update CHANGELOG.md [`8d2e660`](https://github.com/formsy/formsy-react/commit/8d2e66025f5db33b29f50116a67f08dc771f27c6)
#### [v2.2.4](https://github.com/formsy/formsy-react/compare/v2.2.3...v2.2.4)

@@ -354,3 +367,2 @@

- Update LICENSE [`89dbed0`](https://github.com/formsy/formsy-react/commit/89dbed0468f3b27a06d17e6a277df20847ee2287)
- Nit-picky typo [`42ba961`](https://github.com/formsy/formsy-react/commit/42ba9616d29b2ab0399b81dd24763803023913fa)

@@ -357,0 +369,0 @@ #### [v0.18.1](https://github.com/formsy/formsy-react/compare/v0.18.0...v0.18.1)

26

package.json
{
"name": "formsy-react",
"version": "2.2.5",
"version": "2.2.6",
"description": "A form input builder and validator for React",

@@ -40,8 +40,8 @@ "keywords": [

"test": "tsdx test --passWithNoTests",
"version": "npm run build && git add dist && npm run changelog && git add CHANGELOG.md"
"version": "npm run build && git add dist && npm run changelog -- -p && git add CHANGELOG.md"
},
"dependencies": {
"lodash": "^4.17.20",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"prop-types": "^15.7.2"
"prop-types": "^15.8.1"
},

@@ -55,15 +55,15 @@ "devDependencies": {

"@types/react-dom": "^17.0.0",
"auto-changelog": "^2.0.0",
"coveralls": "^3.0.9",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"eslint-plugin-prettier": "^3.1.4",
"auto-changelog": "^2.4.0",
"coveralls": "^3.1.1",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"eslint-plugin-prettier": "^3.4.1",
"husky": "^4.2.1",
"np": "^5.0.0",
"prettier": "^2.0.2",
"prettier": "^2.7.1",
"react": "^16.2.0 || ^16.0.0",
"react-dom": "^16.2.0 || ^16.0.0",
"tsdx": "^0.14.0",
"tslib": "^2.0.0",
"typescript": "^3.9.7"
"tsdx": "^0.14.1",
"tslib": "^2.4.0",
"typescript": "^4.7.4"
},

@@ -70,0 +70,0 @@ "peerDependencies": {

@@ -20,2 +20,3 @@ import React, { ComponentClass } from 'react';

export type Validations<V> = ValidationsStructure<V> | string | object;
export interface ValidationsStructure<V> {

@@ -44,5 +45,7 @@ [key: string]: Validation<V>;

validate: (component: InputComponent<any>) => void;
runValidation: (
component: InputComponent<any>,
) => { isRequired: boolean; isValid: boolean; validationError: ValidationError[] };
runValidation: (component: InputComponent<any>) => {
isRequired: boolean;
isValid: boolean;
validationError: ValidationError[];
};
}

@@ -40,3 +40,4 @@ import { ValidationFunction, Values } from './interfaces';

ALPHANUMERIC: /^[0-9A-Z]+$/i,
EMAIL: /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i, // from http://emailregex.com/
EMAIL:
/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i, // from http://emailregex.com/
FLOAT: /^(?:[-+]?(?:\d+))?(?:\.\d*)?(?:[eE][+-]?(?:\d+))?$/,

@@ -43,0 +44,0 @@ INT: /^(?:[-+]?(?:0|[1-9]\d*))$/,

@@ -69,2 +69,3 @@ import PropTypes from 'prop-types';

[key: string]: unknown;
formSubmitted: boolean;

@@ -119,3 +120,4 @@ isPristine: boolean;

extends React.Component<T & WrapperProps<V> & FormsyContextInterface, WrapperState<V>>
implements WrapperInstanceMethods<V> {
implements WrapperInstanceMethods<V>
{
public validations?: Validations<V>;

@@ -122,0 +124,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc