Skip to content

Commit

Permalink
Update flow 0.34 -> 0.67
Browse files Browse the repository at this point in the history
This shook out a couple of new warnings, which I also addressed in this
commit.
  • Loading branch information
lencioni committed Mar 15, 2018
1 parent cabad93 commit e70c850
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
11 changes: 8 additions & 3 deletions examples/src/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import { StyleSheet } from '../../src/index.js';

import StyleTester from './StyleTester.js';

const root = document.getElementById('root');

StyleSheet.rehydrate(window.renderedClassNames);
ReactDOM.render(
<StyleTester />,
document.getElementById('root'));
if (root) {
ReactDOM.render(
<StyleTester />,
root
);
}
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"eslint": "^3.7.1",
"eslint-config-standard-react": "^4.2.0",
"eslint-plugin-react": "^6.3.0",
"flow-bin": "^0.34.0",
"flow-bin": "^0.67.0",
"jsdom": "^11.6.2",
"mkdirp": "^0.5.1",
"mocha": "^2.3.3",
Expand Down
3 changes: 2 additions & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ export const stringifyAndImportantifyValue = (
) /* : string */ => importantify(stringifyValue(key, prop));

// Turn a string into a hash string of base-36 values (using letters and numbers)
export const hashString = (string /* : string */) /* string */ => stringHash(string).toString(36);
// eslint-disable-next-line no-unused-vars
export const hashString = (string /* : string */, key /* : ?string */) /* string */ => stringHash(string).toString(36);

// Hash a javascript object using JSON.stringify. This is very fast, about 3
// microseconds on my computer for a sample object:
Expand Down

0 comments on commit e70c850

Please sign in to comment.