react-hooks-worker
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -5,4 +5,9 @@ # Change Log | ||
## [0.2.0] - 2019-02-10 | ||
### Changed | ||
- Fixed null types | ||
- Updated dependencies (React 16.8) | ||
## [0.1.0] - 2019-01-27 | ||
### Added | ||
- Initial release |
{ | ||
"name": "react-hooks-worker", | ||
"description": "React custom hooks for web workers", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"author": "Daishi Kato", | ||
@@ -24,3 +24,4 @@ "repository": { | ||
"examples:minimal": "DIR=01_minimal EXT=js webpack-dev-server", | ||
"examples:typescript": "DIR=02_typescript webpack-dev-server" | ||
"examples:typescript": "DIR=02_typescript webpack-dev-server", | ||
"examples:comparison": "DIR=03_comparison webpack-dev-server" | ||
}, | ||
@@ -40,24 +41,23 @@ "keywords": [ | ||
"@babel/preset-react": "^7.0.0", | ||
"@types/react": "^16.7.20", | ||
"@types/react-dom": "^16.0.11", | ||
"@typescript-eslint/eslint-plugin": "^1.1.0", | ||
"@types/react": "^16.8.2", | ||
"@types/react-dom": "^16.8.0", | ||
"@typescript-eslint/eslint-plugin": "^1.3.0", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-eslint": "^10.0.1", | ||
"babel-loader": "^8.0.5", | ||
"enzyme": "^3.8.0", | ||
"enzyme-adapter-react-16": "^1.7.1", | ||
"enzyme-to-json": "^3.3.5", | ||
"eslint": "^5.12.1", | ||
"core-js": "^2.6.4", | ||
"eslint": "^5.13.0", | ||
"eslint-config-airbnb": "^17.1.0", | ||
"eslint-plugin-import": "^2.15.0", | ||
"eslint-plugin-jsx-a11y": "^6.1.2", | ||
"eslint-plugin-import": "^2.16.0", | ||
"eslint-plugin-jsx-a11y": "^6.2.1", | ||
"eslint-plugin-react": "^7.12.4", | ||
"html-webpack-plugin": "^3.2.0", | ||
"jest": "^23.6.0", | ||
"react": "16.8.0-alpha.1", | ||
"react-dom": "16.8.0-alpha.1", | ||
"jest": "^24.1.0", | ||
"react": "16.8.1", | ||
"react-dom": "16.8.1", | ||
"react-test-renderer": "^16.8.1", | ||
"ts-loader": "^5.3.3", | ||
"typescript": "^3.2.4", | ||
"webpack": "^4.29.0", | ||
"webpack-cli": "^3.2.1", | ||
"typescript": "^3.3.3", | ||
"webpack": "^4.29.3", | ||
"webpack-cli": "^3.2.3", | ||
"webpack-dev-server": "^3.1.14" | ||
@@ -64,0 +64,0 @@ }, |
@@ -64,1 +64,7 @@ react-hooks-worker | ||
[02](https://codesandbox.io/s/github/dai-shi/react-hooks-worker/tree/master/examples/02_typescript) | ||
[03](https://codesandbox.io/s/github/dai-shi/react-hooks-worker/tree/master/examples/03_comparison) | ||
Blogs | ||
----- | ||
- [https://medium.com/@dai_shi/playing-with-react-hooks-and-web-workers-2ebdf1c93dea](Playing with React Hooks and Web Workers) |
@@ -5,6 +5,6 @@ export type UseWorker = <Result>( | ||
) => { | ||
result: Result | void; | ||
error: 'error' | 'messageerror' | void; | ||
result: Result | null; | ||
error: 'error' | 'messageerror' | null; | ||
}; | ||
export const useWorker: UseWorker; |
7870
26
70