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

@shopify/react-form-state

Package Overview
Dependencies
Maintainers
12
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/react-form-state - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

10

CHANGELOG.md

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

## [0.7.0] - 2019-01-11
### Added
- You can now use the onInitialValueChanged prop with fields having nested properties. [#464](https://github.com/Shopify/quilt/pull/464)
### Fixed
- `submit` now checks for the existence of `preventDefault` on the event passed in before calling it. [#465](https://github.com/Shopify/quilt/pull/465)
## [0.6]

@@ -9,0 +19,0 @@

4

dist/FormState.js

@@ -123,3 +123,3 @@ "use strict";

}
if (event && !event.defaultPrevented) {
if (event && event.preventDefault && !event.defaultPrevented) {
event.preventDefault();

@@ -280,3 +280,3 @@ }

var oldField = oldFields[key];
if (value === oldField.initialValue) {
if (isEqual_1.default(value, oldField.initialValue)) {
return oldField;

@@ -283,0 +283,0 @@ }

{
"name": "@shopify/react-form-state",
"version": "0.6.0",
"version": "0.7.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Manage react forms tersely and type-safe with no magic.",

@@ -184,3 +184,3 @@ /* eslint-disable no-case-declarations */

if (event && !event.defaultPrevented) {
if (event && event.preventDefault && !event.defaultPrevented) {
event.preventDefault();

@@ -399,3 +399,3 @@ }

if (value === oldField.initialValue) {
if (isEqual(value, oldField.initialValue)) {
return oldField;

@@ -402,0 +402,0 @@ }

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