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.7 to 2.2.8

9

CHANGELOG.md

@@ -7,4 +7,13 @@ ### Changelog

#### [v2.2.8](https://github.com/formsy/formsy-react/compare/v2.2.7...v2.2.8)
- Migrate to react testing lib instead of enzyme [`#679`](https://github.com/formsy/formsy-react/pull/679)
- Bump deps [`7056b3e`](https://github.com/formsy/formsy-react/commit/7056b3eca1bc8df759f05f88a75f5ff681dc2596)
- refactor: Move rules tests to rules folder [`33d2f88`](https://github.com/formsy/formsy-react/commit/33d2f8888b211672bfa762a2e804d651683903a6)
- Update ci build deps [`3599710`](https://github.com/formsy/formsy-react/commit/3599710dc5226545e5dca7495ec130ad4af8c862)
#### [v2.2.7](https://github.com/formsy/formsy-react/compare/v2.2.6...v2.2.7)
> 24 July 2022
- chore(deps): Bump ws from 7.4.2 to 7.4.6 [`#630`](https://github.com/formsy/formsy-react/pull/630)

@@ -11,0 +20,0 @@ - chore(deps): Bump hosted-git-info from 2.8.8 to 2.8.9 [`#628`](https://github.com/formsy/formsy-react/pull/628)

4

dist/Formsy.d.ts

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

declare type FormHTMLAttributesCleaned = Omit<React.FormHTMLAttributes<HTMLFormElement>, 'onChange' | 'onSubmit'>;
declare type OnSubmitCallback = (model: IModel, resetModel: IResetModel, updateInputsWithError: IUpdateInputsWithError, event: React.SyntheticEvent<React.FormHTMLAttributes<any>>) => void;
declare type OnSubmitCallback = (model: IModel, resetModel: IResetModel, updateInputsWithError: IUpdateInputsWithError, event: React.SyntheticEvent<HTMLFormElement>) => void;
declare type FormElementType = string | React.ComponentType<{

@@ -82,3 +82,3 @@ onReset?: (e: React.SyntheticEvent) => void;

isChanged: () => boolean;
submit: (event?: React.SyntheticEvent) => void;
submit: (event?: React.SyntheticEvent<HTMLFormElement>) => void;
updateInputsWithError: IUpdateInputsWithError;

@@ -85,0 +85,0 @@ updateInputsWithValue: IUpdateInputsWithValue<any>;

{
"name": "formsy-react",
"version": "2.2.7",
"version": "2.2.8",
"description": "A form input builder and validator for React",

@@ -48,3 +48,4 @@ "keywords": [

"devDependencies": {
"@types/enzyme": "^3.10.3",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.5",
"@types/jest": "^26.0.13",

@@ -57,4 +58,2 @@ "@types/lodash": "^4.14.168",

"coveralls": "^3.1.1",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"eslint-plugin-prettier": "^3.4.1",

@@ -96,7 +95,4 @@ "husky": "^4.2.1",

"src/**/*.ts"
],
"setupFilesAfterEnv": [
"./setupTests.ts"
]
}
}

@@ -26,3 +26,3 @@ /* eslint-disable react/no-unused-state, react/default-props-match-prop-types */

updateInputsWithError: IUpdateInputsWithError,
event: React.SyntheticEvent<React.FormHTMLAttributes<any>>,
event: React.SyntheticEvent<HTMLFormElement>,
) => void;

@@ -360,3 +360,3 @@

// Update model, submit to url prop and send the model
public submit = (event?: React.SyntheticEvent) => {
public submit = (event?: React.SyntheticEvent<HTMLFormElement>) => {
const { onSubmit, onValidSubmit, onInvalidSubmit, preventDefaultSubmit } = this.props;

@@ -363,0 +363,0 @@ const { isValid } = this.state;

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