React Tree Walker Versions Save

Walk a React (or Preact) element tree, executing a "visitor" function against each element.

v4.3.0

5 years ago

Minor Changes

  • Add support for React.forwardRef: 7cd93e0e04a65e0af8de160c77f8a0819e477a34
  • Add tests for React.forwardRef: 0d9f69efec4c673b7bd3bdf10c7fa3ee53fb4b51
  • Merge pull request #39 from bartlangelaan/master: e2e64e3644d5ef6c38a4a348f908e8b643e1e96a

Huge thanks to @bartlangelaan for the help in adding an awesome new feature. ⭐️

v4.2.0

5 years ago

Minor Changes

  • Adds support for UNSAFE_componentWillMount and getDerivedStateFromProps.: 2e4399668308d4c85e9804fc118c42962cf2be7a

v4.1.0

5 years ago

Minor Changes

  • Adds support for the new React context API: d01459d6c79b0facda27526b163e598ac65c7770

Patches

  • Fix typo in README: fc29100980aec4c9aa4ca489055350e97ba486fb

Huge thanks to @dan-lee for the work to support the new React context API, and to @ewolfe for being a sharp eye. ❤️

v4.0.0

6 years ago

Huge rewrite/refactor of the library!

Major Changes

  • componentWillMount now gets executed before the visitor. This should allow for better initialized instances being passed into the visitor. This likely won't affect you, but it is good to be made aware of this change. Fixes the manner in which context is passed down the tree.: ef75192a13b8785488d1a8ee6ed55753db2f5c67

Minor Changes

  • Adds support for Preact (including "native" Preact - i.e. without preact-compat): ef75192a13b8785488d1a8ee6ed55753db2f5c67
  • Adds support for React's "Portals" feature.: ef75192a13b8785488d1a8ee6ed55753db2f5c67

Patches

  • Experimental componentWillUnmount calls now get executed after children resolved, and additionally no longer have their errors swallowed.: 687858ca97bae50ff99df669ec33e335be7c7b44
  • Ensures promise flow calls the componentWillUnmount in the correct order.: e7e049d2920c18fe0acf4ef1159ac6d6a43e65a8

v3.0.0

6 years ago

Major Changes

  • Errors are no longer caught/swallowed internally, leaving error handling to the calling code.: 5677d18b7c3353fc539bf5eddb7ffa204f8f14b8

Patches

  • Fixes bug where children were continuously traversed despite a visitor result indicating the desire to stop traversal.: a2d0cb4e6adcd499e84c1b7d359b89a2c41c9630

v2.2.0

6 years ago

Minor Changes

  • Support updater function in setState: 4a898bfc974da9b629b448a54cc455e517bd8faa
  • Support instance-as-result children: 4425daf23b91c8fc4ba3e611f96cdf0a8956817a
  • Merge pull request #20 from eirikurn/setstate-updater: afdd277a53eba0010f24fc4343ba606d01b32e92
  • Merge pull request #23 from dvkndn/fix-instance-as-result: 8d8c74b60d380defee0122aca12d3fad3715611a

2.1.3

6 years ago

Patches

  • Adds react 16 as being supported.: 1b1132bb3f5d0c0384589501fc70f223dd502a46

2.1.2

6 years ago

Patches

  • Fix issue with nested children, update unit tests, close #9: 387a9e99a576de68684c28c0b3e0c5cc1b08f6a0 (thanks @grxy!)

2.1.1

7 years ago

Patches

  • Passing options to recursive function: 852f349921bc5ae83adc256191fd2c666db9589e (thanks @birkir!)

2.1.0

7 years ago

Minor Changes

  • Experimental Feature: Extends the tree walker with an options paramater allowing you to define whether componentWillUnmount should be called or not.: 98733daa4de4fe674307371594b3c61fb74fed36