Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

chore(Dependencies): update major ones #41

Merged
merged 18 commits into from Apr 21, 2017
Merged

chore(Dependencies): update major ones #41

merged 18 commits into from Apr 21, 2017

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Apr 16, 2017

Summary

  1. react/react-dom
  2. prettier
  3. jest/enzyme

Result

fixes #20

  1. big changes
  2. cool changes to the code
    • reformat everything

Copy link
Contributor Author

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most of the changes are due to new (and good) changes in Prettier

HotModuleReplacementPlugin,
NoEmitOnErrorsPlugin,
} = webpack;
const { HotModuleReplacementPlugin, NoEmitOnErrorsPlugin } = webpack;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

destructuring was using same logic as objects before prettier/prettier#981

},
{}
);
const facets = props.attributes.reduce((acc, attributeName) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

export default function Highlighter(
{ hit, attributeName, highlight, highlightProperty, tagName }
) {
export default function Highlighter({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@mthuret mthuret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we do also createReactClass? see: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.createclass

Also it seems that you missed a PropTypes from react-router-v4. Did you do it by hand?

@Haroenv
Copy link
Contributor Author

Haroenv commented Apr 18, 2017

I did it with a codemod everywhere in src, but by hand in the examples. Where exactly do you want a createReactClass, in the tests?

@mthuret
Copy link
Contributor

mthuret commented Apr 18, 2017

There are some createReactClass in docgen and tests, I think we should migrate those right?

Also, one check we could do, is verifying that we don't have any warnings left inside recipes/demos/storybook.

@Haroenv
Copy link
Contributor Author

Haroenv commented Apr 19, 2017

All those issues should now be fixed.

@Haroenv Haroenv force-pushed the chore/update-deps branch 3 times, most recently from 6526e3f to b717bb3 Compare April 20, 2017 13:56
@@ -3,7 +3,7 @@ This example shows how to perform a geo search using `react-instantsearch`.
To start the example:

```sh
yarn install --no-lockfile
yarn install
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why removing the --no-lockfile?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the value of writing --no-lockfile here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's there to not create a lock file when checkouting and running the examples. (and its present in every examples).

No matter what, this is not related to the dependencies upgrade.

@@ -37,5 +37,5 @@ do
-o "${dist_file_min}"

gzip_size=$(gzip -9 < "$dist_file_min" | wc -c | pretty-bytes)
echo "=> $dist_file_min gzipped will weight $gzip_size"
echo "=> $dist_file_min gzipped will weigh $gzip_size"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunate typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's one that's on lots of places, so I change them one by one 😄

@mthuret mthuret merged commit 53c0b82 into master Apr 21, 2017
@mthuret mthuret deleted the chore/update-deps branch April 21, 2017 08:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate to React 15.5
2 participants