Stupidism / stupid-rc-starter

Hoc-style React Component Starter with storybook integrated
https://stupidism.github.io/stupid-rc-starter/
MIT License
6 stars 2 forks source link

Update enzyme-to-json to the latest version 🚀 #50

Closed greenkeeper[bot] closed 6 years ago

greenkeeper[bot] commented 7 years ago

Version 3.0.0 of enzyme-to-json just got published.

Dependency enzyme-to-json
Current Version 2.0.1
Type devDependency

The version 3.0.0 is not covered by your current version range.

Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.

I recommend you look into these changes and try to get onto the latest version of enzyme-to-json. Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.


Release Notes v3.0.0

There it is, a new major version!

Features

  • Works with Enzyme v3 and React 16
  • Support top level array components (new in React 16)
  • Remove mountToShallowJson and mountToDeepJson and use options instead
  • Simplified Readme
  • Refactor documentation
  • TypeScript bindings

Breaking changes

  • Components returning null or any falsy value are now rendered as an empty string in snapshots instead of null

  • Shallow wrapper are now outputting undefined props:

  <BasicWithUndefined>
-   <button>
+   <button
+     disabled={undefined}
+   >
      Hello
    </button>
  </BasicWithUndefined>
  • This use case won't be supported anymore, it seems incorrect anyway to pass this as a prop and I can see no usage of this in the react-bootstrap documentation anyway

  • This use case won't be supported either as it doesn't seem to be supported by Enzyme either, you will just have to use their simulate helper to do that

  • mountToShallowJson and mountToDeepJson are replaced by a mode option in mountToJson:

mountToShallowJson(wrapper);
// ==>
mountToJson(wrapper, {mode: 'shallow'});

mountToDeepJson(wrapper);
// ==>
mountToJson(wrapper, {mode: 'deep'});

Bugs

Please report any bugs in the GitHub issues tab as soon as you find them. Thanks!

Commits

The new version differs by 2 commits.

  • 1badaa8 3.0.0
  • 89e2b0d Version 3.0 (Enzyme 3 and React 16 compatibility) (#72)

See the full diff

Not sure how things should work exactly? There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html) and of course you may always [ask my humans](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper Bot :palm_tree:

greenkeeper[bot] commented 7 years ago

Version 3.0.1 just got published.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

See the full diff

greenkeeper[bot] commented 6 years ago

Version 3.1.0 just got published.

Update to this version instead 🚀

Release Notes createSerializer

A new function createSerializer has been added thanks to @vlad-zhukov (#76) 🎉

This function allows you to use the serializer with the option object, for example:

import {createSerializer} from 'enzyme-to-json';

expect.addSnapshotSerializer(createSerializer({mode: 'deep'}));
Commits

The new version differs by 7 commits.

  • c7dd309 3.1.0
  • f74a375 Upgrading dependencies as well
  • 0fdd5c5 Updating package lock file
  • 4cca2c7 Add createSerializer (#76)
  • dccc7d5 Update README.md
  • 0ddebe9 Update README.md
  • 810b38a Updated README.md to put forward the best usage of the library

See the full diff

greenkeeper[bot] commented 6 years ago

Version 3.1.1 just got published.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

See the full diff

greenkeeper[bot] commented 6 years ago

Version 3.1.2 just got published.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

See the full diff