Skip to content

Commit

Permalink
v2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayc0 committed Mar 7, 2020
1 parent ab02ef0 commit c59ec2c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@
- remove polyfill for matchMedia **minor breaking change**
- add `useQuery`
- drop `media` in `useOnly` **BREAKING CHANGE**
- use Node 13 `exports` field

<details>
<summary>See detailed changelog</summary>

#### 2.3.1

- Use Node 13 conditional exports: https://nodejs.org/api/esm.html#esm_conditional_exports

#### 2.3.0

- remove polyfill for matchMedia (it should be define by the users) **minor breaking change**
Expand Down
10 changes: 8 additions & 2 deletions packages/react-only/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
{
"name": "react-only",
"version": "2.3.0",
"version": "2.3.1",
"description": "🔍 <Only /> displays some contents for a specific screen size",
"source": "src/index.ts",
"sideEffects": false,
"main": "lib/react-only.js",
"umd:main": "lib/react-only.umd.js",
"module": "lib/react-only.modern.js",
"types": "lib/index.d.ts",
"sideEffects": false,
"exports": {
"require": "./dist/react-only.js",
"import": "./dist/react-only.modern.js",
"browser": "./dist/react-only.modern.js",
"umd": "./dist/react-only.umd.js"
},
"repository": "[email protected]:Ayc0/react-only.git",
"keywords": [
"adaptive",
Expand Down

0 comments on commit c59ec2c

Please sign in to comment.