- Merge #148 - Add
node.compareDocumentPosition
support.
- Replace a couple of
let
keywords withvar
because it was breaking some older environments and tools. See #147 for example.
- Merge #145 - Copy static properties through the higher order component.
- Merge #143 - Support D3 selection cloning.
- Merge #133 - Clean up HOC timers on unmount.
- Merge #115 - Update a bunch of things.
- Merge #114 - Move React to dev dependencies.
This should have been v4.0.0 really, I sincerely apologise for breaking the previous three releases.
- Merge #102 - Redesign and fix the withFauxDOM HOC.
withFauxDOM now passes the methods you need through the props. The documentation has been updated. For reasoning, see #96.
Same as v4.0.1 but under the normal latest
tag.
- Merge #100 - Change the
withFauxDOM
HOC so it only uses ES5 features. Fixes issues around uglifyjs after the v4.0.0 release.
Pre-release to confirm #100 works as expected.
- Merge #91 - Replace mixins with higher order components.
- Merge #88 - Add CDNJS version to README.md.
- Merge #89 - Add option to discard the existing node in connectFauxDom.
- Merge #95 - Alias style.getPropertyValue to style.getProperty, D3 requires it now.
- Commit 1c3a9ee - Only set the parentNode on faux DOM nodes, not React nodes.
- Revert #75. It caused issues in some cases.
- Merge #85 - Reuse the DOM in updates when using the mixin.
- Fix builds, as reported by #81 - It used to use a tool I built, bastion, but npm@3+ broke that. Uses webpack directly now.
- Add a bind where there could be potential issues. Fixes #75.
- Merge #65 - Documentation improvements.
- Merge #69 - Return an empty string from style getters by default. From issue #68.
- Merge #71 - Changes npmcdn URLs to unpkg. Not sure why they're doing this but oh well.
Breaking change because of the following:
- The default return type of the style functions have changed from
undefined
tostring
. - The unpkg build (previously npmcdn) exports to the global
ReactFauxDOM
instead ofreact-faux-dom
.
- Merge #59 - Updates D3 to v4 (a
devDependency
) and makes sure the tests work fine.
- REALLY fix
package.json
, just realised I don't need to publish to test this :(
Sorry about v2.6.{0,1,2}, my bad.
- Fix
package.json
files array by removing it. Trying to getdist
in npm.
- Merge #41 - Adding mixin with animation support (thanks @krawaller!)
- Merge #37 - Replace lodash dependencies with in house functions
- Throw when
querySelector(All)
does not receive an argument - Return null when
querySelector
does not find a match
- Merge #38 - Fix vendor prefixes for already camelCased style names
- Merge #35 - Define
childNodes
inElement
- Some small README improvements
- Merge #23 - Support data and aria attributes
- Merge #25 which fixes #19 - On click not passing through D3 datum
- Fix #10 - Vendor prefixed styles are camel cased incorrectly
- Fix #9 - Make events work like the normal DOM
This should contribute to fixing #4 (Support for Brush) too. The reason that this is a breaking change (a major version bump) is that the event object you receive in event listeners is now the actual native event, not a React synthetic event. If you want the synthetic event use the syntheticEvent
property. This should help even more d3 code just work out of the box.
- Fix #7 - toReact mutates the faux element