From 51eeba480ac1bc232c0df020e4bb788a28a8b744 Mon Sep 17 00:00:00 2001 From: Jammy Louie Date: Fri, 15 Mar 2019 16:52:19 -0400 Subject: [PATCH] chore(core): upgrade the version to formik 1.4.1 (#6705) --- .../configure/common/LoadBalancerLocation.tsx | 2 +- .../wizard/pages/ServerGroupBasicSettings.tsx | 2 +- .../ConfigurationSettings.cf.tsx | 2 +- .../src/account/AccountSelectInput.spec.tsx | 4 +- .../core/src/entityTag/EntityTagEditor.tsx | 2 +- .../entityTags/ApplyEntityTagsStageConfig.tsx | 12 +++--- .../config/stages/entityTags/TagEditor.tsx | 10 ++--- .../projects/configure/ProjectAttributes.tsx | 2 +- .../core/src/region/RegionSelectField.tsx | 2 +- .../v2/manifest/selector/ManifestSelector.tsx | 2 +- .../src/v2/manifest/wizard/BasicSettings.tsx | 2 +- .../stages/runJob/TitusRunJobStageConfig.tsx | 2 +- .../wizard/pages/ServerGroupBasicSettings.tsx | 2 +- package.json | 2 +- yarn.lock | 41 ++++++++----------- 15 files changed, 42 insertions(+), 47 deletions(-) diff --git a/app/scripts/modules/amazon/src/loadBalancer/configure/common/LoadBalancerLocation.tsx b/app/scripts/modules/amazon/src/loadBalancer/configure/common/LoadBalancerLocation.tsx index 977cb55ace3..670a7a93a04 100644 --- a/app/scripts/modules/amazon/src/loadBalancer/configure/common/LoadBalancerLocation.tsx +++ b/app/scripts/modules/amazon/src/loadBalancer/configure/common/LoadBalancerLocation.tsx @@ -300,7 +300,7 @@ export class LoadBalancerLocation extends React.Component this.accountUpdated(evt.target.value)} + onChange={(evt: any) => this.accountUpdated(evt.target.value)} accounts={accounts} provider="aws" /> diff --git a/app/scripts/modules/amazon/src/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.tsx b/app/scripts/modules/amazon/src/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.tsx index b1eef6cdb4b..ba2a5350ced 100644 --- a/app/scripts/modules/amazon/src/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.tsx +++ b/app/scripts/modules/amazon/src/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.tsx @@ -211,7 +211,7 @@ export class ServerGroupBasicSettings
this.accountUpdated(evt.target.value)} + onChange={(evt: any) => this.accountUpdated(evt.target.value)} readOnly={readOnlyFields.credentials} accounts={accounts} provider="aws" diff --git a/app/scripts/modules/cloudfoundry/src/serverGroup/configure/wizard/sections/configurationSettings/ConfigurationSettings.cf.tsx b/app/scripts/modules/cloudfoundry/src/serverGroup/configure/wizard/sections/configurationSettings/ConfigurationSettings.cf.tsx index 2f025717193..5411323984f 100644 --- a/app/scripts/modules/cloudfoundry/src/serverGroup/configure/wizard/sections/configurationSettings/ConfigurationSettings.cf.tsx +++ b/app/scripts/modules/cloudfoundry/src/serverGroup/configure/wizard/sections/configurationSettings/ConfigurationSettings.cf.tsx @@ -151,7 +151,7 @@ export class CloudFoundryServerGroupConfigurationSettings this.manifestSourceUpdated(e.target.value)} + onChange={(e: any) => this.manifestSourceUpdated(e.target.value)} />
diff --git a/app/scripts/modules/core/src/account/AccountSelectInput.spec.tsx b/app/scripts/modules/core/src/account/AccountSelectInput.spec.tsx index d02732e973c..f655293acce 100644 --- a/app/scripts/modules/core/src/account/AccountSelectInput.spec.tsx +++ b/app/scripts/modules/core/src/account/AccountSelectInput.spec.tsx @@ -121,7 +121,7 @@ describe('', () => { it('unselects nonexistent account', function() { let updatedVal: string = null; - const onChange = (evt: React.ChangeEvent) => (updatedVal = evt.target.value); + const onChange = (evt: React.ChangeEvent) => (updatedVal = evt.target.value); component = shallow( , ); @@ -131,7 +131,7 @@ describe('', () => { // it('does not unselect account if account is an expression', () => { let updatedVal: string = null; - const onChange = (evt: React.ChangeEvent) => (updatedVal = evt.target.value); + const onChange = (evt: React.ChangeEvent) => (updatedVal = evt.target.value); component = shallow( { + onChange={(evt: any) => { const option = ownerOptions.find(opt => opt.label === evt.target.value); setFieldValue('ownerOption', option); }} diff --git a/app/scripts/modules/core/src/pipeline/config/stages/entityTags/ApplyEntityTagsStageConfig.tsx b/app/scripts/modules/core/src/pipeline/config/stages/entityTags/ApplyEntityTagsStageConfig.tsx index c5b394c9311..1ca70f1ff6d 100644 --- a/app/scripts/modules/core/src/pipeline/config/stages/entityTags/ApplyEntityTagsStageConfig.tsx +++ b/app/scripts/modules/core/src/pipeline/config/stages/entityTags/ApplyEntityTagsStageConfig.tsx @@ -60,7 +60,7 @@ export class ApplyEntityTagsStageConfig extends React.Component ( )} - onChange={e => this.entityRefTypeChanged(e.target.value)} + onChange={(e: any) => this.entityRefTypeChanged(e.target.value)} value={entityRef.entityType || ''} /> @@ -70,7 +70,7 @@ export class ApplyEntityTagsStageConfig extends React.Component this.entityRefFieldChanged('entityId', e.target.value)} + onChange={(e: any) => this.entityRefFieldChanged('entityId', e.target.value)} /> {entityRef.entityType !== 'application' && ( @@ -86,21 +86,21 @@ export class ApplyEntityTagsStageConfig extends React.Component )} value={entityRef.cloudProvider || ''} - onChange={e => this.entityRefFieldChanged('cloudProvider', e.target.value)} + onChange={(e: any) => this.entityRefFieldChanged('cloudProvider', e.target.value)} /> this.entityRefFieldChanged('account', e.target.value)} + onChange={(e: any) => this.entityRefFieldChanged('account', e.target.value)} /> this.entityRefFieldChanged('region', e.target.value)} + onChange={(e: any) => this.entityRefFieldChanged('region', e.target.value)} /> {entityRef.entityType === 'securitygroup' && ( @@ -108,7 +108,7 @@ export class ApplyEntityTagsStageConfig extends React.Component this.entityRefFieldChanged('vpcId', e.target.value)} + onChange={(e: any) => this.entityRefFieldChanged('vpcId', e.target.value)} /> )} diff --git a/app/scripts/modules/core/src/pipeline/config/stages/entityTags/TagEditor.tsx b/app/scripts/modules/core/src/pipeline/config/stages/entityTags/TagEditor.tsx index cafcfa7aef1..416f9a9cb58 100644 --- a/app/scripts/modules/core/src/pipeline/config/stages/entityTags/TagEditor.tsx +++ b/app/scripts/modules/core/src/pipeline/config/stages/entityTags/TagEditor.tsx @@ -89,7 +89,7 @@ export class TagEditor extends React.Component this.tagValueChanged('namespace', event.target.value)} + onChange={(event: any) => this.tagValueChanged('namespace', event.target.value)} /> @@ -103,7 +103,7 @@ export class TagEditor extends React.Component this.tagValueChanged('name', event.target.value)} + onChange={(event: any) => this.tagValueChanged('name', event.target.value)} /> @@ -119,7 +119,7 @@ export class TagEditor extends React.Component this.tagValueChanged('value', event.target.value)} + onChange={(event: any) => this.tagValueChanged('value', event.target.value)} /> @@ -130,7 +130,7 @@ export class TagEditor extends React.Component this.tagValueChanged('value.message', event.target.value)} + onChange={(event: any) => this.tagValueChanged('value.message', event.target.value)} /> @@ -146,7 +146,7 @@ export class TagEditor extends React.Component )} required={true} - onChange={e => this.handleTypeChanged(e.target.value)} + onChange={(e: any) => this.handleTypeChanged(e.target.value)} value={type} /> diff --git a/app/scripts/modules/core/src/projects/configure/ProjectAttributes.tsx b/app/scripts/modules/core/src/projects/configure/ProjectAttributes.tsx index bfc8a076f9e..1aa4fdc2cd4 100644 --- a/app/scripts/modules/core/src/projects/configure/ProjectAttributes.tsx +++ b/app/scripts/modules/core/src/projects/configure/ProjectAttributes.tsx @@ -70,7 +70,7 @@ export class ProjectAttributes extends React.Component } value={projectNameForDeletion || ''} - onChange={evt => this.setState({ projectNameForDeletion: evt.target.value })} + onChange={(evt: any) => this.setState({ projectNameForDeletion: evt.target.value })} validate={() => matchError && 'Project name does not match'} touched={projectNameForDeletion != null} required={true} diff --git a/app/scripts/modules/core/src/region/RegionSelectField.tsx b/app/scripts/modules/core/src/region/RegionSelectField.tsx index 6f1c8deffbd..208a6ca301c 100644 --- a/app/scripts/modules/core/src/region/RegionSelectField.tsx +++ b/app/scripts/modules/core/src/region/RegionSelectField.tsx @@ -35,7 +35,7 @@ export class RegionSelectField extends React.Component regions={regions} readOnly={readOnly} value={component[field]} - onChange={evt => this.handleChange(evt)} + onChange={(evt: any) => this.handleChange(evt)} /> diff --git a/app/scripts/modules/kubernetes/src/v2/manifest/selector/ManifestSelector.tsx b/app/scripts/modules/kubernetes/src/v2/manifest/selector/ManifestSelector.tsx index c71a28041fc..e58c84f13f9 100644 --- a/app/scripts/modules/kubernetes/src/v2/manifest/selector/ManifestSelector.tsx +++ b/app/scripts/modules/kubernetes/src/v2/manifest/selector/ManifestSelector.tsx @@ -321,7 +321,7 @@ export class ManifestSelector extends React.Component this.handleAccountChange(evt.target.value)} + onChange={(evt: any) => this.handleAccountChange(evt.target.value)} accounts={accounts} provider="'kubernetes'" /> diff --git a/app/scripts/modules/kubernetes/src/v2/manifest/wizard/BasicSettings.tsx b/app/scripts/modules/kubernetes/src/v2/manifest/wizard/BasicSettings.tsx index a2eef9951c4..949e76259d6 100644 --- a/app/scripts/modules/kubernetes/src/v2/manifest/wizard/BasicSettings.tsx +++ b/app/scripts/modules/kubernetes/src/v2/manifest/wizard/BasicSettings.tsx @@ -31,7 +31,7 @@ export class ManifestBasicSettings extends React.Component this.accountUpdated(evt.target.value)} + onChange={(evt: any) => this.accountUpdated(evt.target.value)} readOnly={false} accounts={accounts} provider="kubernetes" diff --git a/app/scripts/modules/titus/src/pipeline/stages/runJob/TitusRunJobStageConfig.tsx b/app/scripts/modules/titus/src/pipeline/stages/runJob/TitusRunJobStageConfig.tsx index 1c17b8e5ace..6fd11d65074 100644 --- a/app/scripts/modules/titus/src/pipeline/stages/runJob/TitusRunJobStageConfig.tsx +++ b/app/scripts/modules/titus/src/pipeline/stages/runJob/TitusRunJobStageConfig.tsx @@ -188,7 +188,7 @@ export class TitusRunJobStageConfig extends React.Component this.accountChanged(evt.target.value)} + onChange={(evt: any) => this.accountChanged(evt.target.value)} accounts={credentials} provider="titus" /> diff --git a/app/scripts/modules/titus/src/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.tsx b/app/scripts/modules/titus/src/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.tsx index f62a6489694..70a41c8a0a1 100644 --- a/app/scripts/modules/titus/src/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.tsx +++ b/app/scripts/modules/titus/src/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.tsx @@ -177,7 +177,7 @@ export class ServerGroupBasicSettings
this.accountUpdated(evt.target.value)} + onChange={(evt: any) => this.accountUpdated(evt.target.value)} readOnly={readOnlyFields.credentials} accounts={accounts} provider="titus" diff --git a/package.json b/package.json index 0bd3d3f256b..1c99daea69c 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "date-fns": "^1.30.1", "diff-match-patch": "^1.0.0", "dompurify": "^1.0.4", - "formik": "^1.3.1", + "formik": "^1.4.1", "human-readable-ids": "^1.0.4", "jquery": "3.3.1", "jquery-textcomplete": "1.6.1", diff --git a/yarn.lock b/yarn.lock index ff2ca0cf125..333b682d8ba 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6143,20 +6143,20 @@ form-data@~2.3.2: combined-stream "^1.0.6" mime-types "^2.1.12" -formik@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/formik/-/formik-1.3.1.tgz#ff2bb4c0144585297cf9a371081326e8d816fe6f" - integrity sha512-cOTpwP4vy8bj7HhEGC2IWFFhsztBlZOJoTRgGa64NxcM30rV15ub5nTliQA3Vs8vqWSlGEc6k67SR8YZIV7pew== +formik@^1.4.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/formik/-/formik-1.5.1.tgz#ef5687e1ade5b1fe5f1d51435b422238aad107e9" + integrity sha512-FBWGBKQkcCE4d5b5l2fKccD9d1QxNxw/0bQTRvp3EjzA8Bnjmsm9H/Oy0375UA8P3FPmfJkF4cXLLdEqK7fP5A== dependencies: create-react-context "^0.2.2" deepmerge "^2.1.1" hoist-non-react-statics "^2.5.5" - lodash.clonedeep "^4.5.0" - lodash.topath "4.5.2" + lodash "^4.17.11" + lodash-es "^4.17.11" prop-types "^15.6.1" - react-fast-compare "^1.0.0" + react-fast-compare "^2.0.1" + tiny-warning "^1.0.2" tslib "^1.9.3" - warning "^3.0.0" forwarded@~0.1.2: version "0.1.2" @@ -8891,16 +8891,11 @@ lodash-decorators@4.5.0, lodash-decorators@^4.4.1: dependencies: tslib "^1.7.1" -lodash-es@^4.17.4, lodash-es@^4.17.5, lodash-es@^4.2.1: +lodash-es@^4.17.11, lodash-es@^4.17.4, lodash-es@^4.17.5, lodash-es@^4.2.1: version "4.17.11" resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.11.tgz#145ab4a7ac5c5e52a3531fb4f310255a152b4be0" integrity sha512-DHb1ub+rMjjrxqlB3H56/6MXtm1lSksDp2rA2cNWjG8mlDUYFhUj3Di2Zn5IwSU87xLv8tNIQ7sSwE/YOX/D/Q== -lodash.clonedeep@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" - integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8= - lodash.debounce@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" @@ -8941,11 +8936,6 @@ lodash.memoize@^4.1.2: resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= -lodash.topath@4.5.2: - version "4.5.2" - resolved "https://registry.yarnpkg.com/lodash.topath/-/lodash.topath-4.5.2.tgz#3616351f3bba61994a0931989660bd03254fd009" - integrity sha1-NhY1Hzu6YZlKCTGYlmC9AyVP0Ak= - lodash.unescape@4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/lodash.unescape/-/lodash.unescape-4.0.1.tgz#bf2249886ce514cda112fae9218cdc065211fc9c" @@ -11787,10 +11777,10 @@ react-dom@^0.14.8: resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-0.14.9.tgz#05064a3dcf0fb1880a3b2bfc9d58c55d8d9f6293" integrity sha1-BQZKPc8PsYgKOyv8nVjFXY2fYpM= -react-fast-compare@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-1.0.0.tgz#813a039155e49b43ceffe99528fe5e9d97a6c938" - integrity sha512-dcQpdWr62flXQJuM8/bVEY5/10ad2SYBUafp8H4q4WHR3fTA/MMlp8mpzX12I0CCoEJc1P6QdiMg7U+7lFS6Rw== +react-fast-compare@^2.0.1: + version "2.0.4" + resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-2.0.4.tgz#e84b4d455b0fec113e0402c329352715196f81f9" + integrity sha512-suNP+J1VU1MWFKcyt7RtjiSWUjvidmQSlqu+eHslq+342xCbGTYmC0mEhPCOHxlW0CywylOC1u2DFAT+bv4dBw== react-ga@^2.4.1: version "2.4.1" @@ -14143,6 +14133,11 @@ tiny-sdf@^1.0.2: resolved "https://registry.yarnpkg.com/tiny-sdf/-/tiny-sdf-1.0.2.tgz#28e76985c44c4e584c4b67d8ecdd9b33a1cac28c" integrity sha1-KOdphcRMTlhMS2fY7N2bM6HKwow= +tiny-warning@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/tiny-warning/-/tiny-warning-1.0.2.tgz#1dfae771ee1a04396bdfde27a3adcebc6b648b28" + integrity sha512-rru86D9CpQRLvsFG5XFdy0KdLAvjdQDyZCsRcuu60WtzFylDM3eAWSxEVz5kzL2Gp544XiUvPbVKtOA/txLi9Q== + tinycolor2@^1.3.0: version "1.4.1" resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.4.1.tgz#f4fad333447bc0b07d4dc8e9209d8f39a8ac77e8"