Skip to content

Commit

Permalink
Merge pull request #731 from streamich/v13
Browse files Browse the repository at this point in the history
V13
  • Loading branch information
streamich authored Nov 1, 2019
2 parents 5d97bf1 + 8d40f18 commit 9b15671
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 176 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
- [`useFullscreen`](./docs/useFullscreen.md) — display an element or video full-screen. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/ui-usefullscreen--demo)
- [`useSpeech`](./docs/useSpeech.md) — synthesizes speech from a text string. [![][img-demo]](https://codesandbox.io/s/n090mqz69m)
- [`useVideo`](./docs/useVideo.md) — plays video, tracks its state, and exposes playback controls. [![][img-demo]](https://streamich.github.io/react-use/?path=/story/ui-usevideo--demo)
- ~~[`useWait`](./docs/useWait.md) — complex waiting management for UIs.~~ _Deprecated_: will be removed soon
<br/>
<br/>
- [**Animations**](./docs/Animations.md)
Expand Down Expand Up @@ -111,7 +110,7 @@
- [`useEffectOnce`](./docs/useEffectOnce.md) &mdash; a modified [`useEffect`](https://reactjs.org/docs/hooks-reference.html#useeffect) hook that only runs once.
- [`useEvent`](./docs/useEvent.md) &mdash; subscribe to events.
- [`useLifecycles`](./docs/useLifecycles.md) &mdash; calls `mount` and `unmount` callbacks.
- [`useMountedState`](./docs/useMountedState.md) ~~and [`useRefMounted`](./docs/useRefMounted.md)~~ &mdash; track if component is mounted.
- [`useMountedState`](./docs/useMountedState.md) &mdash; track if component is mounted.
- [`usePromise`](./docs/usePromise.md) &mdash; resolves promise only while component is mounted.
- [`useLogger`](./docs/useLogger.md) &mdash; logs in console as component goes through life-cycles.
- [`useMount`](./docs/useMount.md) &mdash; calls `mount` callbacks.
Expand Down
28 changes: 0 additions & 28 deletions docs/useRefMounted.md

This file was deleted.

37 changes: 0 additions & 37 deletions docs/useWait.md

This file was deleted.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@
},
"homepage": "https://github.com/streamich/react-use#readme",
"dependencies": {
"@types/react-wait": "^0.3.0",
"copy-to-clipboard": "^3.1.0",
"nano-css": "^5.1.0",
"react-fast-compare": "^2.0.4",
"react-wait": "^0.3.0",
"resize-observer-polyfill": "^1.5.1",
"screenfull": "^5.0.0",
"set-harmonic-interval": "^1.0.1",
Expand Down
21 changes: 0 additions & 21 deletions src/__stories__/useRefMounted.story.tsx

This file was deleted.

39 changes: 0 additions & 39 deletions src/__stories__/useWait.story.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ export { default as usePromise } from './usePromise';
export { default as useRaf } from './useRaf';
export { default as useRafLoop } from './useRafLoop';
export { default as useRafState } from './useRafState';
/**
* @deprecated This hook is obsolete and Will be removed soon, use `useMountedState` instead
*/
export { default as useRefMounted } from './useRefMounted';
export { default as useSearchParam } from './useSearchParam';
export { default as useScroll } from './useScroll';
export { default as useScrolling } from './useScrolling';
Expand All @@ -93,10 +89,6 @@ export { default as useUpsert } from './useUpsert';
export { default as useVideo } from './useVideo';
export { default as useStateValidator } from './useStateValidator';
export { useMultiStateValidator } from './useMultiStateValidator';
/**
* @deprecated Will be removed soon
*/
export { useWait, Waiter } from './useWait';
export { default as useWindowScroll } from './useWindowScroll';
export { default as useWindowSize } from './useWindowSize';
export { default as useMeasure } from './useMeasure';
23 changes: 0 additions & 23 deletions src/useRefMounted.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/useWait.ts
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
/**
* @deprecated Will be removed soon
*/
export { useWait, Waiter } from 'react-wait';
12 changes: 0 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2416,13 +2416,6 @@
dependencies:
"@types/react" "*"

"@types/react-wait@^0.3.0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@types/react-wait/-/react-wait-0.3.0.tgz#6f7ef17571a17e72c7864ede8cf7d3aa525a005e"
integrity sha512-5jIfDcHRjqeE7QfZG7kCqOpfrPSvOM1E3/nlKuJ/NZrG/WrhLo/AFr0i72jhTWzyNRo4ex0pshBaiCHksZXH3A==
dependencies:
"@types/react" "*"

"@types/react@*", "@types/react@16.9.2":
version "16.9.2"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.2.tgz#6d1765431a1ad1877979013906731aae373de268"
Expand Down Expand Up @@ -10756,11 +10749,6 @@ react-transition-group@^2.2.1:
prop-types "^15.6.2"
react-lifecycles-compat "^3.0.4"

react-wait@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/react-wait/-/react-wait-0.3.0.tgz#0cdd4d919012451a5bc3ab0a16d00c6fd9a8c10b"
integrity sha512-kB5x/kMKWcn0uVr9gBdNz21/oGbQwEQnF3P9p6E9yLfJ9DRcKS0fagbgYMFI0YFOoyKDj+2q6Rwax0kTYJF37g==

react@16.11.0:
version "16.11.0"
resolved "https://registry.yarnpkg.com/react/-/react-16.11.0.tgz#d294545fe62299ccee83363599bf904e4a07fdbb"
Expand Down

0 comments on commit 9b15671

Please sign in to comment.