Skip to content

Releases: testing-library/react-hooks-testing-library

v1.0.2

19 Jun 13:46
Compare
Choose a tag to compare

Changes

  • Forgot some more references in the README
  • Fixed some references in tests

v1.0.1

19 Jun 13:46
Compare
Choose a tag to compare

Changes

  • Forgot some references in the README

v1.0.0

19 Jun 13:30
Compare
Choose a tag to compare

馃摙 WE HAVE MOVED

react-hooks-testing-library has moved to the testing-library Org and in now published under the @testing-library scope. Please update your dependeny by running:

npm uninstall react-hooks-testing-library
npm install --save-dev @testing-library/react-hooks

Changes

  • Updated docs and links from mpeyper to testing-library (#99)
  • Updated dependencies
  • No more v0.x.x versions! (#26)
    • The API has been stable for quite some time, and I felt like the time had come

鈿狅笍 Breaking Changes

  • Removed the deprecated testHook function
    • If you haven't already, please update your tests to use renderHook instead... It's just a rename.

v0.6.0

20 Jun 12:35
141ce65
Compare
Choose a tag to compare

Changes

Note: the published code for this release was not commited to git and this tag was created as a marker for the last react-hooks-testing-library commit

v0.5.1

02 Jun 04:11
Compare
Choose a tag to compare

Changes

  • Removed error boundary to remove React warning (#50, #74)
  • Various dependency updates (renovate-bot)
  • Docs improvements (#47, #54)

v0.5.0

21 Apr 11:01
Compare
Choose a tag to compare

Changes

  • Changed component rendering to use react-test-renderer instead of react-testing-library (#40)

鈿狅笍 Breaking Changes

  • There is no longer a direct dependency on react-testing-library
    • If you were using it without your own dependency, please run npm i -D react-testing-library@^6.0.3 (or the yarn equivalent)
  • renderHook no longer returns cleanup and the cleanup-after-each utility has been removed

v0.4.1

16 Apr 11:45
Compare
Choose a tag to compare

Changes

  • The error handling changes from v0.4.0 will no longer prevent Suspense from suspending (#27, #35)

v0.4.0

31 Mar 10:26
Compare
Choose a tag to compare

Changes

  • Throw values from hooks are now available in the result.error property (#20, #21)

鈿狅笍 Breaking Changes

  • result.current is now a readonly getter
  • result.current will throw any captured error if retrieving an invalid value

v0.3.8

22 Mar 11:25
Compare
Choose a tag to compare

Changes

  • added cleanup-after-each utility import (#13 #15)
  • updated README

v0.3.7

14 Mar 10:59
Compare
Choose a tag to compare

Changes

  • Added waitForNextUpdate helper for testing async hooks (#10 #11)