Skip to content

Commit

Permalink
9.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
yocontra committed Sep 16, 2022
1 parent 7e4ddf8 commit 54e46a8
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 45 deletions.
16 changes: 12 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,31 @@

### v9.0.0

#### Beta9
- Convert project to typescript
- Upgrade to Webpack 5
- Fix a memory leak with useMediaQuery hook
- Add support for React 18
- Add docs webpage

### v9.0.0-beta

#### Beta 9

- Fix typescript output

#### Beta8
#### Beta 8

- Fix webpack bundle issue (self is not defined)

#### Beta7
#### Beta 7

- Improve typescript typings
- Add typing support for React 18
- Example setup with React 18
- Upgrade to Webpack 5
- Fix a bug with React 18 not re-rendering

#### Beta6
#### Beta 6

- Convert project to typescript
- Remove UMD build from project
Expand Down
2 changes: 1 addition & 1 deletion dist/react-responsive.min.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-responsive",
"description": "Media queries in react for responsive design",
"version": "9.0.0-beta.10",
"version": "9.0.0",
"homepage": "http://github.com/contra/react-responsive",
"repository": {
"type": "git",
Expand Down Expand Up @@ -42,7 +42,7 @@
"devDependencies": {
"@types/chai": "^4.3.1",
"@types/hyphenate-style-name": "^1.0.0",
"@types/jsdom": "^16.2.6",
"@types/jsdom": "^20.0.0",
"@types/match-media-mock": "^0.1.5",
"@types/matchmediaquery": "^0.3.0",
"@types/mocha": "^9.0.0",
Expand All @@ -56,7 +56,7 @@
"eslint": "^8.13.0",
"eslint-plugin-compat": "^4.0.2",
"gh-pages": "^4.0.0",
"jsdom": "^19.0.0",
"jsdom": "^20.0.0",
"match-media-mock": "^0.1.1",
"mocha": "^10.0.0",
"react": "^18.0.0",
Expand All @@ -65,8 +65,8 @@
"sinon": "^14.0.0",
"ts-loader": "^9.2.8",
"ts-node": "^10.0.0",
"typedoc": "^0.22.15",
"typescript": "^4.6.3",
"typedoc": "^0.23.14",
"typescript": "^4.8.3",
"webpack": "^5.72.0",
"webpack-cli": "^4.9.2"
},
Expand Down
70 changes: 35 additions & 35 deletions types/mediaQuery.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,34 @@ declare const _default: {
scan: PropTypes.Requireable<string>;
aspectRatio: PropTypes.Requireable<string>;
deviceAspectRatio: PropTypes.Requireable<string>;
height: PropTypes.Requireable<string | number>;
deviceHeight: PropTypes.Requireable<string | number>;
width: PropTypes.Requireable<string | number>;
deviceWidth: PropTypes.Requireable<string | number>;
height: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
deviceHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
deviceWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
color: PropTypes.Requireable<boolean>;
colorIndex: PropTypes.Requireable<boolean>;
monochrome: PropTypes.Requireable<boolean>;
resolution: PropTypes.Requireable<string | number>;
resolution: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
minAspectRatio: PropTypes.Requireable<string>;
maxAspectRatio: PropTypes.Requireable<string>;
minDeviceAspectRatio: PropTypes.Requireable<string>;
maxDeviceAspectRatio: PropTypes.Requireable<string>;
minHeight: PropTypes.Requireable<string | number>;
maxHeight: PropTypes.Requireable<string | number>;
minDeviceHeight: PropTypes.Requireable<string | number>;
maxDeviceHeight: PropTypes.Requireable<string | number>;
minWidth: PropTypes.Requireable<string | number>;
maxWidth: PropTypes.Requireable<string | number>;
minDeviceWidth: PropTypes.Requireable<string | number>;
maxDeviceWidth: PropTypes.Requireable<string | number>;
minHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
maxHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
minDeviceHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
maxDeviceHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
minWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
maxWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
minDeviceWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
maxDeviceWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
minColor: PropTypes.Requireable<number>;
maxColor: PropTypes.Requireable<number>;
minColorIndex: PropTypes.Requireable<number>;
maxColorIndex: PropTypes.Requireable<number>;
minMonochrome: PropTypes.Requireable<number>;
maxMonochrome: PropTypes.Requireable<number>;
minResolution: PropTypes.Requireable<string | number>;
maxResolution: PropTypes.Requireable<string | number>;
minResolution: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
maxResolution: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
all: PropTypes.Requireable<boolean>;
grid: PropTypes.Requireable<boolean>;
aural: PropTypes.Requireable<boolean>;
Expand Down Expand Up @@ -63,49 +63,49 @@ declare const _default: {
scan: PropTypes.Requireable<string>;
aspectRatio: PropTypes.Requireable<string>;
deviceAspectRatio: PropTypes.Requireable<string>;
height: PropTypes.Requireable<string | number>;
deviceHeight: PropTypes.Requireable<string | number>;
width: PropTypes.Requireable<string | number>;
deviceWidth: PropTypes.Requireable<string | number>;
height: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
deviceHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
deviceWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
color: PropTypes.Requireable<boolean>;
colorIndex: PropTypes.Requireable<boolean>;
monochrome: PropTypes.Requireable<boolean>;
resolution: PropTypes.Requireable<string | number>;
resolution: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
type: string[];
};
features: {
orientation: PropTypes.Requireable<string>;
scan: PropTypes.Requireable<string>;
aspectRatio: PropTypes.Requireable<string>;
deviceAspectRatio: PropTypes.Requireable<string>;
height: PropTypes.Requireable<string | number>;
deviceHeight: PropTypes.Requireable<string | number>;
width: PropTypes.Requireable<string | number>;
deviceWidth: PropTypes.Requireable<string | number>;
height: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
deviceHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
deviceWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
color: PropTypes.Requireable<boolean>;
colorIndex: PropTypes.Requireable<boolean>;
monochrome: PropTypes.Requireable<boolean>;
resolution: PropTypes.Requireable<string | number>;
resolution: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
minAspectRatio: PropTypes.Requireable<string>;
maxAspectRatio: PropTypes.Requireable<string>;
minDeviceAspectRatio: PropTypes.Requireable<string>;
maxDeviceAspectRatio: PropTypes.Requireable<string>;
minHeight: PropTypes.Requireable<string | number>;
maxHeight: PropTypes.Requireable<string | number>;
minDeviceHeight: PropTypes.Requireable<string | number>;
maxDeviceHeight: PropTypes.Requireable<string | number>;
minWidth: PropTypes.Requireable<string | number>;
maxWidth: PropTypes.Requireable<string | number>;
minDeviceWidth: PropTypes.Requireable<string | number>;
maxDeviceWidth: PropTypes.Requireable<string | number>;
minHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
maxHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
minDeviceHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
maxDeviceHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
minWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
maxWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
minDeviceWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
maxDeviceWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
minColor: PropTypes.Requireable<number>;
maxColor: PropTypes.Requireable<number>;
minColorIndex: PropTypes.Requireable<number>;
maxColorIndex: PropTypes.Requireable<number>;
minMonochrome: PropTypes.Requireable<number>;
maxMonochrome: PropTypes.Requireable<number>;
minResolution: PropTypes.Requireable<string | number>;
maxResolution: PropTypes.Requireable<string | number>;
minResolution: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
maxResolution: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
};
};
export default _default;

0 comments on commit 54e46a8

Please sign in to comment.