Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

greenkeeper[bot]
Copy link

@greenkeeper greenkeeper bot commented Sep 25, 2017

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

Dependency enzyme-to-json
Current Version 1.6.0
Type devDependency

The version 2.0.1 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.


Commits

The new version differs by 15 commits.

  • be68bdf 2.0.1
  • 5956b62 Reintroduced Node 4 support (#71)
  • 0d614d9 Added the Enzyme 3 branch to travis
  • 68250df 2.0.0
  • 4642249 Update package-lock
  • 8129352 Add key props to snapshots (#66)
  • 375037a Improved test coverage
  • 2089f39 Updated folders to lint
  • 4813e2c Run prettier on serializer tests files too
  • 6179349 Added vscode generated folders to gitignore
  • e5d4628 Added new files to the format command
  • aaa590d Added prettier-check to the workflow
  • ba17d32 Removed hooks I don't want to use anymore
  • cee1fea Removed useless dev dependencies
  • c8ae809 Applied prettier changes

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

greenkeeper bot added a commit that referenced this pull request Sep 26, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Sep 26, 2017

Version 3.0.0 just got published.

Update to this version instead 🚀

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

greenkeeper bot added a commit that referenced this pull request Sep 27, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Sep 27, 2017

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 added a commit that referenced this pull request Oct 3, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Oct 3, 2017

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 added a commit that referenced this pull request Oct 4, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Oct 4, 2017

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 added a commit that referenced this pull request Oct 6, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Oct 6, 2017

Version 3.1.2 just got published.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Oct 17, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Oct 17, 2017

Version 3.1.3 just got published.

Update to this version instead 🚀

Commits

The new version differs by 3 commits.

  • 1c28157 3.1.3
  • ea63906 Handle case where a componenent would expicitely return false in render (#80)
  • 627f72f Fixed flaky tests by providing more sensible test cases (#79)

See the full diff

greenkeeper bot added a commit that referenced this pull request Oct 17, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Oct 17, 2017

Version 3.1.4 just got published.

Update to this version instead 🚀

Commits

The new version differs by 3 commits.

  • 5b25a56 v3.1.4
  • cd56f7a Fixed component having false as a child (#81)
  • 5f16b92 Moved CONTRIBUTING.md to a .github folder

See the full diff

greenkeeper bot added a commit that referenced this pull request Nov 2, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Nov 2, 2017

Version 3.2.0 just got published.

Update to this version instead 🚀

Release Notes v3.2.0
  • Pass node to map function (#83)
Commits

The new version differs by 4 commits.

  • 0cb398e v3.2.0
  • 9057d44 Pass node to map (#83)
  • 635fb65 Removed package lock which wont be used anymore
  • 98776df Fixed unit test to use snapshot tests instead of object matching

See the full diff

greenkeeper bot added a commit that referenced this pull request Nov 3, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Nov 3, 2017

Version 3.2.1 just got published.

Update to this version instead 🚀

Release Notes v3.2.1
  • Skip undefined props in snapshots (#84)
Commits

The new version differs by 2 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Nov 8, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Nov 8, 2017

Version 3.2.2 just got published.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

See the full diff

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.

0 participants