Skip to content

UIP-1436 Upgrade to React 15.4.1#31

Merged
leviwith-wf merged 5 commits intoWorkiva:masterfrom
jacehensley-wf:upgrade_to_react_15_4/dev
Dec 13, 2016
Merged

UIP-1436 Upgrade to React 15.4.1#31
leviwith-wf merged 5 commits intoWorkiva:masterfrom
jacehensley-wf:upgrade_to_react_15_4/dev

Conversation

@jacehensley-wf
Copy link
Contributor

@jacehensley-wf jacehensley-wf commented Nov 21, 2016

Ultimate problem:

ReactJS 15.4.0 was released, we should upgrade to that.

Update:

ReactJS 15.4.1 was released.

How it was fixed:

Testing suggestions:

  • Verify tests pass

Potential areas of regression:

  • None expected

FYA: @greglittlefield-wf @aaronlademann-wf @clairesarsam-wf @joelleibow-wf

@aviary2-wf
Copy link

Raven

Number of Findings: 0

@codecov-io
Copy link

codecov-io commented Nov 21, 2016

Current coverage is 97.44% (diff: 100%)

Merging #31 into master will increase coverage by 0.17%

@@             master        #31   diff @@
==========================================
  Files            27         27          
  Lines          1209       1286    +77   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           1176       1253    +77   
  Misses           33         33          
  Partials          0          0          

Sunburst

Powered by Codecov. Last update cb056a9...a0b6f61

/// A class that provides namespacing for static DOM component factory methods, much like `React.DOM` in React JS.
abstract class Dom {
/// Returns a new [DomPropsMixin] that renders an `<a>` tag with getters/setters for all DOM-related React props
static DomProps a() => new DomProps(react.a);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jacehensley-wf why would be changed from DomProps to SvgProps? (Same with all other related changes)

Isn't this a breaking change?

Is it necessary to change the type just so that it can be used within an <svg> element?

If its not possible to use Dom.a within an SVG context, could we just namespace like this instead?

abstract class Dom {
  static DomProps a() => new DomProps(react.a);
  static SvgProps svgA() => new SvgProps(react.a);

  static DomProps audio() => new DomProps(react.audio);
  static SvgProps svgAudio() => new SvgProps(react.audio);

  // ... etc ...
}

cc/ @greglittlefield-wf @clairesarsam-wf

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't a breaking change since SvgProps is a child of DomProps, but I suppose we could keep existing factories and just add name spaced ones like you mention.

@jacehensley-wf jacehensley-wf changed the title Upgrade to React 15.4.0 Upgrade to React 15.4.1 Dec 7, 2016
@aaronlademann-wf
Copy link
Contributor

+1

@aaronlademann-wf
Copy link
Contributor

+1

@greglittlefield-wf
Copy link
Contributor

+1

@leviwith-wf
Copy link
Contributor

QA Resource Approval: +10

  • Testing instruction
  • Dev +1's
  • Dev/QA +10
  • Unit test created/updated
  • All unit tests pass

Merging to Master. Note, this will not be released until infosec vulnerability checks are complete, and dependency tracking via smithy is configured.

@leviwith-wf leviwith-wf merged commit b1a929a into Workiva:master Dec 13, 2016
@aaronlademann-wf aaronlademann-wf changed the title Upgrade to React 15.4.1 UIP-1436 Upgrade to React 15.4.1 Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants