Skip to content

Commit 30eb726

Browse files
authored
1.1.0 / 1.1.1 (#1)
* Fix window undefined error * Update .npmignore * Switch from webpack to rollup * Remove old lib files * Update README.md * 1.1.1
1 parent 768fb97 commit 30eb726

19 files changed

+271
-2647
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
.DS_Store
33
yarn-error.log
4+
.rpt2_cache

β€Ž.npmignoreβ€Ž

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
src
22

33
tsconfig.json
4-
.travis.yml
54
.prettierrc
65

76
.eslintrc.js
8-
/index.d.ts
9-
webpack.config.js
7+
rollup.config.js
108
yarn-error.log
9+
.rpt2_cache

β€Ž.travis.ymlβ€Ž

Lines changed: 0 additions & 3 deletions
This file was deleted.

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# react-viewport-hooks Changelog
22

3+
## 1.1.0 / 1.1.1 (2019-08-13)
4+
#### Bug Fix
5+
- fixed `window id undefined` error in SSR apps
6+
7+
#### Repository Changes
8+
- added ES module
9+
310
## 1.0.1 / 1.0.2 (2019-08-05)
411
#### New Feature
512
- `useViewport` hook

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Name | Type | Description
3636

3737
## Example
3838
```js
39-
import React, { useEffect } from 'react';
39+
import React from 'react';
4040
import { useViewport } from 'react-viewport-hooks';
4141

4242
const App = () => {

β€Žlib/index.d.tsβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export declare const useViewport: (options?: {
2-
updateOnResize: boolean;
3-
}) => {
4-
vw: number;
5-
vh: number;
6-
};
1+
export declare const useViewport: (options?: {
2+
updateOnResize: boolean;
3+
}) => {
4+
vw: number;
5+
vh: number;
6+
};

β€Žlib/react-viewport-hooks.cjs.jsβ€Ž

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žlib/react-viewport-hooks.cjs.js.mapβ€Ž

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žlib/react-viewport-hooks.esm.jsβ€Ž

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žlib/react-viewport-hooks.esm.js.mapβ€Ž

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)